diff --git a/Dockerfile b/Dockerfile index 7a44a74af59..fe846537761 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ FROM ${BASE_IMAGE} AS build RUN apt-get update && apt-get upgrade -y && \ apt-get install --no-install-recommends -y \ - build-essential git && \ + wget build-essential git && \ apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false && \ apt-get clean -y && \ rm -rf /var/lib/apt/lists/* @@ -28,6 +28,8 @@ RUN mix local.hex --force && \ # Build for production ENV MIX_ENV=prod +ENV XLA_TARGET=cuda120 + # Install mix dependencies COPY mix.exs mix.lock ./ COPY config config diff --git a/assets/js/hooks/cell_editor.js b/assets/js/hooks/cell_editor.js index d24b7a7d73f..dbf7e068555 100644 --- a/assets/js/hooks/cell_editor.js +++ b/assets/js/hooks/cell_editor.js @@ -28,6 +28,7 @@ const CellEditor = { revision, this.props.language, this.props.intellisense, + this.props.copilot, this.props.readOnly, code_markers, doctest_reports @@ -80,6 +81,11 @@ const CellEditor = { "data-intellisense", parseBoolean ), + copilot: getAttributeOrThrow( + this.el, + "data-copilot", + parseBoolean + ), readOnly: getAttributeOrThrow(this.el, "data-read-only", parseBoolean), }; }, diff --git a/assets/js/hooks/cell_editor/live_editor.js b/assets/js/hooks/cell_editor/live_editor.js index dd171d088f8..1ea638fbcf6 100644 --- a/assets/js/hooks/cell_editor/live_editor.js +++ b/assets/js/hooks/cell_editor/live_editor.js @@ -11,6 +11,9 @@ import Doctest from "./live_editor/doctest"; import { initVimMode } from "monaco-vim"; import { EmacsExtension, unregisterKey } from "monaco-emacs"; +import debounce from 'lodash/debounce'; + + /** * Mounts cell source editor with real-time collaboration mechanism. */ @@ -24,6 +27,7 @@ class LiveEditor { revision, language, intellisense, + copilot, readOnly, codeMarkers, doctestReports @@ -34,6 +38,7 @@ class LiveEditor { this.source = source; this.language = language; this.intellisense = intellisense; + this.copilot = copilot; this.readOnly = readOnly; this._onMount = []; this._onChange = []; @@ -80,6 +85,10 @@ class LiveEditor { this._setupIntellisense(); } + if (this.copilot) { + this._setupInlineCopilot(); + } + this.editorClient.setEditorAdapter(new MonacoEditorAdapter(this.editor)); this.editor.onDidFocusEditorWidget(() => { @@ -638,6 +647,156 @@ class LiveEditor { }); } + _setupInlineCopilot() { + + const settings = settingsStore.get(); + + this.copilotHandlerByRef = {}; + + // There's an issue in monaco that means the commands will only ever be executed + // on the most recently added editor. To avoid this, we can use addAction + // as described here: https://github.com/microsoft/monaco-editor/issues/2947 + this.editor.addAction({ + id: "copilot_completion", + label: "Copilot completion", + keybindings: [monaco.KeyMod.WinCtrl | monaco.KeyCode.Space], + run: () => { + console.log("Keyboard trigger!") + this.editor.trigger("copilot", "editor.action.inlineSuggest.trigger"); + } + }); + + + // TODO insert client-side completion cache to avoid needlessly hitting server + this.editor.getModel().__getCopilotCompletionItems__ = (model, position, context, token) => { + + console.log("Copilot completion items provider", context, token) + const contextBeforeCursor = model.getValueInRange(new monaco.Range(1, 1, position.lineNumber, position.column)); + const contextAfterCursor = model.getValueInRange(new monaco.Range(position.lineNumber, position.column, model.getLineCount(), model.getLineMaxColumn(model.getLineCount()))); + + // When triggered automatically, we don't show suggestions when the cursor is in the middle of a + // word or at the beginning of the editor + if (context.triggerKind == monaco.languages.InlineCompletionTriggerKind.Automatic) { + console.log("Triggered automatically") + if (!/\S/.test(contextBeforeCursor)) { + console.log("Context before cursor consists entirely of whitespace") + return null + } + if (/^\S/.test(contextAfterCursor)) { + console.log("Bailing out because cursor is in the middle of some text") + return null; + } + } else { + console.log("Triggered manually") + } + + // not sure if we need this, yet + if (context.selectedSuggestionInfo !== undefined) { + console.debug("Autocomplete widget is visible"); + } + + return this._asyncCopilotRequest("completion", { + context_before_cursor: contextBeforeCursor, + context_after_cursor: contextAfterCursor + }).then((response) => { + if (response.error) { + console.error("Copilot completion failed", response.error) + return + } + + if (!response.completions) { + console.warn("No copilot completion items received") + return + } + const items = response.completions.map((completion) => { + return { + insertText: completion, + range: new monaco.Range( + position.lineNumber, + position.column, + position.lineNumber, + position.column + ) + } + }); + console.log("items", items) + return { + items + }; + }); + } + + // Not sure if there is a way to get monaco to debounce inline completions. + // We only want to show code completion items after certain delay (unless triggered via keyboard) + // Adapted from here: https://blog.smithers.dev/posts/debounce-with-promise/ + // TODO is here the right place for the debouncing? this code also gets called when manually triggering the completion, right? + function debouncePromise(debounceDelay, func) { + let promiseResolverRef = { + current: function () {} + }; + + // TODO don't debounce when triggered by keyboard shortcut + var debouncedFunc = debounce(function (...args) { + let promiseResolverSnapshot = promiseResolverRef.current; + let returnedPromise = func(...args) + if (returnedPromise == null) { + return; + } + returnedPromise.then(function (...args) { + console.log("then called") + if (promiseResolverSnapshot === promiseResolverRef.current) { + promiseResolverRef.current(...args); + } + }); + }, debounceDelay); + + return function (...args) { + return new Promise(function (resolve) { + promiseResolverRef.current({ + items: [] + }); + promiseResolverRef.current = resolve; + debouncedFunc(...args); + }); + }; + } + this.editor.getModel().__getCopilotCompletionItemsDebounced__ = debouncePromise(300, this.editor.getModel().__getCopilotCompletionItems__) + + + this.hook.handleEvent("copilot_response", ({ + ref, + response + }) => { + const handler = this.copilotHandlerByRef[ref]; + if (handler) { + handler(response); + delete this.copilotHandlerByRef[ref]; + } + }); + } + + _asyncCopilotRequest(type, props) { + return new Promise((resolve, reject) => { + this.hook.pushEvent( + "copilot_request", + { cell_id: this.cellId, type, ...props }, + ({ ref }) => { + if (ref) { + this.copilotHandlerByRef[ref] = (response) => { + if (response) { + resolve(response); + } else { + reject(null); + } + }; + } else { + reject(null); + } + } + ); + }); + } + /** * Sets Monaco editor mode via monaco-emacs or monaco-vim packages. */ diff --git a/assets/js/hooks/cell_editor/live_editor/monaco.js b/assets/js/hooks/cell_editor/live_editor/monaco.js index 7db65afe19f..88f21e768d2 100644 --- a/assets/js/hooks/cell_editor/live_editor/monaco.js +++ b/assets/js/hooks/cell_editor/live_editor/monaco.js @@ -227,6 +227,29 @@ settingsStore.getAndSubscribe((settings) => { }, } ); + + window.monaco = monaco // so i can access it in the dev tools + monaco.languages.registerInlineCompletionsProvider( + "elixir", + { + freeInlineCompletions: (completions) => { + // TODO? + return; + }, + provideInlineCompletions: (model, position, context, token) => { + let getItems = model.__getCopilotCompletionItems__; + if (context.triggerKind == monaco.languages.InlineCompletionTriggerKind.Automatic) { + getItems = model.__getCopilotCompletionItemsDebounced__; + } + + if (getItems) { + return getItems(model, position, context, token); + } else { + return null; + } + } + } + ); }); monaco.languages.registerHoverProvider("elixir", { diff --git a/config/config.exs b/config/config.exs index 727455c184c..4f8c13428cc 100644 --- a/config/config.exs +++ b/config/config.exs @@ -37,6 +37,40 @@ config :livebook, within_iframe: false, allowed_uri_schemes: [] +# TODO keen for some advice how best to structure this configuration +# feels a bit jank +config :livebook, Livebook.Copilot, + enabled: true, + # backend: Livebook.Copilot.HuggingfaceBackend, + # backend_config: %{ + # model: "deepseek-coder-1.3b" + # } + + backend: Livebook.Copilot.DummyBackend, + backend_config: %{ + model: "echo" + } + +# backend: Livebook.Copilot.BumblebeeBackend, +# backend_config: %{ +# model: "gpt2" +# } + +# backend: Livebook.Copilot.LlamaCppHttpBackend, +# backend_config: %{ +# model: "codellama-7b" +# } + +# backend: Livebook.Copilot.Openai, +# backend_config: %{ +# api_key: System.get_env("OPENAI_API_KEY"), +# model: "gpt-4-1106-preview" +# } + +config :nx, + default_backend: EXLA.Backend, + client: :host + # Import environment specific config. This must remain at the bottom # of this file so it overrides the configuration defined above. import_config "#{Mix.env()}.exs" diff --git a/config/prod.exs b/config/prod.exs index ebb0a724a21..35bfbdf5142 100644 --- a/config/prod.exs +++ b/config/prod.exs @@ -15,6 +15,24 @@ config :livebook, :iframe_port, 8081 # Set log level to warning by default to reduce output config :logger, level: :warning +config :livebook, Livebook.Copilot, + enabled: true, + backend: Livebook.Copilot.BumblebeeBackend, + backend_config: %{ + model: "deepseek-coder-1.3b", + client: :cuda + } + +# backend_config: %{ +# model: "gpt2", +# client: :host +# } + +config :nx, + default_backend: EXLA.Backend, + device: :cuda, + client: :cuda + # ## SSL Support # # To get SSL working, you will need to add the `https` key diff --git a/lib/livebook/application.ex b/lib/livebook/application.ex index 1f98aafb386..4367d1a1cb7 100644 --- a/lib/livebook/application.ex +++ b/lib/livebook/application.ex @@ -41,7 +41,13 @@ defmodule Livebook.Application do # Start the registry for managing unique connections {Registry, keys: :unique, name: Livebook.HubsRegistry}, # Start the supervisor dynamically managing connections - {DynamicSupervisor, name: Livebook.HubsSupervisor, strategy: :one_for_one} + {DynamicSupervisor, name: Livebook.HubsSupervisor, strategy: :one_for_one}, + + # TODO no idea if this is the best way to do this ... please help + # My thinking is that this way we can load the model in copilot.ex for the first time + # without blocking anything + {DynamicSupervisor, + name: Livebook.Copilot.BumblebeeServingSupervisor, strategy: :one_for_one} ] ++ if serverless?() do [] diff --git a/lib/livebook/copilot.ex b/lib/livebook/copilot.ex new file mode 100644 index 00000000000..d22ef880a3d --- /dev/null +++ b/lib/livebook/copilot.ex @@ -0,0 +1,110 @@ +defmodule Livebook.Copilot do + # TODO I noticed this isn't used elsewhere in livebook - should I avoid it? + require Logger + + # Arguments are passed through straight from the phoneix JS client event + # for now for rapid prototyping. + def handle_request( + %{ + "type" => "completion", + "context_before_cursor" => pre, + "context_after_cursor" => suf + } = request + ) do + result_ref = make_ref() + pid = self() + + {pre, backend, backend_config} = get_copilot_config(pre) + # TODO this ended up a bit too nested ^^ needs a tidy up. Any tips welcome + # TODO should this be start_link instead? + # TODO the model_loaded? and load_model! stuff has race conditions for Nx.Serving creation and ETS table creation / access. Need to have a single process init + + Task.start(fn -> + try do + if !apply(backend, :model_loaded?, [backend_config]) do + send( + pid, + {:copilot_response, result_ref, request, + {:loading_model, + "Loading copilot model #{backend} with #{inspect(backend_config)} - this may take a while."}} + ) + + {time, _} = + :timer.tc(fn -> + backend + |> apply(:load_model!, [backend_config]) + end) + + send( + pid, + {:copilot_model_loaded, + "Loaded {backend} #{inspect(backend_config)} in #{trunc(time / 1_000)}ms"} + ) + end + + {time, completion} = + :timer.tc(fn -> + backend + |> apply(:completion, [backend_config, pre, suf]) + end) + + response = + {:ok, completion, + %{ + time: trunc(time / 1_000), + backend: backend + }} + + send(pid, {:copilot_response, result_ref, request, response}) + rescue + e -> + send( + pid, + {:copilot_response, result_ref, request, + {:error, "Copilot error: #{Exception.format_banner(:error, e)}"}} + ) + end + end) + + result_ref + end + + # TODO remove this hack once the feature is shipped + # During development it's useful to set the copilot config on a per-cell basis + # To do so, format the first line like this: + # # copilot_config = %{backend: Livebook.Copilot.OpenaiBackend, backend_config: %{}} + # If no such string is present (or it can't be parsed) the application config is used + defp get_copilot_config("# copilot_config =" <> _ = pre) do + [config_line | rest] = String.split(pre, "\n") + pre = Enum.join(rest, "\n") + + try do + parsed_config = + config_line |> String.split(" = ") |> List.last() |> Code.eval_string() |> elem(0) + + {pre, parsed_config[:backend], parsed_config[:backend_config]} + rescue + e -> + Logger.warning( + "Can't parse magic config comment - falling back to application config: #{Exception.format_banner(:error, e)}" + ) + + get_copilot_config(pre) + end + end + + defp get_copilot_config(pre) do + # fall back to defaults + try do + {pre, Application.get_env(:livebook, Livebook.Copilot)[:backend], + Application.get_env(:livebook, Livebook.Copilot)[:backend_config] || %{}} + rescue + e -> + Logger.warning( + "Invalid copilot config - using defaults: #{Exception.format_banner(:error, e)}" + ) + + {pre, Livebook.Copilot.OpenaiBackend, %{}} + end + end +end diff --git a/lib/livebook/copilot/bumblebee_backend.ex b/lib/livebook/copilot/bumblebee_backend.ex new file mode 100644 index 00000000000..ecd99df8d02 --- /dev/null +++ b/lib/livebook/copilot/bumblebee_backend.ex @@ -0,0 +1,151 @@ +defmodule Livebook.Copilot.BumblebeeBackend do + require Logger + + # :model determines generation options, prompt format and post processing + def completion(%{model: model} = config, pre, suf) do + if !model_loaded?(config) do + load_model!(config) + end + + prompt = build_prompt(model, pre, suf) + + if String.trim(pre) == "" do + "" + else + completion = + Nx.Serving.batched_run(serving_name(model), prompt) + |> Map.get(:results) + |> hd + |> Map.get(:text) + + post_process(model, completion) + end + end + + def build_prompt("deepseek-coder" <> _, pre, suf), + do: + "<|fim▁begin|># cell.ex: an elixir livebook cell written in elixir\n#{pre}<|fim▁hole|>#{suf}<|fim▁end|>" + + def build_prompt("codellama" <> _, pre, suf), + do: "
#{pre} #{suf} "
+
+  def build_prompt(_, pre, _suf), do: pre
+
+  # TODO for some reason this model returns the whole string, not just the completed parts
+  def post_process("deepseek-coder" <> _, completion),
+    do:
+      String.split(completion, "<|fim▁end|>")
+      |> Enum.at(1)
+
+  def post_process("codellama" <> _, completion), do: completion |> String.trim_trailing("")
+  def post_process(_, completion), do: completion
+
+  def nx_serving_spec(%{model: "deepseek-coder-1.3b"} = config) do
+    repo = {:hf, "deepseek-ai/deepseek-coder-1.3b-base"}
+
+    {:ok, model_info} =
+      Bumblebee.load_model(repo,
+        backend: {EXLA.Backend, client: config[:client] || :host}
+      )
+
+    {:ok, tokenizer} =
+      Bumblebee.load_tokenizer(
+        {:hf, "deepseek-ai/deepseek-coder-1.3b-base",
+         revision: "e94f2b11bc28abbd67ecadfaad058c30b24a589f"}
+      )
+
+    {:ok, generation_config} = Bumblebee.load_generation_config(repo)
+
+    generation_config =
+      Bumblebee.configure(generation_config, max_new_tokens: 200, no_repeat_ngram_length: 7)
+
+    serving =
+      Bumblebee.Text.generation(model_info, tokenizer, generation_config,
+        compile: [batch_size: 1, sequence_length: 512],
+        stream: false,
+        defn_options: [compiler: EXLA, lazy_transfers: :never],
+        preallocate_params: true
+      )
+
+    {Nx.Serving, name: serving_name(config[:model]), serving: serving}
+  end
+
+  def nx_serving_spec(%{model: "codellama-7b"} = config) do
+    repo = {:hf, "codellama/CodeLlama-7b-hf"}
+
+    {:ok, model_info} =
+      Bumblebee.load_model(repo,
+        backend: {EXLA.Backend, client: config[:client] || :host}
+      )
+
+    {:ok, tokenizer} = Bumblebee.load_tokenizer(repo)
+    {:ok, generation_config} = Bumblebee.load_generation_config(repo)
+
+    generation_config =
+      Bumblebee.configure(generation_config, max_new_tokens: 100, no_repeat_ngram_length: 7)
+
+    serving =
+      Bumblebee.Text.generation(model_info, tokenizer, generation_config,
+        compile: [batch_size: 1, sequence_length: 512],
+        stream: false,
+        defn_options: [compiler: EXLA, lazy_transfers: :never]
+      )
+
+    {Nx.Serving, name: serving_name(config[:model]), serving: serving}
+  end
+
+  def nx_serving_spec(%{model: "gpt2"} = config) do
+    repo = {:hf, "gpt2"}
+
+    {:ok, model_info} =
+      Bumblebee.load_model(repo,
+        backend: {EXLA.Backend, client: config[:client] || :host}
+      )
+
+    {:ok, tokenizer} = Bumblebee.load_tokenizer(repo)
+    {:ok, generation_config} = Bumblebee.load_generation_config(repo)
+
+    generation_config =
+      Bumblebee.configure(generation_config, max_new_tokens: 30, no_repeat_ngram_length: 5)
+
+    serving =
+      Bumblebee.Text.generation(model_info, tokenizer, generation_config,
+        compile: [batch_size: 1, sequence_length: 512],
+        stream: false,
+        defn_options: [compiler: EXLA, lazy_transfers: :never]
+      )
+
+    {Nx.Serving, name: serving_name(config[:model]), serving: serving}
+  end
+
+  def load_model!(%{model: model} = config) do
+    if !model_loaded?(config) do
+      Logger.info("Starting copilot bumblebee serving for #{model}")
+
+      {:ok, pid} =
+        DynamicSupervisor.start_child(
+          Livebook.Copilot.BumblebeeServingSupervisor,
+          nx_serving_spec(%{model: model})
+        )
+
+      Logger.info("Started copilot bumblebee serving for #{model}: #{inspect(pid)}")
+    end
+  end
+
+  @spec model_loaded?(%{:model => any(), optional(any()) => any()}) :: boolean()
+  def model_loaded?(%{model: model}) do
+    child =
+      Supervisor.which_children(Livebook.Copilot.BumblebeeServingSupervisor)
+      |> Enum.find(fn {_, pid, _, [Nx.Serving]} ->
+        {_, process_name} = Process.info(pid, :registered_name)
+        # process_name would be (whatever is returned from serving_name).Supervisor
+        String.starts_with?(Atom.to_string(process_name), Atom.to_string(serving_name(model)))
+      end)
+
+    !!child
+  end
+
+  defp serving_name("deepseek-coder-1.3b"), do: Copilot.CompletionBackends.DeepseekSmall
+  defp serving_name("gpt2"), do: Copilot.CompletionBackends.GPT2
+  defp serving_name("codellama-7b"), do: Copilot.CompletionBackends.Codellama
+end
diff --git a/lib/livebook/copilot/dummy_backend.ex b/lib/livebook/copilot/dummy_backend.ex
new file mode 100644
index 00000000000..74350840194
--- /dev/null
+++ b/lib/livebook/copilot/dummy_backend.ex
@@ -0,0 +1,13 @@
+defmodule Livebook.Copilot.DummyBackend do
+  # :model determines generation options, prompt format and post processing
+  # def completion(%{model: "echo"}, pre, suf) do
+  #   return "\nEcho!\n#{pre}#{suf}"
+  # end
+  def completion(_, pre, suf) do
+    Process.sleep(500)
+    "\nEcho!\n#{pre}#{suf}"
+  end
+
+  def model_loaded?(_), do: true
+  def load_model!(_), do: true
+end
diff --git a/lib/livebook/copilot/huggingface_backend.ex b/lib/livebook/copilot/huggingface_backend.ex
new file mode 100644
index 00000000000..720d2f84c31
--- /dev/null
+++ b/lib/livebook/copilot/huggingface_backend.ex
@@ -0,0 +1,124 @@
+defmodule Livebook.Copilot.HuggingfaceBackend do
+  require Logger
+
+  def completion(config, pre, suf) do
+    api_key = config[:api_key] || System.get_env("HF_TOKEN")
+    model = config[:model] || "deepseek-coder-1.3"
+
+    payload = %{
+      inputs: build_prompt(model, pre, suf),
+      parameters: generation_parameters(model),
+      options: %{
+        wait_for_model: false
+      }
+    }
+
+    response =
+      Req.post!(endpoint_url(model),
+        json: payload,
+        max_retries: 500,
+        headers: %{
+          "Authorization" => "Bearer #{api_key}"
+        },
+        retry: fn
+          _req, %{status: 502} = res ->
+            IO.puts("retrying")
+            IO.inspect(res)
+            {:delay, 1000}
+
+          _, _ ->
+            false
+        end
+      )
+
+    IO.inspect(response)
+    completion = response |> Map.get(:body) |> hd |> Map.get("generated_text")
+    post_process(model, completion)
+  end
+
+  def endpoint_url("code-mistral-7b"),
+    do: "https://yc8u7go82crywio5.eu-west-1.aws.endpoints.huggingface.cloud"
+
+  def endpoint_url("deepseek-coder-6.7b"),
+    do: "https://jnxgz6yis68mvccl.eu-west-1.aws.endpoints.huggingface.cloud"
+
+  def endpoint_url("deepseek-coder-1.3b"),
+    do: "https://dy1ssdpwxx76znaa.eu-west-1.aws.endpoints.huggingface.cloud"
+
+  def endpoint_url("codellama-7b"),
+    do: "https://li94ayvlh76wlbkk.eu-west-1.aws.endpoints.huggingface.cloud"
+
+  # all the same for now
+  def generation_parameters(_),
+    do: %{
+      temperature: 0.1,
+      return_full_text: false,
+      max_new_tokens: 250,
+      repetition_penalty: 1.1
+    }
+
+  def build_prompt("codellama-7b", pre, suf),
+    do: "
#{pre} #{suf} "
+
+  def build_prompt("deepseek-coder-6.7b", pre, suf),
+    do: build_prompt("deepseek-coder-1.3b", pre, suf)
+
+  def build_prompt("deepseek-coder-1.3b", pre, suf),
+    do:
+      "<|fim▁begin|># cell.ex: an elixir livebook cell written in elixir\n#{pre}<|fim▁hole|>#{suf}<|fim▁end|>"
+
+  def build_prompt(_, pre, _suf), do: pre
+
+  def post_process("codellama-7b", completion), do: completion |> String.trim_trailing("")
+  def post_process(_, completion), do: completion
+
+  # chatgpt suggested I use an ETS table to store which huggingface endpoints have woken up
+  # Not sure that's a good idea. Doesn't matter, though, as this backend isn't for production
+  def model_loaded?(%{model: model}) do
+    table_name = :huggingface_model_table
+
+    if Enum.member?(:ets.all(), table_name) == false do
+      :ets.new(table_name, [:public, :named_table])
+    end
+
+    response =
+      case :ets.lookup(table_name, model) do
+        [] -> false
+        _ -> true
+      end
+
+    Logger.info("model_loaded? returned #{response}")
+    response
+  end
+
+  # "loading" the model simply means hitting the inference API until you get a 200 response code
+  def load_model!(%{model: model}) do
+    Req.post!(endpoint_url(model),
+      json: %{
+        inputs: "ping",
+        parameters: %{
+          max_new_tokens: 3
+        },
+        options: %{
+          wait_for_model: true
+        }
+      },
+      max_retries: 500,
+      # headers: %{
+      #   "Authorization" => "Bearer #{api_key}"
+      # },
+      retry: fn
+        _req, %{status: 502} = res ->
+          IO.puts("retrying to load")
+          IO.inspect(res)
+          {:delay, 1000}
+
+        _, _ ->
+          false
+      end
+    )
+
+    Logger.info("Received non-error response from endpoint - it's alive!")
+    :ets.insert(:huggingface_model_table, {model, true})
+  end
+end
diff --git a/lib/livebook/copilot/llama_cpp_http_backend.ex b/lib/livebook/copilot/llama_cpp_http_backend.ex
new file mode 100644
index 00000000000..d1859bccd1b
--- /dev/null
+++ b/lib/livebook/copilot/llama_cpp_http_backend.ex
@@ -0,0 +1,45 @@
+defmodule Livebook.Copilot.LlamaCppHttpBackend do
+  @moduledoc """
+  A client for interacting with the llama.cpp API described here:
+  https://github.com/ggerganov/llama.cpp/blob/df9d1293defe783f42bc83af732d3c670552c541/examples/server/server.cpp
+
+  You can run the llama.cpp server using a command like this
+
+  ./server -m ~/Dev/llm/models/gguf/codellama-7b.Q5_K_M.gguf -c 4096
+  """
+
+  @base_url "http://127.0.0.1:8080"
+
+  # :model determines generation options, prompt format and post processing
+  def completion(%{model: model}, pre, suf) do
+    payload = generation_options(model) |> Map.put(:prompt, build_prompt(model, pre, suf))
+
+    completion =
+      Req.post!("#{@base_url}/completion", json: payload)
+      |> Map.get(:body)
+      |> Map.get("content")
+      |> dbg()
+
+    post_process(model, completion)
+  end
+
+  def generation_options("codellama-7b"),
+    do: %{
+      temperature: 0.1,
+      repeat_penalty: 1.1,
+      n_predict: 20
+    }
+
+  def generation_options(_), do: %{}
+
+  def build_prompt("codellama-7b", pre, suf),
+    do: "
#{pre} #{suf} "
+
+  def build_prompt(_, pre, _suf), do: pre
+
+  def post_process("codellama-7b", completion), do: completion |> String.trim_trailing("")
+  def post_process(_, completion), do: completion
+
+  def model_loaded?(_), do: true
+  def load_model!(_), do: true
+end
diff --git a/lib/livebook/copilot/openai_backend.ex b/lib/livebook/copilot/openai_backend.ex
new file mode 100644
index 00000000000..67a9bd4b8d0
--- /dev/null
+++ b/lib/livebook/copilot/openai_backend.ex
@@ -0,0 +1,39 @@
+defmodule Livebook.Copilot.OpenaiBackend do
+  alias OpenaiEx.ChatCompletion
+  alias OpenaiEx.ChatMessage
+
+  @max_tokens 100
+  @temperature 0.1
+
+  def completion(config, pre, suf) do
+    api_key = config[:api_key] || System.get_env("OPENAI_API_KEY")
+    model = config[:model] || "gpt-4"
+
+    OpenaiEx.new(api_key)
+    |> ChatCompletion.create(%{
+      model: model,
+      messages: build_prompt_messages(pre, suf),
+      max_tokens: @max_tokens,
+      temperature: @temperature
+    })
+    |> Map.get("choices")
+    |> Enum.at(0)
+    |> Map.get("message")
+    |> Map.get("content")
+  end
+
+  def build_prompt_messages(pre, suf) do
+    [
+      ChatMessage.system("""
+        You are a strict assistant that helps fill in the  section of the elixir code below.
+        Only respond with elixir code. Do not include backticks in your response.
+        Don't tell me you can't do it, just respond with some plausible elixir code.
+        If my code ends in a comment, try to implement what the comment says.
+      """),
+      ChatMessage.user("#{[pre]}#{suf}")
+    ]
+  end
+
+  def model_loaded?(_), do: true
+  def load_model!(_), do: true
+end
diff --git a/lib/livebook_web/live/session_live.ex b/lib/livebook_web/live/session_live.ex
index b0da78505dd..b46948cd99d 100644
--- a/lib/livebook_web/live/session_live.ex
+++ b/lib/livebook_web/live/session_live.ex
@@ -1523,6 +1523,11 @@ defmodule LivebookWeb.SessionLive do
     end
   end
 
+  def handle_event("copilot_request", request, socket) do
+    ref = Livebook.Copilot.handle_request(request)
+    {:reply, %{"ref" => inspect(ref)}, socket}
+  end
+
   def handle_event("fork_session", %{}, socket) do
     %{pid: pid, files_dir: files_dir} = socket.assigns.session
     # Fetch the data, as we don't keep cells' source in the state
@@ -1827,6 +1832,45 @@ defmodule LivebookWeb.SessionLive do
     {:noreply, push_event(socket, "intellisense_response", payload)}
   end
 
+  def handle_info({:copilot_response, ref, _request, {:ok, completion, context}}, socket) do
+    {:noreply,
+     socket
+     |> push_event("copilot_response", %{
+       "ref" => inspect(ref),
+       "response" => %{
+         completions: [completion]
+       }
+     })
+     |> put_flash(
+       :info,
+       "Copilot: #{context[:backend]} completed in #{context[:time]}ms"
+     )}
+  end
+
+  def handle_info({:copilot_response, ref, _request, {:error, error}}, socket) do
+    {:noreply,
+     socket
+     |> push_event("copilot_response", %{
+       "ref" => inspect(ref),
+       "response" => %{
+         error: error
+       }
+     })
+     |> put_flash(:error, error)}
+  end
+
+  def handle_info({:copilot_response, _ref, _request, {:loading_model, message}}, socket) do
+    {:noreply,
+     socket
+     |> put_flash(:warning, message)}
+  end
+
+  def handle_info({:copilot_model_loaded, message}, socket) do
+    {:noreply,
+     socket
+     |> put_flash(:success, message)}
+  end
+
   def handle_info({:location_report, client_id, report}, socket) do
     report = Map.put(report, :client_id, client_id)
     {:noreply, push_event(socket, "location_report", report)}
diff --git a/lib/livebook_web/live/session_live/cell_component.ex b/lib/livebook_web/live/session_live/cell_component.ex
index ec03cd0a109..bf824fd8b4a 100644
--- a/lib/livebook_web/live/session_live/cell_component.ex
+++ b/lib/livebook_web/live/session_live/cell_component.ex
@@ -118,6 +118,7 @@ defmodule LivebookWeb.SessionLive.CellComponent do
           empty={@cell_view.empty}
           language={@cell_view.language}
           intellisense
+          copilot={Application.get_env(:livebook, Livebook.Copilot)[:enabled]}
         />
         
<.cell_status id={@cell_view.id} cell_view={@cell_view} /> @@ -612,6 +613,7 @@ defmodule LivebookWeb.SessionLive.CellComponent do attr :empty, :boolean, required: true attr :language, :string, required: true attr :intellisense, :boolean, default: false + attr :copilot, :boolean, default: false attr :read_only, :boolean, default: false attr :rounded, :atom, default: :both @@ -625,6 +627,7 @@ defmodule LivebookWeb.SessionLive.CellComponent do data-tag={@tag} data-language={@language} data-intellisense={to_string(@intellisense)} + data-copilot={to_string(@copilot)} data-read-only={to_string(@read_only)} >
diff --git a/mix.exs b/mix.exs index 83470f6f313..980fb314c7d 100644 --- a/mix.exs +++ b/mix.exs @@ -119,7 +119,17 @@ defmodule Livebook.MixProject do {:jose, "~> 1.11.5"}, {:req, "~> 0.4.4"}, # Docs - {:ex_doc, "~> 0.30", only: :dev, runtime: false} + {:ex_doc, "~> 0.30", only: :dev, runtime: false}, + + # Copilot depencies + {:openai_ex, "~> 0.4.1"}, + # TODO these are some heavy dependencies - can we somehow make them conditional on + # actually wanting bumblebee completion? + # {:bumblebee, "~> 0.4.2"}, + {:bumblebee, "~> 0.4.2", + git: "https://github.com/elixir-nx/bumblebee", branch: "jk-deepseek"}, + {:nx, "~> 0.6.4", override: true}, + {:exla, "~> 0.6.4"} ] end diff --git a/mix.lock b/mix.lock index 78b80e929a4..8bcbf2bb695 100644 --- a/mix.lock +++ b/mix.lock @@ -1,8 +1,14 @@ %{ + "ai": {:hex, :ai, "0.3.4", "79bbe04e3ed26d287e88f30ff048aeec2d7dd1942abc66d2fabfe17e3bdef25d", [:mix], [{:openai, "~> 0.5.2", [hex: :openai, repo: "hexpm", optional: false]}], "hexpm", "d4a65c781c5de605c6f9121063b6bcbe54ab0aab81e14a3cc677255d7731a3fa"}, "aws_signature": {:hex, :aws_signature, "0.3.1", "67f369094cbd55ffa2bbd8cc713ede14b195fcfb45c86665cd7c5ad010276148", [:rebar3], [], "hexpm", "50fc4dc1d1f7c2d0a8c63f455b3c66ecd74c1cf4c915c768a636f9227704a674"}, - "bandit": {:hex, :bandit, "1.0.0", "2bd87bbf713d0eed0090f2fa162cd1676198122e6c2b68a201c706e354a6d5e5", [:mix], [{:hpax, "~> 0.1.1", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "32acf6ac030fee1f99fd9c3fcf81671911ae8637e0a61c98111861b466efafdb"}, + "axon": {:hex, :axon, "0.6.0", "fd7560079581e4cedebaf0cd5f741d6ac3516d06f204ebaf1283b1093bf66ff6", [:mix], [{:kino, "~> 0.7", [hex: :kino, repo: "hexpm", optional: true]}, {:kino_vega_lite, "~> 0.1.7", [hex: :kino_vega_lite, repo: "hexpm", optional: true]}, {:nx, "~> 0.6.0", [hex: :nx, repo: "hexpm", optional: false]}, {:polaris, "~> 0.1", [hex: :polaris, repo: "hexpm", optional: false]}, {:table_rex, "~> 3.1.1", [hex: :table_rex, repo: "hexpm", optional: true]}], "hexpm", "204e7aeb50d231a30b25456adf17bfbaae33fe7c085e03793357ac3bf62fd853"}, + "bandit": {:hex, :bandit, "1.1.0", "1414e65916229d4ee0914f6d4e7f8ec16c6f2d90e01ad5174d89e90baa577625", [:mix], [{:hpax, "~> 0.1.1", [hex: :hpax, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:thousand_island, "~> 1.0", [hex: :thousand_island, repo: "hexpm", optional: false]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "4891fb2f48a83445da70a4e949f649a9b4032310f1f640f4a8a372bc91cece18"}, + "bumblebee": {:git, "https://github.com/elixir-nx/bumblebee", "edb61e30e5c1145d69ff521eca9d873a1b9d5cbb", [branch: "jk-deepseek"]}, "bypass": {:hex, :bypass, "2.1.0", "909782781bf8e20ee86a9cabde36b259d44af8b9f38756173e8f5e2e1fabb9b1", [:mix], [{:plug, "~> 1.7", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.0", [hex: :plug_cowboy, repo: "hexpm", optional: false]}, {:ranch, "~> 1.3", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "d9b5df8fa5b7a6efa08384e9bbecfe4ce61c77d28a4282f79e02f1ef78d96b80"}, + "candlex": {:hex, :candlex, "0.1.4", "4400bea0d2e63bf6b0234f1f4f39022a8b729523f7d85075bb56dc93eb7f1ec3", [:mix], [{:nx, "~> 0.6", [hex: :nx, repo: "hexpm", optional: false]}, {:rustler, "~> 0.29", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.7.0", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}], "hexpm", "88585c727881b3c5b588a770202e20835aa24a85eea60ea7c32c0e51c7e22d44"}, "castore": {:hex, :castore, "1.0.4", "ff4d0fb2e6411c0479b1d965a814ea6d00e51eb2f58697446e9c41a97d940b28", [:mix], [], "hexpm", "9418c1b8144e11656f0be99943db4caf04612e3eaecefb5dae9a2a87565584f8"}, + "certifi": {:hex, :certifi, "2.12.0", "2d1cca2ec95f59643862af91f001478c9863c2ac9cb6e2f89780bfd8de987329", [:rebar3], [], "hexpm", "ee68d85df22e554040cdb4be100f33873ac6051387baf6a8f6ce82272340ff1c"}, + "complex": {:hex, :complex, "0.5.0", "af2d2331ff6170b61bb738695e481b27a66780e18763e066ee2cd863d0b1dd92", [:mix], [], "hexpm", "2683bd3c184466cfb94fad74cbfddfaa94b860e27ad4ca1bffe3bff169d91ef1"}, "cowboy": {:hex, :cowboy, "2.10.0", "ff9ffeff91dae4ae270dd975642997afe2a1179d94b1887863e43f681a203e26", [:make, :rebar3], [{:cowlib, "2.12.1", [hex: :cowlib, repo: "hexpm", optional: false]}, {:ranch, "1.8.0", [hex: :ranch, repo: "hexpm", optional: false]}], "hexpm", "3afdccb7183cc6f143cb14d3cf51fa00e53db9ec80cdcd525482f5e99bc41d6b"}, "cowboy_telemetry": {:hex, :cowboy_telemetry, "0.4.0", "f239f68b588efa7707abce16a84d0d2acf3a0f50571f8bb7f56a15865aae820c", [:rebar3], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7d98bac1ee4565d31b62d59f8823dfd8356a169e7fcbb83831b8a5397404c9de"}, "cowlib": {:hex, :cowlib, "2.12.1", "a9fa9a625f1d2025fe6b462cb865881329b5caff8f1854d1cbc9f9533f00e1e1", [:make, :rebar3], [], "hexpm", "163b73f6367a7341b33c794c4e88e7dbfe6498ac42dcd69ef44c5bc5507c8db0"}, @@ -10,40 +16,65 @@ "dns_cluster": {:hex, :dns_cluster, "0.1.1", "73b4b2c3ec692f8a64276c43f8c929733a9ab9ac48c34e4c0b3d9d1b5cd69155", [:mix], [], "hexpm", "03a3f6ff16dcbb53e219b99c7af6aab29eb6b88acf80164b4bd76ac18dc890b3"}, "earmark_parser": {:hex, :earmark_parser, "1.4.37", "2ad73550e27c8946648b06905a57e4d454e4d7229c2dafa72a0348c99d8be5f7", [:mix], [], "hexpm", "6b19783f2802f039806f375610faa22da130b8edc21209d0bff47918bb48360e"}, "ecto": {:hex, :ecto, "3.10.3", "eb2ae2eecd210b4eb8bece1217b297ad4ff824b4384c0e3fdd28aaf96edd6135", [:mix], [{:decimal, "~> 1.6 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "44bec74e2364d491d70f7e42cd0d690922659d329f6465e89feb8a34e8cd3433"}, + "elixir_make": {:hex, :elixir_make, "0.7.7", "7128c60c2476019ed978210c245badf08b03dbec4f24d05790ef791da11aa17c", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}], "hexpm", "5bc19fff950fad52bbe5f211b12db9ec82c6b34a9647da0c2224b8b8464c7e6c"}, "ex_doc": {:hex, :ex_doc, "0.30.9", "d691453495c47434c0f2052b08dd91cc32bc4e1a218f86884563448ee2502dd2", [:mix], [{:earmark_parser, "~> 1.4.31", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "d7aaaf21e95dc5cddabf89063327e96867d00013963eadf2c6ad135506a8bc10"}, + "exla": {:hex, :exla, "0.6.4", "24a46884696c4904d7c8f87a41461a7460f5f118ca171062044d187b32fae279", [:make, :mix], [{:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}, {:nx, "~> 0.6.4", [hex: :nx, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:xla, "~> 0.5.0", [hex: :xla, repo: "hexpm", optional: false]}], "hexpm", "09b3608b55941736f222388da7611f33fe4b0bb308119cdf2f32f50b924d0ad6"}, "file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"}, "finch": {:hex, :finch, "0.16.0", "40733f02c89f94a112518071c0a91fe86069560f5dbdb39f9150042f44dcfb1a", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.3", [hex: :mint, repo: "hexpm", optional: false]}, {:nimble_options, "~> 0.4 or ~> 1.0", [hex: :nimble_options, repo: "hexpm", optional: false]}, {:nimble_pool, "~> 0.2.6 or ~> 1.0", [hex: :nimble_pool, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "f660174c4d519e5fec629016054d60edd822cdfe2b7270836739ac2f97735ec5"}, - "floki": {:hex, :floki, "0.34.3", "5e2dcaec5d7c228ce5b1d3501502e308b2d79eb655e4191751a1fe491c37feac", [:mix], [], "hexpm", "9577440eea5b97924b4bf3c7ea55f7b8b6dce589f9b28b096cc294a8dc342341"}, + "floki": {:hex, :floki, "0.35.2", "87f8c75ed8654b9635b311774308b2760b47e9a579dabf2e4d5f1e1d42c39e0b", [:mix], [], "hexpm", "6b05289a8e9eac475f644f09c2e4ba7e19201fd002b89c28c1293e7bd16773d9"}, + "hackney": {:hex, :hackney, "1.20.1", "8d97aec62ddddd757d128bfd1df6c5861093419f8f7a4223823537bad5d064e2", [:rebar3], [{:certifi, "~> 2.12.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~> 6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~> 1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~> 1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.4.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~> 1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "fe9094e5f1a2a2c0a7d10918fee36bfec0ec2a979994cff8cfe8058cd9af38e3"}, "hpax": {:hex, :hpax, "0.1.2", "09a75600d9d8bbd064cdd741f21fc06fc1f4cf3d0fcc335e5aa19be1a7235c84", [:mix], [], "hexpm", "2c87843d5a23f5f16748ebe77969880e29809580efdaccd615cd3bed628a8c13"}, + "httpoison": {:hex, :httpoison, "2.2.0", "839298929243b872b3f53c3693fa369ac3dbe03102cefd0a126194738bf4bb0e", [:mix], [{:hackney, "~> 1.17", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "a49a9337c2b671464948a00cff6a882d271c1c8e3d25a6ca14d0532cbd23f65a"}, + "idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, "jose": {:hex, :jose, "1.11.6", "613fda82552128aa6fb804682e3a616f4bc15565a048dabd05b1ebd5827ed965", [:mix, :rebar3], [], "hexpm", "6275cb75504f9c1e60eeacb771adfeee4905a9e182103aa59b53fed651ff9738"}, - "makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"}, + "makeup": {:hex, :makeup, "1.1.1", "fa0bc768698053b2b3869fa8a62616501ff9d11a562f3ce39580d60860c3a55e", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "5dc62fbdd0de44de194898b6710692490be74baa02d9d108bc29f007783b0b48"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.1", "cc9e3ca312f1cfeccc572b37a09980287e243648108384b97ff2b76e505c3555", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "e127a341ad1b209bd80f7bd1620a15693a9908ed780c3b763bccf7d200c767c6"}, "makeup_erlang": {:hex, :makeup_erlang, "0.1.2", "ad87296a092a46e03b7e9b0be7631ddcf64c790fa68a9ef5323b6cbb36affc72", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f3f5a1ca93ce6e092d92b6d9c049bcda58a3b617a8d888f8e7231c85630e8108"}, + "metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm", "69b09adddc4f74a40716ae54d140f93beb0fb8978d8636eaded0c31b6f099f16"}, "mime": {:hex, :mime, "2.0.5", "dc34c8efd439abe6ae0343edbb8556f4d63f178594894720607772a041b04b02", [:mix], [], "hexpm", "da0d64a365c45bc9935cc5c8a7fc5e49a0e0f9932a761c55d6c52b142780a05c"}, + "mimerl": {:hex, :mimerl, "1.2.0", "67e2d3f571088d5cfd3e550c383094b47159f3eee8ffa08e64106cdf5e981be3", [:rebar3], [], "hexpm", "f278585650aa581986264638ebf698f8bb19df297f66ad91b18910dfc6e19323"}, "mint": {:hex, :mint, "1.5.1", "8db5239e56738552d85af398798c80648db0e90f343c8469f6c6d8898944fb6f", [:mix], [{:castore, "~> 0.1.0 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:hpax, "~> 0.1.1", [hex: :hpax, repo: "hexpm", optional: false]}], "hexpm", "4a63e1e76a7c3956abd2c72f370a0d0aecddc3976dea5c27eccbecfa5e7d5b1e"}, "mint_web_socket": {:hex, :mint_web_socket, "1.0.3", "aab42fff792a74649916236d0b01f560a0b3f03ca5dea693c230d1c44736b50e", [:mix], [{:mint, ">= 1.4.1 and < 2.0.0-0", [hex: :mint, repo: "hexpm", optional: false]}], "hexpm", "ca3810ca44cc8532e3dce499cc17f958596695d226bb578b2fbb88c09b5954b0"}, + "multipart": {:hex, :multipart, "0.4.0", "634880a2148d4555d050963373d0e3bbb44a55b2badd87fa8623166172e9cda0", [:mix], [{:mime, "~> 1.2 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}], "hexpm", "3c5604bc2fb17b3137e5d2abdf5dacc2647e60c5cc6634b102cf1aef75a06f0a"}, "nimble_options": {:hex, :nimble_options, "1.0.2", "92098a74df0072ff37d0c12ace58574d26880e522c22801437151a159392270e", [:mix], [], "hexpm", "fd12a8db2021036ce12a309f26f564ec367373265b53e25403f0ee697380f1b8"}, - "nimble_parsec": {:hex, :nimble_parsec, "1.3.1", "2c54013ecf170e249e9291ed0a62e5832f70a476c61da16f6aac6dca0189f2af", [:mix], [], "hexpm", "2682e3c0b2eb58d90c6375fc0cc30bc7be06f365bf72608804fb9cffa5e1b167"}, + "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, "nimble_pool": {:hex, :nimble_pool, "1.0.0", "5eb82705d138f4dd4423f69ceb19ac667b3b492ae570c9f5c900bb3d2f50a847", [:mix], [], "hexpm", "80be3b882d2d351882256087078e1b1952a28bf98d0a287be87e4a24a710b67a"}, - "phoenix": {:hex, :phoenix, "1.7.8", "80cf70507f892843f5b265a89b74327141c71cc0071898fca0d150015d67ffd6", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.6", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:websock_adapter, "~> 0.5.3", [hex: :websock_adapter, repo: "hexpm", optional: false]}], "hexpm", "7549e3a2f121a232dfbd88ef8dcaeccd671fb09e5fd53ec241a178f248b2c629"}, - "phoenix_ecto": {:hex, :phoenix_ecto, "4.4.2", "b21bd01fdeffcfe2fab49e4942aa938b6d3e89e93a480d4aee58085560a0bc0d", [:mix], [{:ecto, "~> 3.5", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14.2 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "70242edd4601d50b69273b057ecf7b684644c19ee750989fd555625ae4ce8f5d"}, - "phoenix_html": {:hex, :phoenix_html, "3.3.2", "d6ce982c6d8247d2fc0defe625255c721fb8d5f1942c5ac051f6177bffa5973f", [:mix], [{:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "44adaf8e667c1c20fb9d284b6b0fa8dc7946ce29e81ce621860aa7e96de9a11d"}, - "phoenix_live_dashboard": {:hex, :phoenix_live_dashboard, "0.8.2", "b9e33c950d1ed98494bfbde1c34c6e51c8a4214f3bea3f07ca9a510643ee1387", [:mix], [{:ecto, "~> 3.6.2 or ~> 3.7", [hex: :ecto, repo: "hexpm", optional: true]}, {:ecto_mysql_extras, "~> 0.5", [hex: :ecto_mysql_extras, repo: "hexpm", optional: true]}, {:ecto_psql_extras, "~> 0.7", [hex: :ecto_psql_extras, repo: "hexpm", optional: true]}, {:ecto_sqlite3_extras, "~> 1.1.7 or ~> 1.2.0", [hex: :ecto_sqlite3_extras, repo: "hexpm", optional: true]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.19 or ~> 1.0", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:telemetry_metrics, "~> 0.6 or ~> 1.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "67a598441b5f583d301a77e0298719f9654887d3d8bf14e80ff0b6acf887ef90"}, + "nx": {:hex, :nx, "0.6.4", "948d9f42f81e63fc901d243ac0a985c8bb87358be62e27826cfd67f58bc640af", [:mix], [{:complex, "~> 0.5", [hex: :complex, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.0 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "bb9c2e2e3545b5eb4739d69046a988daaa212d127dba7d97801c291616aff6d6"}, + "nx_image": {:hex, :nx_image, "0.1.1", "69cf0d2fd873d12b028583aa49b5e0a25f6aca307afc337a5d871851a20fba1d", [:mix], [{:nx, "~> 0.4", [hex: :nx, repo: "hexpm", optional: false]}], "hexpm", "55c8206a822237f6027168f11214e3887263c5b8a1f8e0634eea82c96e5093e3"}, + "nx_signal": {:hex, :nx_signal, "0.2.0", "e1ca0318877b17c81ce8906329f5125f1e2361e4c4235a5baac8a95ee88ea98e", [:mix], [{:nx, "~> 0.6", [hex: :nx, repo: "hexpm", optional: false]}], "hexpm", "7247e5e18a177a59c4cb5355952900c62fdeadeb2bad02a9a34237b68744e2bb"}, + "openai": {:hex, :openai, "0.5.4", "2abc7bc6a72ad1732c16d3f0914aa54f4de14b174a4c70c1b2d7934f0fe2646f", [:mix], [{:httpoison, "~> 2.0", [hex: :httpoison, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "72add1d3dcbf3ed7d24ce3acf51e8b2f374b23305b0fc1d5f6acff35c567b267"}, + "openai_ex": {:hex, :openai_ex, "0.4.1", "4d320e65fdd375ef10b0299a74fd03248dd0065fd4dc6e9f60fe114e7a4d5a18", [:mix], [{:finch, "~> 0.16", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:multipart, "~> 0.4", [hex: :multipart, repo: "hexpm", optional: false]}], "hexpm", "783f833aa070b777d43dfa3ef70d0823a5cd5d342cc8183af68b9ff6300fa1c6"}, + "parse_trans": {:hex, :parse_trans, "3.4.1", "6e6aa8167cb44cc8f39441d05193be6e6f4e7c2946cb2759f015f8c56b76e5ff", [:rebar3], [], "hexpm", "620a406ce75dada827b82e453c19cf06776be266f5a67cff34e1ef2cbb60e49a"}, + "phoenix": {:hex, :phoenix, "1.7.10", "02189140a61b2ce85bb633a9b6fd02dff705a5f1596869547aeb2b2b95edd729", [:mix], [{:castore, ">= 0.0.0", [hex: :castore, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.1", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}, {:phoenix_template, "~> 1.0", [hex: :phoenix_template, repo: "hexpm", optional: false]}, {:phoenix_view, "~> 2.0", [hex: :phoenix_view, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.6", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:plug_crypto, "~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}, {:websock_adapter, "~> 0.5.3", [hex: :websock_adapter, repo: "hexpm", optional: false]}], "hexpm", "cf784932e010fd736d656d7fead6a584a4498efefe5b8227e9f383bf15bb79d0"}, + "phoenix_ecto": {:hex, :phoenix_ecto, "4.4.3", "86e9878f833829c3f66da03d75254c155d91d72a201eb56ae83482328dc7ca93", [:mix], [{:ecto, "~> 3.5", [hex: :ecto, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.14.2 or ~> 3.0 or ~> 4.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:plug, "~> 1.9", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "d36c401206f3011fefd63d04e8ef626ec8791975d9d107f9a0817d426f61ac07"}, + "phoenix_html": {:hex, :phoenix_html, "3.3.3", "380b8fb45912b5638d2f1d925a3771b4516b9a78587249cabe394e0a5d579dc9", [:mix], [{:plug, "~> 1.5", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "923ebe6fec6e2e3b3e569dfbdc6560de932cd54b000ada0208b5f45024bdd76c"}, + "phoenix_live_dashboard": {:hex, :phoenix_live_dashboard, "0.8.3", "7ff51c9b6609470f681fbea20578dede0e548302b0c8bdf338b5a753a4f045bf", [:mix], [{:ecto, "~> 3.6.2 or ~> 3.7", [hex: :ecto, repo: "hexpm", optional: true]}, {:ecto_mysql_extras, "~> 0.5", [hex: :ecto_mysql_extras, repo: "hexpm", optional: true]}, {:ecto_psql_extras, "~> 0.7", [hex: :ecto_psql_extras, repo: "hexpm", optional: true]}, {:ecto_sqlite3_extras, "~> 1.1.7 or ~> 1.2.0", [hex: :ecto_sqlite3_extras, repo: "hexpm", optional: true]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:phoenix_live_view, "~> 0.19 or ~> 1.0", [hex: :phoenix_live_view, repo: "hexpm", optional: false]}, {:telemetry_metrics, "~> 0.6 or ~> 1.0", [hex: :telemetry_metrics, repo: "hexpm", optional: false]}], "hexpm", "f9470a0a8bae4f56430a23d42f977b5a6205fdba6559d76f932b876bfaec652d"}, "phoenix_live_reload": {:hex, :phoenix_live_reload, "1.4.1", "2aff698f5e47369decde4357ba91fc9c37c6487a512b41732818f2204a8ef1d3", [:mix], [{:file_system, "~> 0.2.1 or ~> 0.3", [hex: :file_system, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.4", [hex: :phoenix, repo: "hexpm", optional: false]}], "hexpm", "9bffb834e7ddf08467fe54ae58b5785507aaba6255568ae22b4d46e2bb3615ab"}, - "phoenix_live_view": {:git, "https://github.com/phoenixframework/phoenix_live_view.git", "ce7c2f09501b136e7e2b7b47384fef1f76fa28b0", []}, + "phoenix_live_view": {:git, "https://github.com/phoenixframework/phoenix_live_view.git", "6750ef3e33937390d5168555590f997c2caa6b84", []}, "phoenix_pubsub": {:hex, :phoenix_pubsub, "2.1.3", "3168d78ba41835aecad272d5e8cd51aa87a7ac9eb836eabc42f6e57538e3731d", [:mix], [], "hexpm", "bba06bc1dcfd8cb086759f0edc94a8ba2bc8896d5331a1e2c2902bf8e36ee502"}, - "phoenix_template": {:hex, :phoenix_template, "1.0.1", "85f79e3ad1b0180abb43f9725973e3b8c2c3354a87245f91431eec60553ed3ef", [:mix], [{:phoenix_html, "~> 2.14.2 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}], "hexpm", "157dc078f6226334c91cb32c1865bf3911686f8bcd6bcff86736f6253e6993ee"}, + "phoenix_template": {:hex, :phoenix_template, "1.0.3", "32de561eefcefa951aead30a1f94f1b5f0379bc9e340bb5c667f65f1edfa4326", [:mix], [{:phoenix_html, "~> 2.14.2 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}], "hexpm", "16f4b6588a4152f3cc057b9d0c0ba7e82ee23afa65543da535313ad8d25d8e2c"}, "plug": {:hex, :plug, "1.15.1", "b7efd81c1a1286f13efb3f769de343236bd8b7d23b4a9f40d3002fc39ad8f74c", [:mix], [{:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:plug_crypto, "~> 1.1.1 or ~> 1.2 or ~> 2.0", [hex: :plug_crypto, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4.3 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "459497bd94d041d98d948054ec6c0b76feacd28eec38b219ca04c0de13c79d30"}, "plug_cowboy": {:hex, :plug_cowboy, "2.6.1", "9a3bbfceeb65eff5f39dab529e5cd79137ac36e913c02067dba3963a26efe9b2", [:mix], [{:cowboy, "~> 2.7", [hex: :cowboy, repo: "hexpm", optional: false]}, {:cowboy_telemetry, "~> 0.3", [hex: :cowboy_telemetry, repo: "hexpm", optional: false]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "de36e1a21f451a18b790f37765db198075c25875c64834bcc82d90b309eb6613"}, "plug_crypto": {:hex, :plug_crypto, "2.0.0", "77515cc10af06645abbfb5e6ad7a3e9714f805ae118fa1a70205f80d2d70fe73", [:mix], [], "hexpm", "53695bae57cc4e54566d993eb01074e4d894b65a3766f1c43e2c61a1b0f45ea9"}, + "polaris": {:hex, :polaris, "0.1.0", "dca61b18e3e801ecdae6ac9f0eca5f19792b44a5cb4b8d63db50fc40fc038d22", [:mix], [{:nx, "~> 0.5", [hex: :nx, repo: "hexpm", optional: false]}], "hexpm", "13ef2b166650e533cb24b10e2f3b8ab4f2f449ba4d63156e8c569527f206e2c2"}, + "progress_bar": {:hex, :progress_bar, "3.0.0", "f54ff038c2ac540cfbb4c2bfe97c75e7116ead044f3c2b10c9f212452194b5cd", [:mix], [{:decimal, "~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}], "hexpm", "6981c2b25ab24aecc91a2dc46623658e1399c21a2ae24db986b90d678530f2b7"}, "protobuf": {:hex, :protobuf, "0.8.0", "61b27d6fd50e7b1b2eb0ee17c1f639906121f4ef965ae0994644eb4c68d4647d", [:mix], [{:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: true]}], "hexpm", "3644ed846fd6f5e3b5c2cd617aa8344641e230edf812a45365fee7622bccd25a"}, "ranch": {:hex, :ranch, "1.8.0", "8c7a100a139fd57f17327b6413e4167ac559fbc04ca7448e9be9057311597a1d", [:make, :rebar3], [], "hexpm", "49fbcfd3682fab1f5d109351b61257676da1a2fdbe295904176d5e521a2ddfe5"}, - "req": {:hex, :req, "0.4.4", "a17b6bec956c9af4f08b5d8e8a6fc6e4edf24ccc0ac7bf363a90bba7a0f0138c", [:mix], [{:brotli, "~> 0.3.1", [hex: :brotli, repo: "hexpm", optional: true]}, {:ezstd, "~> 1.0", [hex: :ezstd, repo: "hexpm", optional: true]}, {:finch, "~> 0.9", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:nimble_csv, "~> 1.0", [hex: :nimble_csv, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "2618c0493444fee927d12073afb42e9154e766b3f4448e1011f0d3d551d1a011"}, + "replicate": {:hex, :replicate, "1.1.2", "631ad6664b7e1fb1753cfc291b6ac659dc6622062bf2e532463844c5715aa3b6", [:mix], [{:httpoison, "~> 2.0", [hex: :httpoison, repo: "hexpm", optional: false]}, {:jason, "~> 1.2", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm", "4aa01b870f8db6381ab9ec9bfc12cbc22dab43ccb72386d309b811ae0083b97f"}, + "req": {:hex, :req, "0.4.5", "2071bbedd280f107b9e33e1ddff2beb3991ec1ae06caa2cca2ab756393d8aca5", [:mix], [{:brotli, "~> 0.3.1", [hex: :brotli, repo: "hexpm", optional: true]}, {:ezstd, "~> 1.0", [hex: :ezstd, repo: "hexpm", optional: true]}, {:finch, "~> 0.9", [hex: :finch, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}, {:mime, "~> 1.6 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:nimble_csv, "~> 1.0", [hex: :nimble_csv, repo: "hexpm", optional: true]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: true]}], "hexpm", "dd23e9c7303ddeb2dee09ff11ad8102cca019e38394456f265fb7b9655c64dd8"}, + "rustler_precompiled": {:hex, :rustler_precompiled, "0.7.0", "5d0834fc06dbc76dd1034482f17b1797df0dba9b491cef8bb045fcaca94bcade", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:rustler, "~> 0.23", [hex: :rustler, repo: "hexpm", optional: true]}], "hexpm", "fdf43a6835f4e4de5bfbc4c019bfb8c46d124bd4635fefa3e20d9a2bbbec1512"}, + "safetensors": {:hex, :safetensors, "0.1.2", "849434fea20b2ed14b92e74205a925d86039c4ef53efe861e5c7b574c3ba8fa6", [:mix], [{:jason, "~> 1.4", [hex: :jason, repo: "hexpm", optional: false]}, {:nx, "~> 0.5", [hex: :nx, repo: "hexpm", optional: false]}], "hexpm", "298a5c82e34fc3b955464b89c080aa9a2625a47d69148d51113771e19166d4e0"}, + "ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.7", "354c321cf377240c7b8716899e182ce4890c5938111a1296add3ec74cf1715df", [:make, :mix, :rebar3], [], "hexpm", "fe4c190e8f37401d30167c8c405eda19469f34577987c76dde613e838bbc67f8"}, "telemetry": {:hex, :telemetry, "1.2.1", "68fdfe8d8f05a8428483a97d7aab2f268aaff24b49e0f599faa091f1d4e7f61c", [:rebar3], [], "hexpm", "dad9ce9d8effc621708f99eac538ef1cbe05d6a874dd741de2e689c47feafed5"}, "telemetry_metrics": {:hex, :telemetry_metrics, "0.6.1", "315d9163a1d4660aedc3fee73f33f1d355dcc76c5c3ab3d59e76e3edf80eef1f", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7be9e0871c41732c233be71e4be11b96e56177bf15dde64a8ac9ce72ac9834c6"}, "telemetry_poller": {:hex, :telemetry_poller, "1.0.0", "db91bb424e07f2bb6e73926fcafbfcbcb295f0193e0a00e825e589a0a47e8453", [:rebar3], [{:telemetry, "~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "b3a24eafd66c3f42da30fc3ca7dda1e9d546c12250a2d60d7b81d264fbec4f6e"}, "thousand_island": {:hex, :thousand_island, "1.1.0", "dcc115650adc61c5e7de12619f0cb94b2b8f050326e7f21ffbf6fdeb3d291e4c", [:mix], [{:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "7745cf71520d74e119827ff32c2da6307e822cf835bebed3b2c459cc57f32d21"}, - "websock": {:hex, :websock, "0.5.1", "c496036ce95bc26d08ba086b2a827b212c67e7cabaa1c06473cd26b40ed8cf10", [:mix], [], "hexpm", "b9f785108b81cd457b06e5f5dabe5f65453d86a99118b2c0a515e1e296dc2d2c"}, - "websock_adapter": {:hex, :websock_adapter, "0.5.4", "7af8408e7ed9d56578539594d1ee7d8461e2dd5c3f57b0f2a5352d610ddde757", [:mix], [{:bandit, ">= 0.6.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.6", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "d2c238c79c52cbe223fcdae22ca0bb5007a735b9e933870e241fce66afb4f4ab"}, + "tokenizers": {:hex, :tokenizers, "0.4.0", "140283ca74a971391ddbd83cd8cbdb9bd03736f37a1b6989b82d245a95e1eb97", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: false]}, {:rustler, ">= 0.0.0", [hex: :rustler, repo: "hexpm", optional: true]}, {:rustler_precompiled, "~> 0.6", [hex: :rustler_precompiled, repo: "hexpm", optional: false]}], "hexpm", "ef1a9824f5a893cd3b831c0e5b3d72caa250d2ec462035cc6afef6933b13a82e"}, + "unicode_util_compat": {:hex, :unicode_util_compat, "0.7.0", "bc84380c9ab48177092f43ac89e4dfa2c6d62b40b8bd132b1059ecc7232f9a78", [:rebar3], [], "hexpm", "25eee6d67df61960cf6a794239566599b09e17e668d3700247bc498638152521"}, + "unpickler": {:hex, :unpickler, "0.1.0", "c2262c0819e6985b761e7107546cef96a485f401816be5304a65fdd200d5bd6a", [:mix], [], "hexpm", "e2b3f61e62406187ac52afead8a63bfb4e49394028993f3c4c42712743cab79e"}, + "unzip": {:hex, :unzip, "0.8.0", "ee21d87c21b01567317387dab4228ac570ca15b41cfc221a067354cbf8e68c4d", [:mix], [], "hexpm", "ffa67a483efcedcb5876971a50947222e104d5f8fea2c4a0441e6f7967854827"}, + "websock": {:hex, :websock, "0.5.3", "2f69a6ebe810328555b6fe5c831a851f485e303a7c8ce6c5f675abeb20ebdadc", [:mix], [], "hexpm", "6105453d7fac22c712ad66fab1d45abdf049868f253cf719b625151460b8b453"}, + "websock_adapter": {:hex, :websock_adapter, "0.5.5", "9dfeee8269b27e958a65b3e235b7e447769f66b5b5925385f5a569269164a210", [:mix], [{:bandit, ">= 0.6.0", [hex: :bandit, repo: "hexpm", optional: true]}, {:plug, "~> 1.14", [hex: :plug, repo: "hexpm", optional: false]}, {:plug_cowboy, "~> 2.6", [hex: :plug_cowboy, repo: "hexpm", optional: true]}, {:websock, "~> 0.5", [hex: :websock, repo: "hexpm", optional: false]}], "hexpm", "4b977ba4a01918acbf77045ff88de7f6972c2a009213c515a445c48f224ffce9"}, + "xla": {:hex, :xla, "0.5.1", "8ba4c2c51c1a708ff54e9d4f88158c1a75b7f2cb3e5db02bf222b5b3852afffd", [:make, :mix], [{:elixir_make, "~> 0.4", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "82a2490f6e9a76c8a29d1aedb47f07c59e3d5081095eac5a74db34d46c8212bc"}, } diff --git a/static/assets/abap-VYBXOYTR.js b/static/assets/abap-VYBXOYTR.js new file mode 100644 index 00000000000..813ce7196e1 --- /dev/null +++ b/static/assets/abap-VYBXOYTR.js @@ -0,0 +1,11 @@ +import{e}from"./chunk-3X664NSF.js";var n,i,t=e(()=>{n={comments:{lineComment:"*"},brackets:[["[","]"],["(",")"]]},i={defaultToken:"invalid",ignoreCase:!0,tokenPostfix:".abap",keywords:["abap-source","abbreviated","abstract","accept","accepting","according","activation","actual","add","add-corresponding","adjacent","after","alias","aliases","align","all","allocate","alpha","analysis","analyzer","and","append","appendage","appending","application","archive","area","arithmetic","as","ascending","aspect","assert","assign","assigned","assigning","association","asynchronous","at","attributes","authority","authority-check","avg","back","background","backup","backward","badi","base","before","begin","between","big","binary","bintohex","bit","black","blank","blanks","blob","block","blocks","blue","bound","boundaries","bounds","boxed","break-point","buffer","by","bypassing","byte","byte-order","call","calling","case","cast","casting","catch","center","centered","chain","chain-input","chain-request","change","changing","channels","character","char-to-hex","check","checkbox","ci_","circular","class","class-coding","class-data","class-events","class-methods","class-pool","cleanup","clear","client","clob","clock","close","coalesce","code","coding","col_background","col_group","col_heading","col_key","col_negative","col_normal","col_positive","col_total","collect","color","column","columns","comment","comments","commit","common","communication","comparing","component","components","compression","compute","concat","concat_with_space","concatenate","cond","condense","condition","connect","connection","constants","context","contexts","continue","control","controls","conv","conversion","convert","copies","copy","corresponding","country","cover","cpi","create","creating","critical","currency","currency_conversion","current","cursor","cursor-selection","customer","customer-function","dangerous","data","database","datainfo","dataset","date","dats_add_days","dats_add_months","dats_days_between","dats_is_valid","daylight","dd/mm/yy","dd/mm/yyyy","ddmmyy","deallocate","decimal_shift","decimals","declarations","deep","default","deferred","define","defining","definition","delete","deleting","demand","department","descending","describe","destination","detail","dialog","directory","disconnect","display","display-mode","distinct","divide","divide-corresponding","division","do","dummy","duplicate","duplicates","duration","during","dynamic","dynpro","edit","editor-call","else","elseif","empty","enabled","enabling","encoding","end","endat","endcase","endcatch","endchain","endclass","enddo","endenhancement","end-enhancement-section","endexec","endform","endfunction","endian","endif","ending","endinterface","end-lines","endloop","endmethod","endmodule","end-of-definition","end-of-editing","end-of-file","end-of-page","end-of-selection","endon","endprovide","endselect","end-test-injection","end-test-seam","endtry","endwhile","endwith","engineering","enhancement","enhancement-point","enhancements","enhancement-section","entries","entry","enum","environment","equiv","errormessage","errors","escaping","event","events","exact","except","exception","exceptions","exception-table","exclude","excluding","exec","execute","exists","exit","exit-command","expand","expanding","expiration","explicit","exponent","export","exporting","extend","extended","extension","extract","fail","fetch","field","field-groups","fields","field-symbol","field-symbols","file","filter","filters","filter-table","final","find","first","first-line","fixed-point","fkeq","fkge","flush","font","for","form","format","forward","found","frame","frames","free","friends","from","function","functionality","function-pool","further","gaps","generate","get","giving","gkeq","gkge","global","grant","green","group","groups","handle","handler","harmless","hashed","having","hdb","header","headers","heading","head-lines","help-id","help-request","hextobin","hide","high","hint","hold","hotspot","icon","id","identification","identifier","ids","if","ignore","ignoring","immediately","implementation","implementations","implemented","implicit","import","importing","in","inactive","incl","include","includes","including","increment","index","index-line","infotypes","inheriting","init","initial","initialization","inner","inout","input","insert","instance","instances","instr","intensified","interface","interface-pool","interfaces","internal","intervals","into","inverse","inverted-date","is","iso","job","join","keep","keeping","kernel","key","keys","keywords","kind","language","last","late","layout","leading","leave","left","left-justified","leftplus","leftspace","legacy","length","let","level","levels","like","line","lines","line-count","linefeed","line-selection","line-size","list","listbox","list-processing","little","llang","load","load-of-program","lob","local","locale","locator","logfile","logical","log-point","long","loop","low","lower","lpad","lpi","ltrim","mail","main","major-id","mapping","margin","mark","mask","match","matchcode","max","maximum","medium","members","memory","mesh","message","message-id","messages","messaging","method","methods","min","minimum","minor-id","mm/dd/yy","mm/dd/yyyy","mmddyy","mode","modif","modifier","modify","module","move","move-corresponding","multiply","multiply-corresponding","name","nametab","native","nested","nesting","new","new-line","new-page","new-section","next","no","no-display","no-extension","no-gap","no-gaps","no-grouping","no-heading","no-scrolling","no-sign","no-title","no-topofpage","no-zero","node","nodes","non-unicode","non-unique","not","null","number","object","objects","obligatory","occurrence","occurrences","occurs","of","off","offset","ole","on","only","open","option","optional","options","or","order","other","others","out","outer","output","output-length","overflow","overlay","pack","package","pad","padding","page","pages","parameter","parameters","parameter-table","part","partially","pattern","percentage","perform","performing","person","pf1","pf10","pf11","pf12","pf13","pf14","pf15","pf2","pf3","pf4","pf5","pf6","pf7","pf8","pf9","pf-status","pink","places","pool","pos_high","pos_low","position","pragmas","precompiled","preferred","preserving","primary","print","print-control","priority","private","procedure","process","program","property","protected","provide","public","push","pushbutton","put","queue-only","quickinfo","radiobutton","raise","raising","range","ranges","read","reader","read-only","receive","received","receiver","receiving","red","redefinition","reduce","reduced","ref","reference","refresh","regex","reject","remote","renaming","replace","replacement","replacing","report","request","requested","reserve","reset","resolution","respecting","responsible","result","results","resumable","resume","retry","return","returncode","returning","returns","right","right-justified","rightplus","rightspace","risk","rmc_communication_failure","rmc_invalid_status","rmc_system_failure","role","rollback","rows","rpad","rtrim","run","sap","sap-spool","saving","scale_preserving","scale_preserving_scientific","scan","scientific","scientific_with_leading_zero","scroll","scroll-boundary","scrolling","search","secondary","seconds","section","select","selection","selections","selection-screen","selection-set","selection-sets","selection-table","select-options","send","separate","separated","set","shared","shift","short","shortdump-id","sign_as_postfix","single","size","skip","skipping","smart","some","sort","sortable","sorted","source","specified","split","spool","spots","sql","sqlscript","stable","stamp","standard","starting","start-of-editing","start-of-selection","state","statement","statements","static","statics","statusinfo","step-loop","stop","structure","structures","style","subkey","submatches","submit","subroutine","subscreen","subtract","subtract-corresponding","suffix","sum","summary","summing","supplied","supply","suppress","switch","switchstates","symbol","syncpoints","syntax","syntax-check","syntax-trace","system-call","system-exceptions","system-exit","tab","tabbed","table","tables","tableview","tabstrip","target","task","tasks","test","testing","test-injection","test-seam","text","textpool","then","throw","time","times","timestamp","timezone","tims_is_valid","title","titlebar","title-lines","to","tokenization","tokens","top-lines","top-of-page","trace-file","trace-table","trailing","transaction","transfer","transformation","translate","transporting","trmac","truncate","truncation","try","tstmp_add_seconds","tstmp_current_utctimestamp","tstmp_is_valid","tstmp_seconds_between","type","type-pool","type-pools","types","uline","unassign","under","unicode","union","unique","unit_conversion","unix","unpack","until","unwind","up","update","upper","user","user-command","using","utf-8","valid","value","value-request","values","vary","varying","verification-message","version","via","view","visible","wait","warning","when","whenever","where","while","width","window","windows","with","with-heading","without","with-title","word","work","write","writer","xml","xsd","yellow","yes","yymmdd","zero","zone","abap_system_timezone","abap_user_timezone","access","action","adabas","adjust_numbers","allow_precision_loss","allowed","amdp","applicationuser","as_geo_json","as400","associations","balance","behavior","breakup","bulk","cds","cds_client","check_before_save","child","clients","corr","corr_spearman","cross","cycles","datn_add_days","datn_add_months","datn_days_between","dats_from_datn","dats_tims_to_tstmp","dats_to_datn","db2","db6","ddl","dense_rank","depth","deterministic","discarding","entities","entity","error","failed","finalize","first_value","fltp_to_dec","following","fractional","full","graph","grouping","hierarchy","hierarchy_ancestors","hierarchy_ancestors_aggregate","hierarchy_descendants","hierarchy_descendants_aggregate","hierarchy_siblings","incremental","indicators","lag","last_value","lead","leaves","like_regexpr","link","locale_sap","lock","locks","many","mapped","matched","measures","median","mssqlnt","multiple","nodetype","ntile","nulls","occurrences_regexpr","one","operations","oracle","orphans","over","parent","parents","partition","pcre","period","pfcg_mapping","preceding","privileged","product","projection","rank","redirected","replace_regexpr","reported","response","responses","root","row","row_number","sap_system_date","save","schema","session","sets","shortdump","siblings","spantree","start","stddev","string_agg","subtotal","sybase","tims_from_timn","tims_to_timn","to_blob","to_clob","total","trace-entry","tstmp_to_dats","tstmp_to_dst","tstmp_to_tims","tstmpl_from_utcl","tstmpl_to_utcl","unbounded","utcl_add_seconds","utcl_current","utcl_seconds_between","uuid","var","verbatim"],builtinFunctions:["abs","acos","asin","atan","bit-set","boolc","boolx","ceil","char_off","charlen","cmax","cmin","concat_lines_of","contains","contains_any_not_of","contains_any_of","cos","cosh","count","count_any_not_of","count_any_of","dbmaxlen","distance","escape","exp","find_any_not_of","find_any_of","find_end","floor","frac","from_mixed","ipow","line_exists","line_index","log","log10","matches","nmax","nmin","numofchar","repeat","rescale","reverse","round","segment","shift_left","shift_right","sign","sin","sinh","sqrt","strlen","substring","substring_after","substring_before","substring_from","substring_to","tan","tanh","to_lower","to_mixed","to_upper","trunc","utclong_add","utclong_current","utclong_diff","xsdbool","xstrlen"],typeKeywords:["b","c","d","decfloat16","decfloat34","f","i","int8","n","p","s","string","t","utclong","x","xstring","any","clike","csequence","decfloat","numeric","simple","xsequence","accp","char","clnt","cuky","curr","datn","dats","d16d","d16n","d16r","d34d","d34n","d34r","dec","df16_dec","df16_raw","df34_dec","df34_raw","fltp","geom_ewkb","int1","int2","int4","lang","lchr","lraw","numc","quan","raw","rawstring","sstring","timn","tims","unit","utcl","df16_scl","df34_scl","prec","varc","abap_bool","abap_false","abap_true","abap_undefined","me","screen","space","super","sy","syst","table_line","*sys*"],builtinMethods:["class_constructor","constructor"],derivedTypes:["%CID","%CID_REF","%CONTROL","%DATA","%ELEMENT","%FAIL","%KEY","%MSG","%PARAM","%PID","%PID_ASSOC","%PID_PARENT","%_HINTS"],cdsLanguage:["@AbapAnnotation","@AbapCatalog","@AccessControl","@API","@ClientDependent","@ClientHandling","@CompatibilityContract","@DataAging","@EndUserText","@Environment","@LanguageDependency","@MappingRole","@Metadata","@MetadataExtension","@ObjectModel","@Scope","@Semantics","$EXTENSION","$SELF"],selectors:["->","->*","=>","~","~*"],operators:[" +"," -","/","*","**","div","mod","=","#","@","+=","-=","*=","/=","**=","&&=","?=","&","&&","bit-and","bit-not","bit-or","bit-xor","m","o","z","<"," >","<=",">=","<>","><","=<","=>","bt","byte-ca","byte-cn","byte-co","byte-cs","byte-na","byte-ns","ca","cn","co","cp","cs","eq","ge","gt","le","lt","na","nb","ne","np","ns","*/","*:","--","/*","//"],symbols:/[=>))*/,{cases:{"@typeKeywords":"type","@keywords":"keyword","@cdsLanguage":"annotation","@derivedTypes":"type","@builtinFunctions":"type","@builtinMethods":"type","@operators":"key","@default":"identifier"}}],[/<[\w]+>/,"identifier"],[/##[\w|_]+/,"comment"],{include:"@whitespace"},[/[:,.]/,"delimiter"],[/[{}()\[\]]/,"@brackets"],[/@symbols/,{cases:{"@selectors":"tag","@operators":"key","@default":""}}],[/'/,{token:"string",bracket:"@open",next:"@stringquote"}],[/`/,{token:"string",bracket:"@open",next:"@stringping"}],[/\|/,{token:"string",bracket:"@open",next:"@stringtemplate"}],[/\d+/,"number"]],stringtemplate:[[/[^\\\|]+/,"string"],[/\\\|/,"string"],[/\|/,{token:"string",bracket:"@close",next:"@pop"}]],stringping:[[/[^\\`]+/,"string"],[/`/,{token:"string",bracket:"@close",next:"@pop"}]],stringquote:[[/[^\\']+/,"string"],[/'/,{token:"string",bracket:"@close",next:"@pop"}]],whitespace:[[/[ \t\r\n]+/,""],[/^\*.*$/,"comment"],[/\".*$/,"comment"]]}}});t();export{n as conf,i as language}; +/*! Bundled license information: + +monaco-editor/esm/vs/basic-languages/abap/abap.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) +*/ diff --git a/static/assets/apex-TX7MH4KD.js b/static/assets/apex-TX7MH4KD.js new file mode 100644 index 00000000000..a8c31d20494 --- /dev/null +++ b/static/assets/apex-TX7MH4KD.js @@ -0,0 +1,11 @@ +import{e as s}from"./chunk-3X664NSF.js";var r,o,n,t,a,i=s(()=>{r={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"}],surroundingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},{open:'"',close:'"'},{open:"'",close:"'"},{open:"<",close:">"}],folding:{markers:{start:new RegExp("^\\s*//\\s*(?:(?:#?region\\b)|(?:))")}}},o=["abstract","activate","and","any","array","as","asc","assert","autonomous","begin","bigdecimal","blob","boolean","break","bulk","by","case","cast","catch","char","class","collect","commit","const","continue","convertcurrency","decimal","default","delete","desc","do","double","else","end","enum","exception","exit","export","extends","false","final","finally","float","for","from","future","get","global","goto","group","having","hint","if","implements","import","in","inner","insert","instanceof","int","interface","into","join","last_90_days","last_month","last_n_days","last_week","like","limit","list","long","loop","map","merge","native","new","next_90_days","next_month","next_n_days","next_week","not","null","nulls","number","object","of","on","or","outer","override","package","parallel","pragma","private","protected","public","retrieve","return","returning","rollback","savepoint","search","select","set","short","sort","stat","static","strictfp","super","switch","synchronized","system","testmethod","then","this","this_month","this_week","throw","throws","today","tolabel","tomorrow","transaction","transient","trigger","true","try","type","undelete","update","upsert","using","virtual","void","volatile","webservice","when","where","while","yesterday"],n=e=>e.charAt(0).toUpperCase()+e.substr(1),t=[];o.forEach(e=>{t.push(e),t.push(e.toUpperCase()),t.push(n(e))});a={defaultToken:"",tokenPostfix:".apex",keywords:t,operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],symbols:/[=>](?!@symbols)/,"@brackets"],[/@symbols/,{cases:{"@operators":"delimiter","@default":""}}],[/@\s*[a-zA-Z_\$][\w\$]*/,"annotation"],[/(@digits)[eE]([\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)\.(@digits)([eE][\-+]?(@digits))?[fFdD]?/,"number.float"],[/(@digits)[fFdD]/,"number.float"],[/(@digits)[lL]?/,"number"],[/[;,.]/,"delimiter"],[/"([^"\\]|\\.)*$/,"string.invalid"],[/'([^'\\]|\\.)*$/,"string.invalid"],[/"/,"string",'@string."'],[/'/,"string","@string.'"],[/'[^\\']'/,"string"],[/(')(@escapes)(')/,["string","string.escape","string"]],[/'/,"string.invalid"]],whitespace:[[/[ \t\r\n]+/,""],[/\/\*\*(?!\/)/,"comment.doc","@apexdoc"],[/\/\*/,"comment","@comment"],[/\/\/.*$/,"comment"]],comment:[[/[^\/*]+/,"comment"],[/\*\//,"comment","@pop"],[/[\/*]/,"comment"]],apexdoc:[[/[^\/*]+/,"comment.doc"],[/\*\//,"comment.doc","@pop"],[/[\/*]/,"comment.doc"]],string:[[/[^\\"']+/,"string"],[/@escapes/,"string.escape"],[/\\./,"string.escape.invalid"],[/["']/,{cases:{"$#==$S2":{token:"string",next:"@pop"},"@default":"string"}}]]}}});i();export{r as conf,a as language}; +/*! Bundled license information: + +monaco-editor/esm/vs/basic-languages/apex/apex.js: + (*!----------------------------------------------------------------------------- + * Copyright (c) Microsoft Corporation. All rights reserved. + * Version: 0.39.0(ff3621a3fa6389873be5412d17554294ea1b0941) + * Released under the MIT license + * https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt + *-----------------------------------------------------------------------------*) +*/ diff --git a/static/assets/app.css b/static/assets/app.css index addb5654bd4..efeca742bc0 100644 --- a/static/assets/app.css +++ b/static/assets/app.css @@ -1 +1 @@ -*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e1e8f0}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#91a4b7}input::placeholder,textarea::placeholder{opacity:1;color:#91a4b7}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}:focus,button:focus{outline:none}menu{margin:0;padding:0}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(101 131 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(101 131 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.button-base{display:inline-flex;align-items:center;white-space:nowrap;border-radius:.5rem;border-width:1px;border-color:transparent;padding:.5rem 1.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500}.button-blue{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.button-blue:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.button-blue:focus{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.button-red{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(219 25 32 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.button-red:hover{--tw-bg-opacity: 1;background-color:rgb(188 18 39 / var(--tw-bg-opacity))}.button-red:focus{--tw-bg-opacity: 1;background-color:rgb(188 18 39 / var(--tw-bg-opacity))}.button-gray{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-gray:hover{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.button-gray:focus{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.button-outlined-blue{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.button-outlined-blue:hover{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.button-outlined-blue:focus{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.button-outlined-red{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.button-outlined-red:hover{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.button-outlined-red:focus{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.button-outlined-gray{--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-outlined-gray:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-outlined-gray:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-base:disabled,.button-base.disabled{pointer-events:none;cursor:default;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.button-small{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity));padding:.25rem .5rem;--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-small:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-small:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-square-icon{display:flex;align-items:center;justify-content:center;padding:.5rem}.button-square-icon i{font-size:1.25rem;line-height:1.75rem;line-height:1}.icon-button{display:flex;align-items:center;justify-content:center;border-radius:9999px;padding:.25rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.icon-button:hover{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.icon-button:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.icon-button:disabled,.icon-button.disabled{pointer-events:none;cursor:default;--tw-text-opacity: 1;color:rgb(202 213 224 / var(--tw-text-opacity))}.icon-button i{line-height:1}.icon-outlined-button{border-radius:9999px;border-width:2px}.\!link{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.\!link:hover{text-decoration-line:none}.link{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.link:hover{text-decoration-line:none}.input{width:100%;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity));padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.input::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.input::placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}:not(.phx-no-feedback).show-errors .input{--tw-border-opacity: 1;border-color:rgb(241 163 166 / var(--tw-border-opacity))}.input[type=color]{width:4rem;padding-top:0;padding-bottom:0}.input-range{height:8px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.input-range::-webkit-slider-thumb{width:20px;height:20px;cursor:pointer;-webkit-appearance:none;appearance:none;border-radius:.75rem;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.input-range::-webkit-slider-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.input-range::-moz-range-thumb{width:20px;height:20px;cursor:pointer;-moz-appearance:none;appearance:none;border-radius:.75rem;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.input-range::-moz-range-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01Ljk5OTg5IDQuOTc2NzFMMTAuMTI0OSAwLjg1MTcwOEwxMS4zMDMyIDIuMDMwMDRMNS45OTk4OSA3LjMzMzM3TDAuNjk2NTU1IDIuMDMwMDRMMS44NzQ4OSAwLjg1MTcwOEw1Ljk5OTg5IDQuOTc2NzFaIiBmaWxsPSIjNjE3NThBIi8+Cjwvc3ZnPgo=);background-repeat:no-repeat;background-position:center right 10px;background-size:10px;padding-right:28px}.radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;cursor:pointer;background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='10' cy='10' r='9.5' stroke='%23CAD5E0' fill='white' /%3e%3c/svg%3e");background-size:100% 100%;background-position:center;background-repeat:no-repeat}.radio:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='10' cy='10' r='9.5' stroke='%233E64FF' fill='white' /%3e%3ccircle cx='10' cy='10' r='6' fill='%233E64FF' /%3e%3c/svg%3e")}.checkbox{height:1.25rem;width:1.25rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.checkbox:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}.tiny-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.tiny-scrollbar::-webkit-scrollbar-thumb{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.tiny-scrollbar::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.tabs{display:flex;width:100%;overflow-x:auto}.tabs .tab{display:flex;align-items:center}.tabs .tab>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.tabs .tab{white-space:nowrap;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(240 245 249 / var(--tw-border-opacity));padding:.5rem .75rem;--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.tabs .tab.active{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.error-box{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity))}.info-box{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));padding:1rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-left-3{left:-.75rem}.-right-2{right:-.5rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-2{bottom:.5rem}.bottom-4{bottom:1rem}.bottom-\[0\.4rem\]{bottom:.4rem}.left-0{left:0}.left-\[64px\]{left:64px}.right-0{right:0}.right-1{right:.25rem}.right-1\.5{right:.375rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-6{right:1.5rem}.right-8{right:2rem}.right-\[1\.5rem\]{right:1.5rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-1\.5{top:.375rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-6{top:1.5rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-\[10000\]{z-index:10000}.z-\[1000\]{z-index:1000}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.z-\[500\]{z-index:500}.z-\[600\]{z-index:600}.z-\[90\]{z-index:90}.-m-1{margin:-.25rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-auto{margin:auto}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-2\.5{margin-left:.625rem;margin-right:.625rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mb-1{margin-bottom:-.25rem}.-mb-2{margin-bottom:-.5rem}.-ml-0{margin-left:-0px}.-ml-0\.5{margin-left:-.125rem}.-ml-1{margin-left:-.25rem}.-ml-1\.5{margin-left:-.375rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-1{margin-top:-.25rem}.-mt-2{margin-top:-.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-32{margin-bottom:8rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-\[-1px\]{margin-left:-1px}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-\[3px\]{margin-right:3px}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-0{height:0px}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-96{height:24rem}.h-\[10px\]{height:10px}.h-\[12px\]{height:12px}.h-\[150px\]{height:150px}.h-\[20rem\]{height:20rem}.h-\[30px\]{height:30px}.h-full{height:100%}.h-screen{height:100vh}.max-h-52{max-height:13rem}.max-h-80{max-height:20rem}.max-h-\[300px\]{max-height:300px}.max-h-\[500px\]{max-height:500px}.max-h-full{max-height:100%}.min-h-\[30rem\]{min-height:30rem}.min-h-\[38px\]{min-height:38px}.w-0{width:0px}.w-1{width:.25rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-\[10px\]{width:10px}.w-\[12px\]{width:12px}.w-\[17rem\]{width:17rem}.w-\[20ch\]{width:20ch}.w-\[56px\]{width:56px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[650px\]{min-width:650px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-\[400px\]{max-width:400px}.max-w-\[600px\]{max-width:600px}.max-w-\[75\%\]{max-width:75%}.max-w-full{max-width:100%}.max-w-screen-lg{max-width:1024px}.max-w-screen-md{max-width:768px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/2{flex-basis:50%}.basis-4\/5{flex-basis:80%}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.scroll-mt-\[50px\]{scroll-margin-top:50px}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.75fr\)_minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.5fr\)\]{grid-template-columns:minmax(0,.5fr) minmax(0,.75fr) minmax(0,.5fr) minmax(0,.5fr) minmax(0,.5fr)}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(3rem * var(--tw-space-x-reverse));margin-left:calc(3rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2.5rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-b-2xl{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-\[3px\]{border-width:3px}.border-\[5px\]{border-width:5px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-l-\[1px\]{border-left-width:1px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-black\/10{border-color:#0000001a}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(139 162 255 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(101 131 255 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(240 245 249 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(145 164 183 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(97 117 138 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(48 66 84 / var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(13 24 41 / var(--tw-border-opacity))}.border-green-bright-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(241 163 166 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(233 117 121 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(226 71 77 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(255 220 178 / var(--tw-border-opacity))}.border-yellow-bright-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(216 224 255 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(139 162 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(101 131 255 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.bg-gray-200\/50{background-color:#e1e8f080}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(202 213 224 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(97 117 138 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(48 66 84 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(13 24 41 / var(--tw-bg-opacity))}.bg-gray-900\/95{background-color:#0d1829f2}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(233 244 233 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(119 184 118 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(74 161 72 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(29 137 26 / var(--tw-bg-opacity))}.bg-green-bright-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(248 209 210 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(233 117 121 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(226 71 77 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(255 247 236 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(255 238 217 / var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(255 168 63 / var(--tw-bg-opacity))}.bg-yellow-bright-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity))}.fill-blue-600{fill:#3e64ff}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[1px\]{padding-left:1px;padding-right:1px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pl-0{padding-left:0}.pl-0\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-20{padding-right:5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-baseline{vertical-align:baseline}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.align-text-bottom{vertical-align:text-bottom}.font-logo{font-family:Red Hat Text}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.75em\]{font-size:.75em}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.tracking-wider{letter-spacing:.05em}.text-blue-400{--tw-text-opacity: 1;color:rgb(139 162 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(101 131 255 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(45 76 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(31 55 183 / var(--tw-text-opacity))}.text-brand-pink{--tw-text-opacity: 1;color:rgb(228 76 117 / var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity: 1;color:rgb(240 245 249 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(225 232 240 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(202 213 224 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.text-green-300{--tw-text-opacity: 1;color:rgb(165 208 163 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(119 184 118 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(13 98 25 / var(--tw-text-opacity))}.text-green-bright-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(226 71 77 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 7 43 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(255 203 140 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(255 168 63 / var(--tw-text-opacity))}.text-yellow-bright-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity))}.text-yellow-bright-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_15px_99px_-0px_rgba\(12\,24\,41\,0\.15\)\]{--tw-shadow: 0 15px 99px -0px rgba(12,24,41,.15);--tw-shadow-colored: 0 15px 99px -0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-200{transition-delay:.2s}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.bg-editor{background-color:#282c34}body[data-editor-theme=light] .bg-editor{background-color:#fafafa}.font-editor{font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px}.shadow-custom-1{box-shadow:10px 5px 25px -8px #0003}.flip-horizontally{transform:scaleY(-1)}.delay-200{animation:delay-frames .2s}@keyframes delay-frames{0%{opacity:0;height:0;width:0}99%{opacity:0;height:0;width:0}}iframe[hidden],.phx-no-feedback.invalid-feedback,.phx-no-feedback .invalid-feedback{display:none}.phx-click-loading{opacity:.5;transition:opacity 1s ease-out}.phx-loading{cursor:wait}.markdown{--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.markdown h1{margin-top:2rem;margin-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h2{margin-top:2rem;margin-bottom:1rem;font-size:1.5rem;line-height:2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h3{margin-top:2rem;margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h4{margin-top:2rem;margin-bottom:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h5,.markdown h6{margin-top:2rem;margin-bottom:1rem;font-size:1rem;line-height:1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown p{margin-top:1rem;margin-bottom:1rem}.markdown ul{margin-top:1.25rem;margin-bottom:1.25rem;margin-left:2rem;list-style-position:outside;list-style-type:disc}.markdown ol{margin-top:1.25rem;margin-bottom:1.25rem;margin-left:2rem;list-style-position:outside;list-style-type:decimal}.markdown ul ul{list-style-type:circle}.markdown ul ul ul{list-style-type:square}.markdown .task-list-item{list-style-type:none}.markdown .task-list-item input[type=checkbox]{margin-left:-1.1rem;vertical-align:middle}.markdown ul>li,.markdown ol>li{margin-top:.25rem;margin-bottom:.25rem}.markdown li>ul,.markdown li>ol{margin-top:0;margin-bottom:0}.markdown blockquote{margin-top:1rem;margin-bottom:1rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.markdown a{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.markdown a:hover{text-decoration-line:none}.markdown img{margin-left:auto;margin-right:auto;margin-top:1rem;margin-bottom:1rem}.markdown table::-webkit-scrollbar{width:.4rem;height:.4rem}.markdown table::-webkit-scrollbar-thumb{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.markdown table::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.markdown table{margin-top:1rem;margin-bottom:1rem;width:100%;border-radius:.5rem;box-shadow:0 0 25px -5px #0000001a,0 0 10px -5px #0000000a}.markdown table thead{text-align:left}.markdown table thead tr,.markdown table tbody tr{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.markdown table tbody tr:last-child{border-bottom-width:0px}.markdown table tbody tr:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.markdown table th{padding:.75rem 1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.markdown table td{padding:.75rem 1.5rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.markdown table th[align=center],.markdown table td[align=center]{text-align:center}.markdown table th[align=right],.markdown table td[align=right]{text-align:right}.markdown code{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity));padding:.1rem .5rem;vertical-align:middle;font-family:JetBrains Mono,monospace;font-size:.875rem;line-height:1.25rem;font-variant-ligatures:none}.markdown pre{display:flex;overflow:hidden}.markdown pre>code{flex:1 1 0%;overflow:auto;border-radius:.5rem;padding:1rem;vertical-align:middle;background-color:#282c34}body[data-editor-theme=light] .markdown pre>code{background-color:#fafafa}.markdown pre>code{color:#c4cad6;font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px}.markdown kbd{border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));padding:.2rem .5rem;vertical-align:middle;font-family:JetBrains Mono,monospace;font-size:.75rem;line-height:1rem;box-shadow:#cad5e0 0 -2px inset}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown .katex-display{margin-top:2rem;margin-bottom:2rem}[data-el-cell][data-type=markdown] .markdown h1,[data-el-cell][data-type=markdown] .markdown h2{font-size:0}[data-el-cell][data-type=markdown] .markdown h1:after,[data-el-cell][data-type=markdown] .markdown h2:after{font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity));content:"warning: heading levels 1 and 2 are reserved for notebook and section names, please use heading 3 and above."}:root{--ansi-color-black: black;--ansi-color-red: #ca1243;--ansi-color-green: #50a14f;--ansi-color-yellow: #c18401;--ansi-color-blue: #4078f2;--ansi-color-magenta: #a726a4;--ansi-color-cyan: #0184bc;--ansi-color-white: white;--ansi-color-light-black: #5c6370;--ansi-color-light-red: #e45649;--ansi-color-light-green: #34d399;--ansi-color-light-yellow: #fde68a;--ansi-color-light-blue: #61afef;--ansi-color-light-magenta: #c678dd;--ansi-color-light-cyan: #56b6c2;--ansi-color-light-white: white}body[data-editor-theme=default] .editor-theme-aware-ansi{--ansi-color-black: black;--ansi-color-red: #be5046;--ansi-color-green: #98c379;--ansi-color-yellow: #e5c07b;--ansi-color-blue: #61afef;--ansi-color-magenta: #c678dd;--ansi-color-cyan: #56b6c2;--ansi-color-white: white;--ansi-color-light-black: #5c6370;--ansi-color-light-red: #e06c75;--ansi-color-light-green: #34d399;--ansi-color-light-yellow: #fde68a;--ansi-color-light-blue: #93c5fd;--ansi-color-light-magenta: #f472b6;--ansi-color-light-cyan: #6be3f2;--ansi-color-light-white: white}[phx-hook=Highlight][data-highlighted]>[data-source]{display:none}[phx-hook=Dropzone][data-js-dragging]{--tw-border-opacity: 1;border-color:rgb(178 193 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}[data-el-session]:not([data-js-insert-mode]) [data-el-insert-mode-indicator]{visibility:hidden}[data-el-session]:not([data-js-insert-mode]) [data-el-cell][data-type=markdown] [data-el-editor-box],[data-el-session][data-js-insert-mode] [data-el-cell][data-type=markdown]:not([data-js-focused]) [data-el-editor-box]{display:none}[data-el-session][data-js-insert-mode] [data-el-cell][data-js-focused] [data-el-enable-insert-mode-button]{display:none}[data-el-session]:not([data-js-insert-mode]) [data-el-cell][data-type=markdown][data-js-focused] [data-el-insert-image-button]{display:none}[data-el-notebook-headline]:hover [data-el-heading],[data-el-section-headline]:hover [data-el-heading]{--tw-border-opacity: 1;border-color:rgb(216 224 255 / var(--tw-border-opacity))}[data-el-notebook-headline][data-js-focused] [data-el-heading],[data-el-section-headline][data-js-focused] [data-el-heading]{--tw-border-opacity: 1;border-color:rgb(178 193 255 / var(--tw-border-opacity))}[data-el-section-headline]:not(:hover):not([data-js-focused]) [data-el-heading]+[data-el-section-actions]:not(:focus-within){display:none}[data-el-section][data-js-collapsed] [data-el-section-collapse-button],[data-el-section]:not([data-js-collapsed]) [data-el-section-headline]:not(:hover):not([data-js-focused]) [data-el-section-collapse-button],[data-el-section]:not([data-js-collapsed]) [data-el-section-expand-button],[data-el-session]:not([data-js-view=code-zen]) [data-el-section][data-js-collapsed]>[data-el-section-content],[data-el-section]:not([data-js-collapsed])>[data-el-section-subheadline-collapsed]{display:none}[data-el-session]:not([data-js-dragging]) [data-el-insert-drop-area]{display:none}[data-el-session]:not([data-js-dragging=external]) [data-el-files-drop-area]{display:none}[data-el-session][data-js-dragging=external] [data-el-files-add-button]{display:none}[data-el-cell][data-js-focused]{border-color:rgb(178 193 255 / var(--tw-border-opacity));--tw-border-opacity: 1}[data-el-cell]:not([data-js-focused]) [data-el-actions]:not(:focus-within){opacity:0}[data-el-cell]:not([data-js-focused]) [data-el-actions]:not([data-primary]):not(:focus-within){pointer-events:none}[data-el-cell]:not([data-js-focused])[data-js-hover] [data-el-actions][data-primary]{pointer-events:auto;opacity:1}[data-el-cell][data-js-changed] [data-el-cell-status]{font-style:italic}[data-el-cell]:not([data-js-changed]) [data-el-cell-status] [data-el-change-indicator]{visibility:hidden}[data-el-sections-list-item][data-js-is-viewed]{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell]:not([data-js-focused])[data-js-hover] [data-el-cell-focus-indicator]{--tw-bg-opacity: 1;background-color:rgb(216 224 255 / var(--tw-bg-opacity))}[data-el-cell][data-js-focused] [data-el-cell-focus-indicator]{--tw-bg-opacity: 1;background-color:rgb(178 193 255 / var(--tw-bg-opacity))}[data-el-cell][data-js-amplified] [data-el-outputs-container]{margin:0;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-top:4rem;padding-bottom:4rem;width:90vw;position:relative;left:calc(-45vw + 50%)}[data-el-cell][data-js-amplified] [data-el-amplify-outputs-button] .icon-button{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell][data-type=smart]:not([data-js-source-visible]) [data-el-editor-box]{height:0px;overflow:hidden}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-ui-box]{display:none}[data-el-session] [data-el-cell][data-type=setup]:not([data-eval-validity=fresh]:not([data-js-empty])):not([data-eval-errored]):not([data-js-changed]):not([data-js-focused]) [data-el-editor-box]{height:0px;overflow:hidden}[data-el-session] [data-el-cell][data-type=setup][data-js-focused] [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-eval-validity=fresh]:not([data-js-empty]) [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-eval-errored] [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-js-changed] [data-el-info-box]{display:none}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-toggle-source-button] .icon-button{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-cell-status-container]{position:absolute;bottom:.5rem;right:.5rem}[data-el-output][data-border]>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse));--tw-divide-opacity: 1;border-color:rgb(225 232 240 / var(--tw-divide-opacity))}[data-el-output][data-border]{border-width:1px;border-top-width:0px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding:1rem}[data-el-output][data-border]:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-top-width:1px}[data-el-output]:not([data-border])+[data-el-output][data-border]{border-top-width:1px}[data-el-output][data-border]:last-child{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem;border-bottom-width:1px}[data-el-output]:not(:first-child){margin-top:.5rem}[data-el-output][data-border]+[data-el-output][data-border]{margin-top:0}[data-el-outputs-container]>[data-el-output]:first-child{margin-top:.5rem}[data-el-session]:not([data-js-side-panel-content]) [data-el-side-panel]{display:none}[data-el-session]:not([data-js-side-panel-content=sections-list]) [data-el-sections-list]{display:none}[data-el-session]:not([data-js-side-panel-content=clients-list]) [data-el-clients-list]{display:none}[data-el-session]:not([data-js-side-panel-content=secrets-list]) [data-el-secrets-list]{display:none}[data-el-session]:not([data-js-side-panel-content=files-list]) [data-el-files-list]{display:none}[data-el-session]:not([data-js-side-panel-content=runtime-info]) [data-el-runtime-info]{display:none}[data-el-session]:not([data-js-side-panel-content=app-info]) [data-el-app-info]{display:none}[data-el-session][data-js-side-panel-content=sections-list] [data-el-sections-list-toggle],[data-el-session][data-js-side-panel-content=clients-list] [data-el-clients-list-toggle],[data-el-session][data-js-side-panel-content=secrets-list] [data-el-secrets-list-toggle],[data-el-session][data-js-side-panel-content=files-list] [data-el-files-list-toggle],[data-el-session][data-js-side-panel-content=runtime-info] [data-el-runtime-info-toggle],[data-el-session][data-js-side-panel-content=app-info] [data-el-app-info-toggle]{--tw-bg-opacity: 1;background-color:rgb(48 66 84 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}[data-el-session][data-js-side-panel-content=app-info] [data-el-app-indicator]{--tw-border-opacity: 1;border-color:rgb(48 66 84 / var(--tw-border-opacity))}[data-el-clients-list-item]:not([data-js-followed]) [data-meta=unfollow]{display:none}[data-el-clients-list-item][data-js-followed] [data-meta=follow]{display:none}[phx-hook=VirtualizedLines]:not(:hover) [data-el-clipcopy]{display:none}[data-el-session][data-js-view=code-zen] [data-el-view-toggle=code-zen],[data-el-session][data-js-view=presentation] [data-el-view-toggle=presentation],[data-el-session][data-js-view=custom] [data-el-view-toggle=custom]{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}[data-el-session][data-js-view] :is([data-el-actions],[data-el-insert-buttons]){display:none}[data-el-session][data-js-view] [data-el-views-disabled]{display:none}[data-el-session]:not([data-js-view]) [data-el-views-enabled]{display:none}[data-js-hide-output] [data-el-output]{display:none}[data-js-hide-section] :is([data-el-section-headline],[data-el-section-subheadline],[data-el-section-subheadline-collapsed]){display:none}[data-js-hide-section] [data-el-sections-container]{margin-top:0}[data-js-hide-section] [data-el-sections-container]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}[data-js-hide-markdown] [data-el-cell][data-type=markdown]{display:none}[data-js-spotlight] :is([data-el-section-headline]:not([data-js-focused]),[data-el-section-subheadline]:not([data-js-focused]),[data-el-cell]:not([data-js-focused]),[data-el-js-view-iframes] iframe:not([data-js-focused])){opacity:.1}[data-js-spotlight] :is([data-el-sidebar],[data-el-side-panel],[data-el-toggle-sidebar]){display:none}.tooltip{position:relative;display:flex;--distance: 4px;--arrow-size: 5px;--show-delay: .5s}.tooltip.distant{--distance: 28px}.tooltip.distant-medium{--distance: 10px}.tooltip:before{position:absolute;content:attr(data-tooltip);white-space:pre;text-align:center;display:block;z-index:100;background-color:#1c273c;color:#f0f5f9;font-size:12px;font-weight:500;border-radius:4px;padding:3px 12px;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:after{content:"";position:absolute;display:block;z-index:100;border-width:var(--arrow-size);border-style:solid;border-color:#1c273c;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:hover:before{visibility:visible;transition-delay:var(--show-delay)}.tooltip:hover:after{visibility:visible;transition-delay:var(--show-delay)}.tooltip.top:before{bottom:100%;left:50%;transform:translate(-50%,calc(1px - var(--arrow-size) - var(--distance)))}.tooltip.top:after{bottom:100%;left:50%;transform:translate(-50%,calc(0px - var(--distance)));border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tooltip.bottom:before{top:100%;left:50%;transform:translate(-50%,calc(var(--arrow-size) - 1px + var(--distance)))}.tooltip.bottom-left:before{top:100%;right:0;transform:translateY(calc(var(--arrow-size) - 1px + var(--distance)))}.tooltip.bottom:after,.tooltip.bottom-left:after{top:100%;left:50%;transform:translate(-50%,var(--distance));border-top:none;border-left-color:transparent;border-right-color:transparent}.tooltip.right:before{top:50%;left:100%;transform:translate(calc(var(--arrow-size) - 1px + var(--distance)),-50%)}.tooltip.right:after{top:50%;left:100%;transform:translate(var(--distance),-50%);border-left:none;border-top-color:transparent;border-bottom-color:transparent}.tooltip.left:before{top:50%;right:100%;transform:translate(calc(1px - var(--arrow-size) - var(--distance)),-50%)}.tooltip.left:after{top:50%;right:100%;transform:translate(calc(0px - var(--distance)),-50%);border-right:none;border-top-color:transparent;border-bottom-color:transparent}.monaco-hover p,.suggest-details p,.parameter-hints-widget p{margin-top:.5rem!important;margin-bottom:.5rem!important}.suggest-details h1,.monaco-hover h1,.parameter-hints-widget h1{margin-top:1rem;margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.suggest-details h2,.monaco-hover h2,.parameter-hints-widget h2{margin-top:1rem;margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:500}.suggest-details h3,.monaco-hover h3,.parameter-hints-widget h3{margin-top:1rem;margin-bottom:.5rem;font-weight:500}.suggest-details ul,.monaco-hover ul,.parameter-hints-widget ul{list-style-type:disc}.suggest-details ol,.monaco-hover ol,.parameter-hints-widget ol{list-style-type:decimal}.suggest-details hr,.monaco-hover hr,.parameter-hints-widget hr{margin-top:.5rem!important;margin-bottom:.5rem!important}.suggest-details blockquote,.monaco-hover blockquote,.parameter-hints-widget blockquote{margin-top:.5rem;margin-bottom:.5rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding-top:.125rem;padding-bottom:.125rem;padding-left:1rem}.suggest-details div.monaco-tokenized-source,.monaco-hover div.monaco-tokenized-source,.parameter-hints-widget div.monaco-tokenized-source{margin-top:.5rem;margin-bottom:.5rem;white-space:pre-wrap}.suggest-details,.monaco-hover,.parameter-hints-widget{z-index:100!important}.suggest-details .header p{padding-bottom:0!important;padding-top:.75rem!important}.parameter-hints-widget .markdown-docs hr{border-top:1px solid rgba(69,69,69,.5);margin-right:-8px;margin-left:-8px}.monaco-hover-content{max-width:1000px!important;max-height:300px!important}.suggest-details-container,.suggest-details{width:-moz-fit-content!important;width:fit-content!important;height:-moz-fit-content!important;height:fit-content!important;max-width:420px!important;max-height:250px!important}.suggest-details .header .type{padding-top:0!important}.docs.markdown-docs{margin:0!important}.monaco-editor .quick-input-list .monaco-list{max-height:300px!important}.monaco-cursor-widget-container{pointer-events:none;z-index:100}.monaco-cursor-widget-container .monaco-cursor-widget-cursor{pointer-events:initial;width:2px}.monaco-cursor-widget-container .monaco-cursor-widget-label{pointer-events:initial;transform:translateY(-200%);white-space:nowrap;padding:1px 8px;font-size:12px;color:#f8fafc;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:1.5s}.monaco-cursor-widget-container .monaco-cursor-widget-label:hover{visibility:visible}.monaco-cursor-widget-container .monaco-cursor-widget-cursor:hover+.monaco-cursor-widget-label{visibility:visible;transition-delay:0s}.monaco-cursor-widget-container.inline{display:flex!important}.monaco-cursor-widget-container.inline .monaco-cursor-widget-label{margin-left:2px;transform:none}.doctest-status-decoration-running,.doctest-status-decoration-success,.doctest-status-decoration-failed{height:100%;position:relative;--decoration-size: 10px}@media (min-width: 768px){.doctest-status-decoration-running,.doctest-status-decoration-success,.doctest-status-decoration-failed{--decoration-size: 12px}}.doctest-status-decoration-running:after,.doctest-status-decoration-success:after,.doctest-status-decoration-failed:after{box-sizing:border-box;border-radius:2px;content:"";display:block;height:var(--decoration-size);width:var(--decoration-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.doctest-status-decoration-running:after{--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.doctest-status-decoration-success:after{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.doctest-status-decoration-failed:after{--tw-bg-opacity: 1;background-color:rgb(233 117 121 / var(--tw-bg-opacity))}.doctest-details-widget{font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px;white-space:pre;background-color:#0000000d;padding-top:6px;padding-bottom:6px;position:absolute;width:100%;overflow-y:auto}.ri-livebook-sections,.ri-livebook-runtime,.ri-livebook-shortcuts,.ri-livebook-secrets,.ri-livebook-deploy,.ri-livebook-terminal,.ri-livebook-save{vertical-align:middle;font-size:1.25rem;line-height:1.75rem}.ri-livebook-sections:before{content:"\eade"}.ri-livebook-runtime:before{content:"\ebf0"}.ri-livebook-shortcuts:before{content:"\ee72"}.ri-livebook-secrets:before{content:"\eed0"}.ri-livebook-deploy:before{content:"\f096"}.ri-livebook-terminal:before{content:"\f1f8"}.ri-livebook-save:before{content:"\f0b3"}.invalid\:input--error:invalid{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.first\:rounded-l-lg:first-child{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.last\:rounded-r-lg:last-child{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.last\:border-b-0:last-child{border-bottom-width:0px}.last\:border-r:last-child{border-right-width:1px}.checked\:translate-x-full:checked{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.checked\:border-blue-600:checked{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity))}.checked\:bg-white:checked{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.empty\:hidden:empty{display:none}.focus-within\:opacity-100:focus-within{opacity:1}.hover\:z-\[11\]:hover{z-index:11}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:rounded-md:hover{border-radius:.375rem}.hover\:border-none:hover{border-style:none}.hover\:border-gray-200:hover{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.hover\:border-transparent:hover{border-color:transparent}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.hover\:bg-green-bright-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity))}.hover\:bg-yellow-bright-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.hover\:text-gray-50:hover{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:no-underline:hover{text-decoration-line:none}.hover\:\!opacity-100:hover{opacity:1!important}.hover\:opacity-100:hover{opacity:1}.focus\:bg-blue-50:focus{--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity))}.focus\:bg-blue-700:focus{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.focus\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.focus\:bg-green-bright-50:focus{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.focus\:bg-red-50:focus{--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity))}.focus\:bg-yellow-bright-50:focus{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.focus\:text-gray-50:focus{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.focus\:text-gray-600:focus{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.focus\:text-gray-800:focus{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.focus\:text-white:focus{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(145 164 183 / var(--tw-ring-opacity))}.active\:bg-gray-200:active{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.group:focus-within .group-focus-within\:flex{display:flex}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:flex{display:flex}.group:hover .group-hover\:text-blue-600{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:hover .group-hover\:ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:hover .group-hover\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:block{display:block}:not(.phx-no-feedback).show-errors .phx-form-error\:border-red-600{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:text-red-600{--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:placeholder-red-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(219 25 32 / var(--tw-placeholder-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:placeholder-red-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(219 25 32 / var(--tw-placeholder-opacity))}.phx-submit-loading.phx-submit-loading\:block,.phx-submit-loading .phx-submit-loading\:block{display:block}@media (min-width: 640px){.sm\:fixed{position:fixed}.sm\:bottom-0{bottom:0}.sm\:bottom-auto{bottom:auto}.sm\:left-0{left:0}.sm\:left-auto{left:auto}.sm\:right-0{right:0}.sm\:right-auto{right:auto}.sm\:top-0{top:0}.sm\:top-auto{top:auto}.sm\:m-auto{margin:auto}.sm\:-mb-1{margin-bottom:-.25rem}.sm\:-mt-1{margin-top:-.25rem}.sm\:mb-0{margin-bottom:0}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-72{width:18rem}.sm\:-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scroll-mt-0{scroll-margin-top:0px}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-12{gap:3rem}.sm\:gap-3{gap:.75rem}.sm\:space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.sm\:space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.sm\:p-0{padding:0}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pl-8{padding-left:2rem}.sm\:pr-16{padding-right:4rem}}@media (min-width: 768px){.md\:static{position:static}.md\:fixed{position:fixed}.md\:absolute{position:absolute}.md\:bottom-0{bottom:0}.md\:bottom-auto{bottom:auto}.md\:left-0{left:0}.md\:left-4{left:1rem}.md\:left-auto{left:auto}.md\:right-0{right:0}.md\:right-auto{right:auto}.md\:top-0{top:0}.md\:top-auto{top:auto}.md\:-mb-1{margin-bottom:-.25rem}.md\:-mt-1{margin-top:-.25rem}.md\:mb-0{margin-bottom:0}.md\:mt-0{margin-top:0}.md\:flex{display:flex}.md\:hidden{display:none}.md\:-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,_2fr\)_minmax\(0\,_2fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.md\:px-12{padding-left:3rem;padding-right:3rem}.md\:px-20{padding-left:5rem;padding-right:5rem}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.md\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-7{padding-top:1.75rem;padding-bottom:1.75rem}.md\:py-8{padding-top:2rem;padding-bottom:2rem}.md\:pl-16{padding-left:4rem}.md\:pr-0{padding-right:0}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1024px){.lg\:flex{display:flex}.lg\:w-1\/2{width:50%}.lg\:grow{flex-grow:1}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[minmax\(0\,_2fr\)_minmax\(0\,_2fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}.lg\:flex-row{flex-direction:row}.lg\:justify-end{justify-content:flex-end}.lg\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:whitespace-nowrap{white-space:nowrap}.lg\:pr-4{padding-right:1rem}}@media (min-width: 1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\>\:first-child\:focus\]\:bg-gray-100>:first-child:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.\[\&\>\:first-child\:hover\]\:bg-gray-100>:first-child:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.\[\&\>\:first-child\]\:flex>:first-child{display:flex}.\[\&\>\:first-child\]\:w-full>:first-child{width:100%}.\[\&\>\:first-child\]\:items-center>:first-child{align-items:center}.\[\&\>\:first-child\]\:space-x-3>:first-child>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.\[\&\>\:first-child\]\:whitespace-nowrap>:first-child{white-space:nowrap}.\[\&\>\:first-child\]\:px-5>:first-child{padding-left:1.25rem;padding-right:1.25rem}.\[\&\>\:first-child\]\:py-2>:first-child{padding-top:.5rem;padding-bottom:.5rem}@font-face{font-family:remixicon;src:url(./remixicon-EJ57KKHX.eot?t=1690730386070);src:url(./remixicon-EJ57KKHX.eot?t=1690730386070#iefix) format("embedded-opentype"),url(./remixicon-LVVQUEYC.woff2?t=1690730386070) format("woff2"),url(./remixicon-E3YYWUKU.woff?t=1690730386070) format("woff"),url(./remixicon-PTCXODVZ.ttf?t=1690730386070) format("truetype"),url(./remixicon-4CSUN567.svg?t=1690730386070#remixicon) format("svg");font-display:swap}[class^=ri-],[class*=" ri-"]{font-family:remixicon!important;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ri-lg{font-size:1.3333em;line-height:.75em;vertical-align:-.0667em}.ri-xl{font-size:1.5em;line-height:.6666em;vertical-align:-.075em}.ri-xxs{font-size:.5em}.ri-xs{font-size:.75em}.ri-sm{font-size:.875em}.ri-1x{font-size:1em}.ri-2x{font-size:2em}.ri-3x{font-size:3em}.ri-4x{font-size:4em}.ri-5x{font-size:5em}.ri-6x{font-size:6em}.ri-7x{font-size:7em}.ri-8x{font-size:8em}.ri-9x{font-size:9em}.ri-10x{font-size:10em}.ri-fw{text-align:center;width:1.25em}.ri-24-hours-fill:before{content:"\ea01"}.ri-24-hours-line:before{content:"\ea02"}.ri-4k-fill:before{content:"\ea03"}.ri-4k-line:before{content:"\ea04"}.ri-a-b:before{content:"\ea05"}.ri-account-box-fill:before{content:"\ea06"}.ri-account-box-line:before{content:"\ea07"}.ri-account-circle-fill:before{content:"\ea08"}.ri-account-circle-line:before{content:"\ea09"}.ri-account-pin-box-fill:before{content:"\ea0a"}.ri-account-pin-box-line:before{content:"\ea0b"}.ri-account-pin-circle-fill:before{content:"\ea0c"}.ri-account-pin-circle-line:before{content:"\ea0d"}.ri-add-box-fill:before{content:"\ea0e"}.ri-add-box-line:before{content:"\ea0f"}.ri-add-circle-fill:before{content:"\ea10"}.ri-add-circle-line:before{content:"\ea11"}.ri-add-fill:before{content:"\ea12"}.ri-add-line:before{content:"\ea13"}.ri-admin-fill:before{content:"\ea14"}.ri-admin-line:before{content:"\ea15"}.ri-advertisement-fill:before{content:"\ea16"}.ri-advertisement-line:before{content:"\ea17"}.ri-airplay-fill:before{content:"\ea18"}.ri-airplay-line:before{content:"\ea19"}.ri-alarm-fill:before{content:"\ea1a"}.ri-alarm-line:before{content:"\ea1b"}.ri-alarm-warning-fill:before{content:"\ea1c"}.ri-alarm-warning-line:before{content:"\ea1d"}.ri-album-fill:before{content:"\ea1e"}.ri-album-line:before{content:"\ea1f"}.ri-alert-fill:before{content:"\ea20"}.ri-alert-line:before{content:"\ea21"}.ri-aliens-fill:before{content:"\ea22"}.ri-aliens-line:before{content:"\ea23"}.ri-align-bottom:before{content:"\ea24"}.ri-align-center:before{content:"\ea25"}.ri-align-justify:before{content:"\ea26"}.ri-align-left:before{content:"\ea27"}.ri-align-right:before{content:"\ea28"}.ri-align-top:before{content:"\ea29"}.ri-align-vertically:before{content:"\ea2a"}.ri-alipay-fill:before{content:"\ea2b"}.ri-alipay-line:before{content:"\ea2c"}.ri-amazon-fill:before{content:"\ea2d"}.ri-amazon-line:before{content:"\ea2e"}.ri-anchor-fill:before{content:"\ea2f"}.ri-anchor-line:before{content:"\ea30"}.ri-ancient-gate-fill:before{content:"\ea31"}.ri-ancient-gate-line:before{content:"\ea32"}.ri-ancient-pavilion-fill:before{content:"\ea33"}.ri-ancient-pavilion-line:before{content:"\ea34"}.ri-android-fill:before{content:"\ea35"}.ri-android-line:before{content:"\ea36"}.ri-angularjs-fill:before{content:"\ea37"}.ri-angularjs-line:before{content:"\ea38"}.ri-anticlockwise-2-fill:before{content:"\ea39"}.ri-anticlockwise-2-line:before{content:"\ea3a"}.ri-anticlockwise-fill:before{content:"\ea3b"}.ri-anticlockwise-line:before{content:"\ea3c"}.ri-app-store-fill:before{content:"\ea3d"}.ri-app-store-line:before{content:"\ea3e"}.ri-apple-fill:before{content:"\ea3f"}.ri-apple-line:before{content:"\ea40"}.ri-apps-2-fill:before{content:"\ea41"}.ri-apps-2-line:before{content:"\ea42"}.ri-apps-fill:before{content:"\ea43"}.ri-apps-line:before{content:"\ea44"}.ri-archive-drawer-fill:before{content:"\ea45"}.ri-archive-drawer-line:before{content:"\ea46"}.ri-archive-fill:before{content:"\ea47"}.ri-archive-line:before{content:"\ea48"}.ri-arrow-down-circle-fill:before{content:"\ea49"}.ri-arrow-down-circle-line:before{content:"\ea4a"}.ri-arrow-down-fill:before{content:"\ea4b"}.ri-arrow-down-line:before{content:"\ea4c"}.ri-arrow-down-s-fill:before{content:"\ea4d"}.ri-arrow-down-s-line:before{content:"\ea4e"}.ri-arrow-drop-down-fill:before{content:"\ea4f"}.ri-arrow-drop-down-line:before{content:"\ea50"}.ri-arrow-drop-left-fill:before{content:"\ea51"}.ri-arrow-drop-left-line:before{content:"\ea52"}.ri-arrow-drop-right-fill:before{content:"\ea53"}.ri-arrow-drop-right-line:before{content:"\ea54"}.ri-arrow-drop-up-fill:before{content:"\ea55"}.ri-arrow-drop-up-line:before{content:"\ea56"}.ri-arrow-go-back-fill:before{content:"\ea57"}.ri-arrow-go-back-line:before{content:"\ea58"}.ri-arrow-go-forward-fill:before{content:"\ea59"}.ri-arrow-go-forward-line:before{content:"\ea5a"}.ri-arrow-left-circle-fill:before{content:"\ea5b"}.ri-arrow-left-circle-line:before{content:"\ea5c"}.ri-arrow-left-down-fill:before{content:"\ea5d"}.ri-arrow-left-down-line:before{content:"\ea5e"}.ri-arrow-left-fill:before{content:"\ea5f"}.ri-arrow-left-line:before{content:"\ea60"}.ri-arrow-left-right-fill:before{content:"\ea61"}.ri-arrow-left-right-line:before{content:"\ea62"}.ri-arrow-left-s-fill:before{content:"\ea63"}.ri-arrow-left-s-line:before{content:"\ea64"}.ri-arrow-left-up-fill:before{content:"\ea65"}.ri-arrow-left-up-line:before{content:"\ea66"}.ri-arrow-right-circle-fill:before{content:"\ea67"}.ri-arrow-right-circle-line:before{content:"\ea68"}.ri-arrow-right-down-fill:before{content:"\ea69"}.ri-arrow-right-down-line:before{content:"\ea6a"}.ri-arrow-right-fill:before{content:"\ea6b"}.ri-arrow-right-line:before{content:"\ea6c"}.ri-arrow-right-s-fill:before{content:"\ea6d"}.ri-arrow-right-s-line:before{content:"\ea6e"}.ri-arrow-right-up-fill:before{content:"\ea6f"}.ri-arrow-right-up-line:before{content:"\ea70"}.ri-arrow-up-circle-fill:before{content:"\ea71"}.ri-arrow-up-circle-line:before{content:"\ea72"}.ri-arrow-up-down-fill:before{content:"\ea73"}.ri-arrow-up-down-line:before{content:"\ea74"}.ri-arrow-up-fill:before{content:"\ea75"}.ri-arrow-up-line:before{content:"\ea76"}.ri-arrow-up-s-fill:before{content:"\ea77"}.ri-arrow-up-s-line:before{content:"\ea78"}.ri-artboard-2-fill:before{content:"\ea79"}.ri-artboard-2-line:before{content:"\ea7a"}.ri-artboard-fill:before{content:"\ea7b"}.ri-artboard-line:before{content:"\ea7c"}.ri-article-fill:before{content:"\ea7d"}.ri-article-line:before{content:"\ea7e"}.ri-aspect-ratio-fill:before{content:"\ea7f"}.ri-aspect-ratio-line:before{content:"\ea80"}.ri-asterisk:before{content:"\ea81"}.ri-at-fill:before{content:"\ea82"}.ri-at-line:before{content:"\ea83"}.ri-attachment-2:before{content:"\ea84"}.ri-attachment-fill:before{content:"\ea85"}.ri-attachment-line:before{content:"\ea86"}.ri-auction-fill:before{content:"\ea87"}.ri-auction-line:before{content:"\ea88"}.ri-award-fill:before{content:"\ea89"}.ri-award-line:before{content:"\ea8a"}.ri-baidu-fill:before{content:"\ea8b"}.ri-baidu-line:before{content:"\ea8c"}.ri-ball-pen-fill:before{content:"\ea8d"}.ri-ball-pen-line:before{content:"\ea8e"}.ri-bank-card-2-fill:before{content:"\ea8f"}.ri-bank-card-2-line:before{content:"\ea90"}.ri-bank-card-fill:before{content:"\ea91"}.ri-bank-card-line:before{content:"\ea92"}.ri-bank-fill:before{content:"\ea93"}.ri-bank-line:before{content:"\ea94"}.ri-bar-chart-2-fill:before{content:"\ea95"}.ri-bar-chart-2-line:before{content:"\ea96"}.ri-bar-chart-box-fill:before{content:"\ea97"}.ri-bar-chart-box-line:before{content:"\ea98"}.ri-bar-chart-fill:before{content:"\ea99"}.ri-bar-chart-grouped-fill:before{content:"\ea9a"}.ri-bar-chart-grouped-line:before{content:"\ea9b"}.ri-bar-chart-horizontal-fill:before{content:"\ea9c"}.ri-bar-chart-horizontal-line:before{content:"\ea9d"}.ri-bar-chart-line:before{content:"\ea9e"}.ri-barcode-box-fill:before{content:"\ea9f"}.ri-barcode-box-line:before{content:"\eaa0"}.ri-barcode-fill:before{content:"\eaa1"}.ri-barcode-line:before{content:"\eaa2"}.ri-barricade-fill:before{content:"\eaa3"}.ri-barricade-line:before{content:"\eaa4"}.ri-base-station-fill:before{content:"\eaa5"}.ri-base-station-line:before{content:"\eaa6"}.ri-basketball-fill:before{content:"\eaa7"}.ri-basketball-line:before{content:"\eaa8"}.ri-battery-2-charge-fill:before{content:"\eaa9"}.ri-battery-2-charge-line:before{content:"\eaaa"}.ri-battery-2-fill:before{content:"\eaab"}.ri-battery-2-line:before{content:"\eaac"}.ri-battery-charge-fill:before{content:"\eaad"}.ri-battery-charge-line:before{content:"\eaae"}.ri-battery-fill:before{content:"\eaaf"}.ri-battery-line:before{content:"\eab0"}.ri-battery-low-fill:before{content:"\eab1"}.ri-battery-low-line:before{content:"\eab2"}.ri-battery-saver-fill:before{content:"\eab3"}.ri-battery-saver-line:before{content:"\eab4"}.ri-battery-share-fill:before{content:"\eab5"}.ri-battery-share-line:before{content:"\eab6"}.ri-bear-smile-fill:before{content:"\eab7"}.ri-bear-smile-line:before{content:"\eab8"}.ri-behance-fill:before{content:"\eab9"}.ri-behance-line:before{content:"\eaba"}.ri-bell-fill:before{content:"\eabb"}.ri-bell-line:before{content:"\eabc"}.ri-bike-fill:before{content:"\eabd"}.ri-bike-line:before{content:"\eabe"}.ri-bilibili-fill:before{content:"\eabf"}.ri-bilibili-line:before{content:"\eac0"}.ri-bill-fill:before{content:"\eac1"}.ri-bill-line:before{content:"\eac2"}.ri-billiards-fill:before{content:"\eac3"}.ri-billiards-line:before{content:"\eac4"}.ri-bit-coin-fill:before{content:"\eac5"}.ri-bit-coin-line:before{content:"\eac6"}.ri-blaze-fill:before{content:"\eac7"}.ri-blaze-line:before{content:"\eac8"}.ri-bluetooth-connect-fill:before{content:"\eac9"}.ri-bluetooth-connect-line:before{content:"\eaca"}.ri-bluetooth-fill:before{content:"\eacb"}.ri-bluetooth-line:before{content:"\eacc"}.ri-blur-off-fill:before{content:"\eacd"}.ri-blur-off-line:before{content:"\eace"}.ri-body-scan-fill:before{content:"\eacf"}.ri-body-scan-line:before{content:"\ead0"}.ri-bold:before{content:"\ead1"}.ri-book-2-fill:before{content:"\ead2"}.ri-book-2-line:before{content:"\ead3"}.ri-book-3-fill:before{content:"\ead4"}.ri-book-3-line:before{content:"\ead5"}.ri-book-fill:before{content:"\ead6"}.ri-book-line:before{content:"\ead7"}.ri-book-mark-fill:before{content:"\ead8"}.ri-book-mark-line:before{content:"\ead9"}.ri-book-open-fill:before{content:"\eada"}.ri-book-open-line:before{content:"\eadb"}.ri-book-read-fill:before{content:"\eadc"}.ri-book-read-line:before{content:"\eadd"}.ri-booklet-fill:before{content:"\eade"}.ri-booklet-line:before{content:"\eadf"}.ri-bookmark-2-fill:before{content:"\eae0"}.ri-bookmark-2-line:before{content:"\eae1"}.ri-bookmark-3-fill:before{content:"\eae2"}.ri-bookmark-3-line:before{content:"\eae3"}.ri-bookmark-fill:before{content:"\eae4"}.ri-bookmark-line:before{content:"\eae5"}.ri-boxing-fill:before{content:"\eae6"}.ri-boxing-line:before{content:"\eae7"}.ri-braces-fill:before{content:"\eae8"}.ri-braces-line:before{content:"\eae9"}.ri-brackets-fill:before{content:"\eaea"}.ri-brackets-line:before{content:"\eaeb"}.ri-briefcase-2-fill:before{content:"\eaec"}.ri-briefcase-2-line:before{content:"\eaed"}.ri-briefcase-3-fill:before{content:"\eaee"}.ri-briefcase-3-line:before{content:"\eaef"}.ri-briefcase-4-fill:before{content:"\eaf0"}.ri-briefcase-4-line:before{content:"\eaf1"}.ri-briefcase-5-fill:before{content:"\eaf2"}.ri-briefcase-5-line:before{content:"\eaf3"}.ri-briefcase-fill:before{content:"\eaf4"}.ri-briefcase-line:before{content:"\eaf5"}.ri-bring-forward:before{content:"\eaf6"}.ri-bring-to-front:before{content:"\eaf7"}.ri-broadcast-fill:before{content:"\eaf8"}.ri-broadcast-line:before{content:"\eaf9"}.ri-brush-2-fill:before{content:"\eafa"}.ri-brush-2-line:before{content:"\eafb"}.ri-brush-3-fill:before{content:"\eafc"}.ri-brush-3-line:before{content:"\eafd"}.ri-brush-4-fill:before{content:"\eafe"}.ri-brush-4-line:before{content:"\eaff"}.ri-brush-fill:before{content:"\eb00"}.ri-brush-line:before{content:"\eb01"}.ri-bubble-chart-fill:before{content:"\eb02"}.ri-bubble-chart-line:before{content:"\eb03"}.ri-bug-2-fill:before{content:"\eb04"}.ri-bug-2-line:before{content:"\eb05"}.ri-bug-fill:before{content:"\eb06"}.ri-bug-line:before{content:"\eb07"}.ri-building-2-fill:before{content:"\eb08"}.ri-building-2-line:before{content:"\eb09"}.ri-building-3-fill:before{content:"\eb0a"}.ri-building-3-line:before{content:"\eb0b"}.ri-building-4-fill:before{content:"\eb0c"}.ri-building-4-line:before{content:"\eb0d"}.ri-building-fill:before{content:"\eb0e"}.ri-building-line:before{content:"\eb0f"}.ri-bus-2-fill:before{content:"\eb10"}.ri-bus-2-line:before{content:"\eb11"}.ri-bus-fill:before{content:"\eb12"}.ri-bus-line:before{content:"\eb13"}.ri-bus-wifi-fill:before{content:"\eb14"}.ri-bus-wifi-line:before{content:"\eb15"}.ri-cactus-fill:before{content:"\eb16"}.ri-cactus-line:before{content:"\eb17"}.ri-cake-2-fill:before{content:"\eb18"}.ri-cake-2-line:before{content:"\eb19"}.ri-cake-3-fill:before{content:"\eb1a"}.ri-cake-3-line:before{content:"\eb1b"}.ri-cake-fill:before{content:"\eb1c"}.ri-cake-line:before{content:"\eb1d"}.ri-calculator-fill:before{content:"\eb1e"}.ri-calculator-line:before{content:"\eb1f"}.ri-calendar-2-fill:before{content:"\eb20"}.ri-calendar-2-line:before{content:"\eb21"}.ri-calendar-check-fill:before{content:"\eb22"}.ri-calendar-check-line:before{content:"\eb23"}.ri-calendar-event-fill:before{content:"\eb24"}.ri-calendar-event-line:before{content:"\eb25"}.ri-calendar-fill:before{content:"\eb26"}.ri-calendar-line:before{content:"\eb27"}.ri-calendar-todo-fill:before{content:"\eb28"}.ri-calendar-todo-line:before{content:"\eb29"}.ri-camera-2-fill:before{content:"\eb2a"}.ri-camera-2-line:before{content:"\eb2b"}.ri-camera-3-fill:before{content:"\eb2c"}.ri-camera-3-line:before{content:"\eb2d"}.ri-camera-fill:before{content:"\eb2e"}.ri-camera-lens-fill:before{content:"\eb2f"}.ri-camera-lens-line:before{content:"\eb30"}.ri-camera-line:before{content:"\eb31"}.ri-camera-off-fill:before{content:"\eb32"}.ri-camera-off-line:before{content:"\eb33"}.ri-camera-switch-fill:before{content:"\eb34"}.ri-camera-switch-line:before{content:"\eb35"}.ri-capsule-fill:before{content:"\eb36"}.ri-capsule-line:before{content:"\eb37"}.ri-car-fill:before{content:"\eb38"}.ri-car-line:before{content:"\eb39"}.ri-car-washing-fill:before{content:"\eb3a"}.ri-car-washing-line:before{content:"\eb3b"}.ri-caravan-fill:before{content:"\eb3c"}.ri-caravan-line:before{content:"\eb3d"}.ri-cast-fill:before{content:"\eb3e"}.ri-cast-line:before{content:"\eb3f"}.ri-cellphone-fill:before{content:"\eb40"}.ri-cellphone-line:before{content:"\eb41"}.ri-celsius-fill:before{content:"\eb42"}.ri-celsius-line:before{content:"\eb43"}.ri-centos-fill:before{content:"\eb44"}.ri-centos-line:before{content:"\eb45"}.ri-character-recognition-fill:before{content:"\eb46"}.ri-character-recognition-line:before{content:"\eb47"}.ri-charging-pile-2-fill:before{content:"\eb48"}.ri-charging-pile-2-line:before{content:"\eb49"}.ri-charging-pile-fill:before{content:"\eb4a"}.ri-charging-pile-line:before{content:"\eb4b"}.ri-chat-1-fill:before{content:"\eb4c"}.ri-chat-1-line:before{content:"\eb4d"}.ri-chat-2-fill:before{content:"\eb4e"}.ri-chat-2-line:before{content:"\eb4f"}.ri-chat-3-fill:before{content:"\eb50"}.ri-chat-3-line:before{content:"\eb51"}.ri-chat-4-fill:before{content:"\eb52"}.ri-chat-4-line:before{content:"\eb53"}.ri-chat-check-fill:before{content:"\eb54"}.ri-chat-check-line:before{content:"\eb55"}.ri-chat-delete-fill:before{content:"\eb56"}.ri-chat-delete-line:before{content:"\eb57"}.ri-chat-download-fill:before{content:"\eb58"}.ri-chat-download-line:before{content:"\eb59"}.ri-chat-follow-up-fill:before{content:"\eb5a"}.ri-chat-follow-up-line:before{content:"\eb5b"}.ri-chat-forward-fill:before{content:"\eb5c"}.ri-chat-forward-line:before{content:"\eb5d"}.ri-chat-heart-fill:before{content:"\eb5e"}.ri-chat-heart-line:before{content:"\eb5f"}.ri-chat-history-fill:before{content:"\eb60"}.ri-chat-history-line:before{content:"\eb61"}.ri-chat-new-fill:before{content:"\eb62"}.ri-chat-new-line:before{content:"\eb63"}.ri-chat-off-fill:before{content:"\eb64"}.ri-chat-off-line:before{content:"\eb65"}.ri-chat-poll-fill:before{content:"\eb66"}.ri-chat-poll-line:before{content:"\eb67"}.ri-chat-private-fill:before{content:"\eb68"}.ri-chat-private-line:before{content:"\eb69"}.ri-chat-quote-fill:before{content:"\eb6a"}.ri-chat-quote-line:before{content:"\eb6b"}.ri-chat-settings-fill:before{content:"\eb6c"}.ri-chat-settings-line:before{content:"\eb6d"}.ri-chat-smile-2-fill:before{content:"\eb6e"}.ri-chat-smile-2-line:before{content:"\eb6f"}.ri-chat-smile-3-fill:before{content:"\eb70"}.ri-chat-smile-3-line:before{content:"\eb71"}.ri-chat-smile-fill:before{content:"\eb72"}.ri-chat-smile-line:before{content:"\eb73"}.ri-chat-upload-fill:before{content:"\eb74"}.ri-chat-upload-line:before{content:"\eb75"}.ri-chat-voice-fill:before{content:"\eb76"}.ri-chat-voice-line:before{content:"\eb77"}.ri-check-double-fill:before{content:"\eb78"}.ri-check-double-line:before{content:"\eb79"}.ri-check-fill:before{content:"\eb7a"}.ri-check-line:before{content:"\eb7b"}.ri-checkbox-blank-circle-fill:before{content:"\eb7c"}.ri-checkbox-blank-circle-line:before{content:"\eb7d"}.ri-checkbox-blank-fill:before{content:"\eb7e"}.ri-checkbox-blank-line:before{content:"\eb7f"}.ri-checkbox-circle-fill:before{content:"\eb80"}.ri-checkbox-circle-line:before{content:"\eb81"}.ri-checkbox-fill:before{content:"\eb82"}.ri-checkbox-indeterminate-fill:before{content:"\eb83"}.ri-checkbox-indeterminate-line:before{content:"\eb84"}.ri-checkbox-line:before{content:"\eb85"}.ri-checkbox-multiple-blank-fill:before{content:"\eb86"}.ri-checkbox-multiple-blank-line:before{content:"\eb87"}.ri-checkbox-multiple-fill:before{content:"\eb88"}.ri-checkbox-multiple-line:before{content:"\eb89"}.ri-china-railway-fill:before{content:"\eb8a"}.ri-china-railway-line:before{content:"\eb8b"}.ri-chrome-fill:before{content:"\eb8c"}.ri-chrome-line:before{content:"\eb8d"}.ri-clapperboard-fill:before{content:"\eb8e"}.ri-clapperboard-line:before{content:"\eb8f"}.ri-clipboard-fill:before{content:"\eb90"}.ri-clipboard-line:before{content:"\eb91"}.ri-clockwise-2-fill:before{content:"\eb92"}.ri-clockwise-2-line:before{content:"\eb93"}.ri-clockwise-fill:before{content:"\eb94"}.ri-clockwise-line:before{content:"\eb95"}.ri-close-circle-fill:before{content:"\eb96"}.ri-close-circle-line:before{content:"\eb97"}.ri-close-fill:before{content:"\eb98"}.ri-close-line:before{content:"\eb99"}.ri-closed-captioning-fill:before{content:"\eb9a"}.ri-closed-captioning-line:before{content:"\eb9b"}.ri-cloud-fill:before{content:"\eb9c"}.ri-cloud-line:before{content:"\eb9d"}.ri-cloud-off-fill:before{content:"\eb9e"}.ri-cloud-off-line:before{content:"\eb9f"}.ri-cloud-windy-fill:before{content:"\eba0"}.ri-cloud-windy-line:before{content:"\eba1"}.ri-cloudy-2-fill:before{content:"\eba2"}.ri-cloudy-2-line:before{content:"\eba3"}.ri-cloudy-fill:before{content:"\eba4"}.ri-cloudy-line:before{content:"\eba5"}.ri-code-box-fill:before{content:"\eba6"}.ri-code-box-line:before{content:"\eba7"}.ri-code-fill:before{content:"\eba8"}.ri-code-line:before{content:"\eba9"}.ri-code-s-fill:before{content:"\ebaa"}.ri-code-s-line:before{content:"\ebab"}.ri-code-s-slash-fill:before{content:"\ebac"}.ri-code-s-slash-line:before{content:"\ebad"}.ri-code-view:before{content:"\ebae"}.ri-codepen-fill:before{content:"\ebaf"}.ri-codepen-line:before{content:"\ebb0"}.ri-coin-fill:before{content:"\ebb1"}.ri-coin-line:before{content:"\ebb2"}.ri-coins-fill:before{content:"\ebb3"}.ri-coins-line:before{content:"\ebb4"}.ri-collage-fill:before{content:"\ebb5"}.ri-collage-line:before{content:"\ebb6"}.ri-command-fill:before{content:"\ebb7"}.ri-command-line:before{content:"\ebb8"}.ri-community-fill:before{content:"\ebb9"}.ri-community-line:before{content:"\ebba"}.ri-compass-2-fill:before{content:"\ebbb"}.ri-compass-2-line:before{content:"\ebbc"}.ri-compass-3-fill:before{content:"\ebbd"}.ri-compass-3-line:before{content:"\ebbe"}.ri-compass-4-fill:before{content:"\ebbf"}.ri-compass-4-line:before{content:"\ebc0"}.ri-compass-discover-fill:before{content:"\ebc1"}.ri-compass-discover-line:before{content:"\ebc2"}.ri-compass-fill:before{content:"\ebc3"}.ri-compass-line:before{content:"\ebc4"}.ri-compasses-2-fill:before{content:"\ebc5"}.ri-compasses-2-line:before{content:"\ebc6"}.ri-compasses-fill:before{content:"\ebc7"}.ri-compasses-line:before{content:"\ebc8"}.ri-computer-fill:before{content:"\ebc9"}.ri-computer-line:before{content:"\ebca"}.ri-contacts-book-2-fill:before{content:"\ebcb"}.ri-contacts-book-2-line:before{content:"\ebcc"}.ri-contacts-book-fill:before{content:"\ebcd"}.ri-contacts-book-line:before{content:"\ebce"}.ri-contacts-book-upload-fill:before{content:"\ebcf"}.ri-contacts-book-upload-line:before{content:"\ebd0"}.ri-contacts-fill:before{content:"\ebd1"}.ri-contacts-line:before{content:"\ebd2"}.ri-contrast-2-fill:before{content:"\ebd3"}.ri-contrast-2-line:before{content:"\ebd4"}.ri-contrast-drop-2-fill:before{content:"\ebd5"}.ri-contrast-drop-2-line:before{content:"\ebd6"}.ri-contrast-drop-fill:before{content:"\ebd7"}.ri-contrast-drop-line:before{content:"\ebd8"}.ri-contrast-fill:before{content:"\ebd9"}.ri-contrast-line:before{content:"\ebda"}.ri-copper-coin-fill:before{content:"\ebdb"}.ri-copper-coin-line:before{content:"\ebdc"}.ri-copper-diamond-fill:before{content:"\ebdd"}.ri-copper-diamond-line:before{content:"\ebde"}.ri-copyleft-fill:before{content:"\ebdf"}.ri-copyleft-line:before{content:"\ebe0"}.ri-copyright-fill:before{content:"\ebe1"}.ri-copyright-line:before{content:"\ebe2"}.ri-coreos-fill:before{content:"\ebe3"}.ri-coreos-line:before{content:"\ebe4"}.ri-coupon-2-fill:before{content:"\ebe5"}.ri-coupon-2-line:before{content:"\ebe6"}.ri-coupon-3-fill:before{content:"\ebe7"}.ri-coupon-3-line:before{content:"\ebe8"}.ri-coupon-4-fill:before{content:"\ebe9"}.ri-coupon-4-line:before{content:"\ebea"}.ri-coupon-5-fill:before{content:"\ebeb"}.ri-coupon-5-line:before{content:"\ebec"}.ri-coupon-fill:before{content:"\ebed"}.ri-coupon-line:before{content:"\ebee"}.ri-cpu-fill:before{content:"\ebef"}.ri-cpu-line:before{content:"\ebf0"}.ri-creative-commons-by-fill:before{content:"\ebf1"}.ri-creative-commons-by-line:before{content:"\ebf2"}.ri-creative-commons-fill:before{content:"\ebf3"}.ri-creative-commons-line:before{content:"\ebf4"}.ri-creative-commons-nc-fill:before{content:"\ebf5"}.ri-creative-commons-nc-line:before{content:"\ebf6"}.ri-creative-commons-nd-fill:before{content:"\ebf7"}.ri-creative-commons-nd-line:before{content:"\ebf8"}.ri-creative-commons-sa-fill:before{content:"\ebf9"}.ri-creative-commons-sa-line:before{content:"\ebfa"}.ri-creative-commons-zero-fill:before{content:"\ebfb"}.ri-creative-commons-zero-line:before{content:"\ebfc"}.ri-criminal-fill:before{content:"\ebfd"}.ri-criminal-line:before{content:"\ebfe"}.ri-crop-2-fill:before{content:"\ebff"}.ri-crop-2-line:before{content:"\ec00"}.ri-crop-fill:before{content:"\ec01"}.ri-crop-line:before{content:"\ec02"}.ri-css3-fill:before{content:"\ec03"}.ri-css3-line:before{content:"\ec04"}.ri-cup-fill:before{content:"\ec05"}.ri-cup-line:before{content:"\ec06"}.ri-currency-fill:before{content:"\ec07"}.ri-currency-line:before{content:"\ec08"}.ri-cursor-fill:before{content:"\ec09"}.ri-cursor-line:before{content:"\ec0a"}.ri-customer-service-2-fill:before{content:"\ec0b"}.ri-customer-service-2-line:before{content:"\ec0c"}.ri-customer-service-fill:before{content:"\ec0d"}.ri-customer-service-line:before{content:"\ec0e"}.ri-dashboard-2-fill:before{content:"\ec0f"}.ri-dashboard-2-line:before{content:"\ec10"}.ri-dashboard-3-fill:before{content:"\ec11"}.ri-dashboard-3-line:before{content:"\ec12"}.ri-dashboard-fill:before{content:"\ec13"}.ri-dashboard-line:before{content:"\ec14"}.ri-database-2-fill:before{content:"\ec15"}.ri-database-2-line:before{content:"\ec16"}.ri-database-fill:before{content:"\ec17"}.ri-database-line:before{content:"\ec18"}.ri-delete-back-2-fill:before{content:"\ec19"}.ri-delete-back-2-line:before{content:"\ec1a"}.ri-delete-back-fill:before{content:"\ec1b"}.ri-delete-back-line:before{content:"\ec1c"}.ri-delete-bin-2-fill:before{content:"\ec1d"}.ri-delete-bin-2-line:before{content:"\ec1e"}.ri-delete-bin-3-fill:before{content:"\ec1f"}.ri-delete-bin-3-line:before{content:"\ec20"}.ri-delete-bin-4-fill:before{content:"\ec21"}.ri-delete-bin-4-line:before{content:"\ec22"}.ri-delete-bin-5-fill:before{content:"\ec23"}.ri-delete-bin-5-line:before{content:"\ec24"}.ri-delete-bin-6-fill:before{content:"\ec25"}.ri-delete-bin-6-line:before{content:"\ec26"}.ri-delete-bin-7-fill:before{content:"\ec27"}.ri-delete-bin-7-line:before{content:"\ec28"}.ri-delete-bin-fill:before{content:"\ec29"}.ri-delete-bin-line:before{content:"\ec2a"}.ri-delete-column:before{content:"\ec2b"}.ri-delete-row:before{content:"\ec2c"}.ri-device-fill:before{content:"\ec2d"}.ri-device-line:before{content:"\ec2e"}.ri-device-recover-fill:before{content:"\ec2f"}.ri-device-recover-line:before{content:"\ec30"}.ri-dingding-fill:before{content:"\ec31"}.ri-dingding-line:before{content:"\ec32"}.ri-direction-fill:before{content:"\ec33"}.ri-direction-line:before{content:"\ec34"}.ri-disc-fill:before{content:"\ec35"}.ri-disc-line:before{content:"\ec36"}.ri-discord-fill:before{content:"\ec37"}.ri-discord-line:before{content:"\ec38"}.ri-discuss-fill:before{content:"\ec39"}.ri-discuss-line:before{content:"\ec3a"}.ri-dislike-fill:before{content:"\ec3b"}.ri-dislike-line:before{content:"\ec3c"}.ri-disqus-fill:before{content:"\ec3d"}.ri-disqus-line:before{content:"\ec3e"}.ri-divide-fill:before{content:"\ec3f"}.ri-divide-line:before{content:"\ec40"}.ri-donut-chart-fill:before{content:"\ec41"}.ri-donut-chart-line:before{content:"\ec42"}.ri-door-closed-fill:before{content:"\ec43"}.ri-door-closed-line:before{content:"\ec44"}.ri-door-fill:before{content:"\ec45"}.ri-door-line:before{content:"\ec46"}.ri-door-lock-box-fill:before{content:"\ec47"}.ri-door-lock-box-line:before{content:"\ec48"}.ri-door-lock-fill:before{content:"\ec49"}.ri-door-lock-line:before{content:"\ec4a"}.ri-door-open-fill:before{content:"\ec4b"}.ri-door-open-line:before{content:"\ec4c"}.ri-dossier-fill:before{content:"\ec4d"}.ri-dossier-line:before{content:"\ec4e"}.ri-douban-fill:before{content:"\ec4f"}.ri-douban-line:before{content:"\ec50"}.ri-double-quotes-l:before{content:"\ec51"}.ri-double-quotes-r:before{content:"\ec52"}.ri-download-2-fill:before{content:"\ec53"}.ri-download-2-line:before{content:"\ec54"}.ri-download-cloud-2-fill:before{content:"\ec55"}.ri-download-cloud-2-line:before{content:"\ec56"}.ri-download-cloud-fill:before{content:"\ec57"}.ri-download-cloud-line:before{content:"\ec58"}.ri-download-fill:before{content:"\ec59"}.ri-download-line:before{content:"\ec5a"}.ri-draft-fill:before{content:"\ec5b"}.ri-draft-line:before{content:"\ec5c"}.ri-drag-drop-fill:before{content:"\ec5d"}.ri-drag-drop-line:before{content:"\ec5e"}.ri-drag-move-2-fill:before{content:"\ec5f"}.ri-drag-move-2-line:before{content:"\ec60"}.ri-drag-move-fill:before{content:"\ec61"}.ri-drag-move-line:before{content:"\ec62"}.ri-dribbble-fill:before{content:"\ec63"}.ri-dribbble-line:before{content:"\ec64"}.ri-drive-fill:before{content:"\ec65"}.ri-drive-line:before{content:"\ec66"}.ri-drizzle-fill:before{content:"\ec67"}.ri-drizzle-line:before{content:"\ec68"}.ri-drop-fill:before{content:"\ec69"}.ri-drop-line:before{content:"\ec6a"}.ri-dropbox-fill:before{content:"\ec6b"}.ri-dropbox-line:before{content:"\ec6c"}.ri-dual-sim-1-fill:before{content:"\ec6d"}.ri-dual-sim-1-line:before{content:"\ec6e"}.ri-dual-sim-2-fill:before{content:"\ec6f"}.ri-dual-sim-2-line:before{content:"\ec70"}.ri-dv-fill:before{content:"\ec71"}.ri-dv-line:before{content:"\ec72"}.ri-dvd-fill:before{content:"\ec73"}.ri-dvd-line:before{content:"\ec74"}.ri-e-bike-2-fill:before{content:"\ec75"}.ri-e-bike-2-line:before{content:"\ec76"}.ri-e-bike-fill:before{content:"\ec77"}.ri-e-bike-line:before{content:"\ec78"}.ri-earth-fill:before{content:"\ec79"}.ri-earth-line:before{content:"\ec7a"}.ri-earthquake-fill:before{content:"\ec7b"}.ri-earthquake-line:before{content:"\ec7c"}.ri-edge-fill:before{content:"\ec7d"}.ri-edge-line:before{content:"\ec7e"}.ri-edit-2-fill:before{content:"\ec7f"}.ri-edit-2-line:before{content:"\ec80"}.ri-edit-box-fill:before{content:"\ec81"}.ri-edit-box-line:before{content:"\ec82"}.ri-edit-circle-fill:before{content:"\ec83"}.ri-edit-circle-line:before{content:"\ec84"}.ri-edit-fill:before{content:"\ec85"}.ri-edit-line:before{content:"\ec86"}.ri-eject-fill:before{content:"\ec87"}.ri-eject-line:before{content:"\ec88"}.ri-emotion-2-fill:before{content:"\ec89"}.ri-emotion-2-line:before{content:"\ec8a"}.ri-emotion-fill:before{content:"\ec8b"}.ri-emotion-happy-fill:before{content:"\ec8c"}.ri-emotion-happy-line:before{content:"\ec8d"}.ri-emotion-laugh-fill:before{content:"\ec8e"}.ri-emotion-laugh-line:before{content:"\ec8f"}.ri-emotion-line:before{content:"\ec90"}.ri-emotion-normal-fill:before{content:"\ec91"}.ri-emotion-normal-line:before{content:"\ec92"}.ri-emotion-sad-fill:before{content:"\ec93"}.ri-emotion-sad-line:before{content:"\ec94"}.ri-emotion-unhappy-fill:before{content:"\ec95"}.ri-emotion-unhappy-line:before{content:"\ec96"}.ri-empathize-fill:before{content:"\ec97"}.ri-empathize-line:before{content:"\ec98"}.ri-emphasis-cn:before{content:"\ec99"}.ri-emphasis:before{content:"\ec9a"}.ri-english-input:before{content:"\ec9b"}.ri-equalizer-fill:before{content:"\ec9c"}.ri-equalizer-line:before{content:"\ec9d"}.ri-eraser-fill:before{content:"\ec9e"}.ri-eraser-line:before{content:"\ec9f"}.ri-error-warning-fill:before{content:"\eca0"}.ri-error-warning-line:before{content:"\eca1"}.ri-evernote-fill:before{content:"\eca2"}.ri-evernote-line:before{content:"\eca3"}.ri-exchange-box-fill:before{content:"\eca4"}.ri-exchange-box-line:before{content:"\eca5"}.ri-exchange-cny-fill:before{content:"\eca6"}.ri-exchange-cny-line:before{content:"\eca7"}.ri-exchange-dollar-fill:before{content:"\eca8"}.ri-exchange-dollar-line:before{content:"\eca9"}.ri-exchange-fill:before{content:"\ecaa"}.ri-exchange-funds-fill:before{content:"\ecab"}.ri-exchange-funds-line:before{content:"\ecac"}.ri-exchange-line:before{content:"\ecad"}.ri-external-link-fill:before{content:"\ecae"}.ri-external-link-line:before{content:"\ecaf"}.ri-eye-2-fill:before{content:"\ecb0"}.ri-eye-2-line:before{content:"\ecb1"}.ri-eye-close-fill:before{content:"\ecb2"}.ri-eye-close-line:before{content:"\ecb3"}.ri-eye-fill:before{content:"\ecb4"}.ri-eye-line:before{content:"\ecb5"}.ri-eye-off-fill:before{content:"\ecb6"}.ri-eye-off-line:before{content:"\ecb7"}.ri-facebook-box-fill:before{content:"\ecb8"}.ri-facebook-box-line:before{content:"\ecb9"}.ri-facebook-circle-fill:before{content:"\ecba"}.ri-facebook-circle-line:before{content:"\ecbb"}.ri-facebook-fill:before{content:"\ecbc"}.ri-facebook-line:before{content:"\ecbd"}.ri-fahrenheit-fill:before{content:"\ecbe"}.ri-fahrenheit-line:before{content:"\ecbf"}.ri-feedback-fill:before{content:"\ecc0"}.ri-feedback-line:before{content:"\ecc1"}.ri-file-2-fill:before{content:"\ecc2"}.ri-file-2-line:before{content:"\ecc3"}.ri-file-3-fill:before{content:"\ecc4"}.ri-file-3-line:before{content:"\ecc5"}.ri-file-4-fill:before{content:"\ecc6"}.ri-file-4-line:before{content:"\ecc7"}.ri-file-add-fill:before{content:"\ecc8"}.ri-file-add-line:before{content:"\ecc9"}.ri-file-chart-2-fill:before{content:"\ecca"}.ri-file-chart-2-line:before{content:"\eccb"}.ri-file-chart-fill:before{content:"\eccc"}.ri-file-chart-line:before{content:"\eccd"}.ri-file-cloud-fill:before{content:"\ecce"}.ri-file-cloud-line:before{content:"\eccf"}.ri-file-code-fill:before{content:"\ecd0"}.ri-file-code-line:before{content:"\ecd1"}.ri-file-copy-2-fill:before{content:"\ecd2"}.ri-file-copy-2-line:before{content:"\ecd3"}.ri-file-copy-fill:before{content:"\ecd4"}.ri-file-copy-line:before{content:"\ecd5"}.ri-file-damage-fill:before{content:"\ecd6"}.ri-file-damage-line:before{content:"\ecd7"}.ri-file-download-fill:before{content:"\ecd8"}.ri-file-download-line:before{content:"\ecd9"}.ri-file-edit-fill:before{content:"\ecda"}.ri-file-edit-line:before{content:"\ecdb"}.ri-file-excel-2-fill:before{content:"\ecdc"}.ri-file-excel-2-line:before{content:"\ecdd"}.ri-file-excel-fill:before{content:"\ecde"}.ri-file-excel-line:before{content:"\ecdf"}.ri-file-fill:before{content:"\ece0"}.ri-file-forbid-fill:before{content:"\ece1"}.ri-file-forbid-line:before{content:"\ece2"}.ri-file-gif-fill:before{content:"\ece3"}.ri-file-gif-line:before{content:"\ece4"}.ri-file-history-fill:before{content:"\ece5"}.ri-file-history-line:before{content:"\ece6"}.ri-file-hwp-fill:before{content:"\ece7"}.ri-file-hwp-line:before{content:"\ece8"}.ri-file-info-fill:before{content:"\ece9"}.ri-file-info-line:before{content:"\ecea"}.ri-file-line:before{content:"\eceb"}.ri-file-list-2-fill:before{content:"\ecec"}.ri-file-list-2-line:before{content:"\eced"}.ri-file-list-3-fill:before{content:"\ecee"}.ri-file-list-3-line:before{content:"\ecef"}.ri-file-list-fill:before{content:"\ecf0"}.ri-file-list-line:before{content:"\ecf1"}.ri-file-lock-fill:before{content:"\ecf2"}.ri-file-lock-line:before{content:"\ecf3"}.ri-file-mark-fill:before{content:"\ecf4"}.ri-file-mark-line:before{content:"\ecf5"}.ri-file-music-fill:before{content:"\ecf6"}.ri-file-music-line:before{content:"\ecf7"}.ri-file-paper-2-fill:before{content:"\ecf8"}.ri-file-paper-2-line:before{content:"\ecf9"}.ri-file-paper-fill:before{content:"\ecfa"}.ri-file-paper-line:before{content:"\ecfb"}.ri-file-pdf-fill:before{content:"\ecfc"}.ri-file-pdf-line:before{content:"\ecfd"}.ri-file-ppt-2-fill:before{content:"\ecfe"}.ri-file-ppt-2-line:before{content:"\ecff"}.ri-file-ppt-fill:before{content:"\ed00"}.ri-file-ppt-line:before{content:"\ed01"}.ri-file-reduce-fill:before{content:"\ed02"}.ri-file-reduce-line:before{content:"\ed03"}.ri-file-search-fill:before{content:"\ed04"}.ri-file-search-line:before{content:"\ed05"}.ri-file-settings-fill:before{content:"\ed06"}.ri-file-settings-line:before{content:"\ed07"}.ri-file-shield-2-fill:before{content:"\ed08"}.ri-file-shield-2-line:before{content:"\ed09"}.ri-file-shield-fill:before{content:"\ed0a"}.ri-file-shield-line:before{content:"\ed0b"}.ri-file-shred-fill:before{content:"\ed0c"}.ri-file-shred-line:before{content:"\ed0d"}.ri-file-text-fill:before{content:"\ed0e"}.ri-file-text-line:before{content:"\ed0f"}.ri-file-transfer-fill:before{content:"\ed10"}.ri-file-transfer-line:before{content:"\ed11"}.ri-file-unknow-fill:before{content:"\ed12"}.ri-file-unknow-line:before{content:"\ed13"}.ri-file-upload-fill:before{content:"\ed14"}.ri-file-upload-line:before{content:"\ed15"}.ri-file-user-fill:before{content:"\ed16"}.ri-file-user-line:before{content:"\ed17"}.ri-file-warning-fill:before{content:"\ed18"}.ri-file-warning-line:before{content:"\ed19"}.ri-file-word-2-fill:before{content:"\ed1a"}.ri-file-word-2-line:before{content:"\ed1b"}.ri-file-word-fill:before{content:"\ed1c"}.ri-file-word-line:before{content:"\ed1d"}.ri-file-zip-fill:before{content:"\ed1e"}.ri-file-zip-line:before{content:"\ed1f"}.ri-film-fill:before{content:"\ed20"}.ri-film-line:before{content:"\ed21"}.ri-filter-2-fill:before{content:"\ed22"}.ri-filter-2-line:before{content:"\ed23"}.ri-filter-3-fill:before{content:"\ed24"}.ri-filter-3-line:before{content:"\ed25"}.ri-filter-fill:before{content:"\ed26"}.ri-filter-line:before{content:"\ed27"}.ri-filter-off-fill:before{content:"\ed28"}.ri-filter-off-line:before{content:"\ed29"}.ri-find-replace-fill:before{content:"\ed2a"}.ri-find-replace-line:before{content:"\ed2b"}.ri-finder-fill:before{content:"\ed2c"}.ri-finder-line:before{content:"\ed2d"}.ri-fingerprint-2-fill:before{content:"\ed2e"}.ri-fingerprint-2-line:before{content:"\ed2f"}.ri-fingerprint-fill:before{content:"\ed30"}.ri-fingerprint-line:before{content:"\ed31"}.ri-fire-fill:before{content:"\ed32"}.ri-fire-line:before{content:"\ed33"}.ri-firefox-fill:before{content:"\ed34"}.ri-firefox-line:before{content:"\ed35"}.ri-first-aid-kit-fill:before{content:"\ed36"}.ri-first-aid-kit-line:before{content:"\ed37"}.ri-flag-2-fill:before{content:"\ed38"}.ri-flag-2-line:before{content:"\ed39"}.ri-flag-fill:before{content:"\ed3a"}.ri-flag-line:before{content:"\ed3b"}.ri-flashlight-fill:before{content:"\ed3c"}.ri-flashlight-line:before{content:"\ed3d"}.ri-flask-fill:before{content:"\ed3e"}.ri-flask-line:before{content:"\ed3f"}.ri-flight-land-fill:before{content:"\ed40"}.ri-flight-land-line:before{content:"\ed41"}.ri-flight-takeoff-fill:before{content:"\ed42"}.ri-flight-takeoff-line:before{content:"\ed43"}.ri-flood-fill:before{content:"\ed44"}.ri-flood-line:before{content:"\ed45"}.ri-flow-chart:before{content:"\ed46"}.ri-flutter-fill:before{content:"\ed47"}.ri-flutter-line:before{content:"\ed48"}.ri-focus-2-fill:before{content:"\ed49"}.ri-focus-2-line:before{content:"\ed4a"}.ri-focus-3-fill:before{content:"\ed4b"}.ri-focus-3-line:before{content:"\ed4c"}.ri-focus-fill:before{content:"\ed4d"}.ri-focus-line:before{content:"\ed4e"}.ri-foggy-fill:before{content:"\ed4f"}.ri-foggy-line:before{content:"\ed50"}.ri-folder-2-fill:before{content:"\ed51"}.ri-folder-2-line:before{content:"\ed52"}.ri-folder-3-fill:before{content:"\ed53"}.ri-folder-3-line:before{content:"\ed54"}.ri-folder-4-fill:before{content:"\ed55"}.ri-folder-4-line:before{content:"\ed56"}.ri-folder-5-fill:before{content:"\ed57"}.ri-folder-5-line:before{content:"\ed58"}.ri-folder-add-fill:before{content:"\ed59"}.ri-folder-add-line:before{content:"\ed5a"}.ri-folder-chart-2-fill:before{content:"\ed5b"}.ri-folder-chart-2-line:before{content:"\ed5c"}.ri-folder-chart-fill:before{content:"\ed5d"}.ri-folder-chart-line:before{content:"\ed5e"}.ri-folder-download-fill:before{content:"\ed5f"}.ri-folder-download-line:before{content:"\ed60"}.ri-folder-fill:before{content:"\ed61"}.ri-folder-forbid-fill:before{content:"\ed62"}.ri-folder-forbid-line:before{content:"\ed63"}.ri-folder-history-fill:before{content:"\ed64"}.ri-folder-history-line:before{content:"\ed65"}.ri-folder-info-fill:before{content:"\ed66"}.ri-folder-info-line:before{content:"\ed67"}.ri-folder-keyhole-fill:before{content:"\ed68"}.ri-folder-keyhole-line:before{content:"\ed69"}.ri-folder-line:before{content:"\ed6a"}.ri-folder-lock-fill:before{content:"\ed6b"}.ri-folder-lock-line:before{content:"\ed6c"}.ri-folder-music-fill:before{content:"\ed6d"}.ri-folder-music-line:before{content:"\ed6e"}.ri-folder-open-fill:before{content:"\ed6f"}.ri-folder-open-line:before{content:"\ed70"}.ri-folder-received-fill:before{content:"\ed71"}.ri-folder-received-line:before{content:"\ed72"}.ri-folder-reduce-fill:before{content:"\ed73"}.ri-folder-reduce-line:before{content:"\ed74"}.ri-folder-settings-fill:before{content:"\ed75"}.ri-folder-settings-line:before{content:"\ed76"}.ri-folder-shared-fill:before{content:"\ed77"}.ri-folder-shared-line:before{content:"\ed78"}.ri-folder-shield-2-fill:before{content:"\ed79"}.ri-folder-shield-2-line:before{content:"\ed7a"}.ri-folder-shield-fill:before{content:"\ed7b"}.ri-folder-shield-line:before{content:"\ed7c"}.ri-folder-transfer-fill:before{content:"\ed7d"}.ri-folder-transfer-line:before{content:"\ed7e"}.ri-folder-unknow-fill:before{content:"\ed7f"}.ri-folder-unknow-line:before{content:"\ed80"}.ri-folder-upload-fill:before{content:"\ed81"}.ri-folder-upload-line:before{content:"\ed82"}.ri-folder-user-fill:before{content:"\ed83"}.ri-folder-user-line:before{content:"\ed84"}.ri-folder-warning-fill:before{content:"\ed85"}.ri-folder-warning-line:before{content:"\ed86"}.ri-folder-zip-fill:before{content:"\ed87"}.ri-folder-zip-line:before{content:"\ed88"}.ri-folders-fill:before{content:"\ed89"}.ri-folders-line:before{content:"\ed8a"}.ri-font-color:before{content:"\ed8b"}.ri-font-size-2:before{content:"\ed8c"}.ri-font-size:before{content:"\ed8d"}.ri-football-fill:before{content:"\ed8e"}.ri-football-line:before{content:"\ed8f"}.ri-footprint-fill:before{content:"\ed90"}.ri-footprint-line:before{content:"\ed91"}.ri-forbid-2-fill:before{content:"\ed92"}.ri-forbid-2-line:before{content:"\ed93"}.ri-forbid-fill:before{content:"\ed94"}.ri-forbid-line:before{content:"\ed95"}.ri-format-clear:before{content:"\ed96"}.ri-fridge-fill:before{content:"\ed97"}.ri-fridge-line:before{content:"\ed98"}.ri-fullscreen-exit-fill:before{content:"\ed99"}.ri-fullscreen-exit-line:before{content:"\ed9a"}.ri-fullscreen-fill:before{content:"\ed9b"}.ri-fullscreen-line:before{content:"\ed9c"}.ri-function-fill:before{content:"\ed9d"}.ri-function-line:before{content:"\ed9e"}.ri-functions:before{content:"\ed9f"}.ri-funds-box-fill:before{content:"\eda0"}.ri-funds-box-line:before{content:"\eda1"}.ri-funds-fill:before{content:"\eda2"}.ri-funds-line:before{content:"\eda3"}.ri-gallery-fill:before{content:"\eda4"}.ri-gallery-line:before{content:"\eda5"}.ri-gallery-upload-fill:before{content:"\eda6"}.ri-gallery-upload-line:before{content:"\eda7"}.ri-game-fill:before{content:"\eda8"}.ri-game-line:before{content:"\eda9"}.ri-gamepad-fill:before{content:"\edaa"}.ri-gamepad-line:before{content:"\edab"}.ri-gas-station-fill:before{content:"\edac"}.ri-gas-station-line:before{content:"\edad"}.ri-gatsby-fill:before{content:"\edae"}.ri-gatsby-line:before{content:"\edaf"}.ri-genderless-fill:before{content:"\edb0"}.ri-genderless-line:before{content:"\edb1"}.ri-ghost-2-fill:before{content:"\edb2"}.ri-ghost-2-line:before{content:"\edb3"}.ri-ghost-fill:before{content:"\edb4"}.ri-ghost-line:before{content:"\edb5"}.ri-ghost-smile-fill:before{content:"\edb6"}.ri-ghost-smile-line:before{content:"\edb7"}.ri-gift-2-fill:before{content:"\edb8"}.ri-gift-2-line:before{content:"\edb9"}.ri-gift-fill:before{content:"\edba"}.ri-gift-line:before{content:"\edbb"}.ri-git-branch-fill:before{content:"\edbc"}.ri-git-branch-line:before{content:"\edbd"}.ri-git-commit-fill:before{content:"\edbe"}.ri-git-commit-line:before{content:"\edbf"}.ri-git-merge-fill:before{content:"\edc0"}.ri-git-merge-line:before{content:"\edc1"}.ri-git-pull-request-fill:before{content:"\edc2"}.ri-git-pull-request-line:before{content:"\edc3"}.ri-git-repository-commits-fill:before{content:"\edc4"}.ri-git-repository-commits-line:before{content:"\edc5"}.ri-git-repository-fill:before{content:"\edc6"}.ri-git-repository-line:before{content:"\edc7"}.ri-git-repository-private-fill:before{content:"\edc8"}.ri-git-repository-private-line:before{content:"\edc9"}.ri-github-fill:before{content:"\edca"}.ri-github-line:before{content:"\edcb"}.ri-gitlab-fill:before{content:"\edcc"}.ri-gitlab-line:before{content:"\edcd"}.ri-global-fill:before{content:"\edce"}.ri-global-line:before{content:"\edcf"}.ri-globe-fill:before{content:"\edd0"}.ri-globe-line:before{content:"\edd1"}.ri-goblet-fill:before{content:"\edd2"}.ri-goblet-line:before{content:"\edd3"}.ri-google-fill:before{content:"\edd4"}.ri-google-line:before{content:"\edd5"}.ri-google-play-fill:before{content:"\edd6"}.ri-google-play-line:before{content:"\edd7"}.ri-government-fill:before{content:"\edd8"}.ri-government-line:before{content:"\edd9"}.ri-gps-fill:before{content:"\edda"}.ri-gps-line:before{content:"\eddb"}.ri-gradienter-fill:before{content:"\eddc"}.ri-gradienter-line:before{content:"\eddd"}.ri-grid-fill:before{content:"\edde"}.ri-grid-line:before{content:"\eddf"}.ri-group-2-fill:before{content:"\ede0"}.ri-group-2-line:before{content:"\ede1"}.ri-group-fill:before{content:"\ede2"}.ri-group-line:before{content:"\ede3"}.ri-guide-fill:before{content:"\ede4"}.ri-guide-line:before{content:"\ede5"}.ri-h-1:before{content:"\ede6"}.ri-h-2:before{content:"\ede7"}.ri-h-3:before{content:"\ede8"}.ri-h-4:before{content:"\ede9"}.ri-h-5:before{content:"\edea"}.ri-h-6:before{content:"\edeb"}.ri-hail-fill:before{content:"\edec"}.ri-hail-line:before{content:"\eded"}.ri-hammer-fill:before{content:"\edee"}.ri-hammer-line:before{content:"\edef"}.ri-hand-coin-fill:before{content:"\edf0"}.ri-hand-coin-line:before{content:"\edf1"}.ri-hand-heart-fill:before{content:"\edf2"}.ri-hand-heart-line:before{content:"\edf3"}.ri-hand-sanitizer-fill:before{content:"\edf4"}.ri-hand-sanitizer-line:before{content:"\edf5"}.ri-handbag-fill:before{content:"\edf6"}.ri-handbag-line:before{content:"\edf7"}.ri-hard-drive-2-fill:before{content:"\edf8"}.ri-hard-drive-2-line:before{content:"\edf9"}.ri-hard-drive-fill:before{content:"\edfa"}.ri-hard-drive-line:before{content:"\edfb"}.ri-hashtag:before{content:"\edfc"}.ri-haze-2-fill:before{content:"\edfd"}.ri-haze-2-line:before{content:"\edfe"}.ri-haze-fill:before{content:"\edff"}.ri-haze-line:before{content:"\ee00"}.ri-hd-fill:before{content:"\ee01"}.ri-hd-line:before{content:"\ee02"}.ri-heading:before{content:"\ee03"}.ri-headphone-fill:before{content:"\ee04"}.ri-headphone-line:before{content:"\ee05"}.ri-health-book-fill:before{content:"\ee06"}.ri-health-book-line:before{content:"\ee07"}.ri-heart-2-fill:before{content:"\ee08"}.ri-heart-2-line:before{content:"\ee09"}.ri-heart-3-fill:before{content:"\ee0a"}.ri-heart-3-line:before{content:"\ee0b"}.ri-heart-add-fill:before{content:"\ee0c"}.ri-heart-add-line:before{content:"\ee0d"}.ri-heart-fill:before{content:"\ee0e"}.ri-heart-line:before{content:"\ee0f"}.ri-heart-pulse-fill:before{content:"\ee10"}.ri-heart-pulse-line:before{content:"\ee11"}.ri-hearts-fill:before{content:"\ee12"}.ri-hearts-line:before{content:"\ee13"}.ri-heavy-showers-fill:before{content:"\ee14"}.ri-heavy-showers-line:before{content:"\ee15"}.ri-history-fill:before{content:"\ee16"}.ri-history-line:before{content:"\ee17"}.ri-home-2-fill:before{content:"\ee18"}.ri-home-2-line:before{content:"\ee19"}.ri-home-3-fill:before{content:"\ee1a"}.ri-home-3-line:before{content:"\ee1b"}.ri-home-4-fill:before{content:"\ee1c"}.ri-home-4-line:before{content:"\ee1d"}.ri-home-5-fill:before{content:"\ee1e"}.ri-home-5-line:before{content:"\ee1f"}.ri-home-6-fill:before{content:"\ee20"}.ri-home-6-line:before{content:"\ee21"}.ri-home-7-fill:before{content:"\ee22"}.ri-home-7-line:before{content:"\ee23"}.ri-home-8-fill:before{content:"\ee24"}.ri-home-8-line:before{content:"\ee25"}.ri-home-fill:before{content:"\ee26"}.ri-home-gear-fill:before{content:"\ee27"}.ri-home-gear-line:before{content:"\ee28"}.ri-home-heart-fill:before{content:"\ee29"}.ri-home-heart-line:before{content:"\ee2a"}.ri-home-line:before{content:"\ee2b"}.ri-home-smile-2-fill:before{content:"\ee2c"}.ri-home-smile-2-line:before{content:"\ee2d"}.ri-home-smile-fill:before{content:"\ee2e"}.ri-home-smile-line:before{content:"\ee2f"}.ri-home-wifi-fill:before{content:"\ee30"}.ri-home-wifi-line:before{content:"\ee31"}.ri-honor-of-kings-fill:before{content:"\ee32"}.ri-honor-of-kings-line:before{content:"\ee33"}.ri-honour-fill:before{content:"\ee34"}.ri-honour-line:before{content:"\ee35"}.ri-hospital-fill:before{content:"\ee36"}.ri-hospital-line:before{content:"\ee37"}.ri-hotel-bed-fill:before{content:"\ee38"}.ri-hotel-bed-line:before{content:"\ee39"}.ri-hotel-fill:before{content:"\ee3a"}.ri-hotel-line:before{content:"\ee3b"}.ri-hotspot-fill:before{content:"\ee3c"}.ri-hotspot-line:before{content:"\ee3d"}.ri-hq-fill:before{content:"\ee3e"}.ri-hq-line:before{content:"\ee3f"}.ri-html5-fill:before{content:"\ee40"}.ri-html5-line:before{content:"\ee41"}.ri-ie-fill:before{content:"\ee42"}.ri-ie-line:before{content:"\ee43"}.ri-image-2-fill:before{content:"\ee44"}.ri-image-2-line:before{content:"\ee45"}.ri-image-add-fill:before{content:"\ee46"}.ri-image-add-line:before{content:"\ee47"}.ri-image-edit-fill:before{content:"\ee48"}.ri-image-edit-line:before{content:"\ee49"}.ri-image-fill:before{content:"\ee4a"}.ri-image-line:before{content:"\ee4b"}.ri-inbox-archive-fill:before{content:"\ee4c"}.ri-inbox-archive-line:before{content:"\ee4d"}.ri-inbox-fill:before{content:"\ee4e"}.ri-inbox-line:before{content:"\ee4f"}.ri-inbox-unarchive-fill:before{content:"\ee50"}.ri-inbox-unarchive-line:before{content:"\ee51"}.ri-increase-decrease-fill:before{content:"\ee52"}.ri-increase-decrease-line:before{content:"\ee53"}.ri-indent-decrease:before{content:"\ee54"}.ri-indent-increase:before{content:"\ee55"}.ri-indeterminate-circle-fill:before{content:"\ee56"}.ri-indeterminate-circle-line:before{content:"\ee57"}.ri-information-fill:before{content:"\ee58"}.ri-information-line:before{content:"\ee59"}.ri-infrared-thermometer-fill:before{content:"\ee5a"}.ri-infrared-thermometer-line:before{content:"\ee5b"}.ri-ink-bottle-fill:before{content:"\ee5c"}.ri-ink-bottle-line:before{content:"\ee5d"}.ri-input-cursor-move:before{content:"\ee5e"}.ri-input-method-fill:before{content:"\ee5f"}.ri-input-method-line:before{content:"\ee60"}.ri-insert-column-left:before{content:"\ee61"}.ri-insert-column-right:before{content:"\ee62"}.ri-insert-row-bottom:before{content:"\ee63"}.ri-insert-row-top:before{content:"\ee64"}.ri-instagram-fill:before{content:"\ee65"}.ri-instagram-line:before{content:"\ee66"}.ri-install-fill:before{content:"\ee67"}.ri-install-line:before{content:"\ee68"}.ri-invision-fill:before{content:"\ee69"}.ri-invision-line:before{content:"\ee6a"}.ri-italic:before{content:"\ee6b"}.ri-kakao-talk-fill:before{content:"\ee6c"}.ri-kakao-talk-line:before{content:"\ee6d"}.ri-key-2-fill:before{content:"\ee6e"}.ri-key-2-line:before{content:"\ee6f"}.ri-key-fill:before{content:"\ee70"}.ri-key-line:before{content:"\ee71"}.ri-keyboard-box-fill:before{content:"\ee72"}.ri-keyboard-box-line:before{content:"\ee73"}.ri-keyboard-fill:before{content:"\ee74"}.ri-keyboard-line:before{content:"\ee75"}.ri-keynote-fill:before{content:"\ee76"}.ri-keynote-line:before{content:"\ee77"}.ri-knife-blood-fill:before{content:"\ee78"}.ri-knife-blood-line:before{content:"\ee79"}.ri-knife-fill:before{content:"\ee7a"}.ri-knife-line:before{content:"\ee7b"}.ri-landscape-fill:before{content:"\ee7c"}.ri-landscape-line:before{content:"\ee7d"}.ri-layout-2-fill:before{content:"\ee7e"}.ri-layout-2-line:before{content:"\ee7f"}.ri-layout-3-fill:before{content:"\ee80"}.ri-layout-3-line:before{content:"\ee81"}.ri-layout-4-fill:before{content:"\ee82"}.ri-layout-4-line:before{content:"\ee83"}.ri-layout-5-fill:before{content:"\ee84"}.ri-layout-5-line:before{content:"\ee85"}.ri-layout-6-fill:before{content:"\ee86"}.ri-layout-6-line:before{content:"\ee87"}.ri-layout-bottom-2-fill:before{content:"\ee88"}.ri-layout-bottom-2-line:before{content:"\ee89"}.ri-layout-bottom-fill:before{content:"\ee8a"}.ri-layout-bottom-line:before{content:"\ee8b"}.ri-layout-column-fill:before{content:"\ee8c"}.ri-layout-column-line:before{content:"\ee8d"}.ri-layout-fill:before{content:"\ee8e"}.ri-layout-grid-fill:before{content:"\ee8f"}.ri-layout-grid-line:before{content:"\ee90"}.ri-layout-left-2-fill:before{content:"\ee91"}.ri-layout-left-2-line:before{content:"\ee92"}.ri-layout-left-fill:before{content:"\ee93"}.ri-layout-left-line:before{content:"\ee94"}.ri-layout-line:before{content:"\ee95"}.ri-layout-masonry-fill:before{content:"\ee96"}.ri-layout-masonry-line:before{content:"\ee97"}.ri-layout-right-2-fill:before{content:"\ee98"}.ri-layout-right-2-line:before{content:"\ee99"}.ri-layout-right-fill:before{content:"\ee9a"}.ri-layout-right-line:before{content:"\ee9b"}.ri-layout-row-fill:before{content:"\ee9c"}.ri-layout-row-line:before{content:"\ee9d"}.ri-layout-top-2-fill:before{content:"\ee9e"}.ri-layout-top-2-line:before{content:"\ee9f"}.ri-layout-top-fill:before{content:"\eea0"}.ri-layout-top-line:before{content:"\eea1"}.ri-leaf-fill:before{content:"\eea2"}.ri-leaf-line:before{content:"\eea3"}.ri-lifebuoy-fill:before{content:"\eea4"}.ri-lifebuoy-line:before{content:"\eea5"}.ri-lightbulb-fill:before{content:"\eea6"}.ri-lightbulb-flash-fill:before{content:"\eea7"}.ri-lightbulb-flash-line:before{content:"\eea8"}.ri-lightbulb-line:before{content:"\eea9"}.ri-line-chart-fill:before{content:"\eeaa"}.ri-line-chart-line:before{content:"\eeab"}.ri-line-fill:before{content:"\eeac"}.ri-line-height:before{content:"\eead"}.ri-line-line:before{content:"\eeae"}.ri-link-m:before{content:"\eeaf"}.ri-link-unlink-m:before{content:"\eeb0"}.ri-link-unlink:before{content:"\eeb1"}.ri-link:before{content:"\eeb2"}.ri-linkedin-box-fill:before{content:"\eeb3"}.ri-linkedin-box-line:before{content:"\eeb4"}.ri-linkedin-fill:before{content:"\eeb5"}.ri-linkedin-line:before{content:"\eeb6"}.ri-links-fill:before{content:"\eeb7"}.ri-links-line:before{content:"\eeb8"}.ri-list-check-2:before{content:"\eeb9"}.ri-list-check:before{content:"\eeba"}.ri-list-ordered:before{content:"\eebb"}.ri-list-settings-fill:before{content:"\eebc"}.ri-list-settings-line:before{content:"\eebd"}.ri-list-unordered:before{content:"\eebe"}.ri-live-fill:before{content:"\eebf"}.ri-live-line:before{content:"\eec0"}.ri-loader-2-fill:before{content:"\eec1"}.ri-loader-2-line:before{content:"\eec2"}.ri-loader-3-fill:before{content:"\eec3"}.ri-loader-3-line:before{content:"\eec4"}.ri-loader-4-fill:before{content:"\eec5"}.ri-loader-4-line:before{content:"\eec6"}.ri-loader-5-fill:before{content:"\eec7"}.ri-loader-5-line:before{content:"\eec8"}.ri-loader-fill:before{content:"\eec9"}.ri-loader-line:before{content:"\eeca"}.ri-lock-2-fill:before{content:"\eecb"}.ri-lock-2-line:before{content:"\eecc"}.ri-lock-fill:before{content:"\eecd"}.ri-lock-line:before{content:"\eece"}.ri-lock-password-fill:before{content:"\eecf"}.ri-lock-password-line:before{content:"\eed0"}.ri-lock-unlock-fill:before{content:"\eed1"}.ri-lock-unlock-line:before{content:"\eed2"}.ri-login-box-fill:before{content:"\eed3"}.ri-login-box-line:before{content:"\eed4"}.ri-login-circle-fill:before{content:"\eed5"}.ri-login-circle-line:before{content:"\eed6"}.ri-logout-box-fill:before{content:"\eed7"}.ri-logout-box-line:before{content:"\eed8"}.ri-logout-box-r-fill:before{content:"\eed9"}.ri-logout-box-r-line:before{content:"\eeda"}.ri-logout-circle-fill:before{content:"\eedb"}.ri-logout-circle-line:before{content:"\eedc"}.ri-logout-circle-r-fill:before{content:"\eedd"}.ri-logout-circle-r-line:before{content:"\eede"}.ri-luggage-cart-fill:before{content:"\eedf"}.ri-luggage-cart-line:before{content:"\eee0"}.ri-luggage-deposit-fill:before{content:"\eee1"}.ri-luggage-deposit-line:before{content:"\eee2"}.ri-lungs-fill:before{content:"\eee3"}.ri-lungs-line:before{content:"\eee4"}.ri-mac-fill:before{content:"\eee5"}.ri-mac-line:before{content:"\eee6"}.ri-macbook-fill:before{content:"\eee7"}.ri-macbook-line:before{content:"\eee8"}.ri-magic-fill:before{content:"\eee9"}.ri-magic-line:before{content:"\eeea"}.ri-mail-add-fill:before{content:"\eeeb"}.ri-mail-add-line:before{content:"\eeec"}.ri-mail-check-fill:before{content:"\eeed"}.ri-mail-check-line:before{content:"\eeee"}.ri-mail-close-fill:before{content:"\eeef"}.ri-mail-close-line:before{content:"\eef0"}.ri-mail-download-fill:before{content:"\eef1"}.ri-mail-download-line:before{content:"\eef2"}.ri-mail-fill:before{content:"\eef3"}.ri-mail-forbid-fill:before{content:"\eef4"}.ri-mail-forbid-line:before{content:"\eef5"}.ri-mail-line:before{content:"\eef6"}.ri-mail-lock-fill:before{content:"\eef7"}.ri-mail-lock-line:before{content:"\eef8"}.ri-mail-open-fill:before{content:"\eef9"}.ri-mail-open-line:before{content:"\eefa"}.ri-mail-send-fill:before{content:"\eefb"}.ri-mail-send-line:before{content:"\eefc"}.ri-mail-settings-fill:before{content:"\eefd"}.ri-mail-settings-line:before{content:"\eefe"}.ri-mail-star-fill:before{content:"\eeff"}.ri-mail-star-line:before{content:"\ef00"}.ri-mail-unread-fill:before{content:"\ef01"}.ri-mail-unread-line:before{content:"\ef02"}.ri-mail-volume-fill:before{content:"\ef03"}.ri-mail-volume-line:before{content:"\ef04"}.ri-map-2-fill:before{content:"\ef05"}.ri-map-2-line:before{content:"\ef06"}.ri-map-fill:before{content:"\ef07"}.ri-map-line:before{content:"\ef08"}.ri-map-pin-2-fill:before{content:"\ef09"}.ri-map-pin-2-line:before{content:"\ef0a"}.ri-map-pin-3-fill:before{content:"\ef0b"}.ri-map-pin-3-line:before{content:"\ef0c"}.ri-map-pin-4-fill:before{content:"\ef0d"}.ri-map-pin-4-line:before{content:"\ef0e"}.ri-map-pin-5-fill:before{content:"\ef0f"}.ri-map-pin-5-line:before{content:"\ef10"}.ri-map-pin-add-fill:before{content:"\ef11"}.ri-map-pin-add-line:before{content:"\ef12"}.ri-map-pin-fill:before{content:"\ef13"}.ri-map-pin-line:before{content:"\ef14"}.ri-map-pin-range-fill:before{content:"\ef15"}.ri-map-pin-range-line:before{content:"\ef16"}.ri-map-pin-time-fill:before{content:"\ef17"}.ri-map-pin-time-line:before{content:"\ef18"}.ri-map-pin-user-fill:before{content:"\ef19"}.ri-map-pin-user-line:before{content:"\ef1a"}.ri-mark-pen-fill:before{content:"\ef1b"}.ri-mark-pen-line:before{content:"\ef1c"}.ri-markdown-fill:before{content:"\ef1d"}.ri-markdown-line:before{content:"\ef1e"}.ri-markup-fill:before{content:"\ef1f"}.ri-markup-line:before{content:"\ef20"}.ri-mastercard-fill:before{content:"\ef21"}.ri-mastercard-line:before{content:"\ef22"}.ri-mastodon-fill:before{content:"\ef23"}.ri-mastodon-line:before{content:"\ef24"}.ri-medal-2-fill:before{content:"\ef25"}.ri-medal-2-line:before{content:"\ef26"}.ri-medal-fill:before{content:"\ef27"}.ri-medal-line:before{content:"\ef28"}.ri-medicine-bottle-fill:before{content:"\ef29"}.ri-medicine-bottle-line:before{content:"\ef2a"}.ri-medium-fill:before{content:"\ef2b"}.ri-medium-line:before{content:"\ef2c"}.ri-men-fill:before{content:"\ef2d"}.ri-men-line:before{content:"\ef2e"}.ri-mental-health-fill:before{content:"\ef2f"}.ri-mental-health-line:before{content:"\ef30"}.ri-menu-2-fill:before{content:"\ef31"}.ri-menu-2-line:before{content:"\ef32"}.ri-menu-3-fill:before{content:"\ef33"}.ri-menu-3-line:before{content:"\ef34"}.ri-menu-4-fill:before{content:"\ef35"}.ri-menu-4-line:before{content:"\ef36"}.ri-menu-5-fill:before{content:"\ef37"}.ri-menu-5-line:before{content:"\ef38"}.ri-menu-add-fill:before{content:"\ef39"}.ri-menu-add-line:before{content:"\ef3a"}.ri-menu-fill:before{content:"\ef3b"}.ri-menu-fold-fill:before{content:"\ef3c"}.ri-menu-fold-line:before{content:"\ef3d"}.ri-menu-line:before{content:"\ef3e"}.ri-menu-unfold-fill:before{content:"\ef3f"}.ri-menu-unfold-line:before{content:"\ef40"}.ri-merge-cells-horizontal:before{content:"\ef41"}.ri-merge-cells-vertical:before{content:"\ef42"}.ri-message-2-fill:before{content:"\ef43"}.ri-message-2-line:before{content:"\ef44"}.ri-message-3-fill:before{content:"\ef45"}.ri-message-3-line:before{content:"\ef46"}.ri-message-fill:before{content:"\ef47"}.ri-message-line:before{content:"\ef48"}.ri-messenger-fill:before{content:"\ef49"}.ri-messenger-line:before{content:"\ef4a"}.ri-meteor-fill:before{content:"\ef4b"}.ri-meteor-line:before{content:"\ef4c"}.ri-mic-2-fill:before{content:"\ef4d"}.ri-mic-2-line:before{content:"\ef4e"}.ri-mic-fill:before{content:"\ef4f"}.ri-mic-line:before{content:"\ef50"}.ri-mic-off-fill:before{content:"\ef51"}.ri-mic-off-line:before{content:"\ef52"}.ri-mickey-fill:before{content:"\ef53"}.ri-mickey-line:before{content:"\ef54"}.ri-microscope-fill:before{content:"\ef55"}.ri-microscope-line:before{content:"\ef56"}.ri-microsoft-fill:before{content:"\ef57"}.ri-microsoft-line:before{content:"\ef58"}.ri-mind-map:before{content:"\ef59"}.ri-mini-program-fill:before{content:"\ef5a"}.ri-mini-program-line:before{content:"\ef5b"}.ri-mist-fill:before{content:"\ef5c"}.ri-mist-line:before{content:"\ef5d"}.ri-money-cny-box-fill:before{content:"\ef5e"}.ri-money-cny-box-line:before{content:"\ef5f"}.ri-money-cny-circle-fill:before{content:"\ef60"}.ri-money-cny-circle-line:before{content:"\ef61"}.ri-money-dollar-box-fill:before{content:"\ef62"}.ri-money-dollar-box-line:before{content:"\ef63"}.ri-money-dollar-circle-fill:before{content:"\ef64"}.ri-money-dollar-circle-line:before{content:"\ef65"}.ri-money-euro-box-fill:before{content:"\ef66"}.ri-money-euro-box-line:before{content:"\ef67"}.ri-money-euro-circle-fill:before{content:"\ef68"}.ri-money-euro-circle-line:before{content:"\ef69"}.ri-money-pound-box-fill:before{content:"\ef6a"}.ri-money-pound-box-line:before{content:"\ef6b"}.ri-money-pound-circle-fill:before{content:"\ef6c"}.ri-money-pound-circle-line:before{content:"\ef6d"}.ri-moon-clear-fill:before{content:"\ef6e"}.ri-moon-clear-line:before{content:"\ef6f"}.ri-moon-cloudy-fill:before{content:"\ef70"}.ri-moon-cloudy-line:before{content:"\ef71"}.ri-moon-fill:before{content:"\ef72"}.ri-moon-foggy-fill:before{content:"\ef73"}.ri-moon-foggy-line:before{content:"\ef74"}.ri-moon-line:before{content:"\ef75"}.ri-more-2-fill:before{content:"\ef76"}.ri-more-2-line:before{content:"\ef77"}.ri-more-fill:before{content:"\ef78"}.ri-more-line:before{content:"\ef79"}.ri-motorbike-fill:before{content:"\ef7a"}.ri-motorbike-line:before{content:"\ef7b"}.ri-mouse-fill:before{content:"\ef7c"}.ri-mouse-line:before{content:"\ef7d"}.ri-movie-2-fill:before{content:"\ef7e"}.ri-movie-2-line:before{content:"\ef7f"}.ri-movie-fill:before{content:"\ef80"}.ri-movie-line:before{content:"\ef81"}.ri-music-2-fill:before{content:"\ef82"}.ri-music-2-line:before{content:"\ef83"}.ri-music-fill:before{content:"\ef84"}.ri-music-line:before{content:"\ef85"}.ri-mv-fill:before{content:"\ef86"}.ri-mv-line:before{content:"\ef87"}.ri-navigation-fill:before{content:"\ef88"}.ri-navigation-line:before{content:"\ef89"}.ri-netease-cloud-music-fill:before{content:"\ef8a"}.ri-netease-cloud-music-line:before{content:"\ef8b"}.ri-netflix-fill:before{content:"\ef8c"}.ri-netflix-line:before{content:"\ef8d"}.ri-newspaper-fill:before{content:"\ef8e"}.ri-newspaper-line:before{content:"\ef8f"}.ri-node-tree:before{content:"\ef90"}.ri-notification-2-fill:before{content:"\ef91"}.ri-notification-2-line:before{content:"\ef92"}.ri-notification-3-fill:before{content:"\ef93"}.ri-notification-3-line:before{content:"\ef94"}.ri-notification-4-fill:before{content:"\ef95"}.ri-notification-4-line:before{content:"\ef96"}.ri-notification-badge-fill:before{content:"\ef97"}.ri-notification-badge-line:before{content:"\ef98"}.ri-notification-fill:before{content:"\ef99"}.ri-notification-line:before{content:"\ef9a"}.ri-notification-off-fill:before{content:"\ef9b"}.ri-notification-off-line:before{content:"\ef9c"}.ri-npmjs-fill:before{content:"\ef9d"}.ri-npmjs-line:before{content:"\ef9e"}.ri-number-0:before{content:"\ef9f"}.ri-number-1:before{content:"\efa0"}.ri-number-2:before{content:"\efa1"}.ri-number-3:before{content:"\efa2"}.ri-number-4:before{content:"\efa3"}.ri-number-5:before{content:"\efa4"}.ri-number-6:before{content:"\efa5"}.ri-number-7:before{content:"\efa6"}.ri-number-8:before{content:"\efa7"}.ri-number-9:before{content:"\efa8"}.ri-numbers-fill:before{content:"\efa9"}.ri-numbers-line:before{content:"\efaa"}.ri-nurse-fill:before{content:"\efab"}.ri-nurse-line:before{content:"\efac"}.ri-oil-fill:before{content:"\efad"}.ri-oil-line:before{content:"\efae"}.ri-omega:before{content:"\efaf"}.ri-open-arm-fill:before{content:"\efb0"}.ri-open-arm-line:before{content:"\efb1"}.ri-open-source-fill:before{content:"\efb2"}.ri-open-source-line:before{content:"\efb3"}.ri-opera-fill:before{content:"\efb4"}.ri-opera-line:before{content:"\efb5"}.ri-order-play-fill:before{content:"\efb6"}.ri-order-play-line:before{content:"\efb7"}.ri-organization-chart:before{content:"\efb8"}.ri-outlet-2-fill:before{content:"\efb9"}.ri-outlet-2-line:before{content:"\efba"}.ri-outlet-fill:before{content:"\efbb"}.ri-outlet-line:before{content:"\efbc"}.ri-page-separator:before{content:"\efbd"}.ri-pages-fill:before{content:"\efbe"}.ri-pages-line:before{content:"\efbf"}.ri-paint-brush-fill:before{content:"\efc0"}.ri-paint-brush-line:before{content:"\efc1"}.ri-paint-fill:before{content:"\efc2"}.ri-paint-line:before{content:"\efc3"}.ri-palette-fill:before{content:"\efc4"}.ri-palette-line:before{content:"\efc5"}.ri-pantone-fill:before{content:"\efc6"}.ri-pantone-line:before{content:"\efc7"}.ri-paragraph:before{content:"\efc8"}.ri-parent-fill:before{content:"\efc9"}.ri-parent-line:before{content:"\efca"}.ri-parentheses-fill:before{content:"\efcb"}.ri-parentheses-line:before{content:"\efcc"}.ri-parking-box-fill:before{content:"\efcd"}.ri-parking-box-line:before{content:"\efce"}.ri-parking-fill:before{content:"\efcf"}.ri-parking-line:before{content:"\efd0"}.ri-passport-fill:before{content:"\efd1"}.ri-passport-line:before{content:"\efd2"}.ri-patreon-fill:before{content:"\efd3"}.ri-patreon-line:before{content:"\efd4"}.ri-pause-circle-fill:before{content:"\efd5"}.ri-pause-circle-line:before{content:"\efd6"}.ri-pause-fill:before{content:"\efd7"}.ri-pause-line:before{content:"\efd8"}.ri-pause-mini-fill:before{content:"\efd9"}.ri-pause-mini-line:before{content:"\efda"}.ri-paypal-fill:before{content:"\efdb"}.ri-paypal-line:before{content:"\efdc"}.ri-pen-nib-fill:before{content:"\efdd"}.ri-pen-nib-line:before{content:"\efde"}.ri-pencil-fill:before{content:"\efdf"}.ri-pencil-line:before{content:"\efe0"}.ri-pencil-ruler-2-fill:before{content:"\efe1"}.ri-pencil-ruler-2-line:before{content:"\efe2"}.ri-pencil-ruler-fill:before{content:"\efe3"}.ri-pencil-ruler-line:before{content:"\efe4"}.ri-percent-fill:before{content:"\efe5"}.ri-percent-line:before{content:"\efe6"}.ri-phone-camera-fill:before{content:"\efe7"}.ri-phone-camera-line:before{content:"\efe8"}.ri-phone-fill:before{content:"\efe9"}.ri-phone-find-fill:before{content:"\efea"}.ri-phone-find-line:before{content:"\efeb"}.ri-phone-line:before{content:"\efec"}.ri-phone-lock-fill:before{content:"\efed"}.ri-phone-lock-line:before{content:"\efee"}.ri-picture-in-picture-2-fill:before{content:"\efef"}.ri-picture-in-picture-2-line:before{content:"\eff0"}.ri-picture-in-picture-exit-fill:before{content:"\eff1"}.ri-picture-in-picture-exit-line:before{content:"\eff2"}.ri-picture-in-picture-fill:before{content:"\eff3"}.ri-picture-in-picture-line:before{content:"\eff4"}.ri-pie-chart-2-fill:before{content:"\eff5"}.ri-pie-chart-2-line:before{content:"\eff6"}.ri-pie-chart-box-fill:before{content:"\eff7"}.ri-pie-chart-box-line:before{content:"\eff8"}.ri-pie-chart-fill:before{content:"\eff9"}.ri-pie-chart-line:before{content:"\effa"}.ri-pin-distance-fill:before{content:"\effb"}.ri-pin-distance-line:before{content:"\effc"}.ri-ping-pong-fill:before{content:"\effd"}.ri-ping-pong-line:before{content:"\effe"}.ri-pinterest-fill:before{content:"\efff"}.ri-pinterest-line:before{content:"\f000"}.ri-pinyin-input:before{content:"\f001"}.ri-pixelfed-fill:before{content:"\f002"}.ri-pixelfed-line:before{content:"\f003"}.ri-plane-fill:before{content:"\f004"}.ri-plane-line:before{content:"\f005"}.ri-plant-fill:before{content:"\f006"}.ri-plant-line:before{content:"\f007"}.ri-play-circle-fill:before{content:"\f008"}.ri-play-circle-line:before{content:"\f009"}.ri-play-fill:before{content:"\f00a"}.ri-play-line:before{content:"\f00b"}.ri-play-list-2-fill:before{content:"\f00c"}.ri-play-list-2-line:before{content:"\f00d"}.ri-play-list-add-fill:before{content:"\f00e"}.ri-play-list-add-line:before{content:"\f00f"}.ri-play-list-fill:before{content:"\f010"}.ri-play-list-line:before{content:"\f011"}.ri-play-mini-fill:before{content:"\f012"}.ri-play-mini-line:before{content:"\f013"}.ri-playstation-fill:before{content:"\f014"}.ri-playstation-line:before{content:"\f015"}.ri-plug-2-fill:before{content:"\f016"}.ri-plug-2-line:before{content:"\f017"}.ri-plug-fill:before{content:"\f018"}.ri-plug-line:before{content:"\f019"}.ri-polaroid-2-fill:before{content:"\f01a"}.ri-polaroid-2-line:before{content:"\f01b"}.ri-polaroid-fill:before{content:"\f01c"}.ri-polaroid-line:before{content:"\f01d"}.ri-police-car-fill:before{content:"\f01e"}.ri-police-car-line:before{content:"\f01f"}.ri-price-tag-2-fill:before{content:"\f020"}.ri-price-tag-2-line:before{content:"\f021"}.ri-price-tag-3-fill:before{content:"\f022"}.ri-price-tag-3-line:before{content:"\f023"}.ri-price-tag-fill:before{content:"\f024"}.ri-price-tag-line:before{content:"\f025"}.ri-printer-cloud-fill:before{content:"\f026"}.ri-printer-cloud-line:before{content:"\f027"}.ri-printer-fill:before{content:"\f028"}.ri-printer-line:before{content:"\f029"}.ri-product-hunt-fill:before{content:"\f02a"}.ri-product-hunt-line:before{content:"\f02b"}.ri-profile-fill:before{content:"\f02c"}.ri-profile-line:before{content:"\f02d"}.ri-projector-2-fill:before{content:"\f02e"}.ri-projector-2-line:before{content:"\f02f"}.ri-projector-fill:before{content:"\f030"}.ri-projector-line:before{content:"\f031"}.ri-psychotherapy-fill:before{content:"\f032"}.ri-psychotherapy-line:before{content:"\f033"}.ri-pulse-fill:before{content:"\f034"}.ri-pulse-line:before{content:"\f035"}.ri-pushpin-2-fill:before{content:"\f036"}.ri-pushpin-2-line:before{content:"\f037"}.ri-pushpin-fill:before{content:"\f038"}.ri-pushpin-line:before{content:"\f039"}.ri-qq-fill:before{content:"\f03a"}.ri-qq-line:before{content:"\f03b"}.ri-qr-code-fill:before{content:"\f03c"}.ri-qr-code-line:before{content:"\f03d"}.ri-qr-scan-2-fill:before{content:"\f03e"}.ri-qr-scan-2-line:before{content:"\f03f"}.ri-qr-scan-fill:before{content:"\f040"}.ri-qr-scan-line:before{content:"\f041"}.ri-question-answer-fill:before{content:"\f042"}.ri-question-answer-line:before{content:"\f043"}.ri-question-fill:before{content:"\f044"}.ri-question-line:before{content:"\f045"}.ri-question-mark:before{content:"\f046"}.ri-questionnaire-fill:before{content:"\f047"}.ri-questionnaire-line:before{content:"\f048"}.ri-quill-pen-fill:before{content:"\f049"}.ri-quill-pen-line:before{content:"\f04a"}.ri-radar-fill:before{content:"\f04b"}.ri-radar-line:before{content:"\f04c"}.ri-radio-2-fill:before{content:"\f04d"}.ri-radio-2-line:before{content:"\f04e"}.ri-radio-button-fill:before{content:"\f04f"}.ri-radio-button-line:before{content:"\f050"}.ri-radio-fill:before{content:"\f051"}.ri-radio-line:before{content:"\f052"}.ri-rainbow-fill:before{content:"\f053"}.ri-rainbow-line:before{content:"\f054"}.ri-rainy-fill:before{content:"\f055"}.ri-rainy-line:before{content:"\f056"}.ri-reactjs-fill:before{content:"\f057"}.ri-reactjs-line:before{content:"\f058"}.ri-record-circle-fill:before{content:"\f059"}.ri-record-circle-line:before{content:"\f05a"}.ri-record-mail-fill:before{content:"\f05b"}.ri-record-mail-line:before{content:"\f05c"}.ri-recycle-fill:before{content:"\f05d"}.ri-recycle-line:before{content:"\f05e"}.ri-red-packet-fill:before{content:"\f05f"}.ri-red-packet-line:before{content:"\f060"}.ri-reddit-fill:before{content:"\f061"}.ri-reddit-line:before{content:"\f062"}.ri-refresh-fill:before{content:"\f063"}.ri-refresh-line:before{content:"\f064"}.ri-refund-2-fill:before{content:"\f065"}.ri-refund-2-line:before{content:"\f066"}.ri-refund-fill:before{content:"\f067"}.ri-refund-line:before{content:"\f068"}.ri-registered-fill:before{content:"\f069"}.ri-registered-line:before{content:"\f06a"}.ri-remixicon-fill:before{content:"\f06b"}.ri-remixicon-line:before{content:"\f06c"}.ri-remote-control-2-fill:before{content:"\f06d"}.ri-remote-control-2-line:before{content:"\f06e"}.ri-remote-control-fill:before{content:"\f06f"}.ri-remote-control-line:before{content:"\f070"}.ri-repeat-2-fill:before{content:"\f071"}.ri-repeat-2-line:before{content:"\f072"}.ri-repeat-fill:before{content:"\f073"}.ri-repeat-line:before{content:"\f074"}.ri-repeat-one-fill:before{content:"\f075"}.ri-repeat-one-line:before{content:"\f076"}.ri-reply-all-fill:before{content:"\f077"}.ri-reply-all-line:before{content:"\f078"}.ri-reply-fill:before{content:"\f079"}.ri-reply-line:before{content:"\f07a"}.ri-reserved-fill:before{content:"\f07b"}.ri-reserved-line:before{content:"\f07c"}.ri-rest-time-fill:before{content:"\f07d"}.ri-rest-time-line:before{content:"\f07e"}.ri-restart-fill:before{content:"\f07f"}.ri-restart-line:before{content:"\f080"}.ri-restaurant-2-fill:before{content:"\f081"}.ri-restaurant-2-line:before{content:"\f082"}.ri-restaurant-fill:before{content:"\f083"}.ri-restaurant-line:before{content:"\f084"}.ri-rewind-fill:before{content:"\f085"}.ri-rewind-line:before{content:"\f086"}.ri-rewind-mini-fill:before{content:"\f087"}.ri-rewind-mini-line:before{content:"\f088"}.ri-rhythm-fill:before{content:"\f089"}.ri-rhythm-line:before{content:"\f08a"}.ri-riding-fill:before{content:"\f08b"}.ri-riding-line:before{content:"\f08c"}.ri-road-map-fill:before{content:"\f08d"}.ri-road-map-line:before{content:"\f08e"}.ri-roadster-fill:before{content:"\f08f"}.ri-roadster-line:before{content:"\f090"}.ri-robot-fill:before{content:"\f091"}.ri-robot-line:before{content:"\f092"}.ri-rocket-2-fill:before{content:"\f093"}.ri-rocket-2-line:before{content:"\f094"}.ri-rocket-fill:before{content:"\f095"}.ri-rocket-line:before{content:"\f096"}.ri-rotate-lock-fill:before{content:"\f097"}.ri-rotate-lock-line:before{content:"\f098"}.ri-rounded-corner:before{content:"\f099"}.ri-route-fill:before{content:"\f09a"}.ri-route-line:before{content:"\f09b"}.ri-router-fill:before{content:"\f09c"}.ri-router-line:before{content:"\f09d"}.ri-rss-fill:before{content:"\f09e"}.ri-rss-line:before{content:"\f09f"}.ri-ruler-2-fill:before{content:"\f0a0"}.ri-ruler-2-line:before{content:"\f0a1"}.ri-ruler-fill:before{content:"\f0a2"}.ri-ruler-line:before{content:"\f0a3"}.ri-run-fill:before{content:"\f0a4"}.ri-run-line:before{content:"\f0a5"}.ri-safari-fill:before{content:"\f0a6"}.ri-safari-line:before{content:"\f0a7"}.ri-safe-2-fill:before{content:"\f0a8"}.ri-safe-2-line:before{content:"\f0a9"}.ri-safe-fill:before{content:"\f0aa"}.ri-safe-line:before{content:"\f0ab"}.ri-sailboat-fill:before{content:"\f0ac"}.ri-sailboat-line:before{content:"\f0ad"}.ri-save-2-fill:before{content:"\f0ae"}.ri-save-2-line:before{content:"\f0af"}.ri-save-3-fill:before{content:"\f0b0"}.ri-save-3-line:before{content:"\f0b1"}.ri-save-fill:before{content:"\f0b2"}.ri-save-line:before{content:"\f0b3"}.ri-scales-2-fill:before{content:"\f0b4"}.ri-scales-2-line:before{content:"\f0b5"}.ri-scales-3-fill:before{content:"\f0b6"}.ri-scales-3-line:before{content:"\f0b7"}.ri-scales-fill:before{content:"\f0b8"}.ri-scales-line:before{content:"\f0b9"}.ri-scan-2-fill:before{content:"\f0ba"}.ri-scan-2-line:before{content:"\f0bb"}.ri-scan-fill:before{content:"\f0bc"}.ri-scan-line:before{content:"\f0bd"}.ri-scissors-2-fill:before{content:"\f0be"}.ri-scissors-2-line:before{content:"\f0bf"}.ri-scissors-cut-fill:before{content:"\f0c0"}.ri-scissors-cut-line:before{content:"\f0c1"}.ri-scissors-fill:before{content:"\f0c2"}.ri-scissors-line:before{content:"\f0c3"}.ri-screenshot-2-fill:before{content:"\f0c4"}.ri-screenshot-2-line:before{content:"\f0c5"}.ri-screenshot-fill:before{content:"\f0c6"}.ri-screenshot-line:before{content:"\f0c7"}.ri-sd-card-fill:before{content:"\f0c8"}.ri-sd-card-line:before{content:"\f0c9"}.ri-sd-card-mini-fill:before{content:"\f0ca"}.ri-sd-card-mini-line:before{content:"\f0cb"}.ri-search-2-fill:before{content:"\f0cc"}.ri-search-2-line:before{content:"\f0cd"}.ri-search-eye-fill:before{content:"\f0ce"}.ri-search-eye-line:before{content:"\f0cf"}.ri-search-fill:before{content:"\f0d0"}.ri-search-line:before{content:"\f0d1"}.ri-secure-payment-fill:before{content:"\f0d2"}.ri-secure-payment-line:before{content:"\f0d3"}.ri-seedling-fill:before{content:"\f0d4"}.ri-seedling-line:before{content:"\f0d5"}.ri-send-backward:before{content:"\f0d6"}.ri-send-plane-2-fill:before{content:"\f0d7"}.ri-send-plane-2-line:before{content:"\f0d8"}.ri-send-plane-fill:before{content:"\f0d9"}.ri-send-plane-line:before{content:"\f0da"}.ri-send-to-back:before{content:"\f0db"}.ri-sensor-fill:before{content:"\f0dc"}.ri-sensor-line:before{content:"\f0dd"}.ri-separator:before{content:"\f0de"}.ri-server-fill:before{content:"\f0df"}.ri-server-line:before{content:"\f0e0"}.ri-service-fill:before{content:"\f0e1"}.ri-service-line:before{content:"\f0e2"}.ri-settings-2-fill:before{content:"\f0e3"}.ri-settings-2-line:before{content:"\f0e4"}.ri-settings-3-fill:before{content:"\f0e5"}.ri-settings-3-line:before{content:"\f0e6"}.ri-settings-4-fill:before{content:"\f0e7"}.ri-settings-4-line:before{content:"\f0e8"}.ri-settings-5-fill:before{content:"\f0e9"}.ri-settings-5-line:before{content:"\f0ea"}.ri-settings-6-fill:before{content:"\f0eb"}.ri-settings-6-line:before{content:"\f0ec"}.ri-settings-fill:before{content:"\f0ed"}.ri-settings-line:before{content:"\f0ee"}.ri-shape-2-fill:before{content:"\f0ef"}.ri-shape-2-line:before{content:"\f0f0"}.ri-shape-fill:before{content:"\f0f1"}.ri-shape-line:before{content:"\f0f2"}.ri-share-box-fill:before{content:"\f0f3"}.ri-share-box-line:before{content:"\f0f4"}.ri-share-circle-fill:before{content:"\f0f5"}.ri-share-circle-line:before{content:"\f0f6"}.ri-share-fill:before{content:"\f0f7"}.ri-share-forward-2-fill:before{content:"\f0f8"}.ri-share-forward-2-line:before{content:"\f0f9"}.ri-share-forward-box-fill:before{content:"\f0fa"}.ri-share-forward-box-line:before{content:"\f0fb"}.ri-share-forward-fill:before{content:"\f0fc"}.ri-share-forward-line:before{content:"\f0fd"}.ri-share-line:before{content:"\f0fe"}.ri-shield-check-fill:before{content:"\f0ff"}.ri-shield-check-line:before{content:"\f100"}.ri-shield-cross-fill:before{content:"\f101"}.ri-shield-cross-line:before{content:"\f102"}.ri-shield-fill:before{content:"\f103"}.ri-shield-flash-fill:before{content:"\f104"}.ri-shield-flash-line:before{content:"\f105"}.ri-shield-keyhole-fill:before{content:"\f106"}.ri-shield-keyhole-line:before{content:"\f107"}.ri-shield-line:before{content:"\f108"}.ri-shield-star-fill:before{content:"\f109"}.ri-shield-star-line:before{content:"\f10a"}.ri-shield-user-fill:before{content:"\f10b"}.ri-shield-user-line:before{content:"\f10c"}.ri-ship-2-fill:before{content:"\f10d"}.ri-ship-2-line:before{content:"\f10e"}.ri-ship-fill:before{content:"\f10f"}.ri-ship-line:before{content:"\f110"}.ri-shirt-fill:before{content:"\f111"}.ri-shirt-line:before{content:"\f112"}.ri-shopping-bag-2-fill:before{content:"\f113"}.ri-shopping-bag-2-line:before{content:"\f114"}.ri-shopping-bag-3-fill:before{content:"\f115"}.ri-shopping-bag-3-line:before{content:"\f116"}.ri-shopping-bag-fill:before{content:"\f117"}.ri-shopping-bag-line:before{content:"\f118"}.ri-shopping-basket-2-fill:before{content:"\f119"}.ri-shopping-basket-2-line:before{content:"\f11a"}.ri-shopping-basket-fill:before{content:"\f11b"}.ri-shopping-basket-line:before{content:"\f11c"}.ri-shopping-cart-2-fill:before{content:"\f11d"}.ri-shopping-cart-2-line:before{content:"\f11e"}.ri-shopping-cart-fill:before{content:"\f11f"}.ri-shopping-cart-line:before{content:"\f120"}.ri-showers-fill:before{content:"\f121"}.ri-showers-line:before{content:"\f122"}.ri-shuffle-fill:before{content:"\f123"}.ri-shuffle-line:before{content:"\f124"}.ri-shut-down-fill:before{content:"\f125"}.ri-shut-down-line:before{content:"\f126"}.ri-side-bar-fill:before{content:"\f127"}.ri-side-bar-line:before{content:"\f128"}.ri-signal-tower-fill:before{content:"\f129"}.ri-signal-tower-line:before{content:"\f12a"}.ri-signal-wifi-1-fill:before{content:"\f12b"}.ri-signal-wifi-1-line:before{content:"\f12c"}.ri-signal-wifi-2-fill:before{content:"\f12d"}.ri-signal-wifi-2-line:before{content:"\f12e"}.ri-signal-wifi-3-fill:before{content:"\f12f"}.ri-signal-wifi-3-line:before{content:"\f130"}.ri-signal-wifi-error-fill:before{content:"\f131"}.ri-signal-wifi-error-line:before{content:"\f132"}.ri-signal-wifi-fill:before{content:"\f133"}.ri-signal-wifi-line:before{content:"\f134"}.ri-signal-wifi-off-fill:before{content:"\f135"}.ri-signal-wifi-off-line:before{content:"\f136"}.ri-sim-card-2-fill:before{content:"\f137"}.ri-sim-card-2-line:before{content:"\f138"}.ri-sim-card-fill:before{content:"\f139"}.ri-sim-card-line:before{content:"\f13a"}.ri-single-quotes-l:before{content:"\f13b"}.ri-single-quotes-r:before{content:"\f13c"}.ri-sip-fill:before{content:"\f13d"}.ri-sip-line:before{content:"\f13e"}.ri-skip-back-fill:before{content:"\f13f"}.ri-skip-back-line:before{content:"\f140"}.ri-skip-back-mini-fill:before{content:"\f141"}.ri-skip-back-mini-line:before{content:"\f142"}.ri-skip-forward-fill:before{content:"\f143"}.ri-skip-forward-line:before{content:"\f144"}.ri-skip-forward-mini-fill:before{content:"\f145"}.ri-skip-forward-mini-line:before{content:"\f146"}.ri-skull-2-fill:before{content:"\f147"}.ri-skull-2-line:before{content:"\f148"}.ri-skull-fill:before{content:"\f149"}.ri-skull-line:before{content:"\f14a"}.ri-skype-fill:before{content:"\f14b"}.ri-skype-line:before{content:"\f14c"}.ri-slack-fill:before{content:"\f14d"}.ri-slack-line:before{content:"\f14e"}.ri-slice-fill:before{content:"\f14f"}.ri-slice-line:before{content:"\f150"}.ri-slideshow-2-fill:before{content:"\f151"}.ri-slideshow-2-line:before{content:"\f152"}.ri-slideshow-3-fill:before{content:"\f153"}.ri-slideshow-3-line:before{content:"\f154"}.ri-slideshow-4-fill:before{content:"\f155"}.ri-slideshow-4-line:before{content:"\f156"}.ri-slideshow-fill:before{content:"\f157"}.ri-slideshow-line:before{content:"\f158"}.ri-smartphone-fill:before{content:"\f159"}.ri-smartphone-line:before{content:"\f15a"}.ri-snapchat-fill:before{content:"\f15b"}.ri-snapchat-line:before{content:"\f15c"}.ri-snowy-fill:before{content:"\f15d"}.ri-snowy-line:before{content:"\f15e"}.ri-sort-asc:before{content:"\f15f"}.ri-sort-desc:before{content:"\f160"}.ri-sound-module-fill:before{content:"\f161"}.ri-sound-module-line:before{content:"\f162"}.ri-soundcloud-fill:before{content:"\f163"}.ri-soundcloud-line:before{content:"\f164"}.ri-space-ship-fill:before{content:"\f165"}.ri-space-ship-line:before{content:"\f166"}.ri-space:before{content:"\f167"}.ri-spam-2-fill:before{content:"\f168"}.ri-spam-2-line:before{content:"\f169"}.ri-spam-3-fill:before{content:"\f16a"}.ri-spam-3-line:before{content:"\f16b"}.ri-spam-fill:before{content:"\f16c"}.ri-spam-line:before{content:"\f16d"}.ri-speaker-2-fill:before{content:"\f16e"}.ri-speaker-2-line:before{content:"\f16f"}.ri-speaker-3-fill:before{content:"\f170"}.ri-speaker-3-line:before{content:"\f171"}.ri-speaker-fill:before{content:"\f172"}.ri-speaker-line:before{content:"\f173"}.ri-spectrum-fill:before{content:"\f174"}.ri-spectrum-line:before{content:"\f175"}.ri-speed-fill:before{content:"\f176"}.ri-speed-line:before{content:"\f177"}.ri-speed-mini-fill:before{content:"\f178"}.ri-speed-mini-line:before{content:"\f179"}.ri-split-cells-horizontal:before{content:"\f17a"}.ri-split-cells-vertical:before{content:"\f17b"}.ri-spotify-fill:before{content:"\f17c"}.ri-spotify-line:before{content:"\f17d"}.ri-spy-fill:before{content:"\f17e"}.ri-spy-line:before{content:"\f17f"}.ri-stack-fill:before{content:"\f180"}.ri-stack-line:before{content:"\f181"}.ri-stack-overflow-fill:before{content:"\f182"}.ri-stack-overflow-line:before{content:"\f183"}.ri-stackshare-fill:before{content:"\f184"}.ri-stackshare-line:before{content:"\f185"}.ri-star-fill:before{content:"\f186"}.ri-star-half-fill:before{content:"\f187"}.ri-star-half-line:before{content:"\f188"}.ri-star-half-s-fill:before{content:"\f189"}.ri-star-half-s-line:before{content:"\f18a"}.ri-star-line:before{content:"\f18b"}.ri-star-s-fill:before{content:"\f18c"}.ri-star-s-line:before{content:"\f18d"}.ri-star-smile-fill:before{content:"\f18e"}.ri-star-smile-line:before{content:"\f18f"}.ri-steam-fill:before{content:"\f190"}.ri-steam-line:before{content:"\f191"}.ri-steering-2-fill:before{content:"\f192"}.ri-steering-2-line:before{content:"\f193"}.ri-steering-fill:before{content:"\f194"}.ri-steering-line:before{content:"\f195"}.ri-stethoscope-fill:before{content:"\f196"}.ri-stethoscope-line:before{content:"\f197"}.ri-sticky-note-2-fill:before{content:"\f198"}.ri-sticky-note-2-line:before{content:"\f199"}.ri-sticky-note-fill:before{content:"\f19a"}.ri-sticky-note-line:before{content:"\f19b"}.ri-stock-fill:before{content:"\f19c"}.ri-stock-line:before{content:"\f19d"}.ri-stop-circle-fill:before{content:"\f19e"}.ri-stop-circle-line:before{content:"\f19f"}.ri-stop-fill:before{content:"\f1a0"}.ri-stop-line:before{content:"\f1a1"}.ri-stop-mini-fill:before{content:"\f1a2"}.ri-stop-mini-line:before{content:"\f1a3"}.ri-store-2-fill:before{content:"\f1a4"}.ri-store-2-line:before{content:"\f1a5"}.ri-store-3-fill:before{content:"\f1a6"}.ri-store-3-line:before{content:"\f1a7"}.ri-store-fill:before{content:"\f1a8"}.ri-store-line:before{content:"\f1a9"}.ri-strikethrough-2:before{content:"\f1aa"}.ri-strikethrough:before{content:"\f1ab"}.ri-subscript-2:before{content:"\f1ac"}.ri-subscript:before{content:"\f1ad"}.ri-subtract-fill:before{content:"\f1ae"}.ri-subtract-line:before{content:"\f1af"}.ri-subway-fill:before{content:"\f1b0"}.ri-subway-line:before{content:"\f1b1"}.ri-subway-wifi-fill:before{content:"\f1b2"}.ri-subway-wifi-line:before{content:"\f1b3"}.ri-suitcase-2-fill:before{content:"\f1b4"}.ri-suitcase-2-line:before{content:"\f1b5"}.ri-suitcase-3-fill:before{content:"\f1b6"}.ri-suitcase-3-line:before{content:"\f1b7"}.ri-suitcase-fill:before{content:"\f1b8"}.ri-suitcase-line:before{content:"\f1b9"}.ri-sun-cloudy-fill:before{content:"\f1ba"}.ri-sun-cloudy-line:before{content:"\f1bb"}.ri-sun-fill:before{content:"\f1bc"}.ri-sun-foggy-fill:before{content:"\f1bd"}.ri-sun-foggy-line:before{content:"\f1be"}.ri-sun-line:before{content:"\f1bf"}.ri-superscript-2:before{content:"\f1c0"}.ri-superscript:before{content:"\f1c1"}.ri-surgical-mask-fill:before{content:"\f1c2"}.ri-surgical-mask-line:before{content:"\f1c3"}.ri-surround-sound-fill:before{content:"\f1c4"}.ri-surround-sound-line:before{content:"\f1c5"}.ri-survey-fill:before{content:"\f1c6"}.ri-survey-line:before{content:"\f1c7"}.ri-swap-box-fill:before{content:"\f1c8"}.ri-swap-box-line:before{content:"\f1c9"}.ri-swap-fill:before{content:"\f1ca"}.ri-swap-line:before{content:"\f1cb"}.ri-switch-fill:before{content:"\f1cc"}.ri-switch-line:before{content:"\f1cd"}.ri-sword-fill:before{content:"\f1ce"}.ri-sword-line:before{content:"\f1cf"}.ri-syringe-fill:before{content:"\f1d0"}.ri-syringe-line:before{content:"\f1d1"}.ri-t-box-fill:before{content:"\f1d2"}.ri-t-box-line:before{content:"\f1d3"}.ri-t-shirt-2-fill:before{content:"\f1d4"}.ri-t-shirt-2-line:before{content:"\f1d5"}.ri-t-shirt-air-fill:before{content:"\f1d6"}.ri-t-shirt-air-line:before{content:"\f1d7"}.ri-t-shirt-fill:before{content:"\f1d8"}.ri-t-shirt-line:before{content:"\f1d9"}.ri-table-2:before{content:"\f1da"}.ri-table-alt-fill:before{content:"\f1db"}.ri-table-alt-line:before{content:"\f1dc"}.ri-table-fill:before{content:"\f1dd"}.ri-table-line:before{content:"\f1de"}.ri-tablet-fill:before{content:"\f1df"}.ri-tablet-line:before{content:"\f1e0"}.ri-takeaway-fill:before{content:"\f1e1"}.ri-takeaway-line:before{content:"\f1e2"}.ri-taobao-fill:before{content:"\f1e3"}.ri-taobao-line:before{content:"\f1e4"}.ri-tape-fill:before{content:"\f1e5"}.ri-tape-line:before{content:"\f1e6"}.ri-task-fill:before{content:"\f1e7"}.ri-task-line:before{content:"\f1e8"}.ri-taxi-fill:before{content:"\f1e9"}.ri-taxi-line:before{content:"\f1ea"}.ri-taxi-wifi-fill:before{content:"\f1eb"}.ri-taxi-wifi-line:before{content:"\f1ec"}.ri-team-fill:before{content:"\f1ed"}.ri-team-line:before{content:"\f1ee"}.ri-telegram-fill:before{content:"\f1ef"}.ri-telegram-line:before{content:"\f1f0"}.ri-temp-cold-fill:before{content:"\f1f1"}.ri-temp-cold-line:before{content:"\f1f2"}.ri-temp-hot-fill:before{content:"\f1f3"}.ri-temp-hot-line:before{content:"\f1f4"}.ri-terminal-box-fill:before{content:"\f1f5"}.ri-terminal-box-line:before{content:"\f1f6"}.ri-terminal-fill:before{content:"\f1f7"}.ri-terminal-line:before{content:"\f1f8"}.ri-terminal-window-fill:before{content:"\f1f9"}.ri-terminal-window-line:before{content:"\f1fa"}.ri-test-tube-fill:before{content:"\f1fb"}.ri-test-tube-line:before{content:"\f1fc"}.ri-text-direction-l:before{content:"\f1fd"}.ri-text-direction-r:before{content:"\f1fe"}.ri-text-spacing:before{content:"\f1ff"}.ri-text-wrap:before{content:"\f200"}.ri-text:before{content:"\f201"}.ri-thermometer-fill:before{content:"\f202"}.ri-thermometer-line:before{content:"\f203"}.ri-thumb-down-fill:before{content:"\f204"}.ri-thumb-down-line:before{content:"\f205"}.ri-thumb-up-fill:before{content:"\f206"}.ri-thumb-up-line:before{content:"\f207"}.ri-thunderstorms-fill:before{content:"\f208"}.ri-thunderstorms-line:before{content:"\f209"}.ri-ticket-2-fill:before{content:"\f20a"}.ri-ticket-2-line:before{content:"\f20b"}.ri-ticket-fill:before{content:"\f20c"}.ri-ticket-line:before{content:"\f20d"}.ri-time-fill:before{content:"\f20e"}.ri-time-line:before{content:"\f20f"}.ri-timer-2-fill:before{content:"\f210"}.ri-timer-2-line:before{content:"\f211"}.ri-timer-fill:before{content:"\f212"}.ri-timer-flash-fill:before{content:"\f213"}.ri-timer-flash-line:before{content:"\f214"}.ri-timer-line:before{content:"\f215"}.ri-todo-fill:before{content:"\f216"}.ri-todo-line:before{content:"\f217"}.ri-toggle-fill:before{content:"\f218"}.ri-toggle-line:before{content:"\f219"}.ri-tools-fill:before{content:"\f21a"}.ri-tools-line:before{content:"\f21b"}.ri-tornado-fill:before{content:"\f21c"}.ri-tornado-line:before{content:"\f21d"}.ri-trademark-fill:before{content:"\f21e"}.ri-trademark-line:before{content:"\f21f"}.ri-traffic-light-fill:before{content:"\f220"}.ri-traffic-light-line:before{content:"\f221"}.ri-train-fill:before{content:"\f222"}.ri-train-line:before{content:"\f223"}.ri-train-wifi-fill:before{content:"\f224"}.ri-train-wifi-line:before{content:"\f225"}.ri-translate-2:before{content:"\f226"}.ri-translate:before{content:"\f227"}.ri-travesti-fill:before{content:"\f228"}.ri-travesti-line:before{content:"\f229"}.ri-treasure-map-fill:before{content:"\f22a"}.ri-treasure-map-line:before{content:"\f22b"}.ri-trello-fill:before{content:"\f22c"}.ri-trello-line:before{content:"\f22d"}.ri-trophy-fill:before{content:"\f22e"}.ri-trophy-line:before{content:"\f22f"}.ri-truck-fill:before{content:"\f230"}.ri-truck-line:before{content:"\f231"}.ri-tumblr-fill:before{content:"\f232"}.ri-tumblr-line:before{content:"\f233"}.ri-tv-2-fill:before{content:"\f234"}.ri-tv-2-line:before{content:"\f235"}.ri-tv-fill:before{content:"\f236"}.ri-tv-line:before{content:"\f237"}.ri-twitch-fill:before{content:"\f238"}.ri-twitch-line:before{content:"\f239"}.ri-twitter-fill:before{content:"\f23a"}.ri-twitter-line:before{content:"\f23b"}.ri-typhoon-fill:before{content:"\f23c"}.ri-typhoon-line:before{content:"\f23d"}.ri-u-disk-fill:before{content:"\f23e"}.ri-u-disk-line:before{content:"\f23f"}.ri-ubuntu-fill:before{content:"\f240"}.ri-ubuntu-line:before{content:"\f241"}.ri-umbrella-fill:before{content:"\f242"}.ri-umbrella-line:before{content:"\f243"}.ri-underline:before{content:"\f244"}.ri-uninstall-fill:before{content:"\f245"}.ri-uninstall-line:before{content:"\f246"}.ri-unsplash-fill:before{content:"\f247"}.ri-unsplash-line:before{content:"\f248"}.ri-upload-2-fill:before{content:"\f249"}.ri-upload-2-line:before{content:"\f24a"}.ri-upload-cloud-2-fill:before{content:"\f24b"}.ri-upload-cloud-2-line:before{content:"\f24c"}.ri-upload-cloud-fill:before{content:"\f24d"}.ri-upload-cloud-line:before{content:"\f24e"}.ri-upload-fill:before{content:"\f24f"}.ri-upload-line:before{content:"\f250"}.ri-usb-fill:before{content:"\f251"}.ri-usb-line:before{content:"\f252"}.ri-user-2-fill:before{content:"\f253"}.ri-user-2-line:before{content:"\f254"}.ri-user-3-fill:before{content:"\f255"}.ri-user-3-line:before{content:"\f256"}.ri-user-4-fill:before{content:"\f257"}.ri-user-4-line:before{content:"\f258"}.ri-user-5-fill:before{content:"\f259"}.ri-user-5-line:before{content:"\f25a"}.ri-user-6-fill:before{content:"\f25b"}.ri-user-6-line:before{content:"\f25c"}.ri-user-add-fill:before{content:"\f25d"}.ri-user-add-line:before{content:"\f25e"}.ri-user-fill:before{content:"\f25f"}.ri-user-follow-fill:before{content:"\f260"}.ri-user-follow-line:before{content:"\f261"}.ri-user-heart-fill:before{content:"\f262"}.ri-user-heart-line:before{content:"\f263"}.ri-user-line:before{content:"\f264"}.ri-user-location-fill:before{content:"\f265"}.ri-user-location-line:before{content:"\f266"}.ri-user-received-2-fill:before{content:"\f267"}.ri-user-received-2-line:before{content:"\f268"}.ri-user-received-fill:before{content:"\f269"}.ri-user-received-line:before{content:"\f26a"}.ri-user-search-fill:before{content:"\f26b"}.ri-user-search-line:before{content:"\f26c"}.ri-user-settings-fill:before{content:"\f26d"}.ri-user-settings-line:before{content:"\f26e"}.ri-user-shared-2-fill:before{content:"\f26f"}.ri-user-shared-2-line:before{content:"\f270"}.ri-user-shared-fill:before{content:"\f271"}.ri-user-shared-line:before{content:"\f272"}.ri-user-smile-fill:before{content:"\f273"}.ri-user-smile-line:before{content:"\f274"}.ri-user-star-fill:before{content:"\f275"}.ri-user-star-line:before{content:"\f276"}.ri-user-unfollow-fill:before{content:"\f277"}.ri-user-unfollow-line:before{content:"\f278"}.ri-user-voice-fill:before{content:"\f279"}.ri-user-voice-line:before{content:"\f27a"}.ri-video-add-fill:before{content:"\f27b"}.ri-video-add-line:before{content:"\f27c"}.ri-video-chat-fill:before{content:"\f27d"}.ri-video-chat-line:before{content:"\f27e"}.ri-video-download-fill:before{content:"\f27f"}.ri-video-download-line:before{content:"\f280"}.ri-video-fill:before{content:"\f281"}.ri-video-line:before{content:"\f282"}.ri-video-upload-fill:before{content:"\f283"}.ri-video-upload-line:before{content:"\f284"}.ri-vidicon-2-fill:before{content:"\f285"}.ri-vidicon-2-line:before{content:"\f286"}.ri-vidicon-fill:before{content:"\f287"}.ri-vidicon-line:before{content:"\f288"}.ri-vimeo-fill:before{content:"\f289"}.ri-vimeo-line:before{content:"\f28a"}.ri-vip-crown-2-fill:before{content:"\f28b"}.ri-vip-crown-2-line:before{content:"\f28c"}.ri-vip-crown-fill:before{content:"\f28d"}.ri-vip-crown-line:before{content:"\f28e"}.ri-vip-diamond-fill:before{content:"\f28f"}.ri-vip-diamond-line:before{content:"\f290"}.ri-vip-fill:before{content:"\f291"}.ri-vip-line:before{content:"\f292"}.ri-virus-fill:before{content:"\f293"}.ri-virus-line:before{content:"\f294"}.ri-visa-fill:before{content:"\f295"}.ri-visa-line:before{content:"\f296"}.ri-voice-recognition-fill:before{content:"\f297"}.ri-voice-recognition-line:before{content:"\f298"}.ri-voiceprint-fill:before{content:"\f299"}.ri-voiceprint-line:before{content:"\f29a"}.ri-volume-down-fill:before{content:"\f29b"}.ri-volume-down-line:before{content:"\f29c"}.ri-volume-mute-fill:before{content:"\f29d"}.ri-volume-mute-line:before{content:"\f29e"}.ri-volume-off-vibrate-fill:before{content:"\f29f"}.ri-volume-off-vibrate-line:before{content:"\f2a0"}.ri-volume-up-fill:before{content:"\f2a1"}.ri-volume-up-line:before{content:"\f2a2"}.ri-volume-vibrate-fill:before{content:"\f2a3"}.ri-volume-vibrate-line:before{content:"\f2a4"}.ri-vuejs-fill:before{content:"\f2a5"}.ri-vuejs-line:before{content:"\f2a6"}.ri-walk-fill:before{content:"\f2a7"}.ri-walk-line:before{content:"\f2a8"}.ri-wallet-2-fill:before{content:"\f2a9"}.ri-wallet-2-line:before{content:"\f2aa"}.ri-wallet-3-fill:before{content:"\f2ab"}.ri-wallet-3-line:before{content:"\f2ac"}.ri-wallet-fill:before{content:"\f2ad"}.ri-wallet-line:before{content:"\f2ae"}.ri-water-flash-fill:before{content:"\f2af"}.ri-water-flash-line:before{content:"\f2b0"}.ri-webcam-fill:before{content:"\f2b1"}.ri-webcam-line:before{content:"\f2b2"}.ri-wechat-2-fill:before{content:"\f2b3"}.ri-wechat-2-line:before{content:"\f2b4"}.ri-wechat-fill:before{content:"\f2b5"}.ri-wechat-line:before{content:"\f2b6"}.ri-wechat-pay-fill:before{content:"\f2b7"}.ri-wechat-pay-line:before{content:"\f2b8"}.ri-weibo-fill:before{content:"\f2b9"}.ri-weibo-line:before{content:"\f2ba"}.ri-whatsapp-fill:before{content:"\f2bb"}.ri-whatsapp-line:before{content:"\f2bc"}.ri-wheelchair-fill:before{content:"\f2bd"}.ri-wheelchair-line:before{content:"\f2be"}.ri-wifi-fill:before{content:"\f2bf"}.ri-wifi-line:before{content:"\f2c0"}.ri-wifi-off-fill:before{content:"\f2c1"}.ri-wifi-off-line:before{content:"\f2c2"}.ri-window-2-fill:before{content:"\f2c3"}.ri-window-2-line:before{content:"\f2c4"}.ri-window-fill:before{content:"\f2c5"}.ri-window-line:before{content:"\f2c6"}.ri-windows-fill:before{content:"\f2c7"}.ri-windows-line:before{content:"\f2c8"}.ri-windy-fill:before{content:"\f2c9"}.ri-windy-line:before{content:"\f2ca"}.ri-wireless-charging-fill:before{content:"\f2cb"}.ri-wireless-charging-line:before{content:"\f2cc"}.ri-women-fill:before{content:"\f2cd"}.ri-women-line:before{content:"\f2ce"}.ri-wubi-input:before{content:"\f2cf"}.ri-xbox-fill:before{content:"\f2d0"}.ri-xbox-line:before{content:"\f2d1"}.ri-xing-fill:before{content:"\f2d2"}.ri-xing-line:before{content:"\f2d3"}.ri-youtube-fill:before{content:"\f2d4"}.ri-youtube-line:before{content:"\f2d5"}.ri-zcool-fill:before{content:"\f2d6"}.ri-zcool-line:before{content:"\f2d7"}.ri-zhihu-fill:before{content:"\f2d8"}.ri-zhihu-line:before{content:"\f2d9"}.ri-zoom-in-fill:before{content:"\f2da"}.ri-zoom-in-line:before{content:"\f2db"}.ri-zoom-out-fill:before{content:"\f2dc"}.ri-zoom-out-line:before{content:"\f2dd"}.ri-zzz-fill:before{content:"\f2de"}.ri-zzz-line:before{content:"\f2df"}.ri-arrow-down-double-fill:before{content:"\f2e0"}.ri-arrow-down-double-line:before{content:"\f2e1"}.ri-arrow-left-double-fill:before{content:"\f2e2"}.ri-arrow-left-double-line:before{content:"\f2e3"}.ri-arrow-right-double-fill:before{content:"\f2e4"}.ri-arrow-right-double-line:before{content:"\f2e5"}.ri-arrow-turn-back-fill:before{content:"\f2e6"}.ri-arrow-turn-back-line:before{content:"\f2e7"}.ri-arrow-turn-forward-fill:before{content:"\f2e8"}.ri-arrow-turn-forward-line:before{content:"\f2e9"}.ri-arrow-up-double-fill:before{content:"\f2ea"}.ri-arrow-up-double-line:before{content:"\f2eb"}.ri-bard-fill:before{content:"\f2ec"}.ri-bard-line:before{content:"\f2ed"}.ri-bootstrap-fill:before{content:"\f2ee"}.ri-bootstrap-line:before{content:"\f2ef"}.ri-box-1-fill:before{content:"\f2f0"}.ri-box-1-line:before{content:"\f2f1"}.ri-box-2-fill:before{content:"\f2f2"}.ri-box-2-line:before{content:"\f2f3"}.ri-box-3-fill:before{content:"\f2f4"}.ri-box-3-line:before{content:"\f2f5"}.ri-brain-fill:before{content:"\f2f6"}.ri-brain-line:before{content:"\f2f7"}.ri-candle-fill:before{content:"\f2f8"}.ri-candle-line:before{content:"\f2f9"}.ri-cash-fill:before{content:"\f2fa"}.ri-cash-line:before{content:"\f2fb"}.ri-contract-left-fill:before{content:"\f2fc"}.ri-contract-left-line:before{content:"\f2fd"}.ri-contract-left-right-fill:before{content:"\f2fe"}.ri-contract-left-right-line:before{content:"\f2ff"}.ri-contract-right-fill:before{content:"\f300"}.ri-contract-right-line:before{content:"\f301"}.ri-contract-up-down-fill:before{content:"\f302"}.ri-contract-up-down-line:before{content:"\f303"}.ri-copilot-fill:before{content:"\f304"}.ri-copilot-line:before{content:"\f305"}.ri-corner-down-left-fill:before{content:"\f306"}.ri-corner-down-left-line:before{content:"\f307"}.ri-corner-down-right-fill:before{content:"\f308"}.ri-corner-down-right-line:before{content:"\f309"}.ri-corner-left-down-fill:before{content:"\f30a"}.ri-corner-left-down-line:before{content:"\f30b"}.ri-corner-left-up-fill:before{content:"\f30c"}.ri-corner-left-up-line:before{content:"\f30d"}.ri-corner-right-down-fill:before{content:"\f30e"}.ri-corner-right-down-line:before{content:"\f30f"}.ri-corner-right-up-fill:before{content:"\f310"}.ri-corner-right-up-line:before{content:"\f311"}.ri-corner-up-left-double-fill:before{content:"\f312"}.ri-corner-up-left-double-line:before{content:"\f313"}.ri-corner-up-left-fill:before{content:"\f314"}.ri-corner-up-left-line:before{content:"\f315"}.ri-corner-up-right-double-fill:before{content:"\f316"}.ri-corner-up-right-double-line:before{content:"\f317"}.ri-corner-up-right-fill:before{content:"\f318"}.ri-corner-up-right-line:before{content:"\f319"}.ri-cross-fill:before{content:"\f31a"}.ri-cross-line:before{content:"\f31b"}.ri-edge-new-fill:before{content:"\f31c"}.ri-edge-new-line:before{content:"\f31d"}.ri-equal-fill:before{content:"\f31e"}.ri-equal-line:before{content:"\f31f"}.ri-expand-left-fill:before{content:"\f320"}.ri-expand-left-line:before{content:"\f321"}.ri-expand-left-right-fill:before{content:"\f322"}.ri-expand-left-right-line:before{content:"\f323"}.ri-expand-right-fill:before{content:"\f324"}.ri-expand-right-line:before{content:"\f325"}.ri-expand-up-down-fill:before{content:"\f326"}.ri-expand-up-down-line:before{content:"\f327"}.ri-flickr-fill:before{content:"\f328"}.ri-flickr-line:before{content:"\f329"}.ri-forward-10-fill:before{content:"\f32a"}.ri-forward-10-line:before{content:"\f32b"}.ri-forward-15-fill:before{content:"\f32c"}.ri-forward-15-line:before{content:"\f32d"}.ri-forward-30-fill:before{content:"\f32e"}.ri-forward-30-line:before{content:"\f32f"}.ri-forward-5-fill:before{content:"\f330"}.ri-forward-5-line:before{content:"\f331"}.ri-graduation-cap-fill:before{content:"\f332"}.ri-graduation-cap-line:before{content:"\f333"}.ri-home-office-fill:before{content:"\f334"}.ri-home-office-line:before{content:"\f335"}.ri-hourglass-2-fill:before{content:"\f336"}.ri-hourglass-2-line:before{content:"\f337"}.ri-hourglass-fill:before{content:"\f338"}.ri-hourglass-line:before{content:"\f339"}.ri-javascript-fill:before{content:"\f33a"}.ri-javascript-line:before{content:"\f33b"}.ri-loop-left-fill:before{content:"\f33c"}.ri-loop-left-line:before{content:"\f33d"}.ri-loop-right-fill:before{content:"\f33e"}.ri-loop-right-line:before{content:"\f33f"}.ri-memories-fill:before{content:"\f340"}.ri-memories-line:before{content:"\f341"}.ri-meta-fill:before{content:"\f342"}.ri-meta-line:before{content:"\f343"}.ri-microsoft-loop-fill:before{content:"\f344"}.ri-microsoft-loop-line:before{content:"\f345"}.ri-nft-fill:before{content:"\f346"}.ri-nft-line:before{content:"\f347"}.ri-notion-fill:before{content:"\f348"}.ri-notion-line:before{content:"\f349"}.ri-openai-fill:before{content:"\f34a"}.ri-openai-line:before{content:"\f34b"}.ri-overline:before{content:"\f34c"}.ri-p2p-fill:before{content:"\f34d"}.ri-p2p-line:before{content:"\f34e"}.ri-presentation-fill:before{content:"\f34f"}.ri-presentation-line:before{content:"\f350"}.ri-replay-10-fill:before{content:"\f351"}.ri-replay-10-line:before{content:"\f352"}.ri-replay-15-fill:before{content:"\f353"}.ri-replay-15-line:before{content:"\f354"}.ri-replay-30-fill:before{content:"\f355"}.ri-replay-30-line:before{content:"\f356"}.ri-replay-5-fill:before{content:"\f357"}.ri-replay-5-line:before{content:"\f358"}.ri-school-fill:before{content:"\f359"}.ri-school-line:before{content:"\f35a"}.ri-shining-2-fill:before{content:"\f35b"}.ri-shining-2-line:before{content:"\f35c"}.ri-shining-fill:before{content:"\f35d"}.ri-shining-line:before{content:"\f35e"}.ri-sketching:before{content:"\f35f"}.ri-skip-down-fill:before{content:"\f360"}.ri-skip-down-line:before{content:"\f361"}.ri-skip-left-fill:before{content:"\f362"}.ri-skip-left-line:before{content:"\f363"}.ri-skip-right-fill:before{content:"\f364"}.ri-skip-right-line:before{content:"\f365"}.ri-skip-up-fill:before{content:"\f366"}.ri-skip-up-line:before{content:"\f367"}.ri-slow-down-fill:before{content:"\f368"}.ri-slow-down-line:before{content:"\f369"}.ri-sparkling-2-fill:before{content:"\f36a"}.ri-sparkling-2-line:before{content:"\f36b"}.ri-sparkling-fill:before{content:"\f36c"}.ri-sparkling-line:before{content:"\f36d"}.ri-speak-fill:before{content:"\f36e"}.ri-speak-line:before{content:"\f36f"}.ri-speed-up-fill:before{content:"\f370"}.ri-speed-up-line:before{content:"\f371"}.ri-tiktok-fill:before{content:"\f372"}.ri-tiktok-line:before{content:"\f373"}.ri-token-swap-fill:before{content:"\f374"}.ri-token-swap-line:before{content:"\f375"}.ri-unpin-fill:before{content:"\f376"}.ri-unpin-line:before{content:"\f377"}.ri-wechat-channels-fill:before{content:"\f378"}.ri-wechat-channels-line:before{content:"\f379"}.ri-wordpress-fill:before{content:"\f37a"}.ri-wordpress-line:before{content:"\f37b"}.ri-blender-fill:before{content:"\f37c"}.ri-blender-line:before{content:"\f37d"}.ri-emoji-sticker-fill:before{content:"\f37e"}.ri-emoji-sticker-line:before{content:"\f37f"}.ri-git-close-pull-request-fill:before{content:"\f380"}.ri-git-close-pull-request-line:before{content:"\f381"}.ri-instance-fill:before{content:"\f382"}.ri-instance-line:before{content:"\f383"}.ri-megaphone-fill:before{content:"\f384"}.ri-megaphone-line:before{content:"\f385"}.ri-pass-expired-fill:before{content:"\f386"}.ri-pass-expired-line:before{content:"\f387"}.ri-pass-pending-fill:before{content:"\f388"}.ri-pass-pending-line:before{content:"\f389"}.ri-pass-valid-fill:before{content:"\f38a"}.ri-pass-valid-line:before{content:"\f38b"}.ri-ai-generate:before{content:"\f38c"}.ri-calendar-close-fill:before{content:"\f38d"}.ri-calendar-close-line:before{content:"\f38e"}.ri-draggable:before{content:"\f38f"}.ri-font-family:before{content:"\f390"}.ri-font-mono:before{content:"\f391"}.ri-font-sans-serif:before{content:"\f392"}.ri-font-sans:before{content:"\f393"}.ri-hard-drive-3-fill:before{content:"\f394"}.ri-hard-drive-3-line:before{content:"\f395"}.ri-kick-fill:before{content:"\f396"}.ri-kick-line:before{content:"\f397"}.ri-list-check-3:before{content:"\f398"}.ri-list-indefinite:before{content:"\f399"}.ri-list-ordered-2:before{content:"\f39a"}.ri-list-radio:before{content:"\f39b"}.ri-openbase-fill:before{content:"\f39c"}.ri-openbase-line:before{content:"\f39d"}.ri-planet-fill:before{content:"\f39e"}.ri-planet-line:before{content:"\f39f"}.ri-prohibited-fill:before{content:"\f3a0"}.ri-prohibited-line:before{content:"\f3a1"}.ri-quote-text:before{content:"\f3a2"}.ri-seo-fill:before{content:"\f3a3"}.ri-seo-line:before{content:"\f3a4"}.ri-slash-commands:before{content:"\f3a5"}.ri-archive-2-fill:before{content:"\f3a6"}.ri-archive-2-line:before{content:"\f3a7"}.ri-inbox-2-fill:before{content:"\f3a8"}.ri-inbox-2-line:before{content:"\f3a9"}.ri-shake-hands-fill:before{content:"\f3aa"}.ri-shake-hands-line:before{content:"\f3ab"}.ri-supabase-fill:before{content:"\f3ac"}.ri-supabase-line:before{content:"\f3ad"}.ri-water-percent-fill:before{content:"\f3ae"}.ri-water-percent-line:before{content:"\f3af"}.ri-yuque-fill:before{content:"\f3b0"}.ri-yuque-line:before{content:"\f3b1"}.ri-crosshair-2-fill:before{content:"\f3b2"}.ri-crosshair-2-line:before{content:"\f3b3"}.ri-crosshair-fill:before{content:"\f3b4"}.ri-crosshair-line:before{content:"\f3b5"}.ri-file-close-fill:before{content:"\f3b6"}.ri-file-close-line:before{content:"\f3b7"}.ri-infinity-fill:before{content:"\f3b8"}.ri-infinity-line:before{content:"\f3b9"}.ri-rfid-fill:before{content:"\f3ba"}.ri-rfid-line:before{content:"\f3bb"}.ri-slash-commands-2:before{content:"\f3bc"}.ri-user-forbid-fill:before{content:"\f3bd"}.ri-user-forbid-line:before{content:"\f3be"}.ri-beer-fill:before{content:"\f3bf"}.ri-beer-line:before{content:"\f3c0"}.ri-circle-fill:before{content:"\f3c1"}.ri-circle-line:before{content:"\f3c2"}.ri-dropdown-list:before{content:"\f3c3"}.ri-file-image-fill:before{content:"\f3c4"}.ri-file-image-line:before{content:"\f3c5"}.ri-file-pdf-2-fill:before{content:"\f3c6"}.ri-file-pdf-2-line:before{content:"\f3c7"}.ri-file-video-fill:before{content:"\f3c8"}.ri-file-video-line:before{content:"\f3c9"}.ri-folder-image-fill:before{content:"\f3ca"}.ri-folder-image-line:before{content:"\f3cb"}.ri-folder-video-fill:before{content:"\f3cc"}.ri-folder-video-line:before{content:"\f3cd"}.ri-hexagon-fill:before{content:"\f3ce"}.ri-hexagon-line:before{content:"\f3cf"}.ri-menu-search-fill:before{content:"\f3d0"}.ri-menu-search-line:before{content:"\f3d1"}.ri-octagon-fill:before{content:"\f3d2"}.ri-octagon-line:before{content:"\f3d3"}.ri-pentagon-fill:before{content:"\f3d4"}.ri-pentagon-line:before{content:"\f3d5"}.ri-rectangle-fill:before{content:"\f3d6"}.ri-rectangle-line:before{content:"\f3d7"}.ri-robot-2-fill:before{content:"\f3d8"}.ri-robot-2-line:before{content:"\f3d9"}.ri-shapes-fill:before{content:"\f3da"}.ri-shapes-line:before{content:"\f3db"}.ri-square-fill:before{content:"\f3dc"}.ri-square-line:before{content:"\f3dd"}.ri-tent-fill:before{content:"\f3de"}.ri-tent-line:before{content:"\f3df"}.ri-threads-fill:before{content:"\f3e0"}.ri-threads-line:before{content:"\f3e1"}.ri-tree-fill:before{content:"\f3e2"}.ri-tree-line:before{content:"\f3e3"}.ri-triangle-fill:before{content:"\f3e4"}.ri-triangle-line:before{content:"\f3e5"}.ri-twitter-x-fill:before{content:"\f3e6"}.ri-twitter-x-line:before{content:"\f3e7"}.ri-verified-badge-fill:before{content:"\f3e8"}.ri-verified-badge-line:before{content:"\f3e9"}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(./KaTeX_AMS-Regular-U6PRYMIZ.woff2) format("woff2"),url(./KaTeX_AMS-Regular-CYEKBG2K.woff) format("woff"),url(./KaTeX_AMS-Regular-JKX5W2C4.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(./KaTeX_Caligraphic-Bold-5QL5CMTE.woff2) format("woff2"),url(./KaTeX_Caligraphic-Bold-WZ3QSGD3.woff) format("woff"),url(./KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(./KaTeX_Caligraphic-Regular-KX5MEWCF.woff2) format("woff2"),url(./KaTeX_Caligraphic-Regular-3LKEU76G.woff) format("woff"),url(./KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(./KaTeX_Fraktur-Bold-2QVFK6NQ.woff2) format("woff2"),url(./KaTeX_Fraktur-Bold-T4SWXBMT.woff) format("woff"),url(./KaTeX_Fraktur-Bold-WGHVTYOR.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(./KaTeX_Fraktur-Regular-2PEIFJSJ.woff2) format("woff2"),url(./KaTeX_Fraktur-Regular-PQMHCIK6.woff) format("woff"),url(./KaTeX_Fraktur-Regular-5U4OPH2X.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(./KaTeX_Main-Bold-YP5VVQRP.woff2) format("woff2"),url(./KaTeX_Main-Bold-2GA4IZIN.woff) format("woff"),url(./KaTeX_Main-Bold-W5FBVCZM.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(./KaTeX_Main-BoldItalic-N4V3DX7S.woff2) format("woff2"),url(./KaTeX_Main-BoldItalic-4P4C7HJH.woff) format("woff"),url(./KaTeX_Main-BoldItalic-ODMLBJJQ.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(./KaTeX_Main-Italic-RELBIK7M.woff2) format("woff2"),url(./KaTeX_Main-Italic-SASNQFN2.woff) format("woff"),url(./KaTeX_Main-Italic-I43T2HSR.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(./KaTeX_Main-Regular-ARRPAO67.woff2) format("woff2"),url(./KaTeX_Main-Regular-P5I74A2A.woff) format("woff"),url(./KaTeX_Main-Regular-W74P5G27.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(./KaTeX_Math-BoldItalic-K4WTGH3J.woff2) format("woff2"),url(./KaTeX_Math-BoldItalic-6EBV3DK5.woff) format("woff"),url(./KaTeX_Math-BoldItalic-VB447A4D.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(./KaTeX_Math-Italic-6KGCHLFN.woff2) format("woff2"),url(./KaTeX_Math-Italic-KKK3USB2.woff) format("woff"),url(./KaTeX_Math-Italic-SON4MRCA.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(./KaTeX_SansSerif-Bold-RRNVJFFW.woff2) format("woff2"),url(./KaTeX_SansSerif-Bold-X5M5EMOD.woff) format("woff"),url(./KaTeX_SansSerif-Bold-STQ6RXC7.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(./KaTeX_SansSerif-Italic-HMPFTM52.woff2) format("woff2"),url(./KaTeX_SansSerif-Italic-PSN4QKYX.woff) format("woff"),url(./KaTeX_SansSerif-Italic-WTBAZBGY.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(./KaTeX_SansSerif-Regular-XIQ62X4E.woff2) format("woff2"),url(./KaTeX_SansSerif-Regular-OQCII6EP.woff) format("woff"),url(./KaTeX_SansSerif-Regular-2TL3USAE.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(./KaTeX_Script-Regular-APUWIHLP.woff2) format("woff2"),url(./KaTeX_Script-Regular-A5IFOEBS.woff) format("woff"),url(./KaTeX_Script-Regular-72OLXYNA.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(./KaTeX_Size1-Regular-5LRUTBFT.woff2) format("woff2"),url(./KaTeX_Size1-Regular-4HRHTS65.woff) format("woff"),url(./KaTeX_Size1-Regular-7K6AASVL.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(./KaTeX_Size2-Regular-LELKET5D.woff2) format("woff2"),url(./KaTeX_Size2-Regular-K5ZHAIS6.woff) format("woff"),url(./KaTeX_Size2-Regular-222HN3GT.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(./KaTeX_Size3-Regular-WQRQ47UD.woff2) format("woff2"),url(./KaTeX_Size3-Regular-TLFPAHDE.woff) format("woff"),url(./KaTeX_Size3-Regular-UFCO6WCA.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(./KaTeX_Size4-Regular-CDMV7U5C.woff2) format("woff2"),url(./KaTeX_Size4-Regular-PKMWZHNC.woff) format("woff"),url(./KaTeX_Size4-Regular-7PGNVPQK.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(./KaTeX_Typewriter-Regular-VBYJ4NRC.woff2) format("woff2"),url(./KaTeX_Typewriter-Regular-MJMFSK64.woff) format("woff"),url(./KaTeX_Typewriter-Regular-3F5K6SQ6.ttf) format("truetype")}.katex{text-rendering:auto;font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.9"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-ext-400-normal-JB453SGZ.woff2) format("woff2"),url(./inter-cyrillic-ext-400-normal-UT7C7CGZ.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-400-normal-KFLOZ6L3.woff2) format("woff2"),url(./inter-cyrillic-400-normal-UGV3X2ZX.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-ext-400-normal-QIS4ONLW.woff2) format("woff2"),url(./inter-greek-ext-400-normal-4HYCVGMS.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-400-normal-BRMJUT6T.woff2) format("woff2"),url(./inter-greek-400-normal-7Y67TOYM.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-vietnamese-400-normal-KH5NGGJJ.woff2) format("woff2"),url(./inter-vietnamese-400-normal-724F3VTF.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-ext-400-normal-BTAMM2KL.woff2) format("woff2"),url(./inter-latin-ext-400-normal-YUALTDTA.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-400-normal-VQ3UBCDI.woff2) format("woff2"),url(./inter-latin-400-normal-O6KIPRV2.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-cyrillic-ext-500-normal-JTQKN4HY.woff2) format("woff2"),url(./inter-cyrillic-ext-500-normal-WLOKRQXN.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-cyrillic-500-normal-MRQZIV3H.woff2) format("woff2"),url(./inter-cyrillic-500-normal-5QURBI26.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-greek-ext-500-normal-Z2CEJP2K.woff2) format("woff2"),url(./inter-greek-ext-500-normal-AOIZUIP4.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-greek-500-normal-PQX5SJVP.woff2) format("woff2"),url(./inter-greek-500-normal-LCPH243Y.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-vietnamese-500-normal-F77QXW2X.woff2) format("woff2"),url(./inter-vietnamese-500-normal-ZTDWBSHR.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-latin-ext-500-normal-DV5RJSXI.woff2) format("woff2"),url(./inter-latin-ext-500-normal-KJKTVLML.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-latin-500-normal-PUEXTTCT.woff2) format("woff2"),url(./inter-latin-500-normal-OD7WVACW.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-ext-600-normal-EFECVKGZ.woff2) format("woff2"),url(./inter-cyrillic-ext-600-normal-NBG3W4IU.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-600-normal-VQSXM56D.woff2) format("woff2"),url(./inter-cyrillic-600-normal-EDUIRGIU.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-ext-600-normal-KM6XRHAQ.woff2) format("woff2"),url(./inter-greek-ext-600-normal-FQPCNDF3.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-600-normal-PKJBTQPQ.woff2) format("woff2"),url(./inter-greek-600-normal-UPKYUUFH.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-vietnamese-600-normal-47DK6MCQ.woff2) format("woff2"),url(./inter-vietnamese-600-normal-M4XR4C4S.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-ext-600-normal-AOYWYIP3.woff2) format("woff2"),url(./inter-latin-ext-600-normal-L5SWE5DY.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-600-normal-GQRH5MIF.woff2) format("woff2"),url(./inter-latin-600-normal-5WVF6G4B.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Red Hat Text;font-style:normal;font-display:swap;font-weight:400;src:url(./red-hat-text-latin-ext-400-normal-7X3BOMKZ.woff2) format("woff2"),url(./red-hat-text-latin-ext-400-normal-3AG7KJ23.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Red Hat Text;font-style:normal;font-display:swap;font-weight:400;src:url(./red-hat-text-latin-400-normal-SKCAVGFN.woff2) format("woff2"),url(./red-hat-text-latin-400-normal-34QPSVOZ.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-ext-400-normal-HYAFUTTD.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-ext-400-normal-U7JCD3HP.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-400-normal-RF3F6BDX.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-400-normal-QZ4EYELX.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-greek-400-normal-KMD3CAMP.woff2) format("woff2"),url(./jetbrains-mono-greek-400-normal-CE6KMGS2.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-vietnamese-400-normal-SZYMLMOU.woff2) format("woff2"),url(./jetbrains-mono-vietnamese-400-normal-AWIMX5C6.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-ext-400-normal-QLFFZGQN.woff2) format("woff2"),url(./jetbrains-mono-latin-ext-400-normal-XZJVN265.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-400-normal-62SJVGG5.woff2) format("woff2"),url(./jetbrains-mono-latin-400-normal-47HBTU5K.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.monaco-aria-container{position:absolute;left:-999em}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box;background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border)}@font-face{font-family:codicon;font-display:block;src:url(./codicon-5T574S7B.ttf) format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-user-select:none;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-value,.monaco-editor .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-enum{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .lightBulbWidget{display:flex;align-items:center;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground, var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{position:absolute;top:0;left:0;content:"";display:block;width:100%;height:100%;opacity:.3;background-color:var(--vscode-editor-background);z-index:1}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:2px 4px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-inputValidation-infoBorder);border-radius:3px}.monaco-editor .monaco-editor-overlaymessage .message p{margin-block:0px}.monaco-editor .monaco-editor-overlaymessage .message a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-editor-overlaymessage .message a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute;left:2px}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);vertical-align:middle;padding:1px 3px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box-dropdown-padding{--dropdown-padding-top: 1px;--dropdown-padding-bottom: 1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top: 3px;--dropdown-padding-bottom: 4px}.monaco-select-box-dropdown-container{display:none;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{line-height:15px;font-family:var(--monaco-monospace-font)}.monaco-select-box-dropdown-container.visible{display:flex;flex-direction:column;text-align:left;width:1px;overflow:hidden;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{flex:0 0 auto;align-self:flex-start;padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;width:100%;overflow:hidden;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left;opacity:.7}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{text-overflow:ellipsis;overflow:hidden;padding-right:10px;white-space:nowrap;float:right}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{flex:1 1 auto;align-self:flex-start;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{overflow:hidden;max-height:0px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-select-box{width:100%;cursor:pointer;border-radius:2px}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-width:100px;min-height:18px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{font-size:11px;border-radius:5px}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{display:flex;font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.6}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{display:flex;align-items:center;cursor:default}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.action-widget{font-size:13px;min-width:160px;max-width:80vw;z-index:40;display:block;width:100%;border:1px solid var(--vscode-editorWidget-border)!important;border-radius:2px;background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground)}.context-view-block{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:-1}.context-view-pointerBlock{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:2}.action-widget .monaco-list{-moz-user-select:none;user-select:none;-webkit-user-select:none;border:none!important;border-width:0!important}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{padding:0 10px;white-space:nowrap;cursor:pointer;touch-action:none;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-quickInputList-focusBackground)!important;color:var(--vscode-quickInputList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder, transparent);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-descriptionForeground)!important;font-weight:600}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled:before,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before{cursor:default!important;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:transparent!important;outline:0 solid!important}.action-widget .monaco-list-row.action{display:flex;gap:6px;align-items:center}.action-widget .monaco-list-row.action.option-disabled,.action-widget .monaco-list:focus .monaco-list-row.focused.action.option-disabled,.action-widget .monaco-list-row.action.option-disabled .codicon,.action-widget .monaco-list:not(.drop-target):not(.dragging) .monaco-list-row:hover:not(.selected):not(.focused).option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1;overflow:hidden;text-overflow:ellipsis}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorHoverWidget-statusBarBackground);border-top:1px solid var(--vscode-editorHoverWidget-border)}.action-widget .action-widget-action-bar:before{display:block;content:"";width:100%}.action-widget .action-widget-action-bar .actions-container{padding:0 8px}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:transparent!important}.monaco-action-bar .actions-container.highlight-toggled .action-label.checked{background:var(--vscode-actionBar-toggledBackground)!important}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize);padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault)}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{-moz-user-select:none;user-select:none;-webkit-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize)}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.monaco-editor.vs .dnd-target,.monaco-editor.hc-light .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines{cursor:copy}.inline-editor-progress-decoration{display:inline-block;width:1em;height:1em}.inline-progress-widget{display:flex!important;justify-content:center;align-items:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{font-size:90%!important;animation:none}.inline-progress-widget:hover .icon:before{content:"\ea76"}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;border-radius:2px;text-align:center;cursor:pointer;justify-content:center;align-items:center;border:1px solid var(--vscode-button-border, transparent);line-height:18px}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button .codicon{margin:0 .2em;color:inherit!important}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;padding:0 4px;overflow:hidden;height:28px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;width:0;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{display:flex;justify-content:center;align-items:center;font-weight:400;font-style:inherit;padding:4px 0}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus,.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{padding:4px 0;cursor:default}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border, transparent);border-left-width:0!important;border-radius:0 2px 2px 0}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{display:flex;flex-direction:column;align-items:center;margin:4px 5px}.monaco-description-button .monaco-button-description{font-style:italic;font-size:11px;padding:4px 20px}.monaco-description-button .monaco-button-label,.monaco-description-button .monaco-button-description{display:flex;justify-content:center;align-items:center}.monaco-description-button .monaco-button-label>.codicon,.monaco-description-button .monaco-button-description>.codicon{margin:0 .2em;color:inherit!important}.monaco-button.default-colors,.monaco-button-dropdown.default-colors>.monaco-button{color:var(--vscode-button-foreground);background-color:var(--vscode-button-background)}.monaco-button.default-colors:hover,.monaco-button-dropdown.default-colors>.monaco-button:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-button.default-colors.secondary,.monaco-button-dropdown.default-colors>.monaco-button.secondary{color:var(--vscode-button-secondaryForeground);background-color:var(--vscode-button-secondaryBackground)}.monaco-button.default-colors.secondary:hover,.monaco-button-dropdown.default-colors>.monaco-button.secondary:hover{background-color:var(--vscode-button-secondaryHoverBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator{background-color:var(--vscode-button-background);border-top:1px solid var(--vscode-button-border);border-bottom:1px solid var(--vscode-button-border)}.monaco-button-dropdown.default-colors .monaco-button.secondary+.monaco-button-dropdown-separator{background-color:var(--vscode-button-secondaryBackground)}.monaco-button-dropdown.default-colors .monaco-button-dropdown-separator>div{background-color:var(--vscode-button-separator)}.post-edit-widget{box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:1px solid var(--vscode-widget-border, transparent);border-radius:4px;background-color:var(--vscode-editorWidget-background);overflow:hidden}.post-edit-widget .monaco-button{padding:2px;border:none;border-radius:0}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-custom-toggle{margin-left:2px;float:left;cursor:pointer;overflow:hidden;width:20px;height:20px;border-radius:3px;border:1px solid transparent;padding:1px;box-sizing:border-box;-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-light .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}:root{--vscode-sash-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--vscode-sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--vscode-sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--vscode-sash-size) * 2);width:calc(var(--vscode-sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size) * -.5);top:calc(var(--vscode-sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--vscode-sash-size) * -.5);bottom:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--vscode-sash-size) * -.5);left:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--vscode-sash-size) * -.5);right:calc(var(--vscode-sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;background:transparent}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.hover:before,.monaco-sash.active:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{width:var(--vscode-sash-hover-size);left:calc(50% - (var(--vscode-sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - (var(--vscode-sash-hover-size) / 2))}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px));border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:3px 25px 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-editor .find-widget>.button.codicon-widget-close{position:absolute;top:5px;right:4px}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;border-radius:2px;font-size:inherit}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls,.hc-light .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls,.hc-light .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:rgba(255,255,255,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:rgba(255,255,255,.44)}99%{background:transparent}}.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed{transition:initial}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"\22ef";display:inline;line-height:1em;cursor:pointer}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .inlineSuggestionsHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .availableSuggestionCount a{display:flex;min-width:19px;justify-content:center}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetTabstopHighlightBorder, transparent)}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder, transparent)}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column;border-radius:3px}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px;border-color:var(--vscode-editorSuggestWidget-border);background-color:var(--vscode-editorSuggestWidget-background)}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-light .suggest-widget,.monaco-editor.hc-light .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid var(--vscode-editorSuggestWidget-border);overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default;color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);background-color:var(--vscode-editor-background)}.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-rangeHighlightBorder)}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-symbolHighlightBorder)}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorError-background)}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorWarning-background)}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorInfo-background)}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground, inherit)}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent;z-index:-10}.monaco-editor .inputarea.ime-input{z-index:10;caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground)}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box}.mtkcontrol{color:#fff!important;background:rgb(150,0,0)!important}.mtkoverflow{background-color:var(--vscode-button-background, var(--vscode-editor-background));color:var(--vscode-button-foreground, var(--vscode-editor-foreground));border-width:1px;border-style:solid;border-color:var(--vscode-contrastBorder);border-radius:2px;padding:4px;cursor:pointer}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{-moz-user-select:text;user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{-moz-user-select:initial;user-select:initial;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkw{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .lines-decorations{position:absolute;top:0;background:white}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .glyph-margin-widgets .cgmr{position:absolute;display:flex;align-items:center;justify-content:center}.monaco-editor .glyph-margin-widgets .cgmr.codicon-modifier-spin:before{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0;box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .blockDecorations-container{position:absolute;top:0;pointer-events:none}.monaco-editor .blockDecorations-block{position:absolute;box-sizing:border-box}.monaco-editor .mwh{position:absolute;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;justify-content:space-between;flex-wrap:nowrap}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:baseline;font-size:13px;margin-left:20px;min-width:0;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px;align-self:center}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap;overflow:hidden}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--vscode-sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{position:absolute;top:0;display:flex;padding:3px;max-width:200px;z-index:100;margin:0 6px;border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{display:flex!important;align-items:center;justify-content:center;cursor:grab;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px;background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground)}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%;color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder, transparent);box-sizing:border-box}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;-moz-user-select:text;user-select:text;-webkit-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground);color:var(--vscode-textLink-activeForeground)}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .zone-widget .codicon.codicon-error,.markers-panel .marker-icon.error,.markers-panel .marker-icon .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.extension-editor .codicon.codicon-error,.preferences-editor .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-warning,.markers-panel .marker-icon.warning,.markers-panel .marker-icon .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.extension-editor .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-info,.markers-panel .marker-icon.info,.markers-panel .marker-icon .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.extension-editor .codicon.codicon-info,.preferences-editor .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-hover{cursor:default;position:absolute;overflow:hidden;-moz-user-select:text;user-select:text;-webkit-user-select:text;box-sizing:border-box;animation:fadein .1s linear;line-height:1.5em;white-space:var(--vscode-hover-whiteSpace, normal)}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:var(--vscode-hover-maxWidth, 500px);word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:var(--vscode-hover-sourceWhiteSpace, pre-wrap)}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground)}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;-moz-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-selectionHighlightBorder)}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightBorder)}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightStrongBorder)}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightTextBorder)}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .parameter-hints-widget{z-index:39;display:flex;flex-direction:column;line-height:1.5em;cursor:default;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{content:"";display:block;height:100%;position:absolute;opacity:.5;border-left:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{content:"";display:block;position:absolute;left:0;width:100%;padding-top:4px;opacity:.5;border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs code{font-family:var(--monaco-monospace-font);border-radius:3px;padding:0 .4em;background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{z-index:100;color:inherit;border-radius:4px}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input{padding:3px;border-radius:2px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .sticky-widget{overflow:hidden}.monaco-editor .sticky-widget-line-numbers{float:left;background-color:inherit}.monaco-editor .sticky-widget-lines-scrollable{display:inline-block;position:absolute;overflow:hidden;width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit}.monaco-editor .sticky-widget-lines{position:absolute;background-color:inherit}.monaco-editor .sticky-line-number,.monaco-editor .sticky-line-content{color:var(--vscode-editorLineNumber-foreground);white-space:nowrap;display:inline-block;position:absolute;background-color:inherit}.monaco-editor .sticky-line-number .codicon{float:right;transition:var(--vscode-editorStickyScroll-foldingOpacityTransition)}.monaco-editor .sticky-line-content{width:var(--vscode-editorStickyScroll-scrollableWidth);background-color:inherit;white-space:nowrap}.monaco-editor .sticky-line-number-inner{display:block;text-align:right}.monaco-editor.hc-black .sticky-widget,.monaco-editor.hc-light .sticky-widget{border-bottom:1px solid var(--vscode-contrastBorder)}.monaco-editor .sticky-line-content:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 3px 2px -2px;z-index:4;background-color:var(--vscode-editorStickyScroll-background)}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{border:1px solid var(--vscode-editorUnicodeHighlight-border);background-color:var(--vscode-editorUnicodeHighlight-background);box-sizing:border-box}.editor-banner{box-sizing:border-box;cursor:default;width:100%;font-size:12px;display:flex;overflow:visible;height:26px;background:var(--vscode-banner-background)}.editor-banner .icon-container{display:flex;flex-shrink:0;align-items:center;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-repeat:no-repeat;background-position:center center;background-size:16px;width:16px;padding:0;margin:0 6px 0 10px}.editor-banner .message-container{display:flex;align-items:center;line-height:26px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-banner .message-container p{margin-block-start:0;margin-block-end:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{padding:3px;margin-left:12px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .tokens-inspect-widget{z-index:50;-moz-user-select:text;user-select:text;-webkit-user-select:text;padding:10px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{height:1px;border:0;background-color:var(--vscode-editorHoverWidget-border)}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%)}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:rgba(255,255,255,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:rgba(0,0,0,0)}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:rgba(171,171,171,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign,.monaco-editor.hc-light .insert-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{z-index:10;position:absolute}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-editor .char-insert,.monaco-diff-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-diff-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground, var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .line-insert,.monaco-editor .char-insert{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-insertedTextBorder)}.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .line-insert,.monaco-editor.hc-black .char-insert,.monaco-editor.hc-light .char-insert{border-style:dashed}.monaco-editor .line-delete,.monaco-editor .char-delete{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-removedTextBorder)}.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .line-delete,.monaco-editor.hc-black .char-delete,.monaco-editor.hc-light .char-delete{border-style:dashed}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .gutter-insert,.monaco-diff-editor .gutter-insert{background-color:var(--vscode-diffEditorGutter-insertedLineBackground, var(--vscode-diffEditor-insertedLineBackground), var(--vscode-diffEditor-insertedTextBackground))}.monaco-editor .char-delete,.monaco-diff-editor .char-delete{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .line-delete,.monaco-diff-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground, var(--vscode-diffEditor-removedTextBackground))}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .gutter-delete,.monaco-diff-editor .gutter-delete{background-color:var(--vscode-diffEditorGutter-removedLineBackground, var(--vscode-diffEditor-removedLineBackground), var(--vscode-diffEditor-removedTextBackground))}.monaco-diff-editor.side-by-side .editor.modified{box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow);border-left:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block;color:var(--vscode-editorLineNumber-foreground)}.monaco-diff-editor .diff-review{position:absolute;-moz-user-select:none;user-select:none;-webkit-user-select:none;z-index:99}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute;box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px;z-index:100}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.context-view{position:absolute}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;color:inherit}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px #0F4A85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;transform:translateZ(0);animation-timing-function:linear}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.quick-input-widget{position:absolute;width:600px;z-index:2550;left:50%;margin-left:-300px;-webkit-app-region:no-drag;border-radius:6px}.quick-input-titlebar{display:flex;align-items:center;border-top-left-radius:5px;border-top-right-radius:5px}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px 6px 6px 11px}.quick-input-header .quick-input-description{margin:4px 2px;flex:1}.quick-input-header{display:flex;padding:8px 6px 6px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:25px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{overflow:hidden;max-height:440px;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-icon{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;display:flex;align-items:center;justify-content:center}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.quick-input-list .quick-input-list-separator-as-item{font-weight:600;font-size:12px}.monaco-editor .diff-hidden-lines-widget{width:100%}.monaco-editor .diff-hidden-lines{height:0px;transform:translateY(-10px);font-size:13px;line-height:14px}.monaco-editor .diff-hidden-lines:not(.dragging) .top:hover,.monaco-editor .diff-hidden-lines:not(.dragging) .bottom:hover,.monaco-editor .diff-hidden-lines .top.dragging,.monaco-editor .diff-hidden-lines .bottom.dragging{background-color:var(--vscode-focusBorder)}.monaco-editor .diff-hidden-lines .top,.monaco-editor .diff-hidden-lines .bottom{transition:background-color .1s ease-out;height:4px;background-color:transparent;background-clip:padding-box;border-bottom:2px solid transparent;border-top:4px solid transparent;cursor:ns-resize}.monaco-editor .diff-hidden-lines .top{transform:translateY(4px)}.monaco-editor .diff-hidden-lines .bottom{transform:translateY(-6px)}.monaco-editor .diff-unchanged-lines{background:var(--vscode-diffEditor-unchangedCodeBackground)}.monaco-editor .noModificationsOverlay{z-index:1;background:var(--vscode-editor-background);display:flex;justify-content:center;align-items:center}.monaco-editor .diff-hidden-lines .center{background:var(--vscode-diffEditor-unchangedRegionBackground);color:var(--vscode-diffEditor-unchangedRegionForeground);overflow:hidden;display:block;text-overflow:ellipsis;white-space:nowrap;height:24px}.monaco-editor .diff-hidden-lines .center span.codicon{vertical-align:middle}.monaco-editor .diff-hidden-lines .center a:hover .codicon{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .diff-hidden-lines div.breadcrumb-item{cursor:pointer}.monaco-editor .diff-hidden-lines div.breadcrumb-item:hover{color:var(--vscode-editorLink-activeForeground)}.monaco-editor .movedOriginal,.monaco-editor .movedModified{border:2px solid var(--vscode-diffEditor-move-border)}.monaco-editor .movedOriginal.currentMove,.monaco-editor .movedModified.currentMove{border:2px solid var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path.currentMove{stroke:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines path{pointer-events:visiblestroke}.monaco-diff-editor .moved-blocks-lines .arrow{fill:var(--vscode-diffEditor-move-border)}.monaco-diff-editor .moved-blocks-lines .arrow.currentMove{fill:var(--vscode-diffEditor-moveActive-border)}.monaco-diff-editor .moved-blocks-lines .arrow-rectangle{fill:var(--vscode-editor-background)}.monaco-diff-editor .moved-blocks-lines{position:absolute;pointer-events:none}.monaco-diff-editor .moved-blocks-lines path{fill:none;stroke:var(--vscode-diffEditor-move-border);stroke-width:2}.monaco-editor .char-delete.diff-range-empty{margin-left:-1px;border-left:solid var(--vscode-diffEditor-removedTextBackground) 3px}.monaco-editor .char-insert.diff-range-empty{border-left:solid var(--vscode-diffEditor-insertedTextBackground) 3px}.monaco-editor .fold-unchanged{cursor:pointer}.monaco-diff-editor .diff-moved-code-block{display:flex;justify-content:flex-end;margin-top:-4px}.monaco-diff-editor .diff-moved-code-block .action-bar .action-label.codicon{width:12px;height:12px;font-size:12px}.colorpicker-widget{height:190px;-moz-user-select:none;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:solid .1em #000;box-sizing:border-box;margin:.1em .2em 0;width:.8em;height:.8em;line-height:.8em;display:inline-block;cursor:pointer}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:solid .1em #eee}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:240px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1;white-space:nowrap;overflow:hidden}.colorpicker-header .picked-color .picked-color-presentation{white-space:nowrap;margin-left:5px;margin-right:5px}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.standalone-colorpicker{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{cursor:pointer;background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header .close-button-inner-div{width:100%;height:100%;text-align:center}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .standalone-strip{width:25px;height:122px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,#ff0000 0%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{display:block;border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);overflow:hidden}.colorpicker-body .insert-button{position:absolute;height:20px;width:58px;padding:0;right:8px;bottom:8px;background:var(--vscode-button-background);color:var(--vscode-button-foreground);border-radius:2px;border:none;cursor:pointer}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526} +*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e1e8f0}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter;font-feature-settings:normal;font-variation-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#91a4b7}input::placeholder,textarea::placeholder{opacity:1;color:#91a4b7}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}body{font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"}:focus,button:focus{outline:none}menu{margin:0;padding:0}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(101 131 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(101 131 255 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.button-base{display:inline-flex;align-items:center;white-space:nowrap;border-radius:.5rem;border-width:1px;border-color:transparent;padding:.5rem 1.25rem;font-size:.875rem;line-height:1.25rem;font-weight:500}.button-blue{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.button-blue:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.button-blue:focus{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.button-red{border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(219 25 32 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.button-red:hover{--tw-bg-opacity: 1;background-color:rgb(188 18 39 / var(--tw-bg-opacity))}.button-red:focus{--tw-bg-opacity: 1;background-color:rgb(188 18 39 / var(--tw-bg-opacity))}.button-gray{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-gray:hover{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.button-gray:focus{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.button-outlined-blue{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.button-outlined-blue:hover{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.button-outlined-blue:focus{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.button-outlined-red{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.button-outlined-red:hover{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.button-outlined-red:focus{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.button-outlined-gray{--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-outlined-gray:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-outlined-gray:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-base:disabled,.button-base.disabled{pointer-events:none;cursor:default;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.button-small{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity));padding:.25rem .5rem;--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.button-small:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-small:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.button-square-icon{display:flex;align-items:center;justify-content:center;padding:.5rem}.button-square-icon i{font-size:1.25rem;line-height:1.75rem;line-height:1}.icon-button{display:flex;align-items:center;justify-content:center;border-radius:9999px;padding:.25rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.icon-button:hover{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.icon-button:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.icon-button:disabled,.icon-button.disabled{pointer-events:none;cursor:default;--tw-text-opacity: 1;color:rgb(202 213 224 / var(--tw-text-opacity))}.icon-button i{line-height:1}.icon-outlined-button{border-radius:9999px;border-width:2px}.\!link{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.\!link:hover{text-decoration-line:none}.link{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.link:hover{text-decoration-line:none}.input{width:100%;border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity));padding:.5rem .75rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.input::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.input::placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}:not(.phx-no-feedback).show-errors .input{--tw-border-opacity: 1;border-color:rgb(241 163 166 / var(--tw-border-opacity))}.input[type=color]{width:4rem;padding-top:0;padding-bottom:0}.input-range{height:8px;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.input-range::-webkit-slider-thumb{width:20px;height:20px;cursor:pointer;-webkit-appearance:none;appearance:none;border-radius:.75rem;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.input-range::-webkit-slider-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.input-range::-moz-range-thumb{width:20px;height:20px;cursor:pointer;-moz-appearance:none;appearance:none;border-radius:.75rem;border-color:transparent;--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.input-range::-moz-range-thumb:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}select.input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOCIgdmlld0JveD0iMCAwIDEyIDgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik01Ljk5OTg5IDQuOTc2NzFMMTAuMTI0OSAwLjg1MTcwOEwxMS4zMDMyIDIuMDMwMDRMNS45OTk4OSA3LjMzMzM3TDAuNjk2NTU1IDIuMDMwMDRMMS44NzQ4OSAwLjg1MTcwOEw1Ljk5OTg5IDQuOTc2NzFaIiBmaWxsPSIjNjE3NThBIi8+Cjwvc3ZnPgo=);background-repeat:no-repeat;background-position:center right 10px;background-size:10px;padding-right:28px}.radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:20px;height:20px;cursor:pointer;background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='10' cy='10' r='9.5' stroke='%23CAD5E0' fill='white' /%3e%3c/svg%3e");background-size:100% 100%;background-position:center;background-repeat:no-repeat}.radio:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='10' cy='10' r='9.5' stroke='%233E64FF' fill='white' /%3e%3ccircle cx='10' cy='10' r='6' fill='%233E64FF' /%3e%3c/svg%3e")}.checkbox{height:1.25rem;width:1.25rem;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border-radius:.25rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.checkbox:checked{background-image:url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");border-color:transparent;background-color:currentColor;background-size:100% 100%;background-position:center;background-repeat:no-repeat}.tiny-scrollbar::-webkit-scrollbar{width:.4rem;height:.4rem}.tiny-scrollbar::-webkit-scrollbar-thumb{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.tiny-scrollbar::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.tabs{display:flex;width:100%;overflow-x:auto}.tabs .tab{display:flex;align-items:center}.tabs .tab>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.tabs .tab{white-space:nowrap;border-bottom-width:2px;--tw-border-opacity: 1;border-color:rgb(240 245 249 / var(--tw-border-opacity));padding:.5rem .75rem;--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.tabs .tab.active{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity));--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.error-box{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity));padding:.5rem 1rem;font-weight:500;--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity))}.info-box{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));padding:1rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{inset:0}.inset-y-0{top:0;bottom:0}.-left-3{left:-.75rem}.-right-2{right:-.5rem}.-top-1{top:-.25rem}.-top-1\.5{top:-.375rem}.-top-2{top:-.5rem}.bottom-0{bottom:0}.bottom-1{bottom:.25rem}.bottom-2{bottom:.5rem}.bottom-4{bottom:1rem}.bottom-\[0\.4rem\]{bottom:.4rem}.left-0{left:0}.left-\[64px\]{left:64px}.right-0{right:0}.right-1{right:.25rem}.right-1\.5{right:.375rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.right-6{right:1.5rem}.right-8{right:2rem}.right-\[1\.5rem\]{right:1.5rem}.top-0{top:0}.top-0\.5{top:.125rem}.top-1{top:.25rem}.top-1\.5{top:.375rem}.top-3{top:.75rem}.top-4{top:1rem}.top-5{top:1.25rem}.top-6{top:1.5rem}.z-0{z-index:0}.z-10{z-index:10}.z-20{z-index:20}.z-30{z-index:30}.z-\[10000\]{z-index:10000}.z-\[1000\]{z-index:1000}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.z-\[500\]{z-index:500}.z-\[600\]{z-index:600}.z-\[90\]{z-index:90}.-m-1{margin:-.25rem}.-m-4{margin:-1rem}.m-0{margin:0}.m-auto{margin:auto}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-2\.5{margin-left:.625rem;margin-right:.625rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mb-1{margin-bottom:-.25rem}.-mb-2{margin-bottom:-.5rem}.-ml-0{margin-left:-0px}.-ml-0\.5{margin-left:-.125rem}.-ml-1{margin-left:-.25rem}.-ml-1\.5{margin-left:-.375rem}.-ml-2{margin-left:-.5rem}.-mr-2{margin-right:-.5rem}.-mt-1{margin-top:-.25rem}.-mt-2{margin-top:-.5rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-20{margin-bottom:5rem}.mb-32{margin-bottom:8rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-5{margin-left:1.25rem}.ml-\[-1px\]{margin-left:-1px}.ml-auto{margin-left:auto}.mr-0{margin-right:0}.mr-0\.5{margin-right:.125rem}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-\[3px\]{margin-right:3px}.mt-0{margin-top:0}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.h-0{height:0px}.h-10{height:2.5rem}.h-14{height:3.5rem}.h-2{height:.5rem}.h-20{height:5rem}.h-3{height:.75rem}.h-4{height:1rem}.h-48{height:12rem}.h-5{height:1.25rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-80{height:20rem}.h-96{height:24rem}.h-\[10px\]{height:10px}.h-\[12px\]{height:12px}.h-\[150px\]{height:150px}.h-\[20rem\]{height:20rem}.h-\[30px\]{height:30px}.h-full{height:100%}.h-screen{height:100vh}.max-h-52{max-height:13rem}.max-h-80{max-height:20rem}.max-h-\[300px\]{max-height:300px}.max-h-\[500px\]{max-height:500px}.max-h-full{max-height:100%}.min-h-\[30rem\]{min-height:30rem}.min-h-\[38px\]{min-height:38px}.w-0{width:0px}.w-1{width:.25rem}.w-10{width:2.5rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-20{width:5rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\/4{width:75%}.w-4{width:1rem}.w-5{width:1.25rem}.w-5\/6{width:83.333333%}.w-6{width:1.5rem}.w-60{width:15rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-\[10px\]{width:10px}.w-\[12px\]{width:12px}.w-\[17rem\]{width:17rem}.w-\[20ch\]{width:20ch}.w-\[56px\]{width:56px}.w-auto{width:auto}.w-full{width:100%}.w-screen{width:100vw}.min-w-\[650px\]{min-width:650px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-6xl{max-width:72rem}.max-w-\[400px\]{max-width:400px}.max-w-\[600px\]{max-width:600px}.max-w-\[75\%\]{max-width:75%}.max-w-full{max-width:100%}.max-w-screen-lg{max-width:1024px}.max-w-screen-md{max-width:768px}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.shrink-0{flex-shrink:0}.flex-grow,.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-1\/2{flex-basis:50%}.basis-4\/5{flex-basis:80%}.-translate-x-full{--tw-translate-x: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-full{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-grab{cursor:grab}.cursor-not-allowed{cursor:not-allowed}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.scroll-mt-\[50px\]{scroll-margin-top:50px}.list-inside{list-style-position:inside}.list-decimal{list-style-type:decimal}.list-none{list-style-type:none}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.75fr\)_minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.5fr\)_minmax\(0\,_0\.5fr\)\]{grid-template-columns:minmax(0,.5fr) minmax(0,.75fr) minmax(0,.5fr) minmax(0,.5fr) minmax(0,.5fr)}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0{gap:0px}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-6{gap:1.5rem}.space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-12>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(3rem * var(--tw-space-x-reverse));margin-left:calc(3rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-5>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.25rem * var(--tw-space-x-reverse));margin-left:calc(1.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-10>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2.5rem * var(--tw-space-y-reverse))}.space-y-16>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(4rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(4rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.25rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.space-x-reverse>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 1}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.self-start{align-self:flex-start}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-ellipsis{text-overflow:ellipsis}.whitespace-nowrap{white-space:nowrap}.whitespace-pre{white-space:pre}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.rounded-b-2xl{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-l-none{border-top-left-radius:0;border-bottom-left-radius:0}.rounded-t-2xl{border-top-left-radius:1rem;border-top-right-radius:1rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-br-lg{border-bottom-right-radius:.5rem}.rounded-tr-lg{border-top-right-radius:.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-\[3px\]{border-width:3px}.border-\[5px\]{border-width:5px}.border-x{border-left-width:1px;border-right-width:1px}.border-b{border-bottom-width:1px}.border-b-2{border-bottom-width:2px}.border-l{border-left-width:1px}.border-l-4{border-left-width:4px}.border-l-\[1px\]{border-left-width:1px}.border-r{border-right-width:1px}.border-r-0{border-right-width:0px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-black\/10{border-color:#0000001a}.border-blue-400{--tw-border-opacity: 1;border-color:rgb(139 162 255 / var(--tw-border-opacity))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(101 131 255 / var(--tw-border-opacity))}.border-blue-600{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity))}.border-gray-100{--tw-border-opacity: 1;border-color:rgb(240 245 249 / var(--tw-border-opacity))}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(145 164 183 / var(--tw-border-opacity))}.border-gray-500{--tw-border-opacity: 1;border-color:rgb(97 117 138 / var(--tw-border-opacity))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(48 66 84 / var(--tw-border-opacity))}.border-gray-900{--tw-border-opacity: 1;border-color:rgb(13 24 41 / var(--tw-border-opacity))}.border-green-bright-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity))}.border-neutral-200{--tw-border-opacity: 1;border-color:rgb(229 229 229 / var(--tw-border-opacity))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(241 163 166 / var(--tw-border-opacity))}.border-red-400{--tw-border-opacity: 1;border-color:rgb(233 117 121 / var(--tw-border-opacity))}.border-red-500{--tw-border-opacity: 1;border-color:rgb(226 71 77 / var(--tw-border-opacity))}.border-transparent{border-color:transparent}.border-white{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.border-yellow-300{--tw-border-opacity: 1;border-color:rgb(255 220 178 / var(--tw-border-opacity))}.border-yellow-bright-200{--tw-border-opacity: 1;border-color:rgb(254 240 138 / var(--tw-border-opacity))}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}.bg-blue-200{--tw-bg-opacity: 1;background-color:rgb(216 224 255 / var(--tw-bg-opacity))}.bg-blue-400{--tw-bg-opacity: 1;background-color:rgb(139 162 255 / var(--tw-bg-opacity))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(101 131 255 / var(--tw-bg-opacity))}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}.bg-blue-700{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.bg-gray-200\/50{background-color:#e1e8f080}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(202 213 224 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(97 117 138 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(48 66 84 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(13 24 41 / var(--tw-bg-opacity))}.bg-gray-900\/95{background-color:#0d1829f2}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(233 244 233 / var(--tw-bg-opacity))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(119 184 118 / var(--tw-bg-opacity))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(74 161 72 / var(--tw-bg-opacity))}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(29 137 26 / var(--tw-bg-opacity))}.bg-green-bright-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity))}.bg-neutral-100{--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(252 232 233 / var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity: 1;background-color:rgb(248 209 210 / var(--tw-bg-opacity))}.bg-red-400{--tw-bg-opacity: 1;background-color:rgb(233 117 121 / var(--tw-bg-opacity))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(226 71 77 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(255 247 236 / var(--tw-bg-opacity))}.bg-yellow-200{--tw-bg-opacity: 1;background-color:rgb(255 238 217 / var(--tw-bg-opacity))}.bg-yellow-600{--tw-bg-opacity: 1;background-color:rgb(255 168 63 / var(--tw-bg-opacity))}.bg-yellow-bright-200{--tw-bg-opacity: 1;background-color:rgb(254 240 138 / var(--tw-bg-opacity))}.fill-blue-600{fill:#3e64ff}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-\[1px\]{padding-left:1px;padding-right:1px}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-1{padding-bottom:.25rem}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-8{padding-bottom:2rem}.pl-0{padding-left:0}.pl-0\.5{padding-left:.125rem}.pl-1{padding-left:.25rem}.pl-10{padding-left:2.5rem}.pl-2{padding-left:.5rem}.pl-3{padding-left:.75rem}.pl-4{padding-left:1rem}.pl-5{padding-left:1.25rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-20{padding-right:5rem}.pr-3{padding-right:.75rem}.pr-4{padding-right:1rem}.pr-8{padding-right:2rem}.pt-1{padding-top:.25rem}.pt-16{padding-top:4rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-baseline{vertical-align:baseline}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.align-bottom{vertical-align:bottom}.align-text-bottom{vertical-align:text-bottom}.font-logo{font-family:Red Hat Text}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-\[0\.75em\]{font-size:.75em}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-light{font-weight:300}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.italic{font-style:italic}.not-italic{font-style:normal}.leading-4{line-height:1rem}.leading-6{line-height:1.5rem}.leading-none{line-height:1}.leading-normal{line-height:1.5}.tracking-wider{letter-spacing:.05em}.text-blue-400{--tw-text-opacity: 1;color:rgb(139 162 255 / var(--tw-text-opacity))}.text-blue-500{--tw-text-opacity: 1;color:rgb(101 131 255 / var(--tw-text-opacity))}.text-blue-600{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.text-blue-700{--tw-text-opacity: 1;color:rgb(45 76 219 / var(--tw-text-opacity))}.text-blue-800{--tw-text-opacity: 1;color:rgb(31 55 183 / var(--tw-text-opacity))}.text-brand-pink{--tw-text-opacity: 1;color:rgb(228 76 117 / var(--tw-text-opacity))}.text-gray-100{--tw-text-opacity: 1;color:rgb(240 245 249 / var(--tw-text-opacity))}.text-gray-200{--tw-text-opacity: 1;color:rgb(225 232 240 / var(--tw-text-opacity))}.text-gray-300{--tw-text-opacity: 1;color:rgb(202 213 224 / var(--tw-text-opacity))}.text-gray-400{--tw-text-opacity: 1;color:rgb(145 164 183 / var(--tw-text-opacity))}.text-gray-50{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.text-gray-500{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.text-gray-600{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.text-gray-700{--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.text-gray-900{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.text-green-300{--tw-text-opacity: 1;color:rgb(165 208 163 / var(--tw-text-opacity))}.text-green-400{--tw-text-opacity: 1;color:rgb(119 184 118 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(13 98 25 / var(--tw-text-opacity))}.text-green-bright-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}.text-red-400{--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity))}.text-red-500{--tw-text-opacity: 1;color:rgb(226 71 77 / var(--tw-text-opacity))}.text-red-600{--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.text-red-900{--tw-text-opacity: 1;color:rgb(127 7 43 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-400{--tw-text-opacity: 1;color:rgb(255 203 140 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(255 168 63 / var(--tw-text-opacity))}.text-yellow-bright-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity))}.text-yellow-bright-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity))}.underline{text-decoration-line:underline}.overline{text-decoration-line:overline}.placeholder-gray-400::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.placeholder-gray-400::placeholder{--tw-placeholder-opacity: 1;color:rgb(145 164 183 / var(--tw-placeholder-opacity))}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-50{opacity:.5}.opacity-75{opacity:.75}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_15px_99px_-0px_rgba\(12\,24\,41\,0\.15\)\]{--tw-shadow: 0 15px 99px -0px rgba(12,24,41,.15);--tw-shadow-colored: 0 15px 99px -0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.grayscale{--tw-grayscale: grayscale(100%);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.delay-200{transition-delay:.2s}.duration-100{transition-duration:.1s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.bg-editor{background-color:#282c34}body[data-editor-theme=light] .bg-editor{background-color:#fafafa}.font-editor{font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px}.shadow-custom-1{box-shadow:10px 5px 25px -8px #0003}.flip-horizontally{transform:scaleY(-1)}.delay-200{animation:delay-frames .2s}@keyframes delay-frames{0%{opacity:0;height:0;width:0}99%{opacity:0;height:0;width:0}}iframe[hidden],.phx-no-feedback.invalid-feedback,.phx-no-feedback .invalid-feedback{display:none}.phx-click-loading{opacity:.5;transition:opacity 1s ease-out}.phx-loading{cursor:wait}.markdown{--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.markdown h1{margin-top:2rem;margin-bottom:1rem;font-size:1.875rem;line-height:2.25rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h2{margin-top:2rem;margin-bottom:1rem;font-size:1.5rem;line-height:2rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h3{margin-top:2rem;margin-bottom:1rem;font-size:1.25rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h4{margin-top:2rem;margin-bottom:1rem;font-size:1.125rem;line-height:1.75rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown h5,.markdown h6{margin-top:2rem;margin-bottom:1rem;font-size:1rem;line-height:1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.markdown p{margin-top:1rem;margin-bottom:1rem}.markdown ul{margin-top:1.25rem;margin-bottom:1.25rem;margin-left:2rem;list-style-position:outside;list-style-type:disc}.markdown ol{margin-top:1.25rem;margin-bottom:1.25rem;margin-left:2rem;list-style-position:outside;list-style-type:decimal}.markdown ul ul{list-style-type:circle}.markdown ul ul ul{list-style-type:square}.markdown .task-list-item{list-style-type:none}.markdown .task-list-item input[type=checkbox]{margin-left:-1.1rem;vertical-align:middle}.markdown ul>li,.markdown ol>li{margin-top:.25rem;margin-bottom:.25rem}.markdown li>ul,.markdown li>ol{margin-top:0;margin-bottom:0}.markdown blockquote{margin-top:1rem;margin-bottom:1rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.markdown a{font-weight:500;--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity));text-decoration-line:underline}.markdown a:hover{text-decoration-line:none}.markdown img{margin-left:auto;margin-right:auto;margin-top:1rem;margin-bottom:1rem}.markdown table::-webkit-scrollbar{width:.4rem;height:.4rem}.markdown table::-webkit-scrollbar-thumb{border-radius:.25rem;--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.markdown table::-webkit-scrollbar-track{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.markdown table{margin-top:1rem;margin-bottom:1rem;width:100%;border-radius:.5rem;box-shadow:0 0 25px -5px #0000001a,0 0 10px -5px #0000000a}.markdown table thead{text-align:left}.markdown table thead tr,.markdown table tbody tr{border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.markdown table tbody tr:last-child{border-bottom-width:0px}.markdown table tbody tr:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.markdown table th{padding:.75rem 1.5rem;font-weight:600;--tw-text-opacity: 1;color:rgb(48 66 84 / var(--tw-text-opacity))}.markdown table td{padding:.75rem 1.5rem;--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.markdown table th[align=center],.markdown table td[align=center]{text-align:center}.markdown table th[align=right],.markdown table td[align=right]{text-align:right}.markdown code{border-radius:.5rem;--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity));padding:.1rem .5rem;vertical-align:middle;font-family:JetBrains Mono,monospace;font-size:.875rem;line-height:1.25rem;font-variant-ligatures:none}.markdown pre{display:flex;overflow:hidden}.markdown pre>code{flex:1 1 0%;overflow:auto;border-radius:.5rem;padding:1rem;vertical-align:middle;background-color:#282c34}body[data-editor-theme=light] .markdown pre>code{background-color:#fafafa}.markdown pre>code{color:#c4cad6;font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px}.markdown kbd{border-radius:.5rem;border-width:1px;--tw-border-opacity: 1;border-color:rgb(202 213 224 / var(--tw-border-opacity));padding:.2rem .5rem;vertical-align:middle;font-family:JetBrains Mono,monospace;font-size:.75rem;line-height:1rem;box-shadow:#cad5e0 0 -2px inset}.markdown>:first-child{margin-top:0}.markdown>:last-child{margin-bottom:0}.markdown .katex-display{margin-top:2rem;margin-bottom:2rem}[data-el-cell][data-type=markdown] .markdown h1,[data-el-cell][data-type=markdown] .markdown h2{font-size:0}[data-el-cell][data-type=markdown] .markdown h1:after,[data-el-cell][data-type=markdown] .markdown h2:after{font-size:1rem;line-height:1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(233 117 121 / var(--tw-text-opacity));content:"warning: heading levels 1 and 2 are reserved for notebook and section names, please use heading 3 and above."}:root{--ansi-color-black: black;--ansi-color-red: #ca1243;--ansi-color-green: #50a14f;--ansi-color-yellow: #c18401;--ansi-color-blue: #4078f2;--ansi-color-magenta: #a726a4;--ansi-color-cyan: #0184bc;--ansi-color-white: white;--ansi-color-light-black: #5c6370;--ansi-color-light-red: #e45649;--ansi-color-light-green: #34d399;--ansi-color-light-yellow: #fde68a;--ansi-color-light-blue: #61afef;--ansi-color-light-magenta: #c678dd;--ansi-color-light-cyan: #56b6c2;--ansi-color-light-white: white}body[data-editor-theme=default] .editor-theme-aware-ansi{--ansi-color-black: black;--ansi-color-red: #be5046;--ansi-color-green: #98c379;--ansi-color-yellow: #e5c07b;--ansi-color-blue: #61afef;--ansi-color-magenta: #c678dd;--ansi-color-cyan: #56b6c2;--ansi-color-white: white;--ansi-color-light-black: #5c6370;--ansi-color-light-red: #e06c75;--ansi-color-light-green: #34d399;--ansi-color-light-yellow: #fde68a;--ansi-color-light-blue: #93c5fd;--ansi-color-light-magenta: #f472b6;--ansi-color-light-cyan: #6be3f2;--ansi-color-light-white: white}[phx-hook=Highlight][data-highlighted]>[data-source]{display:none}[phx-hook=Dropzone][data-js-dragging]{--tw-border-opacity: 1;border-color:rgb(178 193 255 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(236 240 255 / var(--tw-bg-opacity))}[data-el-session]:not([data-js-insert-mode]) [data-el-insert-mode-indicator]{visibility:hidden}[data-el-session]:not([data-js-insert-mode]) [data-el-cell][data-type=markdown] [data-el-editor-box],[data-el-session][data-js-insert-mode] [data-el-cell][data-type=markdown]:not([data-js-focused]) [data-el-editor-box]{display:none}[data-el-session][data-js-insert-mode] [data-el-cell][data-js-focused] [data-el-enable-insert-mode-button]{display:none}[data-el-session]:not([data-js-insert-mode]) [data-el-cell][data-type=markdown][data-js-focused] [data-el-insert-image-button]{display:none}[data-el-notebook-headline]:hover [data-el-heading],[data-el-section-headline]:hover [data-el-heading]{--tw-border-opacity: 1;border-color:rgb(216 224 255 / var(--tw-border-opacity))}[data-el-notebook-headline][data-js-focused] [data-el-heading],[data-el-section-headline][data-js-focused] [data-el-heading]{--tw-border-opacity: 1;border-color:rgb(178 193 255 / var(--tw-border-opacity))}[data-el-section-headline]:not(:hover):not([data-js-focused]) [data-el-heading]+[data-el-section-actions]:not(:focus-within){display:none}[data-el-section][data-js-collapsed] [data-el-section-collapse-button],[data-el-section]:not([data-js-collapsed]) [data-el-section-headline]:not(:hover):not([data-js-focused]) [data-el-section-collapse-button],[data-el-section]:not([data-js-collapsed]) [data-el-section-expand-button],[data-el-session]:not([data-js-view="code-zen"]) [data-el-section][data-js-collapsed]>[data-el-section-content],[data-el-section]:not([data-js-collapsed])>[data-el-section-subheadline-collapsed]{display:none}[data-el-session]:not([data-js-dragging]) [data-el-insert-drop-area]{display:none}[data-el-session]:not([data-js-dragging="external"]) [data-el-files-drop-area]{display:none}[data-el-session][data-js-dragging=external] [data-el-files-add-button]{display:none}[data-el-cell][data-js-focused]{border-color:rgb(178 193 255 / var(--tw-border-opacity));--tw-border-opacity: 1}[data-el-cell]:not([data-js-focused]) [data-el-actions]:not(:focus-within){opacity:0}[data-el-cell]:not([data-js-focused]) [data-el-actions]:not([data-primary]):not(:focus-within){pointer-events:none}[data-el-cell]:not([data-js-focused])[data-js-hover] [data-el-actions][data-primary]{pointer-events:auto;opacity:1}[data-el-cell][data-js-changed] [data-el-cell-status]{font-style:italic}[data-el-cell]:not([data-js-changed]) [data-el-cell-status] [data-el-change-indicator]{visibility:hidden}[data-el-sections-list-item][data-js-is-viewed]{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell]:not([data-js-focused])[data-js-hover] [data-el-cell-focus-indicator]{--tw-bg-opacity: 1;background-color:rgb(216 224 255 / var(--tw-bg-opacity))}[data-el-cell][data-js-focused] [data-el-cell-focus-indicator]{--tw-bg-opacity: 1;background-color:rgb(178 193 255 / var(--tw-bg-opacity))}[data-el-cell][data-js-amplified] [data-el-outputs-container]{margin:0;--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity));padding-top:4rem;padding-bottom:4rem;width:90vw;position:relative;left:calc(-45vw + 50%)}[data-el-cell][data-js-amplified] [data-el-amplify-outputs-button] .icon-button{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell][data-type=smart]:not([data-js-source-visible]) [data-el-editor-box]{height:0px;overflow:hidden}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-ui-box]{display:none}[data-el-session] [data-el-cell][data-type=setup]:not([data-eval-validity="fresh"]:not([data-js-empty])):not([data-eval-errored]):not([data-js-changed]):not([data-js-focused]) [data-el-editor-box]{height:0px;overflow:hidden}[data-el-session] [data-el-cell][data-type=setup][data-js-focused] [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-eval-validity=fresh]:not([data-js-empty]) [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-eval-errored] [data-el-info-box],[data-el-session] [data-el-cell][data-type=setup][data-js-changed] [data-el-info-box]{display:none}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-toggle-source-button] .icon-button{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}[data-el-cell][data-type=smart][data-js-source-visible] [data-el-cell-status-container]{position:absolute;bottom:.5rem;right:.5rem}[data-el-output][data-border]>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse));--tw-divide-opacity: 1;border-color:rgb(225 232 240 / var(--tw-divide-opacity))}[data-el-output][data-border]{border-width:1px;border-top-width:0px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding:1rem}[data-el-output][data-border]:first-child{border-top-left-radius:.5rem;border-top-right-radius:.5rem;border-top-width:1px}[data-el-output]:not([data-border])+[data-el-output][data-border]{border-top-width:1px}[data-el-output][data-border]:last-child{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem;border-bottom-width:1px}[data-el-output]:not(:first-child){margin-top:.5rem}[data-el-output][data-border]+[data-el-output][data-border]{margin-top:0}[data-el-outputs-container]>[data-el-output]:first-child{margin-top:.5rem}[data-el-session]:not([data-js-side-panel-content]) [data-el-side-panel]{display:none}[data-el-session]:not([data-js-side-panel-content="sections-list"]) [data-el-sections-list]{display:none}[data-el-session]:not([data-js-side-panel-content="clients-list"]) [data-el-clients-list]{display:none}[data-el-session]:not([data-js-side-panel-content="secrets-list"]) [data-el-secrets-list]{display:none}[data-el-session]:not([data-js-side-panel-content="files-list"]) [data-el-files-list]{display:none}[data-el-session]:not([data-js-side-panel-content="runtime-info"]) [data-el-runtime-info]{display:none}[data-el-session]:not([data-js-side-panel-content="app-info"]) [data-el-app-info]{display:none}[data-el-session][data-js-side-panel-content=sections-list] [data-el-sections-list-toggle],[data-el-session][data-js-side-panel-content=clients-list] [data-el-clients-list-toggle],[data-el-session][data-js-side-panel-content=secrets-list] [data-el-secrets-list-toggle],[data-el-session][data-js-side-panel-content=files-list] [data-el-files-list-toggle],[data-el-session][data-js-side-panel-content=runtime-info] [data-el-runtime-info-toggle],[data-el-session][data-js-side-panel-content=app-info] [data-el-app-info-toggle]{--tw-bg-opacity: 1;background-color:rgb(48 66 84 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}[data-el-session][data-js-side-panel-content=app-info] [data-el-app-indicator]{--tw-border-opacity: 1;border-color:rgb(48 66 84 / var(--tw-border-opacity))}[data-el-clients-list-item]:not([data-js-followed]) [data-meta=unfollow]{display:none}[data-el-clients-list-item][data-js-followed] [data-meta=follow]{display:none}[phx-hook=VirtualizedLines]:not(:hover) [data-el-clipcopy]{display:none}[data-el-session][data-js-view=code-zen] [data-el-view-toggle=code-zen],[data-el-session][data-js-view=presentation] [data-el-view-toggle=presentation],[data-el-session][data-js-view=custom] [data-el-view-toggle=custom]{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity))}[data-el-session][data-js-view] :is([data-el-actions],[data-el-insert-buttons]){display:none}[data-el-session][data-js-view] [data-el-views-disabled]{display:none}[data-el-session]:not([data-js-view]) [data-el-views-enabled]{display:none}[data-js-hide-output] [data-el-output]{display:none}[data-js-hide-section] :is([data-el-section-headline],[data-el-section-subheadline],[data-el-section-subheadline-collapsed]){display:none}[data-js-hide-section] [data-el-sections-container]{margin-top:0}[data-js-hide-section] [data-el-sections-container]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}[data-js-hide-markdown] [data-el-cell][data-type=markdown]{display:none}[data-js-spotlight] :is([data-el-section-headline]:not([data-js-focused]),[data-el-section-subheadline]:not([data-js-focused]),[data-el-cell]:not([data-js-focused]),[data-el-js-view-iframes] iframe:not([data-js-focused])){opacity:.1}[data-js-spotlight] :is([data-el-sidebar],[data-el-side-panel],[data-el-toggle-sidebar]){display:none}.tooltip{position:relative;display:flex;--distance: 4px;--arrow-size: 5px;--show-delay: .5s}.tooltip.distant{--distance: 28px}.tooltip.distant-medium{--distance: 10px}.tooltip:before{position:absolute;content:attr(data-tooltip);white-space:pre;text-align:center;display:block;z-index:100;background-color:#1c273c;color:#f0f5f9;font-size:12px;font-weight:500;border-radius:4px;padding:3px 12px;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:after{content:"";position:absolute;display:block;z-index:100;border-width:var(--arrow-size);border-style:solid;border-color:#1c273c;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:0s}.tooltip:hover:before{visibility:visible;transition-delay:var(--show-delay)}.tooltip:hover:after{visibility:visible;transition-delay:var(--show-delay)}.tooltip.top:before{bottom:100%;left:50%;transform:translate(-50%,calc(1px - var(--arrow-size) - var(--distance)))}.tooltip.top:after{bottom:100%;left:50%;transform:translate(-50%,calc(0px - var(--distance)));border-bottom:none;border-left-color:transparent;border-right-color:transparent}.tooltip.bottom:before{top:100%;left:50%;transform:translate(-50%,calc(var(--arrow-size) - 1px + var(--distance)))}.tooltip.bottom-left:before{top:100%;right:0;transform:translateY(calc(var(--arrow-size) - 1px + var(--distance)))}.tooltip.bottom:after,.tooltip.bottom-left:after{top:100%;left:50%;transform:translate(-50%,var(--distance));border-top:none;border-left-color:transparent;border-right-color:transparent}.tooltip.right:before{top:50%;left:100%;transform:translate(calc(var(--arrow-size) - 1px + var(--distance)),-50%)}.tooltip.right:after{top:50%;left:100%;transform:translate(var(--distance),-50%);border-left:none;border-top-color:transparent;border-bottom-color:transparent}.tooltip.left:before{top:50%;right:100%;transform:translate(calc(1px - var(--arrow-size) - var(--distance)),-50%)}.tooltip.left:after{top:50%;right:100%;transform:translate(calc(0px - var(--distance)),-50%);border-right:none;border-top-color:transparent;border-bottom-color:transparent}.monaco-hover p,.suggest-details p,.parameter-hints-widget p{margin-top:.5rem!important;margin-bottom:.5rem!important}.suggest-details h1,.monaco-hover h1,.parameter-hints-widget h1{margin-top:1rem;margin-bottom:.5rem;font-size:1.25rem;line-height:1.75rem;font-weight:600}.suggest-details h2,.monaco-hover h2,.parameter-hints-widget h2{margin-top:1rem;margin-bottom:.5rem;font-size:1.125rem;line-height:1.75rem;font-weight:500}.suggest-details h3,.monaco-hover h3,.parameter-hints-widget h3{margin-top:1rem;margin-bottom:.5rem;font-weight:500}.suggest-details ul,.monaco-hover ul,.parameter-hints-widget ul{list-style-type:disc}.suggest-details ol,.monaco-hover ol,.parameter-hints-widget ol{list-style-type:decimal}.suggest-details hr,.monaco-hover hr,.parameter-hints-widget hr{margin-top:.5rem!important;margin-bottom:.5rem!important}.suggest-details blockquote,.monaco-hover blockquote,.parameter-hints-widget blockquote{margin-top:.5rem;margin-bottom:.5rem;border-left-width:4px;--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity));padding-top:.125rem;padding-bottom:.125rem;padding-left:1rem}.suggest-details div.monaco-tokenized-source,.monaco-hover div.monaco-tokenized-source,.parameter-hints-widget div.monaco-tokenized-source{margin-top:.5rem;margin-bottom:.5rem;white-space:pre-wrap}.suggest-details,.monaco-hover,.parameter-hints-widget{z-index:100!important}.suggest-details .header p{padding-bottom:0!important;padding-top:.75rem!important}.parameter-hints-widget .markdown-docs hr{border-top:1px solid rgba(69,69,69,.5);margin-right:-8px;margin-left:-8px}.monaco-hover-content{max-width:1000px!important;max-height:300px!important}.suggest-details-container,.suggest-details{width:-moz-fit-content!important;width:fit-content!important;height:-moz-fit-content!important;height:fit-content!important;max-width:420px!important;max-height:250px!important}.suggest-details .header .type{padding-top:0!important}.docs.markdown-docs{margin:0!important}.monaco-editor .quick-input-list .monaco-list{max-height:300px!important}.monaco-cursor-widget-container{pointer-events:none;z-index:100}.monaco-cursor-widget-container .monaco-cursor-widget-cursor{pointer-events:initial;width:2px}.monaco-cursor-widget-container .monaco-cursor-widget-label{pointer-events:initial;transform:translateY(-200%);white-space:nowrap;padding:1px 8px;font-size:12px;color:#f8fafc;visibility:hidden;transition-property:visibility;transition-duration:0s;transition-delay:1.5s}.monaco-cursor-widget-container .monaco-cursor-widget-label:hover{visibility:visible}.monaco-cursor-widget-container .monaco-cursor-widget-cursor:hover+.monaco-cursor-widget-label{visibility:visible;transition-delay:0s}.monaco-cursor-widget-container.inline{display:flex!important}.monaco-cursor-widget-container.inline .monaco-cursor-widget-label{margin-left:2px;transform:none}.doctest-status-decoration-running,.doctest-status-decoration-success,.doctest-status-decoration-failed{height:100%;position:relative;--decoration-size: 10px}@media (min-width: 768px){.doctest-status-decoration-running,.doctest-status-decoration-success,.doctest-status-decoration-failed{--decoration-size: 12px}}.doctest-status-decoration-running:after,.doctest-status-decoration-success:after,.doctest-status-decoration-failed:after{box-sizing:border-box;border-radius:2px;content:"";display:block;height:var(--decoration-size);width:var(--decoration-size);position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.doctest-status-decoration-running:after{--tw-bg-opacity: 1;background-color:rgb(145 164 183 / var(--tw-bg-opacity))}.doctest-status-decoration-success:after{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity))}.doctest-status-decoration-failed:after{--tw-bg-opacity: 1;background-color:rgb(233 117 121 / var(--tw-bg-opacity))}.doctest-details-widget{font-family:JetBrains Mono,Droid Sans Mono,"monospace";font-variant-ligatures:none;font-size:14px;white-space:pre;background-color:#0000000d;padding-top:6px;padding-bottom:6px;position:absolute;width:100%;overflow-y:auto}.ri-livebook-sections,.ri-livebook-runtime,.ri-livebook-shortcuts,.ri-livebook-secrets,.ri-livebook-deploy,.ri-livebook-terminal,.ri-livebook-save{vertical-align:middle;font-size:1.25rem;line-height:1.75rem}.ri-livebook-sections:before{content:"\eade"}.ri-livebook-runtime:before{content:"\ebf0"}.ri-livebook-shortcuts:before{content:"\ee72"}.ri-livebook-secrets:before{content:"\eed0"}.ri-livebook-deploy:before{content:"\f096"}.ri-livebook-terminal:before{content:"\f1f8"}.ri-livebook-save:before{content:"\f0b3"}.invalid\:input--error:invalid{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity));--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity));--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}.first\:rounded-l-lg:first-child{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.last\:rounded-r-lg:last-child{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.last\:border-b-0:last-child{border-bottom-width:0px}.last\:border-r:last-child{border-right-width:1px}.checked\:translate-x-full:checked{--tw-translate-x: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.checked\:border-blue-600:checked{--tw-border-opacity: 1;border-color:rgb(62 100 255 / var(--tw-border-opacity))}.checked\:bg-white:checked{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.empty\:hidden:empty{display:none}.focus-within\:opacity-100:focus-within{opacity:1}.hover\:z-\[11\]:hover{z-index:11}.hover\:cursor-pointer:hover{cursor:pointer}.hover\:rounded-md:hover{border-radius:.375rem}.hover\:border-none:hover{border-style:none}.hover\:border-gray-200:hover{--tw-border-opacity: 1;border-color:rgb(225 232 240 / var(--tw-border-opacity))}.hover\:border-transparent:hover{border-color:transparent}.hover\:border-white:hover{--tw-border-opacity: 1;border-color:rgb(255 255 255 / var(--tw-border-opacity))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.hover\:bg-green-bright-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity))}.hover\:bg-yellow-bright-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.hover\:text-blue-600:hover{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.hover\:text-gray-50:hover{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.hover\:text-gray-500:hover{--tw-text-opacity: 1;color:rgb(97 117 138 / var(--tw-text-opacity))}.hover\:text-gray-600:hover{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.hover\:text-gray-800:hover{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(13 24 41 / var(--tw-text-opacity))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.hover\:no-underline:hover{text-decoration-line:none}.hover\:\!opacity-100:hover{opacity:1!important}.hover\:opacity-100:hover{opacity:1}.focus\:bg-blue-50:focus{--tw-bg-opacity: 1;background-color:rgb(245 247 255 / var(--tw-bg-opacity))}.focus\:bg-blue-700:focus{--tw-bg-opacity: 1;background-color:rgb(45 76 219 / var(--tw-bg-opacity))}.focus\:bg-gray-100:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.focus\:bg-green-bright-50:focus{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity))}.focus\:bg-red-50:focus{--tw-bg-opacity: 1;background-color:rgb(253 243 244 / var(--tw-bg-opacity))}.focus\:bg-yellow-bright-50:focus{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity))}.focus\:text-gray-50:focus{--tw-text-opacity: 1;color:rgb(248 250 252 / var(--tw-text-opacity))}.focus\:text-gray-600:focus{--tw-text-opacity: 1;color:rgb(68 86 104 / var(--tw-text-opacity))}.focus\:text-gray-800:focus{--tw-text-opacity: 1;color:rgb(28 42 58 / var(--tw-text-opacity))}.focus\:text-white:focus{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-gray-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(145 164 183 / var(--tw-ring-opacity))}.active\:bg-gray-200:active{--tw-bg-opacity: 1;background-color:rgb(225 232 240 / var(--tw-bg-opacity))}.disabled\:pointer-events-none:disabled{pointer-events:none}.group:focus-within .group-focus-within\:flex{display:flex}.group:hover .group-hover\:visible{visibility:visible}.group:hover .group-hover\:flex{display:flex}.group:hover .group-hover\:text-blue-600{--tw-text-opacity: 1;color:rgb(62 100 255 / var(--tw-text-opacity))}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.group:hover .group-hover\:ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.group:hover .group-hover\:ring-white{--tw-ring-opacity: 1;--tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity))}.peer:checked~.peer-checked\:bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(62 100 255 / var(--tw-bg-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:block{display:block}:not(.phx-no-feedback).show-errors .phx-form-error\:border-red-600{--tw-border-opacity: 1;border-color:rgb(219 25 32 / var(--tw-border-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:text-red-600{--tw-text-opacity: 1;color:rgb(219 25 32 / var(--tw-text-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:placeholder-red-600::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(219 25 32 / var(--tw-placeholder-opacity))}:not(.phx-no-feedback).show-errors .phx-form-error\:placeholder-red-600::placeholder{--tw-placeholder-opacity: 1;color:rgb(219 25 32 / var(--tw-placeholder-opacity))}.phx-submit-loading.phx-submit-loading\:block,.phx-submit-loading .phx-submit-loading\:block{display:block}@media (min-width: 640px){.sm\:fixed{position:fixed}.sm\:bottom-0{bottom:0}.sm\:bottom-auto{bottom:auto}.sm\:left-0{left:0}.sm\:left-auto{left:auto}.sm\:right-0{right:0}.sm\:right-auto{right:auto}.sm\:top-0{top:0}.sm\:top-auto{top:auto}.sm\:m-auto{margin:auto}.sm\:-mb-1{margin-bottom:-.25rem}.sm\:-mt-1{margin-top:-.25rem}.sm\:mb-0{margin-bottom:0}.sm\:mt-0{margin-top:0}.sm\:block{display:block}.sm\:flex{display:flex}.sm\:hidden{display:none}.sm\:w-72{width:18rem}.sm\:-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.sm\:scroll-mt-0{scroll-margin-top:0px}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:items-center{align-items:center}.sm\:justify-between{justify-content:space-between}.sm\:gap-12{gap:3rem}.sm\:gap-3{gap:.75rem}.sm\:space-x-0>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(0px * var(--tw-space-x-reverse));margin-left:calc(0px * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.sm\:space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.sm\:p-0{padding:0}.sm\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.sm\:pl-8{padding-left:2rem}.sm\:pr-16{padding-right:4rem}}@media (min-width: 768px){.md\:static{position:static}.md\:fixed{position:fixed}.md\:absolute{position:absolute}.md\:bottom-0{bottom:0}.md\:bottom-auto{bottom:auto}.md\:left-0{left:0}.md\:left-4{left:1rem}.md\:left-auto{left:auto}.md\:right-0{right:0}.md\:right-auto{right:auto}.md\:top-0{top:0}.md\:top-auto{top:auto}.md\:-mb-1{margin-bottom:-.25rem}.md\:-mt-1{margin-top:-.25rem}.md\:mb-0{margin-bottom:0}.md\:mt-0{margin-top:0}.md\:flex{display:flex}.md\:hidden{display:none}.md\:-translate-y-full{--tw-translate-y: -100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:translate-y-full{--tw-translate-y: 100%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.md\:grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-\[minmax\(0\,_2fr\)_minmax\(0\,_2fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}.md\:flex-row{flex-direction:row}.md\:flex-col{flex-direction:column}.md\:items-end{align-items:flex-end}.md\:items-center{align-items:center}.md\:gap-2{gap:.5rem}.md\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.md\:px-12{padding-left:3rem;padding-right:3rem}.md\:px-20{padding-left:5rem;padding-right:5rem}.md\:py-2{padding-top:.5rem;padding-bottom:.5rem}.md\:py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.md\:py-5{padding-top:1.25rem;padding-bottom:1.25rem}.md\:py-6{padding-top:1.5rem;padding-bottom:1.5rem}.md\:py-7{padding-top:1.75rem;padding-bottom:1.75rem}.md\:py-8{padding-top:2rem;padding-bottom:2rem}.md\:pl-16{padding-left:4rem}.md\:pr-0{padding-right:0}.md\:text-base{font-size:1rem;line-height:1.5rem}.md\:shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media (min-width: 1024px){.lg\:flex{display:flex}.lg\:w-1\/2{width:50%}.lg\:grow{flex-grow:1}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[minmax\(0\,_2fr\)_minmax\(0\,_2fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)_minmax\(0\,_1fr\)\]{grid-template-columns:minmax(0,2fr) minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr)}.lg\:flex-row{flex-direction:row}.lg\:justify-end{justify-content:flex-end}.lg\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.lg\:whitespace-nowrap{white-space:nowrap}.lg\:pr-4{padding-right:1rem}}@media (min-width: 1280px){.xl\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\>\:first-child\:focus\]\:bg-gray-100>:first-child:focus{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.\[\&\>\:first-child\:hover\]\:bg-gray-100>:first-child:hover{--tw-bg-opacity: 1;background-color:rgb(240 245 249 / var(--tw-bg-opacity))}.\[\&\>\:first-child\]\:flex>:first-child{display:flex}.\[\&\>\:first-child\]\:w-full>:first-child{width:100%}.\[\&\>\:first-child\]\:items-center>:first-child{align-items:center}.\[\&\>\:first-child\]\:space-x-3>:first-child>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.\[\&\>\:first-child\]\:whitespace-nowrap>:first-child{white-space:nowrap}.\[\&\>\:first-child\]\:px-5>:first-child{padding-left:1.25rem;padding-right:1.25rem}.\[\&\>\:first-child\]\:py-2>:first-child{padding-top:.5rem;padding-bottom:.5rem}@font-face{font-family:remixicon;src:url(./remixicon-3KSFQP65.eot?t=1687271883607);src:url(./remixicon-3KSFQP65.eot?t=1687271883607#iefix) format("embedded-opentype"),url(./remixicon-7VLWHHXB.woff2?t=1687271883607) format("woff2"),url(./remixicon-QAZMZLBV.woff?t=1687271883607) format("woff"),url(./remixicon-NW2RLARO.ttf?t=1687271883607) format("truetype"),url(./remixicon-VPIZ2QTU.svg?t=1687271883607#remixicon) format("svg");font-display:swap}[class^=ri-],[class*=" ri-"]{font-family:remixicon!important;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ri-lg{font-size:1.3333em;line-height:.75em;vertical-align:-.0667em}.ri-xl{font-size:1.5em;line-height:.6666em;vertical-align:-.075em}.ri-xxs{font-size:.5em}.ri-xs{font-size:.75em}.ri-sm{font-size:.875em}.ri-1x{font-size:1em}.ri-2x{font-size:2em}.ri-3x{font-size:3em}.ri-4x{font-size:4em}.ri-5x{font-size:5em}.ri-6x{font-size:6em}.ri-7x{font-size:7em}.ri-8x{font-size:8em}.ri-9x{font-size:9em}.ri-10x{font-size:10em}.ri-fw{text-align:center;width:1.25em}.ri-24-hours-fill:before{content:"\ea01"}.ri-24-hours-line:before{content:"\ea02"}.ri-4k-fill:before{content:"\ea03"}.ri-4k-line:before{content:"\ea04"}.ri-a-b:before{content:"\ea05"}.ri-account-box-fill:before{content:"\ea06"}.ri-account-box-line:before{content:"\ea07"}.ri-account-circle-fill:before{content:"\ea08"}.ri-account-circle-line:before{content:"\ea09"}.ri-account-pin-box-fill:before{content:"\ea0a"}.ri-account-pin-box-line:before{content:"\ea0b"}.ri-account-pin-circle-fill:before{content:"\ea0c"}.ri-account-pin-circle-line:before{content:"\ea0d"}.ri-add-box-fill:before{content:"\ea0e"}.ri-add-box-line:before{content:"\ea0f"}.ri-add-circle-fill:before{content:"\ea10"}.ri-add-circle-line:before{content:"\ea11"}.ri-add-fill:before{content:"\ea12"}.ri-add-line:before{content:"\ea13"}.ri-admin-fill:before{content:"\ea14"}.ri-admin-line:before{content:"\ea15"}.ri-advertisement-fill:before{content:"\ea16"}.ri-advertisement-line:before{content:"\ea17"}.ri-airplay-fill:before{content:"\ea18"}.ri-airplay-line:before{content:"\ea19"}.ri-alarm-fill:before{content:"\ea1a"}.ri-alarm-line:before{content:"\ea1b"}.ri-alarm-warning-fill:before{content:"\ea1c"}.ri-alarm-warning-line:before{content:"\ea1d"}.ri-album-fill:before{content:"\ea1e"}.ri-album-line:before{content:"\ea1f"}.ri-alert-fill:before{content:"\ea20"}.ri-alert-line:before{content:"\ea21"}.ri-aliens-fill:before{content:"\ea22"}.ri-aliens-line:before{content:"\ea23"}.ri-align-bottom:before{content:"\ea24"}.ri-align-center:before{content:"\ea25"}.ri-align-justify:before{content:"\ea26"}.ri-align-left:before{content:"\ea27"}.ri-align-right:before{content:"\ea28"}.ri-align-top:before{content:"\ea29"}.ri-align-vertically:before{content:"\ea2a"}.ri-alipay-fill:before{content:"\ea2b"}.ri-alipay-line:before{content:"\ea2c"}.ri-amazon-fill:before{content:"\ea2d"}.ri-amazon-line:before{content:"\ea2e"}.ri-anchor-fill:before{content:"\ea2f"}.ri-anchor-line:before{content:"\ea30"}.ri-ancient-gate-fill:before{content:"\ea31"}.ri-ancient-gate-line:before{content:"\ea32"}.ri-ancient-pavilion-fill:before{content:"\ea33"}.ri-ancient-pavilion-line:before{content:"\ea34"}.ri-android-fill:before{content:"\ea35"}.ri-android-line:before{content:"\ea36"}.ri-angularjs-fill:before{content:"\ea37"}.ri-angularjs-line:before{content:"\ea38"}.ri-anticlockwise-2-fill:before{content:"\ea39"}.ri-anticlockwise-2-line:before{content:"\ea3a"}.ri-anticlockwise-fill:before{content:"\ea3b"}.ri-anticlockwise-line:before{content:"\ea3c"}.ri-app-store-fill:before{content:"\ea3d"}.ri-app-store-line:before{content:"\ea3e"}.ri-apple-fill:before{content:"\ea3f"}.ri-apple-line:before{content:"\ea40"}.ri-apps-2-fill:before{content:"\ea41"}.ri-apps-2-line:before{content:"\ea42"}.ri-apps-fill:before{content:"\ea43"}.ri-apps-line:before{content:"\ea44"}.ri-archive-drawer-fill:before{content:"\ea45"}.ri-archive-drawer-line:before{content:"\ea46"}.ri-archive-fill:before{content:"\ea47"}.ri-archive-line:before{content:"\ea48"}.ri-arrow-down-circle-fill:before{content:"\ea49"}.ri-arrow-down-circle-line:before{content:"\ea4a"}.ri-arrow-down-fill:before{content:"\ea4b"}.ri-arrow-down-line:before{content:"\ea4c"}.ri-arrow-down-s-fill:before{content:"\ea4d"}.ri-arrow-down-s-line:before{content:"\ea4e"}.ri-arrow-drop-down-fill:before{content:"\ea4f"}.ri-arrow-drop-down-line:before{content:"\ea50"}.ri-arrow-drop-left-fill:before{content:"\ea51"}.ri-arrow-drop-left-line:before{content:"\ea52"}.ri-arrow-drop-right-fill:before{content:"\ea53"}.ri-arrow-drop-right-line:before{content:"\ea54"}.ri-arrow-drop-up-fill:before{content:"\ea55"}.ri-arrow-drop-up-line:before{content:"\ea56"}.ri-arrow-go-back-fill:before{content:"\ea57"}.ri-arrow-go-back-line:before{content:"\ea58"}.ri-arrow-go-forward-fill:before{content:"\ea59"}.ri-arrow-go-forward-line:before{content:"\ea5a"}.ri-arrow-left-circle-fill:before{content:"\ea5b"}.ri-arrow-left-circle-line:before{content:"\ea5c"}.ri-arrow-left-down-fill:before{content:"\ea5d"}.ri-arrow-left-down-line:before{content:"\ea5e"}.ri-arrow-left-fill:before{content:"\ea5f"}.ri-arrow-left-line:before{content:"\ea60"}.ri-arrow-left-right-fill:before{content:"\ea61"}.ri-arrow-left-right-line:before{content:"\ea62"}.ri-arrow-left-s-fill:before{content:"\ea63"}.ri-arrow-left-s-line:before{content:"\ea64"}.ri-arrow-left-up-fill:before{content:"\ea65"}.ri-arrow-left-up-line:before{content:"\ea66"}.ri-arrow-right-circle-fill:before{content:"\ea67"}.ri-arrow-right-circle-line:before{content:"\ea68"}.ri-arrow-right-down-fill:before{content:"\ea69"}.ri-arrow-right-down-line:before{content:"\ea6a"}.ri-arrow-right-fill:before{content:"\ea6b"}.ri-arrow-right-line:before{content:"\ea6c"}.ri-arrow-right-s-fill:before{content:"\ea6d"}.ri-arrow-right-s-line:before{content:"\ea6e"}.ri-arrow-right-up-fill:before{content:"\ea6f"}.ri-arrow-right-up-line:before{content:"\ea70"}.ri-arrow-up-circle-fill:before{content:"\ea71"}.ri-arrow-up-circle-line:before{content:"\ea72"}.ri-arrow-up-down-fill:before{content:"\ea73"}.ri-arrow-up-down-line:before{content:"\ea74"}.ri-arrow-up-fill:before{content:"\ea75"}.ri-arrow-up-line:before{content:"\ea76"}.ri-arrow-up-s-fill:before{content:"\ea77"}.ri-arrow-up-s-line:before{content:"\ea78"}.ri-artboard-2-fill:before{content:"\ea79"}.ri-artboard-2-line:before{content:"\ea7a"}.ri-artboard-fill:before{content:"\ea7b"}.ri-artboard-line:before{content:"\ea7c"}.ri-article-fill:before{content:"\ea7d"}.ri-article-line:before{content:"\ea7e"}.ri-aspect-ratio-fill:before{content:"\ea7f"}.ri-aspect-ratio-line:before{content:"\ea80"}.ri-asterisk:before{content:"\ea81"}.ri-at-fill:before{content:"\ea82"}.ri-at-line:before{content:"\ea83"}.ri-attachment-2:before{content:"\ea84"}.ri-attachment-fill:before{content:"\ea85"}.ri-attachment-line:before{content:"\ea86"}.ri-auction-fill:before{content:"\ea87"}.ri-auction-line:before{content:"\ea88"}.ri-award-fill:before{content:"\ea89"}.ri-award-line:before{content:"\ea8a"}.ri-baidu-fill:before{content:"\ea8b"}.ri-baidu-line:before{content:"\ea8c"}.ri-ball-pen-fill:before{content:"\ea8d"}.ri-ball-pen-line:before{content:"\ea8e"}.ri-bank-card-2-fill:before{content:"\ea8f"}.ri-bank-card-2-line:before{content:"\ea90"}.ri-bank-card-fill:before{content:"\ea91"}.ri-bank-card-line:before{content:"\ea92"}.ri-bank-fill:before{content:"\ea93"}.ri-bank-line:before{content:"\ea94"}.ri-bar-chart-2-fill:before{content:"\ea95"}.ri-bar-chart-2-line:before{content:"\ea96"}.ri-bar-chart-box-fill:before{content:"\ea97"}.ri-bar-chart-box-line:before{content:"\ea98"}.ri-bar-chart-fill:before{content:"\ea99"}.ri-bar-chart-grouped-fill:before{content:"\ea9a"}.ri-bar-chart-grouped-line:before{content:"\ea9b"}.ri-bar-chart-horizontal-fill:before{content:"\ea9c"}.ri-bar-chart-horizontal-line:before{content:"\ea9d"}.ri-bar-chart-line:before{content:"\ea9e"}.ri-barcode-box-fill:before{content:"\ea9f"}.ri-barcode-box-line:before{content:"\eaa0"}.ri-barcode-fill:before{content:"\eaa1"}.ri-barcode-line:before{content:"\eaa2"}.ri-barricade-fill:before{content:"\eaa3"}.ri-barricade-line:before{content:"\eaa4"}.ri-base-station-fill:before{content:"\eaa5"}.ri-base-station-line:before{content:"\eaa6"}.ri-basketball-fill:before{content:"\eaa7"}.ri-basketball-line:before{content:"\eaa8"}.ri-battery-2-charge-fill:before{content:"\eaa9"}.ri-battery-2-charge-line:before{content:"\eaaa"}.ri-battery-2-fill:before{content:"\eaab"}.ri-battery-2-line:before{content:"\eaac"}.ri-battery-charge-fill:before{content:"\eaad"}.ri-battery-charge-line:before{content:"\eaae"}.ri-battery-fill:before{content:"\eaaf"}.ri-battery-line:before{content:"\eab0"}.ri-battery-low-fill:before{content:"\eab1"}.ri-battery-low-line:before{content:"\eab2"}.ri-battery-saver-fill:before{content:"\eab3"}.ri-battery-saver-line:before{content:"\eab4"}.ri-battery-share-fill:before{content:"\eab5"}.ri-battery-share-line:before{content:"\eab6"}.ri-bear-smile-fill:before{content:"\eab7"}.ri-bear-smile-line:before{content:"\eab8"}.ri-behance-fill:before{content:"\eab9"}.ri-behance-line:before{content:"\eaba"}.ri-bell-fill:before{content:"\eabb"}.ri-bell-line:before{content:"\eabc"}.ri-bike-fill:before{content:"\eabd"}.ri-bike-line:before{content:"\eabe"}.ri-bilibili-fill:before{content:"\eabf"}.ri-bilibili-line:before{content:"\eac0"}.ri-bill-fill:before{content:"\eac1"}.ri-bill-line:before{content:"\eac2"}.ri-billiards-fill:before{content:"\eac3"}.ri-billiards-line:before{content:"\eac4"}.ri-bit-coin-fill:before{content:"\eac5"}.ri-bit-coin-line:before{content:"\eac6"}.ri-blaze-fill:before{content:"\eac7"}.ri-blaze-line:before{content:"\eac8"}.ri-bluetooth-connect-fill:before{content:"\eac9"}.ri-bluetooth-connect-line:before{content:"\eaca"}.ri-bluetooth-fill:before{content:"\eacb"}.ri-bluetooth-line:before{content:"\eacc"}.ri-blur-off-fill:before{content:"\eacd"}.ri-blur-off-line:before{content:"\eace"}.ri-body-scan-fill:before{content:"\eacf"}.ri-body-scan-line:before{content:"\ead0"}.ri-bold:before{content:"\ead1"}.ri-book-2-fill:before{content:"\ead2"}.ri-book-2-line:before{content:"\ead3"}.ri-book-3-fill:before{content:"\ead4"}.ri-book-3-line:before{content:"\ead5"}.ri-book-fill:before{content:"\ead6"}.ri-book-line:before{content:"\ead7"}.ri-book-mark-fill:before{content:"\ead8"}.ri-book-mark-line:before{content:"\ead9"}.ri-book-open-fill:before{content:"\eada"}.ri-book-open-line:before{content:"\eadb"}.ri-book-read-fill:before{content:"\eadc"}.ri-book-read-line:before{content:"\eadd"}.ri-booklet-fill:before{content:"\eade"}.ri-booklet-line:before{content:"\eadf"}.ri-bookmark-2-fill:before{content:"\eae0"}.ri-bookmark-2-line:before{content:"\eae1"}.ri-bookmark-3-fill:before{content:"\eae2"}.ri-bookmark-3-line:before{content:"\eae3"}.ri-bookmark-fill:before{content:"\eae4"}.ri-bookmark-line:before{content:"\eae5"}.ri-boxing-fill:before{content:"\eae6"}.ri-boxing-line:before{content:"\eae7"}.ri-braces-fill:before{content:"\eae8"}.ri-braces-line:before{content:"\eae9"}.ri-brackets-fill:before{content:"\eaea"}.ri-brackets-line:before{content:"\eaeb"}.ri-briefcase-2-fill:before{content:"\eaec"}.ri-briefcase-2-line:before{content:"\eaed"}.ri-briefcase-3-fill:before{content:"\eaee"}.ri-briefcase-3-line:before{content:"\eaef"}.ri-briefcase-4-fill:before{content:"\eaf0"}.ri-briefcase-4-line:before{content:"\eaf1"}.ri-briefcase-5-fill:before{content:"\eaf2"}.ri-briefcase-5-line:before{content:"\eaf3"}.ri-briefcase-fill:before{content:"\eaf4"}.ri-briefcase-line:before{content:"\eaf5"}.ri-bring-forward:before{content:"\eaf6"}.ri-bring-to-front:before{content:"\eaf7"}.ri-broadcast-fill:before{content:"\eaf8"}.ri-broadcast-line:before{content:"\eaf9"}.ri-brush-2-fill:before{content:"\eafa"}.ri-brush-2-line:before{content:"\eafb"}.ri-brush-3-fill:before{content:"\eafc"}.ri-brush-3-line:before{content:"\eafd"}.ri-brush-4-fill:before{content:"\eafe"}.ri-brush-4-line:before{content:"\eaff"}.ri-brush-fill:before{content:"\eb00"}.ri-brush-line:before{content:"\eb01"}.ri-bubble-chart-fill:before{content:"\eb02"}.ri-bubble-chart-line:before{content:"\eb03"}.ri-bug-2-fill:before{content:"\eb04"}.ri-bug-2-line:before{content:"\eb05"}.ri-bug-fill:before{content:"\eb06"}.ri-bug-line:before{content:"\eb07"}.ri-building-2-fill:before{content:"\eb08"}.ri-building-2-line:before{content:"\eb09"}.ri-building-3-fill:before{content:"\eb0a"}.ri-building-3-line:before{content:"\eb0b"}.ri-building-4-fill:before{content:"\eb0c"}.ri-building-4-line:before{content:"\eb0d"}.ri-building-fill:before{content:"\eb0e"}.ri-building-line:before{content:"\eb0f"}.ri-bus-2-fill:before{content:"\eb10"}.ri-bus-2-line:before{content:"\eb11"}.ri-bus-fill:before{content:"\eb12"}.ri-bus-line:before{content:"\eb13"}.ri-bus-wifi-fill:before{content:"\eb14"}.ri-bus-wifi-line:before{content:"\eb15"}.ri-cactus-fill:before{content:"\eb16"}.ri-cactus-line:before{content:"\eb17"}.ri-cake-2-fill:before{content:"\eb18"}.ri-cake-2-line:before{content:"\eb19"}.ri-cake-3-fill:before{content:"\eb1a"}.ri-cake-3-line:before{content:"\eb1b"}.ri-cake-fill:before{content:"\eb1c"}.ri-cake-line:before{content:"\eb1d"}.ri-calculator-fill:before{content:"\eb1e"}.ri-calculator-line:before{content:"\eb1f"}.ri-calendar-2-fill:before{content:"\eb20"}.ri-calendar-2-line:before{content:"\eb21"}.ri-calendar-check-fill:before{content:"\eb22"}.ri-calendar-check-line:before{content:"\eb23"}.ri-calendar-event-fill:before{content:"\eb24"}.ri-calendar-event-line:before{content:"\eb25"}.ri-calendar-fill:before{content:"\eb26"}.ri-calendar-line:before{content:"\eb27"}.ri-calendar-todo-fill:before{content:"\eb28"}.ri-calendar-todo-line:before{content:"\eb29"}.ri-camera-2-fill:before{content:"\eb2a"}.ri-camera-2-line:before{content:"\eb2b"}.ri-camera-3-fill:before{content:"\eb2c"}.ri-camera-3-line:before{content:"\eb2d"}.ri-camera-fill:before{content:"\eb2e"}.ri-camera-lens-fill:before{content:"\eb2f"}.ri-camera-lens-line:before{content:"\eb30"}.ri-camera-line:before{content:"\eb31"}.ri-camera-off-fill:before{content:"\eb32"}.ri-camera-off-line:before{content:"\eb33"}.ri-camera-switch-fill:before{content:"\eb34"}.ri-camera-switch-line:before{content:"\eb35"}.ri-capsule-fill:before{content:"\eb36"}.ri-capsule-line:before{content:"\eb37"}.ri-car-fill:before{content:"\eb38"}.ri-car-line:before{content:"\eb39"}.ri-car-washing-fill:before{content:"\eb3a"}.ri-car-washing-line:before{content:"\eb3b"}.ri-caravan-fill:before{content:"\eb3c"}.ri-caravan-line:before{content:"\eb3d"}.ri-cast-fill:before{content:"\eb3e"}.ri-cast-line:before{content:"\eb3f"}.ri-cellphone-fill:before{content:"\eb40"}.ri-cellphone-line:before{content:"\eb41"}.ri-celsius-fill:before{content:"\eb42"}.ri-celsius-line:before{content:"\eb43"}.ri-centos-fill:before{content:"\eb44"}.ri-centos-line:before{content:"\eb45"}.ri-character-recognition-fill:before{content:"\eb46"}.ri-character-recognition-line:before{content:"\eb47"}.ri-charging-pile-2-fill:before{content:"\eb48"}.ri-charging-pile-2-line:before{content:"\eb49"}.ri-charging-pile-fill:before{content:"\eb4a"}.ri-charging-pile-line:before{content:"\eb4b"}.ri-chat-1-fill:before{content:"\eb4c"}.ri-chat-1-line:before{content:"\eb4d"}.ri-chat-2-fill:before{content:"\eb4e"}.ri-chat-2-line:before{content:"\eb4f"}.ri-chat-3-fill:before{content:"\eb50"}.ri-chat-3-line:before{content:"\eb51"}.ri-chat-4-fill:before{content:"\eb52"}.ri-chat-4-line:before{content:"\eb53"}.ri-chat-check-fill:before{content:"\eb54"}.ri-chat-check-line:before{content:"\eb55"}.ri-chat-delete-fill:before{content:"\eb56"}.ri-chat-delete-line:before{content:"\eb57"}.ri-chat-download-fill:before{content:"\eb58"}.ri-chat-download-line:before{content:"\eb59"}.ri-chat-follow-up-fill:before{content:"\eb5a"}.ri-chat-follow-up-line:before{content:"\eb5b"}.ri-chat-forward-fill:before{content:"\eb5c"}.ri-chat-forward-line:before{content:"\eb5d"}.ri-chat-heart-fill:before{content:"\eb5e"}.ri-chat-heart-line:before{content:"\eb5f"}.ri-chat-history-fill:before{content:"\eb60"}.ri-chat-history-line:before{content:"\eb61"}.ri-chat-new-fill:before{content:"\eb62"}.ri-chat-new-line:before{content:"\eb63"}.ri-chat-off-fill:before{content:"\eb64"}.ri-chat-off-line:before{content:"\eb65"}.ri-chat-poll-fill:before{content:"\eb66"}.ri-chat-poll-line:before{content:"\eb67"}.ri-chat-private-fill:before{content:"\eb68"}.ri-chat-private-line:before{content:"\eb69"}.ri-chat-quote-fill:before{content:"\eb6a"}.ri-chat-quote-line:before{content:"\eb6b"}.ri-chat-settings-fill:before{content:"\eb6c"}.ri-chat-settings-line:before{content:"\eb6d"}.ri-chat-smile-2-fill:before{content:"\eb6e"}.ri-chat-smile-2-line:before{content:"\eb6f"}.ri-chat-smile-3-fill:before{content:"\eb70"}.ri-chat-smile-3-line:before{content:"\eb71"}.ri-chat-smile-fill:before{content:"\eb72"}.ri-chat-smile-line:before{content:"\eb73"}.ri-chat-upload-fill:before{content:"\eb74"}.ri-chat-upload-line:before{content:"\eb75"}.ri-chat-voice-fill:before{content:"\eb76"}.ri-chat-voice-line:before{content:"\eb77"}.ri-check-double-fill:before{content:"\eb78"}.ri-check-double-line:before{content:"\eb79"}.ri-check-fill:before{content:"\eb7a"}.ri-check-line:before{content:"\eb7b"}.ri-checkbox-blank-circle-fill:before{content:"\eb7c"}.ri-checkbox-blank-circle-line:before{content:"\eb7d"}.ri-checkbox-blank-fill:before{content:"\eb7e"}.ri-checkbox-blank-line:before{content:"\eb7f"}.ri-checkbox-circle-fill:before{content:"\eb80"}.ri-checkbox-circle-line:before{content:"\eb81"}.ri-checkbox-fill:before{content:"\eb82"}.ri-checkbox-indeterminate-fill:before{content:"\eb83"}.ri-checkbox-indeterminate-line:before{content:"\eb84"}.ri-checkbox-line:before{content:"\eb85"}.ri-checkbox-multiple-blank-fill:before{content:"\eb86"}.ri-checkbox-multiple-blank-line:before{content:"\eb87"}.ri-checkbox-multiple-fill:before{content:"\eb88"}.ri-checkbox-multiple-line:before{content:"\eb89"}.ri-china-railway-fill:before{content:"\eb8a"}.ri-china-railway-line:before{content:"\eb8b"}.ri-chrome-fill:before{content:"\eb8c"}.ri-chrome-line:before{content:"\eb8d"}.ri-clapperboard-fill:before{content:"\eb8e"}.ri-clapperboard-line:before{content:"\eb8f"}.ri-clipboard-fill:before{content:"\eb90"}.ri-clipboard-line:before{content:"\eb91"}.ri-clockwise-2-fill:before{content:"\eb92"}.ri-clockwise-2-line:before{content:"\eb93"}.ri-clockwise-fill:before{content:"\eb94"}.ri-clockwise-line:before{content:"\eb95"}.ri-close-circle-fill:before{content:"\eb96"}.ri-close-circle-line:before{content:"\eb97"}.ri-close-fill:before{content:"\eb98"}.ri-close-line:before{content:"\eb99"}.ri-closed-captioning-fill:before{content:"\eb9a"}.ri-closed-captioning-line:before{content:"\eb9b"}.ri-cloud-fill:before{content:"\eb9c"}.ri-cloud-line:before{content:"\eb9d"}.ri-cloud-off-fill:before{content:"\eb9e"}.ri-cloud-off-line:before{content:"\eb9f"}.ri-cloud-windy-fill:before{content:"\eba0"}.ri-cloud-windy-line:before{content:"\eba1"}.ri-cloudy-2-fill:before{content:"\eba2"}.ri-cloudy-2-line:before{content:"\eba3"}.ri-cloudy-fill:before{content:"\eba4"}.ri-cloudy-line:before{content:"\eba5"}.ri-code-box-fill:before{content:"\eba6"}.ri-code-box-line:before{content:"\eba7"}.ri-code-fill:before{content:"\eba8"}.ri-code-line:before{content:"\eba9"}.ri-code-s-fill:before{content:"\ebaa"}.ri-code-s-line:before{content:"\ebab"}.ri-code-s-slash-fill:before{content:"\ebac"}.ri-code-s-slash-line:before{content:"\ebad"}.ri-code-view:before{content:"\ebae"}.ri-codepen-fill:before{content:"\ebaf"}.ri-codepen-line:before{content:"\ebb0"}.ri-coin-fill:before{content:"\ebb1"}.ri-coin-line:before{content:"\ebb2"}.ri-coins-fill:before{content:"\ebb3"}.ri-coins-line:before{content:"\ebb4"}.ri-collage-fill:before{content:"\ebb5"}.ri-collage-line:before{content:"\ebb6"}.ri-command-fill:before{content:"\ebb7"}.ri-command-line:before{content:"\ebb8"}.ri-community-fill:before{content:"\ebb9"}.ri-community-line:before{content:"\ebba"}.ri-compass-2-fill:before{content:"\ebbb"}.ri-compass-2-line:before{content:"\ebbc"}.ri-compass-3-fill:before{content:"\ebbd"}.ri-compass-3-line:before{content:"\ebbe"}.ri-compass-4-fill:before{content:"\ebbf"}.ri-compass-4-line:before{content:"\ebc0"}.ri-compass-discover-fill:before{content:"\ebc1"}.ri-compass-discover-line:before{content:"\ebc2"}.ri-compass-fill:before{content:"\ebc3"}.ri-compass-line:before{content:"\ebc4"}.ri-compasses-2-fill:before{content:"\ebc5"}.ri-compasses-2-line:before{content:"\ebc6"}.ri-compasses-fill:before{content:"\ebc7"}.ri-compasses-line:before{content:"\ebc8"}.ri-computer-fill:before{content:"\ebc9"}.ri-computer-line:before{content:"\ebca"}.ri-contacts-book-2-fill:before{content:"\ebcb"}.ri-contacts-book-2-line:before{content:"\ebcc"}.ri-contacts-book-fill:before{content:"\ebcd"}.ri-contacts-book-line:before{content:"\ebce"}.ri-contacts-book-upload-fill:before{content:"\ebcf"}.ri-contacts-book-upload-line:before{content:"\ebd0"}.ri-contacts-fill:before{content:"\ebd1"}.ri-contacts-line:before{content:"\ebd2"}.ri-contrast-2-fill:before{content:"\ebd3"}.ri-contrast-2-line:before{content:"\ebd4"}.ri-contrast-drop-2-fill:before{content:"\ebd5"}.ri-contrast-drop-2-line:before{content:"\ebd6"}.ri-contrast-drop-fill:before{content:"\ebd7"}.ri-contrast-drop-line:before{content:"\ebd8"}.ri-contrast-fill:before{content:"\ebd9"}.ri-contrast-line:before{content:"\ebda"}.ri-copper-coin-fill:before{content:"\ebdb"}.ri-copper-coin-line:before{content:"\ebdc"}.ri-copper-diamond-fill:before{content:"\ebdd"}.ri-copper-diamond-line:before{content:"\ebde"}.ri-copyleft-fill:before{content:"\ebdf"}.ri-copyleft-line:before{content:"\ebe0"}.ri-copyright-fill:before{content:"\ebe1"}.ri-copyright-line:before{content:"\ebe2"}.ri-coreos-fill:before{content:"\ebe3"}.ri-coreos-line:before{content:"\ebe4"}.ri-coupon-2-fill:before{content:"\ebe5"}.ri-coupon-2-line:before{content:"\ebe6"}.ri-coupon-3-fill:before{content:"\ebe7"}.ri-coupon-3-line:before{content:"\ebe8"}.ri-coupon-4-fill:before{content:"\ebe9"}.ri-coupon-4-line:before{content:"\ebea"}.ri-coupon-5-fill:before{content:"\ebeb"}.ri-coupon-5-line:before{content:"\ebec"}.ri-coupon-fill:before{content:"\ebed"}.ri-coupon-line:before{content:"\ebee"}.ri-cpu-fill:before{content:"\ebef"}.ri-cpu-line:before{content:"\ebf0"}.ri-creative-commons-by-fill:before{content:"\ebf1"}.ri-creative-commons-by-line:before{content:"\ebf2"}.ri-creative-commons-fill:before{content:"\ebf3"}.ri-creative-commons-line:before{content:"\ebf4"}.ri-creative-commons-nc-fill:before{content:"\ebf5"}.ri-creative-commons-nc-line:before{content:"\ebf6"}.ri-creative-commons-nd-fill:before{content:"\ebf7"}.ri-creative-commons-nd-line:before{content:"\ebf8"}.ri-creative-commons-sa-fill:before{content:"\ebf9"}.ri-creative-commons-sa-line:before{content:"\ebfa"}.ri-creative-commons-zero-fill:before{content:"\ebfb"}.ri-creative-commons-zero-line:before{content:"\ebfc"}.ri-criminal-fill:before{content:"\ebfd"}.ri-criminal-line:before{content:"\ebfe"}.ri-crop-2-fill:before{content:"\ebff"}.ri-crop-2-line:before{content:"\ec00"}.ri-crop-fill:before{content:"\ec01"}.ri-crop-line:before{content:"\ec02"}.ri-css3-fill:before{content:"\ec03"}.ri-css3-line:before{content:"\ec04"}.ri-cup-fill:before{content:"\ec05"}.ri-cup-line:before{content:"\ec06"}.ri-currency-fill:before{content:"\ec07"}.ri-currency-line:before{content:"\ec08"}.ri-cursor-fill:before{content:"\ec09"}.ri-cursor-line:before{content:"\ec0a"}.ri-customer-service-2-fill:before{content:"\ec0b"}.ri-customer-service-2-line:before{content:"\ec0c"}.ri-customer-service-fill:before{content:"\ec0d"}.ri-customer-service-line:before{content:"\ec0e"}.ri-dashboard-2-fill:before{content:"\ec0f"}.ri-dashboard-2-line:before{content:"\ec10"}.ri-dashboard-3-fill:before{content:"\ec11"}.ri-dashboard-3-line:before{content:"\ec12"}.ri-dashboard-fill:before{content:"\ec13"}.ri-dashboard-line:before{content:"\ec14"}.ri-database-2-fill:before{content:"\ec15"}.ri-database-2-line:before{content:"\ec16"}.ri-database-fill:before{content:"\ec17"}.ri-database-line:before{content:"\ec18"}.ri-delete-back-2-fill:before{content:"\ec19"}.ri-delete-back-2-line:before{content:"\ec1a"}.ri-delete-back-fill:before{content:"\ec1b"}.ri-delete-back-line:before{content:"\ec1c"}.ri-delete-bin-2-fill:before{content:"\ec1d"}.ri-delete-bin-2-line:before{content:"\ec1e"}.ri-delete-bin-3-fill:before{content:"\ec1f"}.ri-delete-bin-3-line:before{content:"\ec20"}.ri-delete-bin-4-fill:before{content:"\ec21"}.ri-delete-bin-4-line:before{content:"\ec22"}.ri-delete-bin-5-fill:before{content:"\ec23"}.ri-delete-bin-5-line:before{content:"\ec24"}.ri-delete-bin-6-fill:before{content:"\ec25"}.ri-delete-bin-6-line:before{content:"\ec26"}.ri-delete-bin-7-fill:before{content:"\ec27"}.ri-delete-bin-7-line:before{content:"\ec28"}.ri-delete-bin-fill:before{content:"\ec29"}.ri-delete-bin-line:before{content:"\ec2a"}.ri-delete-column:before{content:"\ec2b"}.ri-delete-row:before{content:"\ec2c"}.ri-device-fill:before{content:"\ec2d"}.ri-device-line:before{content:"\ec2e"}.ri-device-recover-fill:before{content:"\ec2f"}.ri-device-recover-line:before{content:"\ec30"}.ri-dingding-fill:before{content:"\ec31"}.ri-dingding-line:before{content:"\ec32"}.ri-direction-fill:before{content:"\ec33"}.ri-direction-line:before{content:"\ec34"}.ri-disc-fill:before{content:"\ec35"}.ri-disc-line:before{content:"\ec36"}.ri-discord-fill:before{content:"\ec37"}.ri-discord-line:before{content:"\ec38"}.ri-discuss-fill:before{content:"\ec39"}.ri-discuss-line:before{content:"\ec3a"}.ri-dislike-fill:before{content:"\ec3b"}.ri-dislike-line:before{content:"\ec3c"}.ri-disqus-fill:before{content:"\ec3d"}.ri-disqus-line:before{content:"\ec3e"}.ri-divide-fill:before{content:"\ec3f"}.ri-divide-line:before{content:"\ec40"}.ri-donut-chart-fill:before{content:"\ec41"}.ri-donut-chart-line:before{content:"\ec42"}.ri-door-closed-fill:before{content:"\ec43"}.ri-door-closed-line:before{content:"\ec44"}.ri-door-fill:before{content:"\ec45"}.ri-door-line:before{content:"\ec46"}.ri-door-lock-box-fill:before{content:"\ec47"}.ri-door-lock-box-line:before{content:"\ec48"}.ri-door-lock-fill:before{content:"\ec49"}.ri-door-lock-line:before{content:"\ec4a"}.ri-door-open-fill:before{content:"\ec4b"}.ri-door-open-line:before{content:"\ec4c"}.ri-dossier-fill:before{content:"\ec4d"}.ri-dossier-line:before{content:"\ec4e"}.ri-douban-fill:before{content:"\ec4f"}.ri-douban-line:before{content:"\ec50"}.ri-double-quotes-l:before{content:"\ec51"}.ri-double-quotes-r:before{content:"\ec52"}.ri-download-2-fill:before{content:"\ec53"}.ri-download-2-line:before{content:"\ec54"}.ri-download-cloud-2-fill:before{content:"\ec55"}.ri-download-cloud-2-line:before{content:"\ec56"}.ri-download-cloud-fill:before{content:"\ec57"}.ri-download-cloud-line:before{content:"\ec58"}.ri-download-fill:before{content:"\ec59"}.ri-download-line:before{content:"\ec5a"}.ri-draft-fill:before{content:"\ec5b"}.ri-draft-line:before{content:"\ec5c"}.ri-drag-drop-fill:before{content:"\ec5d"}.ri-drag-drop-line:before{content:"\ec5e"}.ri-drag-move-2-fill:before{content:"\ec5f"}.ri-drag-move-2-line:before{content:"\ec60"}.ri-drag-move-fill:before{content:"\ec61"}.ri-drag-move-line:before{content:"\ec62"}.ri-dribbble-fill:before{content:"\ec63"}.ri-dribbble-line:before{content:"\ec64"}.ri-drive-fill:before{content:"\ec65"}.ri-drive-line:before{content:"\ec66"}.ri-drizzle-fill:before{content:"\ec67"}.ri-drizzle-line:before{content:"\ec68"}.ri-drop-fill:before{content:"\ec69"}.ri-drop-line:before{content:"\ec6a"}.ri-dropbox-fill:before{content:"\ec6b"}.ri-dropbox-line:before{content:"\ec6c"}.ri-dual-sim-1-fill:before{content:"\ec6d"}.ri-dual-sim-1-line:before{content:"\ec6e"}.ri-dual-sim-2-fill:before{content:"\ec6f"}.ri-dual-sim-2-line:before{content:"\ec70"}.ri-dv-fill:before{content:"\ec71"}.ri-dv-line:before{content:"\ec72"}.ri-dvd-fill:before{content:"\ec73"}.ri-dvd-line:before{content:"\ec74"}.ri-e-bike-2-fill:before{content:"\ec75"}.ri-e-bike-2-line:before{content:"\ec76"}.ri-e-bike-fill:before{content:"\ec77"}.ri-e-bike-line:before{content:"\ec78"}.ri-earth-fill:before{content:"\ec79"}.ri-earth-line:before{content:"\ec7a"}.ri-earthquake-fill:before{content:"\ec7b"}.ri-earthquake-line:before{content:"\ec7c"}.ri-edge-fill:before{content:"\ec7d"}.ri-edge-line:before{content:"\ec7e"}.ri-edit-2-fill:before{content:"\ec7f"}.ri-edit-2-line:before{content:"\ec80"}.ri-edit-box-fill:before{content:"\ec81"}.ri-edit-box-line:before{content:"\ec82"}.ri-edit-circle-fill:before{content:"\ec83"}.ri-edit-circle-line:before{content:"\ec84"}.ri-edit-fill:before{content:"\ec85"}.ri-edit-line:before{content:"\ec86"}.ri-eject-fill:before{content:"\ec87"}.ri-eject-line:before{content:"\ec88"}.ri-emotion-2-fill:before{content:"\ec89"}.ri-emotion-2-line:before{content:"\ec8a"}.ri-emotion-fill:before{content:"\ec8b"}.ri-emotion-happy-fill:before{content:"\ec8c"}.ri-emotion-happy-line:before{content:"\ec8d"}.ri-emotion-laugh-fill:before{content:"\ec8e"}.ri-emotion-laugh-line:before{content:"\ec8f"}.ri-emotion-line:before{content:"\ec90"}.ri-emotion-normal-fill:before{content:"\ec91"}.ri-emotion-normal-line:before{content:"\ec92"}.ri-emotion-sad-fill:before{content:"\ec93"}.ri-emotion-sad-line:before{content:"\ec94"}.ri-emotion-unhappy-fill:before{content:"\ec95"}.ri-emotion-unhappy-line:before{content:"\ec96"}.ri-empathize-fill:before{content:"\ec97"}.ri-empathize-line:before{content:"\ec98"}.ri-emphasis-cn:before{content:"\ec99"}.ri-emphasis:before{content:"\ec9a"}.ri-english-input:before{content:"\ec9b"}.ri-equalizer-fill:before{content:"\ec9c"}.ri-equalizer-line:before{content:"\ec9d"}.ri-eraser-fill:before{content:"\ec9e"}.ri-eraser-line:before{content:"\ec9f"}.ri-error-warning-fill:before{content:"\eca0"}.ri-error-warning-line:before{content:"\eca1"}.ri-evernote-fill:before{content:"\eca2"}.ri-evernote-line:before{content:"\eca3"}.ri-exchange-box-fill:before{content:"\eca4"}.ri-exchange-box-line:before{content:"\eca5"}.ri-exchange-cny-fill:before{content:"\eca6"}.ri-exchange-cny-line:before{content:"\eca7"}.ri-exchange-dollar-fill:before{content:"\eca8"}.ri-exchange-dollar-line:before{content:"\eca9"}.ri-exchange-fill:before{content:"\ecaa"}.ri-exchange-funds-fill:before{content:"\ecab"}.ri-exchange-funds-line:before{content:"\ecac"}.ri-exchange-line:before{content:"\ecad"}.ri-external-link-fill:before{content:"\ecae"}.ri-external-link-line:before{content:"\ecaf"}.ri-eye-2-fill:before{content:"\ecb0"}.ri-eye-2-line:before{content:"\ecb1"}.ri-eye-close-fill:before{content:"\ecb2"}.ri-eye-close-line:before{content:"\ecb3"}.ri-eye-fill:before{content:"\ecb4"}.ri-eye-line:before{content:"\ecb5"}.ri-eye-off-fill:before{content:"\ecb6"}.ri-eye-off-line:before{content:"\ecb7"}.ri-facebook-box-fill:before{content:"\ecb8"}.ri-facebook-box-line:before{content:"\ecb9"}.ri-facebook-circle-fill:before{content:"\ecba"}.ri-facebook-circle-line:before{content:"\ecbb"}.ri-facebook-fill:before{content:"\ecbc"}.ri-facebook-line:before{content:"\ecbd"}.ri-fahrenheit-fill:before{content:"\ecbe"}.ri-fahrenheit-line:before{content:"\ecbf"}.ri-feedback-fill:before{content:"\ecc0"}.ri-feedback-line:before{content:"\ecc1"}.ri-file-2-fill:before{content:"\ecc2"}.ri-file-2-line:before{content:"\ecc3"}.ri-file-3-fill:before{content:"\ecc4"}.ri-file-3-line:before{content:"\ecc5"}.ri-file-4-fill:before{content:"\ecc6"}.ri-file-4-line:before{content:"\ecc7"}.ri-file-add-fill:before{content:"\ecc8"}.ri-file-add-line:before{content:"\ecc9"}.ri-file-chart-2-fill:before{content:"\ecca"}.ri-file-chart-2-line:before{content:"\eccb"}.ri-file-chart-fill:before{content:"\eccc"}.ri-file-chart-line:before{content:"\eccd"}.ri-file-cloud-fill:before{content:"\ecce"}.ri-file-cloud-line:before{content:"\eccf"}.ri-file-code-fill:before{content:"\ecd0"}.ri-file-code-line:before{content:"\ecd1"}.ri-file-copy-2-fill:before{content:"\ecd2"}.ri-file-copy-2-line:before{content:"\ecd3"}.ri-file-copy-fill:before{content:"\ecd4"}.ri-file-copy-line:before{content:"\ecd5"}.ri-file-damage-fill:before{content:"\ecd6"}.ri-file-damage-line:before{content:"\ecd7"}.ri-file-download-fill:before{content:"\ecd8"}.ri-file-download-line:before{content:"\ecd9"}.ri-file-edit-fill:before{content:"\ecda"}.ri-file-edit-line:before{content:"\ecdb"}.ri-file-excel-2-fill:before{content:"\ecdc"}.ri-file-excel-2-line:before{content:"\ecdd"}.ri-file-excel-fill:before{content:"\ecde"}.ri-file-excel-line:before{content:"\ecdf"}.ri-file-fill:before{content:"\ece0"}.ri-file-forbid-fill:before{content:"\ece1"}.ri-file-forbid-line:before{content:"\ece2"}.ri-file-gif-fill:before{content:"\ece3"}.ri-file-gif-line:before{content:"\ece4"}.ri-file-history-fill:before{content:"\ece5"}.ri-file-history-line:before{content:"\ece6"}.ri-file-hwp-fill:before{content:"\ece7"}.ri-file-hwp-line:before{content:"\ece8"}.ri-file-info-fill:before{content:"\ece9"}.ri-file-info-line:before{content:"\ecea"}.ri-file-line:before{content:"\eceb"}.ri-file-list-2-fill:before{content:"\ecec"}.ri-file-list-2-line:before{content:"\eced"}.ri-file-list-3-fill:before{content:"\ecee"}.ri-file-list-3-line:before{content:"\ecef"}.ri-file-list-fill:before{content:"\ecf0"}.ri-file-list-line:before{content:"\ecf1"}.ri-file-lock-fill:before{content:"\ecf2"}.ri-file-lock-line:before{content:"\ecf3"}.ri-file-mark-fill:before{content:"\ecf4"}.ri-file-mark-line:before{content:"\ecf5"}.ri-file-music-fill:before{content:"\ecf6"}.ri-file-music-line:before{content:"\ecf7"}.ri-file-paper-2-fill:before{content:"\ecf8"}.ri-file-paper-2-line:before{content:"\ecf9"}.ri-file-paper-fill:before{content:"\ecfa"}.ri-file-paper-line:before{content:"\ecfb"}.ri-file-pdf-fill:before{content:"\ecfc"}.ri-file-pdf-line:before{content:"\ecfd"}.ri-file-ppt-2-fill:before{content:"\ecfe"}.ri-file-ppt-2-line:before{content:"\ecff"}.ri-file-ppt-fill:before{content:"\ed00"}.ri-file-ppt-line:before{content:"\ed01"}.ri-file-reduce-fill:before{content:"\ed02"}.ri-file-reduce-line:before{content:"\ed03"}.ri-file-search-fill:before{content:"\ed04"}.ri-file-search-line:before{content:"\ed05"}.ri-file-settings-fill:before{content:"\ed06"}.ri-file-settings-line:before{content:"\ed07"}.ri-file-shield-2-fill:before{content:"\ed08"}.ri-file-shield-2-line:before{content:"\ed09"}.ri-file-shield-fill:before{content:"\ed0a"}.ri-file-shield-line:before{content:"\ed0b"}.ri-file-shred-fill:before{content:"\ed0c"}.ri-file-shred-line:before{content:"\ed0d"}.ri-file-text-fill:before{content:"\ed0e"}.ri-file-text-line:before{content:"\ed0f"}.ri-file-transfer-fill:before{content:"\ed10"}.ri-file-transfer-line:before{content:"\ed11"}.ri-file-unknow-fill:before{content:"\ed12"}.ri-file-unknow-line:before{content:"\ed13"}.ri-file-upload-fill:before{content:"\ed14"}.ri-file-upload-line:before{content:"\ed15"}.ri-file-user-fill:before{content:"\ed16"}.ri-file-user-line:before{content:"\ed17"}.ri-file-warning-fill:before{content:"\ed18"}.ri-file-warning-line:before{content:"\ed19"}.ri-file-word-2-fill:before{content:"\ed1a"}.ri-file-word-2-line:before{content:"\ed1b"}.ri-file-word-fill:before{content:"\ed1c"}.ri-file-word-line:before{content:"\ed1d"}.ri-file-zip-fill:before{content:"\ed1e"}.ri-file-zip-line:before{content:"\ed1f"}.ri-film-fill:before{content:"\ed20"}.ri-film-line:before{content:"\ed21"}.ri-filter-2-fill:before{content:"\ed22"}.ri-filter-2-line:before{content:"\ed23"}.ri-filter-3-fill:before{content:"\ed24"}.ri-filter-3-line:before{content:"\ed25"}.ri-filter-fill:before{content:"\ed26"}.ri-filter-line:before{content:"\ed27"}.ri-filter-off-fill:before{content:"\ed28"}.ri-filter-off-line:before{content:"\ed29"}.ri-find-replace-fill:before{content:"\ed2a"}.ri-find-replace-line:before{content:"\ed2b"}.ri-finder-fill:before{content:"\ed2c"}.ri-finder-line:before{content:"\ed2d"}.ri-fingerprint-2-fill:before{content:"\ed2e"}.ri-fingerprint-2-line:before{content:"\ed2f"}.ri-fingerprint-fill:before{content:"\ed30"}.ri-fingerprint-line:before{content:"\ed31"}.ri-fire-fill:before{content:"\ed32"}.ri-fire-line:before{content:"\ed33"}.ri-firefox-fill:before{content:"\ed34"}.ri-firefox-line:before{content:"\ed35"}.ri-first-aid-kit-fill:before{content:"\ed36"}.ri-first-aid-kit-line:before{content:"\ed37"}.ri-flag-2-fill:before{content:"\ed38"}.ri-flag-2-line:before{content:"\ed39"}.ri-flag-fill:before{content:"\ed3a"}.ri-flag-line:before{content:"\ed3b"}.ri-flashlight-fill:before{content:"\ed3c"}.ri-flashlight-line:before{content:"\ed3d"}.ri-flask-fill:before{content:"\ed3e"}.ri-flask-line:before{content:"\ed3f"}.ri-flight-land-fill:before{content:"\ed40"}.ri-flight-land-line:before{content:"\ed41"}.ri-flight-takeoff-fill:before{content:"\ed42"}.ri-flight-takeoff-line:before{content:"\ed43"}.ri-flood-fill:before{content:"\ed44"}.ri-flood-line:before{content:"\ed45"}.ri-flow-chart:before{content:"\ed46"}.ri-flutter-fill:before{content:"\ed47"}.ri-flutter-line:before{content:"\ed48"}.ri-focus-2-fill:before{content:"\ed49"}.ri-focus-2-line:before{content:"\ed4a"}.ri-focus-3-fill:before{content:"\ed4b"}.ri-focus-3-line:before{content:"\ed4c"}.ri-focus-fill:before{content:"\ed4d"}.ri-focus-line:before{content:"\ed4e"}.ri-foggy-fill:before{content:"\ed4f"}.ri-foggy-line:before{content:"\ed50"}.ri-folder-2-fill:before{content:"\ed51"}.ri-folder-2-line:before{content:"\ed52"}.ri-folder-3-fill:before{content:"\ed53"}.ri-folder-3-line:before{content:"\ed54"}.ri-folder-4-fill:before{content:"\ed55"}.ri-folder-4-line:before{content:"\ed56"}.ri-folder-5-fill:before{content:"\ed57"}.ri-folder-5-line:before{content:"\ed58"}.ri-folder-add-fill:before{content:"\ed59"}.ri-folder-add-line:before{content:"\ed5a"}.ri-folder-chart-2-fill:before{content:"\ed5b"}.ri-folder-chart-2-line:before{content:"\ed5c"}.ri-folder-chart-fill:before{content:"\ed5d"}.ri-folder-chart-line:before{content:"\ed5e"}.ri-folder-download-fill:before{content:"\ed5f"}.ri-folder-download-line:before{content:"\ed60"}.ri-folder-fill:before{content:"\ed61"}.ri-folder-forbid-fill:before{content:"\ed62"}.ri-folder-forbid-line:before{content:"\ed63"}.ri-folder-history-fill:before{content:"\ed64"}.ri-folder-history-line:before{content:"\ed65"}.ri-folder-info-fill:before{content:"\ed66"}.ri-folder-info-line:before{content:"\ed67"}.ri-folder-keyhole-fill:before{content:"\ed68"}.ri-folder-keyhole-line:before{content:"\ed69"}.ri-folder-line:before{content:"\ed6a"}.ri-folder-lock-fill:before{content:"\ed6b"}.ri-folder-lock-line:before{content:"\ed6c"}.ri-folder-music-fill:before{content:"\ed6d"}.ri-folder-music-line:before{content:"\ed6e"}.ri-folder-open-fill:before{content:"\ed6f"}.ri-folder-open-line:before{content:"\ed70"}.ri-folder-received-fill:before{content:"\ed71"}.ri-folder-received-line:before{content:"\ed72"}.ri-folder-reduce-fill:before{content:"\ed73"}.ri-folder-reduce-line:before{content:"\ed74"}.ri-folder-settings-fill:before{content:"\ed75"}.ri-folder-settings-line:before{content:"\ed76"}.ri-folder-shared-fill:before{content:"\ed77"}.ri-folder-shared-line:before{content:"\ed78"}.ri-folder-shield-2-fill:before{content:"\ed79"}.ri-folder-shield-2-line:before{content:"\ed7a"}.ri-folder-shield-fill:before{content:"\ed7b"}.ri-folder-shield-line:before{content:"\ed7c"}.ri-folder-transfer-fill:before{content:"\ed7d"}.ri-folder-transfer-line:before{content:"\ed7e"}.ri-folder-unknow-fill:before{content:"\ed7f"}.ri-folder-unknow-line:before{content:"\ed80"}.ri-folder-upload-fill:before{content:"\ed81"}.ri-folder-upload-line:before{content:"\ed82"}.ri-folder-user-fill:before{content:"\ed83"}.ri-folder-user-line:before{content:"\ed84"}.ri-folder-warning-fill:before{content:"\ed85"}.ri-folder-warning-line:before{content:"\ed86"}.ri-folder-zip-fill:before{content:"\ed87"}.ri-folder-zip-line:before{content:"\ed88"}.ri-folders-fill:before{content:"\ed89"}.ri-folders-line:before{content:"\ed8a"}.ri-font-color:before{content:"\ed8b"}.ri-font-size-2:before{content:"\ed8c"}.ri-font-size:before{content:"\ed8d"}.ri-football-fill:before{content:"\ed8e"}.ri-football-line:before{content:"\ed8f"}.ri-footprint-fill:before{content:"\ed90"}.ri-footprint-line:before{content:"\ed91"}.ri-forbid-2-fill:before{content:"\ed92"}.ri-forbid-2-line:before{content:"\ed93"}.ri-forbid-fill:before{content:"\ed94"}.ri-forbid-line:before{content:"\ed95"}.ri-format-clear:before{content:"\ed96"}.ri-fridge-fill:before{content:"\ed97"}.ri-fridge-line:before{content:"\ed98"}.ri-fullscreen-exit-fill:before{content:"\ed99"}.ri-fullscreen-exit-line:before{content:"\ed9a"}.ri-fullscreen-fill:before{content:"\ed9b"}.ri-fullscreen-line:before{content:"\ed9c"}.ri-function-fill:before{content:"\ed9d"}.ri-function-line:before{content:"\ed9e"}.ri-functions:before{content:"\ed9f"}.ri-funds-box-fill:before{content:"\eda0"}.ri-funds-box-line:before{content:"\eda1"}.ri-funds-fill:before{content:"\eda2"}.ri-funds-line:before{content:"\eda3"}.ri-gallery-fill:before{content:"\eda4"}.ri-gallery-line:before{content:"\eda5"}.ri-gallery-upload-fill:before{content:"\eda6"}.ri-gallery-upload-line:before{content:"\eda7"}.ri-game-fill:before{content:"\eda8"}.ri-game-line:before{content:"\eda9"}.ri-gamepad-fill:before{content:"\edaa"}.ri-gamepad-line:before{content:"\edab"}.ri-gas-station-fill:before{content:"\edac"}.ri-gas-station-line:before{content:"\edad"}.ri-gatsby-fill:before{content:"\edae"}.ri-gatsby-line:before{content:"\edaf"}.ri-genderless-fill:before{content:"\edb0"}.ri-genderless-line:before{content:"\edb1"}.ri-ghost-2-fill:before{content:"\edb2"}.ri-ghost-2-line:before{content:"\edb3"}.ri-ghost-fill:before{content:"\edb4"}.ri-ghost-line:before{content:"\edb5"}.ri-ghost-smile-fill:before{content:"\edb6"}.ri-ghost-smile-line:before{content:"\edb7"}.ri-gift-2-fill:before{content:"\edb8"}.ri-gift-2-line:before{content:"\edb9"}.ri-gift-fill:before{content:"\edba"}.ri-gift-line:before{content:"\edbb"}.ri-git-branch-fill:before{content:"\edbc"}.ri-git-branch-line:before{content:"\edbd"}.ri-git-commit-fill:before{content:"\edbe"}.ri-git-commit-line:before{content:"\edbf"}.ri-git-merge-fill:before{content:"\edc0"}.ri-git-merge-line:before{content:"\edc1"}.ri-git-pull-request-fill:before{content:"\edc2"}.ri-git-pull-request-line:before{content:"\edc3"}.ri-git-repository-commits-fill:before{content:"\edc4"}.ri-git-repository-commits-line:before{content:"\edc5"}.ri-git-repository-fill:before{content:"\edc6"}.ri-git-repository-line:before{content:"\edc7"}.ri-git-repository-private-fill:before{content:"\edc8"}.ri-git-repository-private-line:before{content:"\edc9"}.ri-github-fill:before{content:"\edca"}.ri-github-line:before{content:"\edcb"}.ri-gitlab-fill:before{content:"\edcc"}.ri-gitlab-line:before{content:"\edcd"}.ri-global-fill:before{content:"\edce"}.ri-global-line:before{content:"\edcf"}.ri-globe-fill:before{content:"\edd0"}.ri-globe-line:before{content:"\edd1"}.ri-goblet-fill:before{content:"\edd2"}.ri-goblet-line:before{content:"\edd3"}.ri-google-fill:before{content:"\edd4"}.ri-google-line:before{content:"\edd5"}.ri-google-play-fill:before{content:"\edd6"}.ri-google-play-line:before{content:"\edd7"}.ri-government-fill:before{content:"\edd8"}.ri-government-line:before{content:"\edd9"}.ri-gps-fill:before{content:"\edda"}.ri-gps-line:before{content:"\eddb"}.ri-gradienter-fill:before{content:"\eddc"}.ri-gradienter-line:before{content:"\eddd"}.ri-grid-fill:before{content:"\edde"}.ri-grid-line:before{content:"\eddf"}.ri-group-2-fill:before{content:"\ede0"}.ri-group-2-line:before{content:"\ede1"}.ri-group-fill:before{content:"\ede2"}.ri-group-line:before{content:"\ede3"}.ri-guide-fill:before{content:"\ede4"}.ri-guide-line:before{content:"\ede5"}.ri-h-1:before{content:"\ede6"}.ri-h-2:before{content:"\ede7"}.ri-h-3:before{content:"\ede8"}.ri-h-4:before{content:"\ede9"}.ri-h-5:before{content:"\edea"}.ri-h-6:before{content:"\edeb"}.ri-hail-fill:before{content:"\edec"}.ri-hail-line:before{content:"\eded"}.ri-hammer-fill:before{content:"\edee"}.ri-hammer-line:before{content:"\edef"}.ri-hand-coin-fill:before{content:"\edf0"}.ri-hand-coin-line:before{content:"\edf1"}.ri-hand-heart-fill:before{content:"\edf2"}.ri-hand-heart-line:before{content:"\edf3"}.ri-hand-sanitizer-fill:before{content:"\edf4"}.ri-hand-sanitizer-line:before{content:"\edf5"}.ri-handbag-fill:before{content:"\edf6"}.ri-handbag-line:before{content:"\edf7"}.ri-hard-drive-2-fill:before{content:"\edf8"}.ri-hard-drive-2-line:before{content:"\edf9"}.ri-hard-drive-fill:before{content:"\edfa"}.ri-hard-drive-line:before{content:"\edfb"}.ri-hashtag:before{content:"\edfc"}.ri-haze-2-fill:before{content:"\edfd"}.ri-haze-2-line:before{content:"\edfe"}.ri-haze-fill:before{content:"\edff"}.ri-haze-line:before{content:"\ee00"}.ri-hd-fill:before{content:"\ee01"}.ri-hd-line:before{content:"\ee02"}.ri-heading:before{content:"\ee03"}.ri-headphone-fill:before{content:"\ee04"}.ri-headphone-line:before{content:"\ee05"}.ri-health-book-fill:before{content:"\ee06"}.ri-health-book-line:before{content:"\ee07"}.ri-heart-2-fill:before{content:"\ee08"}.ri-heart-2-line:before{content:"\ee09"}.ri-heart-3-fill:before{content:"\ee0a"}.ri-heart-3-line:before{content:"\ee0b"}.ri-heart-add-fill:before{content:"\ee0c"}.ri-heart-add-line:before{content:"\ee0d"}.ri-heart-fill:before{content:"\ee0e"}.ri-heart-line:before{content:"\ee0f"}.ri-heart-pulse-fill:before{content:"\ee10"}.ri-heart-pulse-line:before{content:"\ee11"}.ri-hearts-fill:before{content:"\ee12"}.ri-hearts-line:before{content:"\ee13"}.ri-heavy-showers-fill:before{content:"\ee14"}.ri-heavy-showers-line:before{content:"\ee15"}.ri-history-fill:before{content:"\ee16"}.ri-history-line:before{content:"\ee17"}.ri-home-2-fill:before{content:"\ee18"}.ri-home-2-line:before{content:"\ee19"}.ri-home-3-fill:before{content:"\ee1a"}.ri-home-3-line:before{content:"\ee1b"}.ri-home-4-fill:before{content:"\ee1c"}.ri-home-4-line:before{content:"\ee1d"}.ri-home-5-fill:before{content:"\ee1e"}.ri-home-5-line:before{content:"\ee1f"}.ri-home-6-fill:before{content:"\ee20"}.ri-home-6-line:before{content:"\ee21"}.ri-home-7-fill:before{content:"\ee22"}.ri-home-7-line:before{content:"\ee23"}.ri-home-8-fill:before{content:"\ee24"}.ri-home-8-line:before{content:"\ee25"}.ri-home-fill:before{content:"\ee26"}.ri-home-gear-fill:before{content:"\ee27"}.ri-home-gear-line:before{content:"\ee28"}.ri-home-heart-fill:before{content:"\ee29"}.ri-home-heart-line:before{content:"\ee2a"}.ri-home-line:before{content:"\ee2b"}.ri-home-smile-2-fill:before{content:"\ee2c"}.ri-home-smile-2-line:before{content:"\ee2d"}.ri-home-smile-fill:before{content:"\ee2e"}.ri-home-smile-line:before{content:"\ee2f"}.ri-home-wifi-fill:before{content:"\ee30"}.ri-home-wifi-line:before{content:"\ee31"}.ri-honor-of-kings-fill:before{content:"\ee32"}.ri-honor-of-kings-line:before{content:"\ee33"}.ri-honour-fill:before{content:"\ee34"}.ri-honour-line:before{content:"\ee35"}.ri-hospital-fill:before{content:"\ee36"}.ri-hospital-line:before{content:"\ee37"}.ri-hotel-bed-fill:before{content:"\ee38"}.ri-hotel-bed-line:before{content:"\ee39"}.ri-hotel-fill:before{content:"\ee3a"}.ri-hotel-line:before{content:"\ee3b"}.ri-hotspot-fill:before{content:"\ee3c"}.ri-hotspot-line:before{content:"\ee3d"}.ri-hq-fill:before{content:"\ee3e"}.ri-hq-line:before{content:"\ee3f"}.ri-html5-fill:before{content:"\ee40"}.ri-html5-line:before{content:"\ee41"}.ri-ie-fill:before{content:"\ee42"}.ri-ie-line:before{content:"\ee43"}.ri-image-2-fill:before{content:"\ee44"}.ri-image-2-line:before{content:"\ee45"}.ri-image-add-fill:before{content:"\ee46"}.ri-image-add-line:before{content:"\ee47"}.ri-image-edit-fill:before{content:"\ee48"}.ri-image-edit-line:before{content:"\ee49"}.ri-image-fill:before{content:"\ee4a"}.ri-image-line:before{content:"\ee4b"}.ri-inbox-archive-fill:before{content:"\ee4c"}.ri-inbox-archive-line:before{content:"\ee4d"}.ri-inbox-fill:before{content:"\ee4e"}.ri-inbox-line:before{content:"\ee4f"}.ri-inbox-unarchive-fill:before{content:"\ee50"}.ri-inbox-unarchive-line:before{content:"\ee51"}.ri-increase-decrease-fill:before{content:"\ee52"}.ri-increase-decrease-line:before{content:"\ee53"}.ri-indent-decrease:before{content:"\ee54"}.ri-indent-increase:before{content:"\ee55"}.ri-indeterminate-circle-fill:before{content:"\ee56"}.ri-indeterminate-circle-line:before{content:"\ee57"}.ri-information-fill:before{content:"\ee58"}.ri-information-line:before{content:"\ee59"}.ri-infrared-thermometer-fill:before{content:"\ee5a"}.ri-infrared-thermometer-line:before{content:"\ee5b"}.ri-ink-bottle-fill:before{content:"\ee5c"}.ri-ink-bottle-line:before{content:"\ee5d"}.ri-input-cursor-move:before{content:"\ee5e"}.ri-input-method-fill:before{content:"\ee5f"}.ri-input-method-line:before{content:"\ee60"}.ri-insert-column-left:before{content:"\ee61"}.ri-insert-column-right:before{content:"\ee62"}.ri-insert-row-bottom:before{content:"\ee63"}.ri-insert-row-top:before{content:"\ee64"}.ri-instagram-fill:before{content:"\ee65"}.ri-instagram-line:before{content:"\ee66"}.ri-install-fill:before{content:"\ee67"}.ri-install-line:before{content:"\ee68"}.ri-invision-fill:before{content:"\ee69"}.ri-invision-line:before{content:"\ee6a"}.ri-italic:before{content:"\ee6b"}.ri-kakao-talk-fill:before{content:"\ee6c"}.ri-kakao-talk-line:before{content:"\ee6d"}.ri-key-2-fill:before{content:"\ee6e"}.ri-key-2-line:before{content:"\ee6f"}.ri-key-fill:before{content:"\ee70"}.ri-key-line:before{content:"\ee71"}.ri-keyboard-box-fill:before{content:"\ee72"}.ri-keyboard-box-line:before{content:"\ee73"}.ri-keyboard-fill:before{content:"\ee74"}.ri-keyboard-line:before{content:"\ee75"}.ri-keynote-fill:before{content:"\ee76"}.ri-keynote-line:before{content:"\ee77"}.ri-knife-blood-fill:before{content:"\ee78"}.ri-knife-blood-line:before{content:"\ee79"}.ri-knife-fill:before{content:"\ee7a"}.ri-knife-line:before{content:"\ee7b"}.ri-landscape-fill:before{content:"\ee7c"}.ri-landscape-line:before{content:"\ee7d"}.ri-layout-2-fill:before{content:"\ee7e"}.ri-layout-2-line:before{content:"\ee7f"}.ri-layout-3-fill:before{content:"\ee80"}.ri-layout-3-line:before{content:"\ee81"}.ri-layout-4-fill:before{content:"\ee82"}.ri-layout-4-line:before{content:"\ee83"}.ri-layout-5-fill:before{content:"\ee84"}.ri-layout-5-line:before{content:"\ee85"}.ri-layout-6-fill:before{content:"\ee86"}.ri-layout-6-line:before{content:"\ee87"}.ri-layout-bottom-2-fill:before{content:"\ee88"}.ri-layout-bottom-2-line:before{content:"\ee89"}.ri-layout-bottom-fill:before{content:"\ee8a"}.ri-layout-bottom-line:before{content:"\ee8b"}.ri-layout-column-fill:before{content:"\ee8c"}.ri-layout-column-line:before{content:"\ee8d"}.ri-layout-fill:before{content:"\ee8e"}.ri-layout-grid-fill:before{content:"\ee8f"}.ri-layout-grid-line:before{content:"\ee90"}.ri-layout-left-2-fill:before{content:"\ee91"}.ri-layout-left-2-line:before{content:"\ee92"}.ri-layout-left-fill:before{content:"\ee93"}.ri-layout-left-line:before{content:"\ee94"}.ri-layout-line:before{content:"\ee95"}.ri-layout-masonry-fill:before{content:"\ee96"}.ri-layout-masonry-line:before{content:"\ee97"}.ri-layout-right-2-fill:before{content:"\ee98"}.ri-layout-right-2-line:before{content:"\ee99"}.ri-layout-right-fill:before{content:"\ee9a"}.ri-layout-right-line:before{content:"\ee9b"}.ri-layout-row-fill:before{content:"\ee9c"}.ri-layout-row-line:before{content:"\ee9d"}.ri-layout-top-2-fill:before{content:"\ee9e"}.ri-layout-top-2-line:before{content:"\ee9f"}.ri-layout-top-fill:before{content:"\eea0"}.ri-layout-top-line:before{content:"\eea1"}.ri-leaf-fill:before{content:"\eea2"}.ri-leaf-line:before{content:"\eea3"}.ri-lifebuoy-fill:before{content:"\eea4"}.ri-lifebuoy-line:before{content:"\eea5"}.ri-lightbulb-fill:before{content:"\eea6"}.ri-lightbulb-flash-fill:before{content:"\eea7"}.ri-lightbulb-flash-line:before{content:"\eea8"}.ri-lightbulb-line:before{content:"\eea9"}.ri-line-chart-fill:before{content:"\eeaa"}.ri-line-chart-line:before{content:"\eeab"}.ri-line-fill:before{content:"\eeac"}.ri-line-height:before{content:"\eead"}.ri-line-line:before{content:"\eeae"}.ri-link-m:before{content:"\eeaf"}.ri-link-unlink-m:before{content:"\eeb0"}.ri-link-unlink:before{content:"\eeb1"}.ri-link:before{content:"\eeb2"}.ri-linkedin-box-fill:before{content:"\eeb3"}.ri-linkedin-box-line:before{content:"\eeb4"}.ri-linkedin-fill:before{content:"\eeb5"}.ri-linkedin-line:before{content:"\eeb6"}.ri-links-fill:before{content:"\eeb7"}.ri-links-line:before{content:"\eeb8"}.ri-list-check-2:before{content:"\eeb9"}.ri-list-check:before{content:"\eeba"}.ri-list-ordered:before{content:"\eebb"}.ri-list-settings-fill:before{content:"\eebc"}.ri-list-settings-line:before{content:"\eebd"}.ri-list-unordered:before{content:"\eebe"}.ri-live-fill:before{content:"\eebf"}.ri-live-line:before{content:"\eec0"}.ri-loader-2-fill:before{content:"\eec1"}.ri-loader-2-line:before{content:"\eec2"}.ri-loader-3-fill:before{content:"\eec3"}.ri-loader-3-line:before{content:"\eec4"}.ri-loader-4-fill:before{content:"\eec5"}.ri-loader-4-line:before{content:"\eec6"}.ri-loader-5-fill:before{content:"\eec7"}.ri-loader-5-line:before{content:"\eec8"}.ri-loader-fill:before{content:"\eec9"}.ri-loader-line:before{content:"\eeca"}.ri-lock-2-fill:before{content:"\eecb"}.ri-lock-2-line:before{content:"\eecc"}.ri-lock-fill:before{content:"\eecd"}.ri-lock-line:before{content:"\eece"}.ri-lock-password-fill:before{content:"\eecf"}.ri-lock-password-line:before{content:"\eed0"}.ri-lock-unlock-fill:before{content:"\eed1"}.ri-lock-unlock-line:before{content:"\eed2"}.ri-login-box-fill:before{content:"\eed3"}.ri-login-box-line:before{content:"\eed4"}.ri-login-circle-fill:before{content:"\eed5"}.ri-login-circle-line:before{content:"\eed6"}.ri-logout-box-fill:before{content:"\eed7"}.ri-logout-box-line:before{content:"\eed8"}.ri-logout-box-r-fill:before{content:"\eed9"}.ri-logout-box-r-line:before{content:"\eeda"}.ri-logout-circle-fill:before{content:"\eedb"}.ri-logout-circle-line:before{content:"\eedc"}.ri-logout-circle-r-fill:before{content:"\eedd"}.ri-logout-circle-r-line:before{content:"\eede"}.ri-luggage-cart-fill:before{content:"\eedf"}.ri-luggage-cart-line:before{content:"\eee0"}.ri-luggage-deposit-fill:before{content:"\eee1"}.ri-luggage-deposit-line:before{content:"\eee2"}.ri-lungs-fill:before{content:"\eee3"}.ri-lungs-line:before{content:"\eee4"}.ri-mac-fill:before{content:"\eee5"}.ri-mac-line:before{content:"\eee6"}.ri-macbook-fill:before{content:"\eee7"}.ri-macbook-line:before{content:"\eee8"}.ri-magic-fill:before{content:"\eee9"}.ri-magic-line:before{content:"\eeea"}.ri-mail-add-fill:before{content:"\eeeb"}.ri-mail-add-line:before{content:"\eeec"}.ri-mail-check-fill:before{content:"\eeed"}.ri-mail-check-line:before{content:"\eeee"}.ri-mail-close-fill:before{content:"\eeef"}.ri-mail-close-line:before{content:"\eef0"}.ri-mail-download-fill:before{content:"\eef1"}.ri-mail-download-line:before{content:"\eef2"}.ri-mail-fill:before{content:"\eef3"}.ri-mail-forbid-fill:before{content:"\eef4"}.ri-mail-forbid-line:before{content:"\eef5"}.ri-mail-line:before{content:"\eef6"}.ri-mail-lock-fill:before{content:"\eef7"}.ri-mail-lock-line:before{content:"\eef8"}.ri-mail-open-fill:before{content:"\eef9"}.ri-mail-open-line:before{content:"\eefa"}.ri-mail-send-fill:before{content:"\eefb"}.ri-mail-send-line:before{content:"\eefc"}.ri-mail-settings-fill:before{content:"\eefd"}.ri-mail-settings-line:before{content:"\eefe"}.ri-mail-star-fill:before{content:"\eeff"}.ri-mail-star-line:before{content:"\ef00"}.ri-mail-unread-fill:before{content:"\ef01"}.ri-mail-unread-line:before{content:"\ef02"}.ri-mail-volume-fill:before{content:"\ef03"}.ri-mail-volume-line:before{content:"\ef04"}.ri-map-2-fill:before{content:"\ef05"}.ri-map-2-line:before{content:"\ef06"}.ri-map-fill:before{content:"\ef07"}.ri-map-line:before{content:"\ef08"}.ri-map-pin-2-fill:before{content:"\ef09"}.ri-map-pin-2-line:before{content:"\ef0a"}.ri-map-pin-3-fill:before{content:"\ef0b"}.ri-map-pin-3-line:before{content:"\ef0c"}.ri-map-pin-4-fill:before{content:"\ef0d"}.ri-map-pin-4-line:before{content:"\ef0e"}.ri-map-pin-5-fill:before{content:"\ef0f"}.ri-map-pin-5-line:before{content:"\ef10"}.ri-map-pin-add-fill:before{content:"\ef11"}.ri-map-pin-add-line:before{content:"\ef12"}.ri-map-pin-fill:before{content:"\ef13"}.ri-map-pin-line:before{content:"\ef14"}.ri-map-pin-range-fill:before{content:"\ef15"}.ri-map-pin-range-line:before{content:"\ef16"}.ri-map-pin-time-fill:before{content:"\ef17"}.ri-map-pin-time-line:before{content:"\ef18"}.ri-map-pin-user-fill:before{content:"\ef19"}.ri-map-pin-user-line:before{content:"\ef1a"}.ri-mark-pen-fill:before{content:"\ef1b"}.ri-mark-pen-line:before{content:"\ef1c"}.ri-markdown-fill:before{content:"\ef1d"}.ri-markdown-line:before{content:"\ef1e"}.ri-markup-fill:before{content:"\ef1f"}.ri-markup-line:before{content:"\ef20"}.ri-mastercard-fill:before{content:"\ef21"}.ri-mastercard-line:before{content:"\ef22"}.ri-mastodon-fill:before{content:"\ef23"}.ri-mastodon-line:before{content:"\ef24"}.ri-medal-2-fill:before{content:"\ef25"}.ri-medal-2-line:before{content:"\ef26"}.ri-medal-fill:before{content:"\ef27"}.ri-medal-line:before{content:"\ef28"}.ri-medicine-bottle-fill:before{content:"\ef29"}.ri-medicine-bottle-line:before{content:"\ef2a"}.ri-medium-fill:before{content:"\ef2b"}.ri-medium-line:before{content:"\ef2c"}.ri-men-fill:before{content:"\ef2d"}.ri-men-line:before{content:"\ef2e"}.ri-mental-health-fill:before{content:"\ef2f"}.ri-mental-health-line:before{content:"\ef30"}.ri-menu-2-fill:before{content:"\ef31"}.ri-menu-2-line:before{content:"\ef32"}.ri-menu-3-fill:before{content:"\ef33"}.ri-menu-3-line:before{content:"\ef34"}.ri-menu-4-fill:before{content:"\ef35"}.ri-menu-4-line:before{content:"\ef36"}.ri-menu-5-fill:before{content:"\ef37"}.ri-menu-5-line:before{content:"\ef38"}.ri-menu-add-fill:before{content:"\ef39"}.ri-menu-add-line:before{content:"\ef3a"}.ri-menu-fill:before{content:"\ef3b"}.ri-menu-fold-fill:before{content:"\ef3c"}.ri-menu-fold-line:before{content:"\ef3d"}.ri-menu-line:before{content:"\ef3e"}.ri-menu-unfold-fill:before{content:"\ef3f"}.ri-menu-unfold-line:before{content:"\ef40"}.ri-merge-cells-horizontal:before{content:"\ef41"}.ri-merge-cells-vertical:before{content:"\ef42"}.ri-message-2-fill:before{content:"\ef43"}.ri-message-2-line:before{content:"\ef44"}.ri-message-3-fill:before{content:"\ef45"}.ri-message-3-line:before{content:"\ef46"}.ri-message-fill:before{content:"\ef47"}.ri-message-line:before{content:"\ef48"}.ri-messenger-fill:before{content:"\ef49"}.ri-messenger-line:before{content:"\ef4a"}.ri-meteor-fill:before{content:"\ef4b"}.ri-meteor-line:before{content:"\ef4c"}.ri-mic-2-fill:before{content:"\ef4d"}.ri-mic-2-line:before{content:"\ef4e"}.ri-mic-fill:before{content:"\ef4f"}.ri-mic-line:before{content:"\ef50"}.ri-mic-off-fill:before{content:"\ef51"}.ri-mic-off-line:before{content:"\ef52"}.ri-mickey-fill:before{content:"\ef53"}.ri-mickey-line:before{content:"\ef54"}.ri-microscope-fill:before{content:"\ef55"}.ri-microscope-line:before{content:"\ef56"}.ri-microsoft-fill:before{content:"\ef57"}.ri-microsoft-line:before{content:"\ef58"}.ri-mind-map:before{content:"\ef59"}.ri-mini-program-fill:before{content:"\ef5a"}.ri-mini-program-line:before{content:"\ef5b"}.ri-mist-fill:before{content:"\ef5c"}.ri-mist-line:before{content:"\ef5d"}.ri-money-cny-box-fill:before{content:"\ef5e"}.ri-money-cny-box-line:before{content:"\ef5f"}.ri-money-cny-circle-fill:before{content:"\ef60"}.ri-money-cny-circle-line:before{content:"\ef61"}.ri-money-dollar-box-fill:before{content:"\ef62"}.ri-money-dollar-box-line:before{content:"\ef63"}.ri-money-dollar-circle-fill:before{content:"\ef64"}.ri-money-dollar-circle-line:before{content:"\ef65"}.ri-money-euro-box-fill:before{content:"\ef66"}.ri-money-euro-box-line:before{content:"\ef67"}.ri-money-euro-circle-fill:before{content:"\ef68"}.ri-money-euro-circle-line:before{content:"\ef69"}.ri-money-pound-box-fill:before{content:"\ef6a"}.ri-money-pound-box-line:before{content:"\ef6b"}.ri-money-pound-circle-fill:before{content:"\ef6c"}.ri-money-pound-circle-line:before{content:"\ef6d"}.ri-moon-clear-fill:before{content:"\ef6e"}.ri-moon-clear-line:before{content:"\ef6f"}.ri-moon-cloudy-fill:before{content:"\ef70"}.ri-moon-cloudy-line:before{content:"\ef71"}.ri-moon-fill:before{content:"\ef72"}.ri-moon-foggy-fill:before{content:"\ef73"}.ri-moon-foggy-line:before{content:"\ef74"}.ri-moon-line:before{content:"\ef75"}.ri-more-2-fill:before{content:"\ef76"}.ri-more-2-line:before{content:"\ef77"}.ri-more-fill:before{content:"\ef78"}.ri-more-line:before{content:"\ef79"}.ri-motorbike-fill:before{content:"\ef7a"}.ri-motorbike-line:before{content:"\ef7b"}.ri-mouse-fill:before{content:"\ef7c"}.ri-mouse-line:before{content:"\ef7d"}.ri-movie-2-fill:before{content:"\ef7e"}.ri-movie-2-line:before{content:"\ef7f"}.ri-movie-fill:before{content:"\ef80"}.ri-movie-line:before{content:"\ef81"}.ri-music-2-fill:before{content:"\ef82"}.ri-music-2-line:before{content:"\ef83"}.ri-music-fill:before{content:"\ef84"}.ri-music-line:before{content:"\ef85"}.ri-mv-fill:before{content:"\ef86"}.ri-mv-line:before{content:"\ef87"}.ri-navigation-fill:before{content:"\ef88"}.ri-navigation-line:before{content:"\ef89"}.ri-netease-cloud-music-fill:before{content:"\ef8a"}.ri-netease-cloud-music-line:before{content:"\ef8b"}.ri-netflix-fill:before{content:"\ef8c"}.ri-netflix-line:before{content:"\ef8d"}.ri-newspaper-fill:before{content:"\ef8e"}.ri-newspaper-line:before{content:"\ef8f"}.ri-node-tree:before{content:"\ef90"}.ri-notification-2-fill:before{content:"\ef91"}.ri-notification-2-line:before{content:"\ef92"}.ri-notification-3-fill:before{content:"\ef93"}.ri-notification-3-line:before{content:"\ef94"}.ri-notification-4-fill:before{content:"\ef95"}.ri-notification-4-line:before{content:"\ef96"}.ri-notification-badge-fill:before{content:"\ef97"}.ri-notification-badge-line:before{content:"\ef98"}.ri-notification-fill:before{content:"\ef99"}.ri-notification-line:before{content:"\ef9a"}.ri-notification-off-fill:before{content:"\ef9b"}.ri-notification-off-line:before{content:"\ef9c"}.ri-npmjs-fill:before{content:"\ef9d"}.ri-npmjs-line:before{content:"\ef9e"}.ri-number-0:before{content:"\ef9f"}.ri-number-1:before{content:"\efa0"}.ri-number-2:before{content:"\efa1"}.ri-number-3:before{content:"\efa2"}.ri-number-4:before{content:"\efa3"}.ri-number-5:before{content:"\efa4"}.ri-number-6:before{content:"\efa5"}.ri-number-7:before{content:"\efa6"}.ri-number-8:before{content:"\efa7"}.ri-number-9:before{content:"\efa8"}.ri-numbers-fill:before{content:"\efa9"}.ri-numbers-line:before{content:"\efaa"}.ri-nurse-fill:before{content:"\efab"}.ri-nurse-line:before{content:"\efac"}.ri-oil-fill:before{content:"\efad"}.ri-oil-line:before{content:"\efae"}.ri-omega:before{content:"\efaf"}.ri-open-arm-fill:before{content:"\efb0"}.ri-open-arm-line:before{content:"\efb1"}.ri-open-source-fill:before{content:"\efb2"}.ri-open-source-line:before{content:"\efb3"}.ri-opera-fill:before{content:"\efb4"}.ri-opera-line:before{content:"\efb5"}.ri-order-play-fill:before{content:"\efb6"}.ri-order-play-line:before{content:"\efb7"}.ri-organization-chart:before{content:"\efb8"}.ri-outlet-2-fill:before{content:"\efb9"}.ri-outlet-2-line:before{content:"\efba"}.ri-outlet-fill:before{content:"\efbb"}.ri-outlet-line:before{content:"\efbc"}.ri-page-separator:before{content:"\efbd"}.ri-pages-fill:before{content:"\efbe"}.ri-pages-line:before{content:"\efbf"}.ri-paint-brush-fill:before{content:"\efc0"}.ri-paint-brush-line:before{content:"\efc1"}.ri-paint-fill:before{content:"\efc2"}.ri-paint-line:before{content:"\efc3"}.ri-palette-fill:before{content:"\efc4"}.ri-palette-line:before{content:"\efc5"}.ri-pantone-fill:before{content:"\efc6"}.ri-pantone-line:before{content:"\efc7"}.ri-paragraph:before{content:"\efc8"}.ri-parent-fill:before{content:"\efc9"}.ri-parent-line:before{content:"\efca"}.ri-parentheses-fill:before{content:"\efcb"}.ri-parentheses-line:before{content:"\efcc"}.ri-parking-box-fill:before{content:"\efcd"}.ri-parking-box-line:before{content:"\efce"}.ri-parking-fill:before{content:"\efcf"}.ri-parking-line:before{content:"\efd0"}.ri-passport-fill:before{content:"\efd1"}.ri-passport-line:before{content:"\efd2"}.ri-patreon-fill:before{content:"\efd3"}.ri-patreon-line:before{content:"\efd4"}.ri-pause-circle-fill:before{content:"\efd5"}.ri-pause-circle-line:before{content:"\efd6"}.ri-pause-fill:before{content:"\efd7"}.ri-pause-line:before{content:"\efd8"}.ri-pause-mini-fill:before{content:"\efd9"}.ri-pause-mini-line:before{content:"\efda"}.ri-paypal-fill:before{content:"\efdb"}.ri-paypal-line:before{content:"\efdc"}.ri-pen-nib-fill:before{content:"\efdd"}.ri-pen-nib-line:before{content:"\efde"}.ri-pencil-fill:before{content:"\efdf"}.ri-pencil-line:before{content:"\efe0"}.ri-pencil-ruler-2-fill:before{content:"\efe1"}.ri-pencil-ruler-2-line:before{content:"\efe2"}.ri-pencil-ruler-fill:before{content:"\efe3"}.ri-pencil-ruler-line:before{content:"\efe4"}.ri-percent-fill:before{content:"\efe5"}.ri-percent-line:before{content:"\efe6"}.ri-phone-camera-fill:before{content:"\efe7"}.ri-phone-camera-line:before{content:"\efe8"}.ri-phone-fill:before{content:"\efe9"}.ri-phone-find-fill:before{content:"\efea"}.ri-phone-find-line:before{content:"\efeb"}.ri-phone-line:before{content:"\efec"}.ri-phone-lock-fill:before{content:"\efed"}.ri-phone-lock-line:before{content:"\efee"}.ri-picture-in-picture-2-fill:before{content:"\efef"}.ri-picture-in-picture-2-line:before{content:"\eff0"}.ri-picture-in-picture-exit-fill:before{content:"\eff1"}.ri-picture-in-picture-exit-line:before{content:"\eff2"}.ri-picture-in-picture-fill:before{content:"\eff3"}.ri-picture-in-picture-line:before{content:"\eff4"}.ri-pie-chart-2-fill:before{content:"\eff5"}.ri-pie-chart-2-line:before{content:"\eff6"}.ri-pie-chart-box-fill:before{content:"\eff7"}.ri-pie-chart-box-line:before{content:"\eff8"}.ri-pie-chart-fill:before{content:"\eff9"}.ri-pie-chart-line:before{content:"\effa"}.ri-pin-distance-fill:before{content:"\effb"}.ri-pin-distance-line:before{content:"\effc"}.ri-ping-pong-fill:before{content:"\effd"}.ri-ping-pong-line:before{content:"\effe"}.ri-pinterest-fill:before{content:"\efff"}.ri-pinterest-line:before{content:"\f000"}.ri-pinyin-input:before{content:"\f001"}.ri-pixelfed-fill:before{content:"\f002"}.ri-pixelfed-line:before{content:"\f003"}.ri-plane-fill:before{content:"\f004"}.ri-plane-line:before{content:"\f005"}.ri-plant-fill:before{content:"\f006"}.ri-plant-line:before{content:"\f007"}.ri-play-circle-fill:before{content:"\f008"}.ri-play-circle-line:before{content:"\f009"}.ri-play-fill:before{content:"\f00a"}.ri-play-line:before{content:"\f00b"}.ri-play-list-2-fill:before{content:"\f00c"}.ri-play-list-2-line:before{content:"\f00d"}.ri-play-list-add-fill:before{content:"\f00e"}.ri-play-list-add-line:before{content:"\f00f"}.ri-play-list-fill:before{content:"\f010"}.ri-play-list-line:before{content:"\f011"}.ri-play-mini-fill:before{content:"\f012"}.ri-play-mini-line:before{content:"\f013"}.ri-playstation-fill:before{content:"\f014"}.ri-playstation-line:before{content:"\f015"}.ri-plug-2-fill:before{content:"\f016"}.ri-plug-2-line:before{content:"\f017"}.ri-plug-fill:before{content:"\f018"}.ri-plug-line:before{content:"\f019"}.ri-polaroid-2-fill:before{content:"\f01a"}.ri-polaroid-2-line:before{content:"\f01b"}.ri-polaroid-fill:before{content:"\f01c"}.ri-polaroid-line:before{content:"\f01d"}.ri-police-car-fill:before{content:"\f01e"}.ri-police-car-line:before{content:"\f01f"}.ri-price-tag-2-fill:before{content:"\f020"}.ri-price-tag-2-line:before{content:"\f021"}.ri-price-tag-3-fill:before{content:"\f022"}.ri-price-tag-3-line:before{content:"\f023"}.ri-price-tag-fill:before{content:"\f024"}.ri-price-tag-line:before{content:"\f025"}.ri-printer-cloud-fill:before{content:"\f026"}.ri-printer-cloud-line:before{content:"\f027"}.ri-printer-fill:before{content:"\f028"}.ri-printer-line:before{content:"\f029"}.ri-product-hunt-fill:before{content:"\f02a"}.ri-product-hunt-line:before{content:"\f02b"}.ri-profile-fill:before{content:"\f02c"}.ri-profile-line:before{content:"\f02d"}.ri-projector-2-fill:before{content:"\f02e"}.ri-projector-2-line:before{content:"\f02f"}.ri-projector-fill:before{content:"\f030"}.ri-projector-line:before{content:"\f031"}.ri-psychotherapy-fill:before{content:"\f032"}.ri-psychotherapy-line:before{content:"\f033"}.ri-pulse-fill:before{content:"\f034"}.ri-pulse-line:before{content:"\f035"}.ri-pushpin-2-fill:before{content:"\f036"}.ri-pushpin-2-line:before{content:"\f037"}.ri-pushpin-fill:before{content:"\f038"}.ri-pushpin-line:before{content:"\f039"}.ri-qq-fill:before{content:"\f03a"}.ri-qq-line:before{content:"\f03b"}.ri-qr-code-fill:before{content:"\f03c"}.ri-qr-code-line:before{content:"\f03d"}.ri-qr-scan-2-fill:before{content:"\f03e"}.ri-qr-scan-2-line:before{content:"\f03f"}.ri-qr-scan-fill:before{content:"\f040"}.ri-qr-scan-line:before{content:"\f041"}.ri-question-answer-fill:before{content:"\f042"}.ri-question-answer-line:before{content:"\f043"}.ri-question-fill:before{content:"\f044"}.ri-question-line:before{content:"\f045"}.ri-question-mark:before{content:"\f046"}.ri-questionnaire-fill:before{content:"\f047"}.ri-questionnaire-line:before{content:"\f048"}.ri-quill-pen-fill:before{content:"\f049"}.ri-quill-pen-line:before{content:"\f04a"}.ri-radar-fill:before{content:"\f04b"}.ri-radar-line:before{content:"\f04c"}.ri-radio-2-fill:before{content:"\f04d"}.ri-radio-2-line:before{content:"\f04e"}.ri-radio-button-fill:before{content:"\f04f"}.ri-radio-button-line:before{content:"\f050"}.ri-radio-fill:before{content:"\f051"}.ri-radio-line:before{content:"\f052"}.ri-rainbow-fill:before{content:"\f053"}.ri-rainbow-line:before{content:"\f054"}.ri-rainy-fill:before{content:"\f055"}.ri-rainy-line:before{content:"\f056"}.ri-reactjs-fill:before{content:"\f057"}.ri-reactjs-line:before{content:"\f058"}.ri-record-circle-fill:before{content:"\f059"}.ri-record-circle-line:before{content:"\f05a"}.ri-record-mail-fill:before{content:"\f05b"}.ri-record-mail-line:before{content:"\f05c"}.ri-recycle-fill:before{content:"\f05d"}.ri-recycle-line:before{content:"\f05e"}.ri-red-packet-fill:before{content:"\f05f"}.ri-red-packet-line:before{content:"\f060"}.ri-reddit-fill:before{content:"\f061"}.ri-reddit-line:before{content:"\f062"}.ri-refresh-fill:before{content:"\f063"}.ri-refresh-line:before{content:"\f064"}.ri-refund-2-fill:before{content:"\f065"}.ri-refund-2-line:before{content:"\f066"}.ri-refund-fill:before{content:"\f067"}.ri-refund-line:before{content:"\f068"}.ri-registered-fill:before{content:"\f069"}.ri-registered-line:before{content:"\f06a"}.ri-remixicon-fill:before{content:"\f06b"}.ri-remixicon-line:before{content:"\f06c"}.ri-remote-control-2-fill:before{content:"\f06d"}.ri-remote-control-2-line:before{content:"\f06e"}.ri-remote-control-fill:before{content:"\f06f"}.ri-remote-control-line:before{content:"\f070"}.ri-repeat-2-fill:before{content:"\f071"}.ri-repeat-2-line:before{content:"\f072"}.ri-repeat-fill:before{content:"\f073"}.ri-repeat-line:before{content:"\f074"}.ri-repeat-one-fill:before{content:"\f075"}.ri-repeat-one-line:before{content:"\f076"}.ri-reply-all-fill:before{content:"\f077"}.ri-reply-all-line:before{content:"\f078"}.ri-reply-fill:before{content:"\f079"}.ri-reply-line:before{content:"\f07a"}.ri-reserved-fill:before{content:"\f07b"}.ri-reserved-line:before{content:"\f07c"}.ri-rest-time-fill:before{content:"\f07d"}.ri-rest-time-line:before{content:"\f07e"}.ri-restart-fill:before{content:"\f07f"}.ri-restart-line:before{content:"\f080"}.ri-restaurant-2-fill:before{content:"\f081"}.ri-restaurant-2-line:before{content:"\f082"}.ri-restaurant-fill:before{content:"\f083"}.ri-restaurant-line:before{content:"\f084"}.ri-rewind-fill:before{content:"\f085"}.ri-rewind-line:before{content:"\f086"}.ri-rewind-mini-fill:before{content:"\f087"}.ri-rewind-mini-line:before{content:"\f088"}.ri-rhythm-fill:before{content:"\f089"}.ri-rhythm-line:before{content:"\f08a"}.ri-riding-fill:before{content:"\f08b"}.ri-riding-line:before{content:"\f08c"}.ri-road-map-fill:before{content:"\f08d"}.ri-road-map-line:before{content:"\f08e"}.ri-roadster-fill:before{content:"\f08f"}.ri-roadster-line:before{content:"\f090"}.ri-robot-fill:before{content:"\f091"}.ri-robot-line:before{content:"\f092"}.ri-rocket-2-fill:before{content:"\f093"}.ri-rocket-2-line:before{content:"\f094"}.ri-rocket-fill:before{content:"\f095"}.ri-rocket-line:before{content:"\f096"}.ri-rotate-lock-fill:before{content:"\f097"}.ri-rotate-lock-line:before{content:"\f098"}.ri-rounded-corner:before{content:"\f099"}.ri-route-fill:before{content:"\f09a"}.ri-route-line:before{content:"\f09b"}.ri-router-fill:before{content:"\f09c"}.ri-router-line:before{content:"\f09d"}.ri-rss-fill:before{content:"\f09e"}.ri-rss-line:before{content:"\f09f"}.ri-ruler-2-fill:before{content:"\f0a0"}.ri-ruler-2-line:before{content:"\f0a1"}.ri-ruler-fill:before{content:"\f0a2"}.ri-ruler-line:before{content:"\f0a3"}.ri-run-fill:before{content:"\f0a4"}.ri-run-line:before{content:"\f0a5"}.ri-safari-fill:before{content:"\f0a6"}.ri-safari-line:before{content:"\f0a7"}.ri-safe-2-fill:before{content:"\f0a8"}.ri-safe-2-line:before{content:"\f0a9"}.ri-safe-fill:before{content:"\f0aa"}.ri-safe-line:before{content:"\f0ab"}.ri-sailboat-fill:before{content:"\f0ac"}.ri-sailboat-line:before{content:"\f0ad"}.ri-save-2-fill:before{content:"\f0ae"}.ri-save-2-line:before{content:"\f0af"}.ri-save-3-fill:before{content:"\f0b0"}.ri-save-3-line:before{content:"\f0b1"}.ri-save-fill:before{content:"\f0b2"}.ri-save-line:before{content:"\f0b3"}.ri-scales-2-fill:before{content:"\f0b4"}.ri-scales-2-line:before{content:"\f0b5"}.ri-scales-3-fill:before{content:"\f0b6"}.ri-scales-3-line:before{content:"\f0b7"}.ri-scales-fill:before{content:"\f0b8"}.ri-scales-line:before{content:"\f0b9"}.ri-scan-2-fill:before{content:"\f0ba"}.ri-scan-2-line:before{content:"\f0bb"}.ri-scan-fill:before{content:"\f0bc"}.ri-scan-line:before{content:"\f0bd"}.ri-scissors-2-fill:before{content:"\f0be"}.ri-scissors-2-line:before{content:"\f0bf"}.ri-scissors-cut-fill:before{content:"\f0c0"}.ri-scissors-cut-line:before{content:"\f0c1"}.ri-scissors-fill:before{content:"\f0c2"}.ri-scissors-line:before{content:"\f0c3"}.ri-screenshot-2-fill:before{content:"\f0c4"}.ri-screenshot-2-line:before{content:"\f0c5"}.ri-screenshot-fill:before{content:"\f0c6"}.ri-screenshot-line:before{content:"\f0c7"}.ri-sd-card-fill:before{content:"\f0c8"}.ri-sd-card-line:before{content:"\f0c9"}.ri-sd-card-mini-fill:before{content:"\f0ca"}.ri-sd-card-mini-line:before{content:"\f0cb"}.ri-search-2-fill:before{content:"\f0cc"}.ri-search-2-line:before{content:"\f0cd"}.ri-search-eye-fill:before{content:"\f0ce"}.ri-search-eye-line:before{content:"\f0cf"}.ri-search-fill:before{content:"\f0d0"}.ri-search-line:before{content:"\f0d1"}.ri-secure-payment-fill:before{content:"\f0d2"}.ri-secure-payment-line:before{content:"\f0d3"}.ri-seedling-fill:before{content:"\f0d4"}.ri-seedling-line:before{content:"\f0d5"}.ri-send-backward:before{content:"\f0d6"}.ri-send-plane-2-fill:before{content:"\f0d7"}.ri-send-plane-2-line:before{content:"\f0d8"}.ri-send-plane-fill:before{content:"\f0d9"}.ri-send-plane-line:before{content:"\f0da"}.ri-send-to-back:before{content:"\f0db"}.ri-sensor-fill:before{content:"\f0dc"}.ri-sensor-line:before{content:"\f0dd"}.ri-separator:before{content:"\f0de"}.ri-server-fill:before{content:"\f0df"}.ri-server-line:before{content:"\f0e0"}.ri-service-fill:before{content:"\f0e1"}.ri-service-line:before{content:"\f0e2"}.ri-settings-2-fill:before{content:"\f0e3"}.ri-settings-2-line:before{content:"\f0e4"}.ri-settings-3-fill:before{content:"\f0e5"}.ri-settings-3-line:before{content:"\f0e6"}.ri-settings-4-fill:before{content:"\f0e7"}.ri-settings-4-line:before{content:"\f0e8"}.ri-settings-5-fill:before{content:"\f0e9"}.ri-settings-5-line:before{content:"\f0ea"}.ri-settings-6-fill:before{content:"\f0eb"}.ri-settings-6-line:before{content:"\f0ec"}.ri-settings-fill:before{content:"\f0ed"}.ri-settings-line:before{content:"\f0ee"}.ri-shape-2-fill:before{content:"\f0ef"}.ri-shape-2-line:before{content:"\f0f0"}.ri-shape-fill:before{content:"\f0f1"}.ri-shape-line:before{content:"\f0f2"}.ri-share-box-fill:before{content:"\f0f3"}.ri-share-box-line:before{content:"\f0f4"}.ri-share-circle-fill:before{content:"\f0f5"}.ri-share-circle-line:before{content:"\f0f6"}.ri-share-fill:before{content:"\f0f7"}.ri-share-forward-2-fill:before{content:"\f0f8"}.ri-share-forward-2-line:before{content:"\f0f9"}.ri-share-forward-box-fill:before{content:"\f0fa"}.ri-share-forward-box-line:before{content:"\f0fb"}.ri-share-forward-fill:before{content:"\f0fc"}.ri-share-forward-line:before{content:"\f0fd"}.ri-share-line:before{content:"\f0fe"}.ri-shield-check-fill:before{content:"\f0ff"}.ri-shield-check-line:before{content:"\f100"}.ri-shield-cross-fill:before{content:"\f101"}.ri-shield-cross-line:before{content:"\f102"}.ri-shield-fill:before{content:"\f103"}.ri-shield-flash-fill:before{content:"\f104"}.ri-shield-flash-line:before{content:"\f105"}.ri-shield-keyhole-fill:before{content:"\f106"}.ri-shield-keyhole-line:before{content:"\f107"}.ri-shield-line:before{content:"\f108"}.ri-shield-star-fill:before{content:"\f109"}.ri-shield-star-line:before{content:"\f10a"}.ri-shield-user-fill:before{content:"\f10b"}.ri-shield-user-line:before{content:"\f10c"}.ri-ship-2-fill:before{content:"\f10d"}.ri-ship-2-line:before{content:"\f10e"}.ri-ship-fill:before{content:"\f10f"}.ri-ship-line:before{content:"\f110"}.ri-shirt-fill:before{content:"\f111"}.ri-shirt-line:before{content:"\f112"}.ri-shopping-bag-2-fill:before{content:"\f113"}.ri-shopping-bag-2-line:before{content:"\f114"}.ri-shopping-bag-3-fill:before{content:"\f115"}.ri-shopping-bag-3-line:before{content:"\f116"}.ri-shopping-bag-fill:before{content:"\f117"}.ri-shopping-bag-line:before{content:"\f118"}.ri-shopping-basket-2-fill:before{content:"\f119"}.ri-shopping-basket-2-line:before{content:"\f11a"}.ri-shopping-basket-fill:before{content:"\f11b"}.ri-shopping-basket-line:before{content:"\f11c"}.ri-shopping-cart-2-fill:before{content:"\f11d"}.ri-shopping-cart-2-line:before{content:"\f11e"}.ri-shopping-cart-fill:before{content:"\f11f"}.ri-shopping-cart-line:before{content:"\f120"}.ri-showers-fill:before{content:"\f121"}.ri-showers-line:before{content:"\f122"}.ri-shuffle-fill:before{content:"\f123"}.ri-shuffle-line:before{content:"\f124"}.ri-shut-down-fill:before{content:"\f125"}.ri-shut-down-line:before{content:"\f126"}.ri-side-bar-fill:before{content:"\f127"}.ri-side-bar-line:before{content:"\f128"}.ri-signal-tower-fill:before{content:"\f129"}.ri-signal-tower-line:before{content:"\f12a"}.ri-signal-wifi-1-fill:before{content:"\f12b"}.ri-signal-wifi-1-line:before{content:"\f12c"}.ri-signal-wifi-2-fill:before{content:"\f12d"}.ri-signal-wifi-2-line:before{content:"\f12e"}.ri-signal-wifi-3-fill:before{content:"\f12f"}.ri-signal-wifi-3-line:before{content:"\f130"}.ri-signal-wifi-error-fill:before{content:"\f131"}.ri-signal-wifi-error-line:before{content:"\f132"}.ri-signal-wifi-fill:before{content:"\f133"}.ri-signal-wifi-line:before{content:"\f134"}.ri-signal-wifi-off-fill:before{content:"\f135"}.ri-signal-wifi-off-line:before{content:"\f136"}.ri-sim-card-2-fill:before{content:"\f137"}.ri-sim-card-2-line:before{content:"\f138"}.ri-sim-card-fill:before{content:"\f139"}.ri-sim-card-line:before{content:"\f13a"}.ri-single-quotes-l:before{content:"\f13b"}.ri-single-quotes-r:before{content:"\f13c"}.ri-sip-fill:before{content:"\f13d"}.ri-sip-line:before{content:"\f13e"}.ri-skip-back-fill:before{content:"\f13f"}.ri-skip-back-line:before{content:"\f140"}.ri-skip-back-mini-fill:before{content:"\f141"}.ri-skip-back-mini-line:before{content:"\f142"}.ri-skip-forward-fill:before{content:"\f143"}.ri-skip-forward-line:before{content:"\f144"}.ri-skip-forward-mini-fill:before{content:"\f145"}.ri-skip-forward-mini-line:before{content:"\f146"}.ri-skull-2-fill:before{content:"\f147"}.ri-skull-2-line:before{content:"\f148"}.ri-skull-fill:before{content:"\f149"}.ri-skull-line:before{content:"\f14a"}.ri-skype-fill:before{content:"\f14b"}.ri-skype-line:before{content:"\f14c"}.ri-slack-fill:before{content:"\f14d"}.ri-slack-line:before{content:"\f14e"}.ri-slice-fill:before{content:"\f14f"}.ri-slice-line:before{content:"\f150"}.ri-slideshow-2-fill:before{content:"\f151"}.ri-slideshow-2-line:before{content:"\f152"}.ri-slideshow-3-fill:before{content:"\f153"}.ri-slideshow-3-line:before{content:"\f154"}.ri-slideshow-4-fill:before{content:"\f155"}.ri-slideshow-4-line:before{content:"\f156"}.ri-slideshow-fill:before{content:"\f157"}.ri-slideshow-line:before{content:"\f158"}.ri-smartphone-fill:before{content:"\f159"}.ri-smartphone-line:before{content:"\f15a"}.ri-snapchat-fill:before{content:"\f15b"}.ri-snapchat-line:before{content:"\f15c"}.ri-snowy-fill:before{content:"\f15d"}.ri-snowy-line:before{content:"\f15e"}.ri-sort-asc:before{content:"\f15f"}.ri-sort-desc:before{content:"\f160"}.ri-sound-module-fill:before{content:"\f161"}.ri-sound-module-line:before{content:"\f162"}.ri-soundcloud-fill:before{content:"\f163"}.ri-soundcloud-line:before{content:"\f164"}.ri-space-ship-fill:before{content:"\f165"}.ri-space-ship-line:before{content:"\f166"}.ri-space:before{content:"\f167"}.ri-spam-2-fill:before{content:"\f168"}.ri-spam-2-line:before{content:"\f169"}.ri-spam-3-fill:before{content:"\f16a"}.ri-spam-3-line:before{content:"\f16b"}.ri-spam-fill:before{content:"\f16c"}.ri-spam-line:before{content:"\f16d"}.ri-speaker-2-fill:before{content:"\f16e"}.ri-speaker-2-line:before{content:"\f16f"}.ri-speaker-3-fill:before{content:"\f170"}.ri-speaker-3-line:before{content:"\f171"}.ri-speaker-fill:before{content:"\f172"}.ri-speaker-line:before{content:"\f173"}.ri-spectrum-fill:before{content:"\f174"}.ri-spectrum-line:before{content:"\f175"}.ri-speed-fill:before{content:"\f176"}.ri-speed-line:before{content:"\f177"}.ri-speed-mini-fill:before{content:"\f178"}.ri-speed-mini-line:before{content:"\f179"}.ri-split-cells-horizontal:before{content:"\f17a"}.ri-split-cells-vertical:before{content:"\f17b"}.ri-spotify-fill:before{content:"\f17c"}.ri-spotify-line:before{content:"\f17d"}.ri-spy-fill:before{content:"\f17e"}.ri-spy-line:before{content:"\f17f"}.ri-stack-fill:before{content:"\f180"}.ri-stack-line:before{content:"\f181"}.ri-stack-overflow-fill:before{content:"\f182"}.ri-stack-overflow-line:before{content:"\f183"}.ri-stackshare-fill:before{content:"\f184"}.ri-stackshare-line:before{content:"\f185"}.ri-star-fill:before{content:"\f186"}.ri-star-half-fill:before{content:"\f187"}.ri-star-half-line:before{content:"\f188"}.ri-star-half-s-fill:before{content:"\f189"}.ri-star-half-s-line:before{content:"\f18a"}.ri-star-line:before{content:"\f18b"}.ri-star-s-fill:before{content:"\f18c"}.ri-star-s-line:before{content:"\f18d"}.ri-star-smile-fill:before{content:"\f18e"}.ri-star-smile-line:before{content:"\f18f"}.ri-steam-fill:before{content:"\f190"}.ri-steam-line:before{content:"\f191"}.ri-steering-2-fill:before{content:"\f192"}.ri-steering-2-line:before{content:"\f193"}.ri-steering-fill:before{content:"\f194"}.ri-steering-line:before{content:"\f195"}.ri-stethoscope-fill:before{content:"\f196"}.ri-stethoscope-line:before{content:"\f197"}.ri-sticky-note-2-fill:before{content:"\f198"}.ri-sticky-note-2-line:before{content:"\f199"}.ri-sticky-note-fill:before{content:"\f19a"}.ri-sticky-note-line:before{content:"\f19b"}.ri-stock-fill:before{content:"\f19c"}.ri-stock-line:before{content:"\f19d"}.ri-stop-circle-fill:before{content:"\f19e"}.ri-stop-circle-line:before{content:"\f19f"}.ri-stop-fill:before{content:"\f1a0"}.ri-stop-line:before{content:"\f1a1"}.ri-stop-mini-fill:before{content:"\f1a2"}.ri-stop-mini-line:before{content:"\f1a3"}.ri-store-2-fill:before{content:"\f1a4"}.ri-store-2-line:before{content:"\f1a5"}.ri-store-3-fill:before{content:"\f1a6"}.ri-store-3-line:before{content:"\f1a7"}.ri-store-fill:before{content:"\f1a8"}.ri-store-line:before{content:"\f1a9"}.ri-strikethrough-2:before{content:"\f1aa"}.ri-strikethrough:before{content:"\f1ab"}.ri-subscript-2:before{content:"\f1ac"}.ri-subscript:before{content:"\f1ad"}.ri-subtract-fill:before{content:"\f1ae"}.ri-subtract-line:before{content:"\f1af"}.ri-subway-fill:before{content:"\f1b0"}.ri-subway-line:before{content:"\f1b1"}.ri-subway-wifi-fill:before{content:"\f1b2"}.ri-subway-wifi-line:before{content:"\f1b3"}.ri-suitcase-2-fill:before{content:"\f1b4"}.ri-suitcase-2-line:before{content:"\f1b5"}.ri-suitcase-3-fill:before{content:"\f1b6"}.ri-suitcase-3-line:before{content:"\f1b7"}.ri-suitcase-fill:before{content:"\f1b8"}.ri-suitcase-line:before{content:"\f1b9"}.ri-sun-cloudy-fill:before{content:"\f1ba"}.ri-sun-cloudy-line:before{content:"\f1bb"}.ri-sun-fill:before{content:"\f1bc"}.ri-sun-foggy-fill:before{content:"\f1bd"}.ri-sun-foggy-line:before{content:"\f1be"}.ri-sun-line:before{content:"\f1bf"}.ri-superscript-2:before{content:"\f1c0"}.ri-superscript:before{content:"\f1c1"}.ri-surgical-mask-fill:before{content:"\f1c2"}.ri-surgical-mask-line:before{content:"\f1c3"}.ri-surround-sound-fill:before{content:"\f1c4"}.ri-surround-sound-line:before{content:"\f1c5"}.ri-survey-fill:before{content:"\f1c6"}.ri-survey-line:before{content:"\f1c7"}.ri-swap-box-fill:before{content:"\f1c8"}.ri-swap-box-line:before{content:"\f1c9"}.ri-swap-fill:before{content:"\f1ca"}.ri-swap-line:before{content:"\f1cb"}.ri-switch-fill:before{content:"\f1cc"}.ri-switch-line:before{content:"\f1cd"}.ri-sword-fill:before{content:"\f1ce"}.ri-sword-line:before{content:"\f1cf"}.ri-syringe-fill:before{content:"\f1d0"}.ri-syringe-line:before{content:"\f1d1"}.ri-t-box-fill:before{content:"\f1d2"}.ri-t-box-line:before{content:"\f1d3"}.ri-t-shirt-2-fill:before{content:"\f1d4"}.ri-t-shirt-2-line:before{content:"\f1d5"}.ri-t-shirt-air-fill:before{content:"\f1d6"}.ri-t-shirt-air-line:before{content:"\f1d7"}.ri-t-shirt-fill:before{content:"\f1d8"}.ri-t-shirt-line:before{content:"\f1d9"}.ri-table-2:before{content:"\f1da"}.ri-table-alt-fill:before{content:"\f1db"}.ri-table-alt-line:before{content:"\f1dc"}.ri-table-fill:before{content:"\f1dd"}.ri-table-line:before{content:"\f1de"}.ri-tablet-fill:before{content:"\f1df"}.ri-tablet-line:before{content:"\f1e0"}.ri-takeaway-fill:before{content:"\f1e1"}.ri-takeaway-line:before{content:"\f1e2"}.ri-taobao-fill:before{content:"\f1e3"}.ri-taobao-line:before{content:"\f1e4"}.ri-tape-fill:before{content:"\f1e5"}.ri-tape-line:before{content:"\f1e6"}.ri-task-fill:before{content:"\f1e7"}.ri-task-line:before{content:"\f1e8"}.ri-taxi-fill:before{content:"\f1e9"}.ri-taxi-line:before{content:"\f1ea"}.ri-taxi-wifi-fill:before{content:"\f1eb"}.ri-taxi-wifi-line:before{content:"\f1ec"}.ri-team-fill:before{content:"\f1ed"}.ri-team-line:before{content:"\f1ee"}.ri-telegram-fill:before{content:"\f1ef"}.ri-telegram-line:before{content:"\f1f0"}.ri-temp-cold-fill:before{content:"\f1f1"}.ri-temp-cold-line:before{content:"\f1f2"}.ri-temp-hot-fill:before{content:"\f1f3"}.ri-temp-hot-line:before{content:"\f1f4"}.ri-terminal-box-fill:before{content:"\f1f5"}.ri-terminal-box-line:before{content:"\f1f6"}.ri-terminal-fill:before{content:"\f1f7"}.ri-terminal-line:before{content:"\f1f8"}.ri-terminal-window-fill:before{content:"\f1f9"}.ri-terminal-window-line:before{content:"\f1fa"}.ri-test-tube-fill:before{content:"\f1fb"}.ri-test-tube-line:before{content:"\f1fc"}.ri-text-direction-l:before{content:"\f1fd"}.ri-text-direction-r:before{content:"\f1fe"}.ri-text-spacing:before{content:"\f1ff"}.ri-text-wrap:before{content:"\f200"}.ri-text:before{content:"\f201"}.ri-thermometer-fill:before{content:"\f202"}.ri-thermometer-line:before{content:"\f203"}.ri-thumb-down-fill:before{content:"\f204"}.ri-thumb-down-line:before{content:"\f205"}.ri-thumb-up-fill:before{content:"\f206"}.ri-thumb-up-line:before{content:"\f207"}.ri-thunderstorms-fill:before{content:"\f208"}.ri-thunderstorms-line:before{content:"\f209"}.ri-ticket-2-fill:before{content:"\f20a"}.ri-ticket-2-line:before{content:"\f20b"}.ri-ticket-fill:before{content:"\f20c"}.ri-ticket-line:before{content:"\f20d"}.ri-time-fill:before{content:"\f20e"}.ri-time-line:before{content:"\f20f"}.ri-timer-2-fill:before{content:"\f210"}.ri-timer-2-line:before{content:"\f211"}.ri-timer-fill:before{content:"\f212"}.ri-timer-flash-fill:before{content:"\f213"}.ri-timer-flash-line:before{content:"\f214"}.ri-timer-line:before{content:"\f215"}.ri-todo-fill:before{content:"\f216"}.ri-todo-line:before{content:"\f217"}.ri-toggle-fill:before{content:"\f218"}.ri-toggle-line:before{content:"\f219"}.ri-tools-fill:before{content:"\f21a"}.ri-tools-line:before{content:"\f21b"}.ri-tornado-fill:before{content:"\f21c"}.ri-tornado-line:before{content:"\f21d"}.ri-trademark-fill:before{content:"\f21e"}.ri-trademark-line:before{content:"\f21f"}.ri-traffic-light-fill:before{content:"\f220"}.ri-traffic-light-line:before{content:"\f221"}.ri-train-fill:before{content:"\f222"}.ri-train-line:before{content:"\f223"}.ri-train-wifi-fill:before{content:"\f224"}.ri-train-wifi-line:before{content:"\f225"}.ri-translate-2:before{content:"\f226"}.ri-translate:before{content:"\f227"}.ri-travesti-fill:before{content:"\f228"}.ri-travesti-line:before{content:"\f229"}.ri-treasure-map-fill:before{content:"\f22a"}.ri-treasure-map-line:before{content:"\f22b"}.ri-trello-fill:before{content:"\f22c"}.ri-trello-line:before{content:"\f22d"}.ri-trophy-fill:before{content:"\f22e"}.ri-trophy-line:before{content:"\f22f"}.ri-truck-fill:before{content:"\f230"}.ri-truck-line:before{content:"\f231"}.ri-tumblr-fill:before{content:"\f232"}.ri-tumblr-line:before{content:"\f233"}.ri-tv-2-fill:before{content:"\f234"}.ri-tv-2-line:before{content:"\f235"}.ri-tv-fill:before{content:"\f236"}.ri-tv-line:before{content:"\f237"}.ri-twitch-fill:before{content:"\f238"}.ri-twitch-line:before{content:"\f239"}.ri-twitter-fill:before{content:"\f23a"}.ri-twitter-line:before{content:"\f23b"}.ri-typhoon-fill:before{content:"\f23c"}.ri-typhoon-line:before{content:"\f23d"}.ri-u-disk-fill:before{content:"\f23e"}.ri-u-disk-line:before{content:"\f23f"}.ri-ubuntu-fill:before{content:"\f240"}.ri-ubuntu-line:before{content:"\f241"}.ri-umbrella-fill:before{content:"\f242"}.ri-umbrella-line:before{content:"\f243"}.ri-underline:before{content:"\f244"}.ri-uninstall-fill:before{content:"\f245"}.ri-uninstall-line:before{content:"\f246"}.ri-unsplash-fill:before{content:"\f247"}.ri-unsplash-line:before{content:"\f248"}.ri-upload-2-fill:before{content:"\f249"}.ri-upload-2-line:before{content:"\f24a"}.ri-upload-cloud-2-fill:before{content:"\f24b"}.ri-upload-cloud-2-line:before{content:"\f24c"}.ri-upload-cloud-fill:before{content:"\f24d"}.ri-upload-cloud-line:before{content:"\f24e"}.ri-upload-fill:before{content:"\f24f"}.ri-upload-line:before{content:"\f250"}.ri-usb-fill:before{content:"\f251"}.ri-usb-line:before{content:"\f252"}.ri-user-2-fill:before{content:"\f253"}.ri-user-2-line:before{content:"\f254"}.ri-user-3-fill:before{content:"\f255"}.ri-user-3-line:before{content:"\f256"}.ri-user-4-fill:before{content:"\f257"}.ri-user-4-line:before{content:"\f258"}.ri-user-5-fill:before{content:"\f259"}.ri-user-5-line:before{content:"\f25a"}.ri-user-6-fill:before{content:"\f25b"}.ri-user-6-line:before{content:"\f25c"}.ri-user-add-fill:before{content:"\f25d"}.ri-user-add-line:before{content:"\f25e"}.ri-user-fill:before{content:"\f25f"}.ri-user-follow-fill:before{content:"\f260"}.ri-user-follow-line:before{content:"\f261"}.ri-user-heart-fill:before{content:"\f262"}.ri-user-heart-line:before{content:"\f263"}.ri-user-line:before{content:"\f264"}.ri-user-location-fill:before{content:"\f265"}.ri-user-location-line:before{content:"\f266"}.ri-user-received-2-fill:before{content:"\f267"}.ri-user-received-2-line:before{content:"\f268"}.ri-user-received-fill:before{content:"\f269"}.ri-user-received-line:before{content:"\f26a"}.ri-user-search-fill:before{content:"\f26b"}.ri-user-search-line:before{content:"\f26c"}.ri-user-settings-fill:before{content:"\f26d"}.ri-user-settings-line:before{content:"\f26e"}.ri-user-shared-2-fill:before{content:"\f26f"}.ri-user-shared-2-line:before{content:"\f270"}.ri-user-shared-fill:before{content:"\f271"}.ri-user-shared-line:before{content:"\f272"}.ri-user-smile-fill:before{content:"\f273"}.ri-user-smile-line:before{content:"\f274"}.ri-user-star-fill:before{content:"\f275"}.ri-user-star-line:before{content:"\f276"}.ri-user-unfollow-fill:before{content:"\f277"}.ri-user-unfollow-line:before{content:"\f278"}.ri-user-voice-fill:before{content:"\f279"}.ri-user-voice-line:before{content:"\f27a"}.ri-video-add-fill:before{content:"\f27b"}.ri-video-add-line:before{content:"\f27c"}.ri-video-chat-fill:before{content:"\f27d"}.ri-video-chat-line:before{content:"\f27e"}.ri-video-download-fill:before{content:"\f27f"}.ri-video-download-line:before{content:"\f280"}.ri-video-fill:before{content:"\f281"}.ri-video-line:before{content:"\f282"}.ri-video-upload-fill:before{content:"\f283"}.ri-video-upload-line:before{content:"\f284"}.ri-vidicon-2-fill:before{content:"\f285"}.ri-vidicon-2-line:before{content:"\f286"}.ri-vidicon-fill:before{content:"\f287"}.ri-vidicon-line:before{content:"\f288"}.ri-vimeo-fill:before{content:"\f289"}.ri-vimeo-line:before{content:"\f28a"}.ri-vip-crown-2-fill:before{content:"\f28b"}.ri-vip-crown-2-line:before{content:"\f28c"}.ri-vip-crown-fill:before{content:"\f28d"}.ri-vip-crown-line:before{content:"\f28e"}.ri-vip-diamond-fill:before{content:"\f28f"}.ri-vip-diamond-line:before{content:"\f290"}.ri-vip-fill:before{content:"\f291"}.ri-vip-line:before{content:"\f292"}.ri-virus-fill:before{content:"\f293"}.ri-virus-line:before{content:"\f294"}.ri-visa-fill:before{content:"\f295"}.ri-visa-line:before{content:"\f296"}.ri-voice-recognition-fill:before{content:"\f297"}.ri-voice-recognition-line:before{content:"\f298"}.ri-voiceprint-fill:before{content:"\f299"}.ri-voiceprint-line:before{content:"\f29a"}.ri-volume-down-fill:before{content:"\f29b"}.ri-volume-down-line:before{content:"\f29c"}.ri-volume-mute-fill:before{content:"\f29d"}.ri-volume-mute-line:before{content:"\f29e"}.ri-volume-off-vibrate-fill:before{content:"\f29f"}.ri-volume-off-vibrate-line:before{content:"\f2a0"}.ri-volume-up-fill:before{content:"\f2a1"}.ri-volume-up-line:before{content:"\f2a2"}.ri-volume-vibrate-fill:before{content:"\f2a3"}.ri-volume-vibrate-line:before{content:"\f2a4"}.ri-vuejs-fill:before{content:"\f2a5"}.ri-vuejs-line:before{content:"\f2a6"}.ri-walk-fill:before{content:"\f2a7"}.ri-walk-line:before{content:"\f2a8"}.ri-wallet-2-fill:before{content:"\f2a9"}.ri-wallet-2-line:before{content:"\f2aa"}.ri-wallet-3-fill:before{content:"\f2ab"}.ri-wallet-3-line:before{content:"\f2ac"}.ri-wallet-fill:before{content:"\f2ad"}.ri-wallet-line:before{content:"\f2ae"}.ri-water-flash-fill:before{content:"\f2af"}.ri-water-flash-line:before{content:"\f2b0"}.ri-webcam-fill:before{content:"\f2b1"}.ri-webcam-line:before{content:"\f2b2"}.ri-wechat-2-fill:before{content:"\f2b3"}.ri-wechat-2-line:before{content:"\f2b4"}.ri-wechat-fill:before{content:"\f2b5"}.ri-wechat-line:before{content:"\f2b6"}.ri-wechat-pay-fill:before{content:"\f2b7"}.ri-wechat-pay-line:before{content:"\f2b8"}.ri-weibo-fill:before{content:"\f2b9"}.ri-weibo-line:before{content:"\f2ba"}.ri-whatsapp-fill:before{content:"\f2bb"}.ri-whatsapp-line:before{content:"\f2bc"}.ri-wheelchair-fill:before{content:"\f2bd"}.ri-wheelchair-line:before{content:"\f2be"}.ri-wifi-fill:before{content:"\f2bf"}.ri-wifi-line:before{content:"\f2c0"}.ri-wifi-off-fill:before{content:"\f2c1"}.ri-wifi-off-line:before{content:"\f2c2"}.ri-window-2-fill:before{content:"\f2c3"}.ri-window-2-line:before{content:"\f2c4"}.ri-window-fill:before{content:"\f2c5"}.ri-window-line:before{content:"\f2c6"}.ri-windows-fill:before{content:"\f2c7"}.ri-windows-line:before{content:"\f2c8"}.ri-windy-fill:before{content:"\f2c9"}.ri-windy-line:before{content:"\f2ca"}.ri-wireless-charging-fill:before{content:"\f2cb"}.ri-wireless-charging-line:before{content:"\f2cc"}.ri-women-fill:before{content:"\f2cd"}.ri-women-line:before{content:"\f2ce"}.ri-wubi-input:before{content:"\f2cf"}.ri-xbox-fill:before{content:"\f2d0"}.ri-xbox-line:before{content:"\f2d1"}.ri-xing-fill:before{content:"\f2d2"}.ri-xing-line:before{content:"\f2d3"}.ri-youtube-fill:before{content:"\f2d4"}.ri-youtube-line:before{content:"\f2d5"}.ri-zcool-fill:before{content:"\f2d6"}.ri-zcool-line:before{content:"\f2d7"}.ri-zhihu-fill:before{content:"\f2d8"}.ri-zhihu-line:before{content:"\f2d9"}.ri-zoom-in-fill:before{content:"\f2da"}.ri-zoom-in-line:before{content:"\f2db"}.ri-zoom-out-fill:before{content:"\f2dc"}.ri-zoom-out-line:before{content:"\f2dd"}.ri-zzz-fill:before{content:"\f2de"}.ri-zzz-line:before{content:"\f2df"}.ri-arrow-down-double-fill:before{content:"\f2e0"}.ri-arrow-down-double-line:before{content:"\f2e1"}.ri-arrow-left-double-fill:before{content:"\f2e2"}.ri-arrow-left-double-line:before{content:"\f2e3"}.ri-arrow-right-double-fill:before{content:"\f2e4"}.ri-arrow-right-double-line:before{content:"\f2e5"}.ri-arrow-turn-back-fill:before{content:"\f2e6"}.ri-arrow-turn-back-line:before{content:"\f2e7"}.ri-arrow-turn-forward-fill:before{content:"\f2e8"}.ri-arrow-turn-forward-line:before{content:"\f2e9"}.ri-arrow-up-double-fill:before{content:"\f2ea"}.ri-arrow-up-double-line:before{content:"\f2eb"}.ri-bard-fill:before{content:"\f2ec"}.ri-bard-line:before{content:"\f2ed"}.ri-bootstrap-fill:before{content:"\f2ee"}.ri-bootstrap-line:before{content:"\f2ef"}.ri-box-1-fill:before{content:"\f2f0"}.ri-box-1-line:before{content:"\f2f1"}.ri-box-2-fill:before{content:"\f2f2"}.ri-box-2-line:before{content:"\f2f3"}.ri-box-3-fill:before{content:"\f2f4"}.ri-box-3-line:before{content:"\f2f5"}.ri-brain-fill:before{content:"\f2f6"}.ri-brain-line:before{content:"\f2f7"}.ri-candle-fill:before{content:"\f2f8"}.ri-candle-line:before{content:"\f2f9"}.ri-cash-fill:before{content:"\f2fa"}.ri-cash-line:before{content:"\f2fb"}.ri-contract-left-fill:before{content:"\f2fc"}.ri-contract-left-line:before{content:"\f2fd"}.ri-contract-left-right-fill:before{content:"\f2fe"}.ri-contract-left-right-line:before{content:"\f2ff"}.ri-contract-right-fill:before{content:"\f300"}.ri-contract-right-line:before{content:"\f301"}.ri-contract-up-down-fill:before{content:"\f302"}.ri-contract-up-down-line:before{content:"\f303"}.ri-copilot-fill:before{content:"\f304"}.ri-copilot-line:before{content:"\f305"}.ri-corner-down-left-fill:before{content:"\f306"}.ri-corner-down-left-line:before{content:"\f307"}.ri-corner-down-right-fill:before{content:"\f308"}.ri-corner-down-right-line:before{content:"\f309"}.ri-corner-left-down-fill:before{content:"\f30a"}.ri-corner-left-down-line:before{content:"\f30b"}.ri-corner-left-up-fill:before{content:"\f30c"}.ri-corner-left-up-line:before{content:"\f30d"}.ri-corner-right-down-fill:before{content:"\f30e"}.ri-corner-right-down-line:before{content:"\f30f"}.ri-corner-right-up-fill:before{content:"\f310"}.ri-corner-right-up-line:before{content:"\f311"}.ri-corner-up-left-double-fill:before{content:"\f312"}.ri-corner-up-left-double-line:before{content:"\f313"}.ri-corner-up-left-fill:before{content:"\f314"}.ri-corner-up-left-line:before{content:"\f315"}.ri-corner-up-right-double-fill:before{content:"\f316"}.ri-corner-up-right-double-line:before{content:"\f317"}.ri-corner-up-right-fill:before{content:"\f318"}.ri-corner-up-right-line:before{content:"\f319"}.ri-cross-fill:before{content:"\f31a"}.ri-cross-line:before{content:"\f31b"}.ri-edge-new-fill:before{content:"\f31c"}.ri-edge-new-line:before{content:"\f31d"}.ri-equal-fill:before{content:"\f31e"}.ri-equal-line:before{content:"\f31f"}.ri-expand-left-fill:before{content:"\f320"}.ri-expand-left-line:before{content:"\f321"}.ri-expand-left-right-fill:before{content:"\f322"}.ri-expand-left-right-line:before{content:"\f323"}.ri-expand-right-fill:before{content:"\f324"}.ri-expand-right-line:before{content:"\f325"}.ri-expand-up-down-fill:before{content:"\f326"}.ri-expand-up-down-line:before{content:"\f327"}.ri-flickr-fill:before{content:"\f328"}.ri-flickr-line:before{content:"\f329"}.ri-forward-10-fill:before{content:"\f32a"}.ri-forward-10-line:before{content:"\f32b"}.ri-forward-15-fill:before{content:"\f32c"}.ri-forward-15-line:before{content:"\f32d"}.ri-forward-30-fill:before{content:"\f32e"}.ri-forward-30-line:before{content:"\f32f"}.ri-forward-5-fill:before{content:"\f330"}.ri-forward-5-line:before{content:"\f331"}.ri-graduation-cap-fill:before{content:"\f332"}.ri-graduation-cap-line:before{content:"\f333"}.ri-home-office-fill:before{content:"\f334"}.ri-home-office-line:before{content:"\f335"}.ri-hourglass-2-fill:before{content:"\f336"}.ri-hourglass-2-line:before{content:"\f337"}.ri-hourglass-fill:before{content:"\f338"}.ri-hourglass-line:before{content:"\f339"}.ri-javascript-fill:before{content:"\f33a"}.ri-javascript-line:before{content:"\f33b"}.ri-loop-left-fill:before{content:"\f33c"}.ri-loop-left-line:before{content:"\f33d"}.ri-loop-right-fill:before{content:"\f33e"}.ri-loop-right-line:before{content:"\f33f"}.ri-memories-fill:before{content:"\f340"}.ri-memories-line:before{content:"\f341"}.ri-meta-fill:before{content:"\f342"}.ri-meta-line:before{content:"\f343"}.ri-microsoft-loop-fill:before{content:"\f344"}.ri-microsoft-loop-line:before{content:"\f345"}.ri-nft-fill:before{content:"\f346"}.ri-nft-line:before{content:"\f347"}.ri-notion-fill:before{content:"\f348"}.ri-notion-line:before{content:"\f349"}.ri-openai-fill:before{content:"\f34a"}.ri-openai-line:before{content:"\f34b"}.ri-overline:before{content:"\f34c"}.ri-p2p-fill:before{content:"\f34d"}.ri-p2p-line:before{content:"\f34e"}.ri-presentation-fill:before{content:"\f34f"}.ri-presentation-line:before{content:"\f350"}.ri-replay-10-fill:before{content:"\f351"}.ri-replay-10-line:before{content:"\f352"}.ri-replay-15-fill:before{content:"\f353"}.ri-replay-15-line:before{content:"\f354"}.ri-replay-30-fill:before{content:"\f355"}.ri-replay-30-line:before{content:"\f356"}.ri-replay-5-fill:before{content:"\f357"}.ri-replay-5-line:before{content:"\f358"}.ri-school-fill:before{content:"\f359"}.ri-school-line:before{content:"\f35a"}.ri-shining-2-fill:before{content:"\f35b"}.ri-shining-2-line:before{content:"\f35c"}.ri-shining-fill:before{content:"\f35d"}.ri-shining-line:before{content:"\f35e"}.ri-sketching:before{content:"\f35f"}.ri-skip-down-fill:before{content:"\f360"}.ri-skip-down-line:before{content:"\f361"}.ri-skip-left-fill:before{content:"\f362"}.ri-skip-left-line:before{content:"\f363"}.ri-skip-right-fill:before{content:"\f364"}.ri-skip-right-line:before{content:"\f365"}.ri-skip-up-fill:before{content:"\f366"}.ri-skip-up-line:before{content:"\f367"}.ri-slow-down-fill:before{content:"\f368"}.ri-slow-down-line:before{content:"\f369"}.ri-sparkling-2-fill:before{content:"\f36a"}.ri-sparkling-2-line:before{content:"\f36b"}.ri-sparkling-fill:before{content:"\f36c"}.ri-sparkling-line:before{content:"\f36d"}.ri-speak-fill:before{content:"\f36e"}.ri-speak-line:before{content:"\f36f"}.ri-speed-up-fill:before{content:"\f370"}.ri-speed-up-line:before{content:"\f371"}.ri-tiktok-fill:before{content:"\f372"}.ri-tiktok-line:before{content:"\f373"}.ri-token-swap-fill:before{content:"\f374"}.ri-token-swap-line:before{content:"\f375"}.ri-unpin-fill:before{content:"\f376"}.ri-unpin-line:before{content:"\f377"}.ri-wechat-channels-fill:before{content:"\f378"}.ri-wechat-channels-line:before{content:"\f379"}.ri-wordpress-fill:before{content:"\f37a"}.ri-wordpress-line:before{content:"\f37b"}.ri-blender-fill:before{content:"\f37c"}.ri-blender-line:before{content:"\f37d"}.ri-emoji-sticker-fill:before{content:"\f37e"}.ri-emoji-sticker-line:before{content:"\f37f"}.ri-git-close-pull-request-fill:before{content:"\f380"}.ri-git-close-pull-request-line:before{content:"\f381"}.ri-instance-fill:before{content:"\f382"}.ri-instance-line:before{content:"\f383"}.ri-megaphone-fill:before{content:"\f384"}.ri-megaphone-line:before{content:"\f385"}.ri-pass-expired-fill:before{content:"\f386"}.ri-pass-expired-line:before{content:"\f387"}.ri-pass-pending-fill:before{content:"\f388"}.ri-pass-pending-line:before{content:"\f389"}.ri-pass-valid-fill:before{content:"\f38a"}.ri-pass-valid-line:before{content:"\f38b"}.ri-ai-generate:before{content:"\f38c"}.ri-calendar-close-fill:before{content:"\f38d"}.ri-calendar-close-line:before{content:"\f38e"}.ri-draggable:before{content:"\f38f"}.ri-font-family:before{content:"\f390"}.ri-font-mono:before{content:"\f391"}.ri-font-sans-serif:before{content:"\f392"}.ri-font-sans:before{content:"\f393"}.ri-hard-drive-3-fill:before{content:"\f394"}.ri-hard-drive-3-line:before{content:"\f395"}.ri-kick-fill:before{content:"\f396"}.ri-kick-line:before{content:"\f397"}.ri-list-check-3:before{content:"\f398"}.ri-list-indefinite:before{content:"\f399"}.ri-list-ordered-2:before{content:"\f39a"}.ri-list-radio:before{content:"\f39b"}.ri-openbase-fill:before{content:"\f39c"}.ri-openbase-line:before{content:"\f39d"}.ri-planet-fill:before{content:"\f39e"}.ri-planet-line:before{content:"\f39f"}.ri-prohibited-fill:before{content:"\f3a0"}.ri-prohibited-line:before{content:"\f3a1"}.ri-quote-text:before{content:"\f3a2"}.ri-seo-fill:before{content:"\f3a3"}.ri-seo-line:before{content:"\f3a4"}.ri-slash-commands:before{content:"\f3a5"}.ri-archive-2-fill:before{content:"\f3a6"}.ri-archive-2-line:before{content:"\f3a7"}.ri-inbox-2-fill:before{content:"\f3a8"}.ri-inbox-2-line:before{content:"\f3a9"}.ri-shake-hands-fill:before{content:"\f3aa"}.ri-shake-hands-line:before{content:"\f3ab"}.ri-supabase-fill:before{content:"\f3ac"}.ri-supabase-line:before{content:"\f3ad"}.ri-water-percent-fill:before{content:"\f3ae"}.ri-water-percent-line:before{content:"\f3af"}.ri-yuque-fill:before{content:"\f3b0"}.ri-yuque-line:before{content:"\f3b1"}.ri-crosshair-2-fill:before{content:"\f3b2"}.ri-crosshair-2-line:before{content:"\f3b3"}.ri-crosshair-fill:before{content:"\f3b4"}.ri-crosshair-line:before{content:"\f3b5"}.ri-file-close-fill:before{content:"\f3b6"}.ri-file-close-line:before{content:"\f3b7"}.ri-infinity-fill:before{content:"\f3b8"}.ri-infinity-line:before{content:"\f3b9"}.ri-rfid-fill:before{content:"\f3ba"}.ri-rfid-line:before{content:"\f3bb"}.ri-slash-commands-2:before{content:"\f3bc"}.ri-user-forbid-fill:before{content:"\f3bd"}.ri-user-forbid-line:before{content:"\f3be"}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(./KaTeX_AMS-Regular-U6PRYMIZ.woff2) format("woff2"),url(./KaTeX_AMS-Regular-CYEKBG2K.woff) format("woff"),url(./KaTeX_AMS-Regular-JKX5W2C4.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(./KaTeX_Caligraphic-Bold-5QL5CMTE.woff2) format("woff2"),url(./KaTeX_Caligraphic-Bold-WZ3QSGD3.woff) format("woff"),url(./KaTeX_Caligraphic-Bold-ZTS3R3HK.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(./KaTeX_Caligraphic-Regular-KX5MEWCF.woff2) format("woff2"),url(./KaTeX_Caligraphic-Regular-3LKEU76G.woff) format("woff"),url(./KaTeX_Caligraphic-Regular-A7XRTZ5Q.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(./KaTeX_Fraktur-Bold-2QVFK6NQ.woff2) format("woff2"),url(./KaTeX_Fraktur-Bold-T4SWXBMT.woff) format("woff"),url(./KaTeX_Fraktur-Bold-WGHVTYOR.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(./KaTeX_Fraktur-Regular-2PEIFJSJ.woff2) format("woff2"),url(./KaTeX_Fraktur-Regular-PQMHCIK6.woff) format("woff"),url(./KaTeX_Fraktur-Regular-5U4OPH2X.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(./KaTeX_Main-Bold-YP5VVQRP.woff2) format("woff2"),url(./KaTeX_Main-Bold-2GA4IZIN.woff) format("woff"),url(./KaTeX_Main-Bold-W5FBVCZM.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(./KaTeX_Main-BoldItalic-N4V3DX7S.woff2) format("woff2"),url(./KaTeX_Main-BoldItalic-4P4C7HJH.woff) format("woff"),url(./KaTeX_Main-BoldItalic-ODMLBJJQ.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(./KaTeX_Main-Italic-RELBIK7M.woff2) format("woff2"),url(./KaTeX_Main-Italic-SASNQFN2.woff) format("woff"),url(./KaTeX_Main-Italic-I43T2HSR.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(./KaTeX_Main-Regular-ARRPAO67.woff2) format("woff2"),url(./KaTeX_Main-Regular-P5I74A2A.woff) format("woff"),url(./KaTeX_Main-Regular-W74P5G27.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(./KaTeX_Math-BoldItalic-K4WTGH3J.woff2) format("woff2"),url(./KaTeX_Math-BoldItalic-6EBV3DK5.woff) format("woff"),url(./KaTeX_Math-BoldItalic-VB447A4D.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(./KaTeX_Math-Italic-6KGCHLFN.woff2) format("woff2"),url(./KaTeX_Math-Italic-KKK3USB2.woff) format("woff"),url(./KaTeX_Math-Italic-SON4MRCA.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(./KaTeX_SansSerif-Bold-RRNVJFFW.woff2) format("woff2"),url(./KaTeX_SansSerif-Bold-X5M5EMOD.woff) format("woff"),url(./KaTeX_SansSerif-Bold-STQ6RXC7.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(./KaTeX_SansSerif-Italic-HMPFTM52.woff2) format("woff2"),url(./KaTeX_SansSerif-Italic-PSN4QKYX.woff) format("woff"),url(./KaTeX_SansSerif-Italic-WTBAZBGY.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(./KaTeX_SansSerif-Regular-XIQ62X4E.woff2) format("woff2"),url(./KaTeX_SansSerif-Regular-OQCII6EP.woff) format("woff"),url(./KaTeX_SansSerif-Regular-2TL3USAE.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(./KaTeX_Script-Regular-APUWIHLP.woff2) format("woff2"),url(./KaTeX_Script-Regular-A5IFOEBS.woff) format("woff"),url(./KaTeX_Script-Regular-72OLXYNA.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(./KaTeX_Size1-Regular-5LRUTBFT.woff2) format("woff2"),url(./KaTeX_Size1-Regular-4HRHTS65.woff) format("woff"),url(./KaTeX_Size1-Regular-7K6AASVL.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(./KaTeX_Size2-Regular-LELKET5D.woff2) format("woff2"),url(./KaTeX_Size2-Regular-K5ZHAIS6.woff) format("woff"),url(./KaTeX_Size2-Regular-222HN3GT.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(./KaTeX_Size3-Regular-WQRQ47UD.woff2) format("woff2"),url(./KaTeX_Size3-Regular-TLFPAHDE.woff) format("woff"),url(./KaTeX_Size3-Regular-UFCO6WCA.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(./KaTeX_Size4-Regular-CDMV7U5C.woff2) format("woff2"),url(./KaTeX_Size4-Regular-PKMWZHNC.woff) format("woff"),url(./KaTeX_Size4-Regular-7PGNVPQK.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(./KaTeX_Typewriter-Regular-VBYJ4NRC.woff2) format("woff2"),url(./KaTeX_Typewriter-Regular-MJMFSK64.woff) format("woff"),url(./KaTeX_Typewriter-Regular-3F5K6SQ6.ttf) format("truetype")}.katex{text-rendering:auto;font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.7"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-ext-400-normal-A23PVI34.woff2) format("woff2"),url(./inter-cyrillic-ext-400-normal-BR4F2FX2.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-cyrillic-400-normal-KERN74A3.woff2) format("woff2"),url(./inter-cyrillic-400-normal-RS7XBEVO.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-ext-400-normal-EJY4FIOU.woff2) format("woff2"),url(./inter-greek-ext-400-normal-TLMSU6AI.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-greek-400-normal-2HPLF7XE.woff2) format("woff2"),url(./inter-greek-400-normal-EGQECN25.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-vietnamese-400-normal-5PPHCOVG.woff2) format("woff2"),url(./inter-vietnamese-400-normal-M2GZ35TX.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-ext-400-normal-EYNKNVC4.woff2) format("woff2"),url(./inter-latin-ext-400-normal-S7AVHIF5.woff) format("woff");unicode-range:U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:400;src:url(./inter-latin-400-normal-JE4TJ54C.woff2) format("woff2"),url(./inter-latin-400-normal-LISD5GUW.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-cyrillic-ext-500-normal-KY7BD55I.woff2) format("woff2"),url(./inter-cyrillic-ext-500-normal-XJ6IN2OI.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-cyrillic-500-normal-AF6FCL2K.woff2) format("woff2"),url(./inter-cyrillic-500-normal-2IBCLFCN.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-greek-ext-500-normal-T34M4DJ4.woff2) format("woff2"),url(./inter-greek-ext-500-normal-F62QGGA4.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-greek-500-normal-LGO5S5GD.woff2) format("woff2"),url(./inter-greek-500-normal-SK53XTLM.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-vietnamese-500-normal-PNJE5UY2.woff2) format("woff2"),url(./inter-vietnamese-500-normal-2TJ5NLXA.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-latin-ext-500-normal-I5IDCFXC.woff2) format("woff2"),url(./inter-latin-ext-500-normal-ITPJT7HB.woff) format("woff");unicode-range:U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:500;src:url(./inter-latin-500-normal-W67HLOMG.woff2) format("woff2"),url(./inter-latin-500-normal-MJHAJCMU.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-ext-600-normal-J232RF2W.woff2) format("woff2"),url(./inter-cyrillic-ext-600-normal-2DXQQ3AT.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-cyrillic-600-normal-T4QIFVLQ.woff2) format("woff2"),url(./inter-cyrillic-600-normal-EDH57UT2.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-ext-600-normal-ATXQPOLI.woff2) format("woff2"),url(./inter-greek-ext-600-normal-ESNHCX6L.woff) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-greek-600-normal-57Z3MY4I.woff2) format("woff2"),url(./inter-greek-600-normal-CHGEB4H2.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-vietnamese-600-normal-5OBN4HLT.woff2) format("woff2"),url(./inter-vietnamese-600-normal-3447DFXT.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-ext-600-normal-BICMHTLW.woff2) format("woff2"),url(./inter-latin-ext-600-normal-7WCRCAAJ.woff) format("woff");unicode-range:U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter;font-style:normal;font-display:swap;font-weight:600;src:url(./inter-latin-600-normal-UPUTVIFF.woff2) format("woff2"),url(./inter-latin-600-normal-JKEWIVGS.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Red Hat Text;font-style:normal;font-display:swap;font-weight:400;src:url(./red-hat-text-latin-ext-400-normal-PVMNMJZ4.woff2) format("woff2"),url(./red-hat-text-latin-ext-400-normal-MRJESO5D.woff) format("woff");unicode-range:U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Red Hat Text;font-style:normal;font-display:swap;font-weight:400;src:url(./red-hat-text-latin-400-normal-ZHOJXLK7.woff2) format("woff2"),url(./red-hat-text-latin-400-normal-UXRGWOKY.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-ext-400-normal-HYAFUTTD.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-ext-400-normal-U7JCD3HP.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-cyrillic-400-normal-RF3F6BDX.woff2) format("woff2"),url(./jetbrains-mono-cyrillic-400-normal-LUNTJRNY.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-greek-400-normal-KMD3CAMP.woff2) format("woff2"),url(./jetbrains-mono-greek-400-normal-CE6KMGS2.woff) format("woff");unicode-range:U+0370-03FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-vietnamese-400-normal-3SROCEZQ.woff2) format("woff2"),url(./jetbrains-mono-vietnamese-400-normal-JVIFPQ7O.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-ext-400-normal-LPQ5UXOH.woff2) format("woff2"),url(./jetbrains-mono-latin-ext-400-normal-JMIUFOYE.woff) format("woff");unicode-range:U+0100-02AF,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1E00-1EFF,U+2020,U+20A0-20AB,U+20AD-20CF,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:JetBrains Mono;font-style:normal;font-display:swap;font-weight:400;src:url(./jetbrains-mono-latin-400-normal-7AML74ZG.woff2) format("woff2"),url(./jetbrains-mono-latin-400-normal-TLBUK3II.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}.monaco-aria-container{position:absolute;left:-999em}.monaco-editor .selection-anchor{background-color:#007acc;width:2px!important}.monaco-editor .bracket-match{box-sizing:border-box;background-color:var(--vscode-editorBracketMatch-background);border:1px solid var(--vscode-editorBracketMatch-border)}@font-face{font-family:codicon;font-display:block;src:url(./codicon-LCPAQIGT.ttf) format("truetype")}.codicon[class*=codicon-]{font: 16px/1 codicon;display:inline-block;text-decoration:none;text-rendering:auto;text-align:center;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;-moz-user-select:none;user-select:none;-webkit-user-select:none}.codicon-wrench-subaction{opacity:.5}@keyframes codicon-spin{to{transform:rotate(360deg)}}.codicon-sync.codicon-modifier-spin,.codicon-loading.codicon-modifier-spin,.codicon-gear.codicon-modifier-spin,.codicon-notebook-state-executing.codicon-modifier-spin{animation:codicon-spin 1.5s steps(30) infinite}.codicon-modifier-disabled{opacity:.4}.codicon-loading,.codicon-tree-item-loading:before{animation-duration:1s!important;animation-timing-function:cubic-bezier(.53,.21,.29,.67)!important}.monaco-editor .codicon.codicon-symbol-array,.monaco-workbench .codicon.codicon-symbol-array{color:var(--vscode-symbolIcon-arrayForeground)}.monaco-editor .codicon.codicon-symbol-boolean,.monaco-workbench .codicon.codicon-symbol-boolean{color:var(--vscode-symbolIcon-booleanForeground)}.monaco-editor .codicon.codicon-symbol-class,.monaco-workbench .codicon.codicon-symbol-class{color:var(--vscode-symbolIcon-classForeground)}.monaco-editor .codicon.codicon-symbol-method,.monaco-workbench .codicon.codicon-symbol-method{color:var(--vscode-symbolIcon-methodForeground)}.monaco-editor .codicon.codicon-symbol-color,.monaco-workbench .codicon.codicon-symbol-color{color:var(--vscode-symbolIcon-colorForeground)}.monaco-editor .codicon.codicon-symbol-constant,.monaco-workbench .codicon.codicon-symbol-constant{color:var(--vscode-symbolIcon-constantForeground)}.monaco-editor .codicon.codicon-symbol-constructor,.monaco-workbench .codicon.codicon-symbol-constructor{color:var(--vscode-symbolIcon-constructorForeground)}.monaco-editor .codicon.codicon-symbol-value,.monaco-workbench .codicon.codicon-symbol-value,.monaco-editor .codicon.codicon-symbol-enum,.monaco-workbench .codicon.codicon-symbol-enum{color:var(--vscode-symbolIcon-enumeratorForeground)}.monaco-editor .codicon.codicon-symbol-enum-member,.monaco-workbench .codicon.codicon-symbol-enum-member{color:var(--vscode-symbolIcon-enumeratorMemberForeground)}.monaco-editor .codicon.codicon-symbol-event,.monaco-workbench .codicon.codicon-symbol-event{color:var(--vscode-symbolIcon-eventForeground)}.monaco-editor .codicon.codicon-symbol-field,.monaco-workbench .codicon.codicon-symbol-field{color:var(--vscode-symbolIcon-fieldForeground)}.monaco-editor .codicon.codicon-symbol-file,.monaco-workbench .codicon.codicon-symbol-file{color:var(--vscode-symbolIcon-fileForeground)}.monaco-editor .codicon.codicon-symbol-folder,.monaco-workbench .codicon.codicon-symbol-folder{color:var(--vscode-symbolIcon-folderForeground)}.monaco-editor .codicon.codicon-symbol-function,.monaco-workbench .codicon.codicon-symbol-function{color:var(--vscode-symbolIcon-functionForeground)}.monaco-editor .codicon.codicon-symbol-interface,.monaco-workbench .codicon.codicon-symbol-interface{color:var(--vscode-symbolIcon-interfaceForeground)}.monaco-editor .codicon.codicon-symbol-key,.monaco-workbench .codicon.codicon-symbol-key{color:var(--vscode-symbolIcon-keyForeground)}.monaco-editor .codicon.codicon-symbol-keyword,.monaco-workbench .codicon.codicon-symbol-keyword{color:var(--vscode-symbolIcon-keywordForeground)}.monaco-editor .codicon.codicon-symbol-module,.monaco-workbench .codicon.codicon-symbol-module{color:var(--vscode-symbolIcon-moduleForeground)}.monaco-editor .codicon.codicon-symbol-namespace,.monaco-workbench .codicon.codicon-symbol-namespace{color:var(--vscode-symbolIcon-namespaceForeground)}.monaco-editor .codicon.codicon-symbol-null,.monaco-workbench .codicon.codicon-symbol-null{color:var(--vscode-symbolIcon-nullForeground)}.monaco-editor .codicon.codicon-symbol-number,.monaco-workbench .codicon.codicon-symbol-number{color:var(--vscode-symbolIcon-numberForeground)}.monaco-editor .codicon.codicon-symbol-object,.monaco-workbench .codicon.codicon-symbol-object{color:var(--vscode-symbolIcon-objectForeground)}.monaco-editor .codicon.codicon-symbol-operator,.monaco-workbench .codicon.codicon-symbol-operator{color:var(--vscode-symbolIcon-operatorForeground)}.monaco-editor .codicon.codicon-symbol-package,.monaco-workbench .codicon.codicon-symbol-package{color:var(--vscode-symbolIcon-packageForeground)}.monaco-editor .codicon.codicon-symbol-property,.monaco-workbench .codicon.codicon-symbol-property{color:var(--vscode-symbolIcon-propertyForeground)}.monaco-editor .codicon.codicon-symbol-reference,.monaco-workbench .codicon.codicon-symbol-reference{color:var(--vscode-symbolIcon-referenceForeground)}.monaco-editor .codicon.codicon-symbol-snippet,.monaco-workbench .codicon.codicon-symbol-snippet{color:var(--vscode-symbolIcon-snippetForeground)}.monaco-editor .codicon.codicon-symbol-string,.monaco-workbench .codicon.codicon-symbol-string{color:var(--vscode-symbolIcon-stringForeground)}.monaco-editor .codicon.codicon-symbol-struct,.monaco-workbench .codicon.codicon-symbol-struct{color:var(--vscode-symbolIcon-structForeground)}.monaco-editor .codicon.codicon-symbol-text,.monaco-workbench .codicon.codicon-symbol-text{color:var(--vscode-symbolIcon-textForeground)}.monaco-editor .codicon.codicon-symbol-type-parameter,.monaco-workbench .codicon.codicon-symbol-type-parameter{color:var(--vscode-symbolIcon-typeParameterForeground)}.monaco-editor .codicon.codicon-symbol-unit,.monaco-workbench .codicon.codicon-symbol-unit{color:var(--vscode-symbolIcon-unitForeground)}.monaco-editor .codicon.codicon-symbol-variable,.monaco-workbench .codicon.codicon-symbol-variable{color:var(--vscode-symbolIcon-variableForeground)}.monaco-editor .lightBulbWidget{display:flex;align-items:center;justify-content:center}.monaco-editor .lightBulbWidget:hover{cursor:pointer}.monaco-editor .lightBulbWidget.codicon-light-bulb{color:var(--vscode-editorLightBulb-foreground)}.monaco-editor .lightBulbWidget.codicon-lightbulb-autofix{color:var(--vscode-editorLightBulbAutoFix-foreground, var(--vscode-editorLightBulb-foreground))}.monaco-editor .lightBulbWidget:before{position:relative;z-index:2}.monaco-editor .lightBulbWidget:after{position:absolute;top:0;left:0;content:"";display:block;width:100%;height:100%;opacity:.3;background-color:var(--vscode-editor-background);z-index:1}.monaco-editor .monaco-editor-overlaymessage{padding-bottom:8px;z-index:10000}.monaco-editor .monaco-editor-overlaymessage.below{padding-bottom:0;padding-top:8px;z-index:10000}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.monaco-editor .monaco-editor-overlaymessage.fadeIn{animation:fadeIn .15s ease-out}@keyframes fadeOut{0%{opacity:1}to{opacity:0}}.monaco-editor .monaco-editor-overlaymessage.fadeOut{animation:fadeOut .1s ease-out}.monaco-editor .monaco-editor-overlaymessage .message{padding:1px 4px;color:var(--vscode-inputValidation-infoForeground);background-color:var(--vscode-inputValidation-infoBackground);border:1px solid var(--vscode-inputValidation-infoBorder)}.monaco-editor.hc-black .monaco-editor-overlaymessage .message,.monaco-editor.hc-light .monaco-editor-overlaymessage .message{border-width:2px}.monaco-editor .monaco-editor-overlaymessage .anchor{width:0!important;height:0!important;border-color:transparent;border-style:solid;z-index:1000;border-width:8px;position:absolute}.monaco-editor .monaco-editor-overlaymessage .anchor.top{border-bottom-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage .anchor.below{border-top-color:var(--vscode-inputValidation-infoBorder)}.monaco-editor .monaco-editor-overlaymessage:not(.below) .anchor.top,.monaco-editor .monaco-editor-overlaymessage.below .anchor.below{display:none}.monaco-editor .monaco-editor-overlaymessage.below .anchor.top{display:inherit;top:-8px}.monaco-list{position:relative;height:100%;width:100%;white-space:nowrap}.monaco-list.mouse-support{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-list>.monaco-scrollable-element{height:100%}.monaco-list-rows{position:relative;width:100%;height:100%}.monaco-list.horizontal-scrolling .monaco-list-rows{width:auto;min-width:100%}.monaco-list-row{position:absolute;box-sizing:border-box;overflow:hidden;width:100%}.monaco-list.mouse-support .monaco-list-row{cursor:pointer;touch-action:none}.monaco-list-row.scrolling{display:none!important}.monaco-list.element-focused,.monaco-list.selection-single,.monaco-list.selection-multiple{outline:0!important}.monaco-drag-image{display:inline-block;padding:1px 7px;border-radius:10px;font-size:12px;position:absolute;z-index:1000}.monaco-list-type-filter-message{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;padding:40px 1em 1em;text-align:center;white-space:normal;opacity:.7;pointer-events:none}.monaco-list-type-filter-message:empty{display:none}.monaco-scrollable-element>.scrollbar>.scra{cursor:pointer;font-size:11px!important}.monaco-scrollable-element>.visible{opacity:1;background:rgba(0,0,0,0);transition:opacity .1s linear;z-index:11}.monaco-scrollable-element>.invisible{opacity:0;pointer-events:none}.monaco-scrollable-element>.invisible.fade{transition:opacity .8s linear}.monaco-scrollable-element>.shadow{position:absolute;display:none}.monaco-scrollable-element>.shadow.top{display:block;top:0;left:3px;height:3px;width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-scrollable-element>.shadow.left{display:block;top:3px;left:0;height:100%;width:3px;box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.shadow.top-left-corner{display:block;top:0;left:0;height:3px;width:3px}.monaco-scrollable-element>.shadow.top.left{box-shadow:var(--vscode-scrollbar-shadow) 6px 0 6px -6px inset}.monaco-scrollable-element>.scrollbar>.slider{background:var(--vscode-scrollbarSlider-background)}.monaco-scrollable-element>.scrollbar>.slider:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-scrollable-element>.scrollbar>.slider.active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-select-box-dropdown-padding{--dropdown-padding-top: 1px;--dropdown-padding-bottom: 1px}.hc-black .monaco-select-box-dropdown-padding,.hc-light .monaco-select-box-dropdown-padding{--dropdown-padding-top: 3px;--dropdown-padding-bottom: 4px}.monaco-select-box-dropdown-container{display:none;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown *{margin:0}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown a:focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-select-box-dropdown-container>.select-box-details-pane>.select-box-description-markdown code{line-height:15px;font-family:var(--monaco-monospace-font)}.monaco-select-box-dropdown-container.visible{display:flex;flex-direction:column;text-align:left;width:1px;overflow:hidden;border-bottom-left-radius:3px;border-bottom-right-radius:3px}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container{flex:0 0 auto;align-self:flex-start;padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom);padding-left:1px;padding-right:1px;width:100%;overflow:hidden;box-sizing:border-box}.monaco-select-box-dropdown-container>.select-box-details-pane{padding:5px}.hc-black .monaco-select-box-dropdown-container>.select-box-dropdown-list-container{padding-top:var(--dropdown-padding-top);padding-bottom:var(--dropdown-padding-bottom)}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row{cursor:pointer}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-text{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-detail{text-overflow:ellipsis;overflow:hidden;padding-left:3.5px;white-space:nowrap;float:left;opacity:.7}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.option-decorator-right{text-overflow:ellipsis;overflow:hidden;padding-right:10px;white-space:nowrap;float:right}.monaco-select-box-dropdown-container>.select-box-dropdown-list-container .monaco-list .monaco-list-row>.visually-hidden{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control{flex:1 1 auto;align-self:flex-start;opacity:0}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div{overflow:hidden;max-height:0px}.monaco-select-box-dropdown-container>.select-box-dropdown-container-width-control>.width-control-div>.option-text-width-control{padding-left:4px;padding-right:8px;white-space:nowrap}.monaco-select-box{width:100%;cursor:pointer;border-radius:2px}.monaco-select-box-dropdown-container{font-size:13px;font-weight:400;text-transform:none}.monaco-action-bar .action-item.select-container{cursor:default}.monaco-action-bar .action-item .monaco-select-box{cursor:pointer;min-width:100px;min-height:18px;padding:2px 23px 2px 8px}.mac .monaco-action-bar .action-item .monaco-select-box{font-size:11px;border-radius:5px}.monaco-action-bar{white-space:nowrap;height:100%}.monaco-action-bar .actions-container{display:flex;margin:0 auto;padding:0;height:100%;width:100%;align-items:center}.monaco-action-bar.vertical .actions-container{display:inline-block}.monaco-action-bar .action-item{display:block;align-items:center;justify-content:center;cursor:pointer;position:relative}.monaco-action-bar .action-item.disabled{cursor:default}.monaco-action-bar .action-item .icon,.monaco-action-bar .action-item .codicon{display:block}.monaco-action-bar .action-item .codicon{display:flex;align-items:center;width:16px;height:16px}.monaco-action-bar .action-label{display:flex;font-size:11px;padding:3px;border-radius:5px}.monaco-action-bar .action-item.disabled .action-label,.monaco-action-bar .action-item.disabled .action-label:before,.monaco-action-bar .action-item.disabled .action-label:hover{opacity:.6}.monaco-action-bar.vertical{text-align:left}.monaco-action-bar.vertical .action-item{display:block}.monaco-action-bar.vertical .action-label.separator{display:block;border-bottom:1px solid #bbb;padding-top:1px;margin-left:.8em;margin-right:.8em}.monaco-action-bar .action-item .action-label.separator{width:1px;height:16px;margin:5px 4px!important;cursor:default;min-width:1px;padding:0;background-color:#bbb}.secondary-actions .monaco-action-bar .action-label{margin-left:6px}.monaco-action-bar .action-item.select-container{overflow:hidden;flex:1;max-width:170px;min-width:60px;display:flex;align-items:center;justify-content:center;margin-right:10px}.monaco-action-bar .action-item.action-dropdown-item{display:flex}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator{display:flex;align-items:center;cursor:default}.monaco-action-bar .action-item.action-dropdown-item>.action-dropdown-item-separator>div{width:1px}.action-widget{font-size:13px;border-radius:0;min-width:160px;max-width:500px;z-index:40;display:block;width:100%;border:1px solid var(--vscode-editorWidget-border)!important;background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground)}.context-view-block{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:-1}.context-view-pointerBlock{position:fixed;cursor:initial;left:0;top:0;width:100%;height:100%;z-index:2}.action-widget .monaco-list{-moz-user-select:none;user-select:none;-webkit-user-select:none;border:none!important;border-width:0!important}.action-widget .monaco-list:focus:before{outline:0!important}.action-widget .monaco-list .monaco-scrollable-element{overflow:visible}.action-widget .monaco-list .monaco-list-row{padding:0 10px;white-space:nowrap;cursor:pointer;touch-action:none;width:100%}.action-widget .monaco-list .monaco-list-row.action.focused:not(.option-disabled){background-color:var(--vscode-quickInputList-focusBackground)!important;color:var(--vscode-quickInputList-focusForeground);outline:1px solid var(--vscode-menu-selectionBorder, transparent);outline-offset:-1px}.action-widget .monaco-list-row.group-header{color:var(--vscode-pickerGroup-foreground)!important;font-weight:600}.action-widget .monaco-list .group-header,.action-widget .monaco-list .option-disabled,.action-widget .monaco-list .option-disabled:before,.action-widget .monaco-list .option-disabled .focused,.action-widget .monaco-list .option-disabled .focused:before{cursor:default!important;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:transparent!important;outline:0 solid!important}.action-widget .monaco-list-row.action{display:flex;gap:6px;align-items:center}.action-widget .monaco-list-row.action.option-disabled{color:var(--vscode-disabledForeground)}.action-widget .monaco-list-row.action.option-disabled .codicon{opacity:.4}.action-widget .monaco-list-row.action:not(.option-disabled) .codicon{color:inherit}.action-widget .monaco-list-row.action .title{flex:1;overflow:hidden;text-overflow:ellipsis}.action-widget .action-widget-action-bar{background-color:var(--vscode-editorHoverWidget-statusBarBackground);border-top:1px solid var(--vscode-editorHoverWidget-border)}.action-widget .action-widget-action-bar:before{display:block;content:"";width:100%}.action-widget .action-widget-action-bar .actions-container{padding:0 8px}.action-widget-action-bar .action-label{color:var(--vscode-textLink-activeForeground);font-size:12px;line-height:22px;padding:0;pointer-events:all}.action-widget-action-bar .action-item{margin-right:16px;pointer-events:none}.action-widget-action-bar .action-label:hover{background-color:transparent!important}.monaco-keybinding{display:flex;align-items:center;line-height:10px}.monaco-keybinding>.monaco-keybinding-key{display:inline-block;border-style:solid;border-width:1px;border-radius:3px;vertical-align:middle;font-size:11px;padding:3px 5px;margin:0 2px}.monaco-keybinding>.monaco-keybinding-key:first-child{margin-left:0}.monaco-keybinding>.monaco-keybinding-key:last-child{margin-right:0}.monaco-keybinding>.monaco-keybinding-key-separator{display:inline-block}.monaco-keybinding>.monaco-keybinding-key-chord-separator{width:6px}.monaco-editor .codelens-decoration{overflow:hidden;display:inline-block;text-overflow:ellipsis;white-space:nowrap;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize);padding-right:calc(var(--vscode-editorCodeLens-fontSize)*.5);font-feature-settings:var(--vscode-editorCodeLens-fontFeatureSettings);font-family:var(--vscode-editorCodeLens-fontFamily),var(--vscode-editorCodeLens-fontFamilyDefault)}.monaco-editor .codelens-decoration>span,.monaco-editor .codelens-decoration>a{-moz-user-select:none;user-select:none;-webkit-user-select:none;white-space:nowrap;vertical-align:sub}.monaco-editor .codelens-decoration>a{text-decoration:none}.monaco-editor .codelens-decoration>a:hover{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration>a:hover .codicon{color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .codelens-decoration .codicon{vertical-align:middle;color:currentColor!important;color:var(--vscode-editorCodeLens-foreground);line-height:var(--vscode-editorCodeLens-lineHeight);font-size:var(--vscode-editorCodeLens-fontSize)}.monaco-editor .codelens-decoration>a:hover .codicon:before{cursor:pointer}@keyframes fadein{0%{opacity:0;visibility:visible}to{opacity:1}}.monaco-editor .codelens-decoration.fadein{animation:fadein .1s linear}.monaco-editor.vs .dnd-target,.monaco-editor.hc-light .dnd-target{border-right:2px dotted black;color:#fff}.monaco-editor.vs-dark .dnd-target{border-right:2px dotted #AEAFAD;color:#51504f}.monaco-editor.hc-black .dnd-target{border-right:2px dotted #fff;color:#000}.monaco-editor.mouse-default .view-lines,.monaco-editor.vs-dark.mac.mouse-default .view-lines,.monaco-editor.hc-black.mac.mouse-default .view-lines,.monaco-editor.hc-light.mac.mouse-default .view-lines{cursor:default}.monaco-editor.mouse-copy .view-lines,.monaco-editor.vs-dark.mac.mouse-copy .view-lines,.monaco-editor.hc-black.mac.mouse-copy .view-lines,.monaco-editor.hc-light.mac.mouse-copy .view-lines{cursor:copy}.inline-editor-progress-decoration{display:inline-block;width:1em;height:1em}.inline-progress-widget{display:flex!important;justify-content:center;align-items:center}.inline-progress-widget .icon{font-size:80%!important}.inline-progress-widget:hover .icon{font-size:90%!important;animation:none}.inline-progress-widget:hover .icon:before{content:"\ea76"}.monaco-text-button{box-sizing:border-box;display:flex;width:100%;padding:4px;border-radius:2px;text-align:center;cursor:pointer;justify-content:center;align-items:center;border:1px solid var(--vscode-button-border, transparent);line-height:18px}.monaco-text-button:focus{outline-offset:2px!important}.monaco-text-button:hover{text-decoration:none!important}.monaco-button.disabled:focus,.monaco-button.disabled{opacity:.4!important;cursor:default}.monaco-text-button .codicon{margin:0 .2em;color:inherit!important}.monaco-text-button.monaco-text-button-with-short-label{flex-direction:row;flex-wrap:wrap;padding:0 4px;overflow:hidden;height:28px}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label{flex-basis:100%}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{flex-grow:1;width:0;overflow:hidden}.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label,.monaco-text-button.monaco-text-button-with-short-label>.monaco-button-label-short{display:flex;justify-content:center;align-items:center;font-weight:400;font-style:inherit;padding:4px 0}.monaco-button-dropdown{display:flex;cursor:pointer}.monaco-button-dropdown.disabled{cursor:default}.monaco-button-dropdown>.monaco-button:focus{outline-offset:-1px!important}.monaco-button-dropdown.disabled>.monaco-button.disabled,.monaco-button-dropdown.disabled>.monaco-button.disabled:focus,.monaco-button-dropdown.disabled>.monaco-button-dropdown-separator{opacity:.4!important}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-right-width:0!important}.monaco-button-dropdown .monaco-button-dropdown-separator{padding:4px 0;cursor:default}.monaco-button-dropdown .monaco-button-dropdown-separator>div{height:100%;width:1px}.monaco-button-dropdown>.monaco-button.monaco-dropdown-button{border:1px solid var(--vscode-button-border, transparent);border-left-width:0!important;border-radius:0 2px 2px 0}.monaco-button-dropdown>.monaco-button.monaco-text-button{border-radius:2px 0 0 2px}.monaco-description-button{display:flex;flex-direction:column;align-items:center;margin:4px 5px}.monaco-description-button .monaco-button-description{font-style:italic;font-size:11px;padding:4px 20px}.monaco-description-button .monaco-button-label,.monaco-description-button .monaco-button-description{display:flex;justify-content:center;align-items:center}.monaco-description-button .monaco-button-label>.codicon,.monaco-description-button .monaco-button-description>.codicon{margin:0 .2em;color:inherit!important}.post-edit-widget{box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:1px solid var(--vscode-widget-border, transparent);border-radius:4px;background-color:var(--vscode-editorWidget-background);overflow:hidden}.post-edit-widget .monaco-button{padding:2px;border:none;border-radius:0}.post-edit-widget .monaco-button:hover{background-color:var(--vscode-button-secondaryHoverBackground)!important}.post-edit-widget .monaco-button .codicon{margin:0}.monaco-editor .findOptionsWidget{background-color:var(--vscode-editorWidget-background);color:var(--vscode-editorWidget-foreground);box-shadow:0 0 8px 2px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-custom-toggle{margin-left:2px;float:left;cursor:pointer;overflow:hidden;width:20px;height:20px;border-radius:3px;border:1px solid transparent;padding:1px;box-sizing:border-box;-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-custom-toggle:hover{background-color:var(--vscode-inputOption-hoverBackground)}.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{border:1px dashed var(--vscode-focusBorder)}.hc-black .monaco-custom-toggle,.hc-light .monaco-custom-toggle,.hc-black .monaco-custom-toggle:hover,.hc-light .monaco-custom-toggle:hover{background:none}.monaco-custom-toggle.monaco-checkbox{height:18px;width:18px;border:1px solid transparent;border-radius:3px;margin-right:9px;margin-left:0;padding:0;opacity:1;background-size:16px!important}.monaco-custom-toggle.monaco-checkbox:not(.checked):before{visibility:hidden}:root{--vscode-sash-size: 4px}.monaco-sash{position:absolute;z-index:35;touch-action:none}.monaco-sash.disabled{pointer-events:none}.monaco-sash.mac.vertical{cursor:col-resize}.monaco-sash.vertical.minimum{cursor:e-resize}.monaco-sash.vertical.maximum{cursor:w-resize}.monaco-sash.mac.horizontal{cursor:row-resize}.monaco-sash.horizontal.minimum{cursor:s-resize}.monaco-sash.horizontal.maximum{cursor:n-resize}.monaco-sash.disabled{cursor:default!important;pointer-events:none!important}.monaco-sash.vertical{cursor:ew-resize;top:0;width:var(--vscode-sash-size);height:100%}.monaco-sash.horizontal{cursor:ns-resize;left:0;width:100%;height:var(--vscode-sash-size)}.monaco-sash:not(.disabled)>.orthogonal-drag-handle{content:" ";height:calc(var(--vscode-sash-size) * 2);width:calc(var(--vscode-sash-size) * 2);z-index:100;display:block;cursor:all-scroll;position:absolute}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.start,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.end{cursor:nwse-resize}.monaco-sash.horizontal.orthogonal-edge-north:not(.disabled)>.orthogonal-drag-handle.end,.monaco-sash.horizontal.orthogonal-edge-south:not(.disabled)>.orthogonal-drag-handle.start{cursor:nesw-resize}.monaco-sash.vertical>.orthogonal-drag-handle.start{left:calc(var(--vscode-sash-size) * -.5);top:calc(var(--vscode-sash-size) * -1)}.monaco-sash.vertical>.orthogonal-drag-handle.end{left:calc(var(--vscode-sash-size) * -.5);bottom:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.start{top:calc(var(--vscode-sash-size) * -.5);left:calc(var(--vscode-sash-size) * -1)}.monaco-sash.horizontal>.orthogonal-drag-handle.end{top:calc(var(--vscode-sash-size) * -.5);right:calc(var(--vscode-sash-size) * -1)}.monaco-sash:before{content:"";pointer-events:none;position:absolute;width:100%;height:100%;background:transparent}.monaco-workbench:not(.reduce-motion) .monaco-sash:before{transition:background-color .1s ease-out}.monaco-sash.hover:before,.monaco-sash.active:before{background:var(--vscode-sash-hoverBorder)}.monaco-sash.vertical:before{width:var(--vscode-sash-hover-size);left:calc(50% - (var(--vscode-sash-hover-size) / 2))}.monaco-sash.horizontal:before{height:var(--vscode-sash-hover-size);top:calc(50% - (var(--vscode-sash-hover-size) / 2))}.pointer-events-disabled{pointer-events:none!important}.monaco-sash.debug{background:cyan}.monaco-sash.debug.disabled{background:rgba(0,255,255,.2)}.monaco-sash.debug:not(.disabled)>.orthogonal-drag-handle{background:red}.monaco-editor .find-widget{position:absolute;z-index:35;height:33px;overflow:hidden;line-height:19px;transition:transform .2s linear;padding:0 4px;box-sizing:border-box;transform:translateY(calc(-100% - 10px));border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench.reduce-motion .monaco-editor .find-widget{transition:transform 0ms linear}.monaco-editor .find-widget textarea{margin:0}.monaco-editor .find-widget.hiddenEditor{display:none}.monaco-editor .find-widget.replaceToggled>.replace-part{display:flex}.monaco-editor .find-widget.visible{transform:translateY(0)}.monaco-editor .find-widget .monaco-inputbox.synthetic-focus{outline:1px solid -webkit-focus-ring-color;outline-offset:-1px}.monaco-editor .find-widget .monaco-inputbox .input{background-color:transparent;min-height:0}.monaco-editor .find-widget .monaco-findInput .input{font-size:13px}.monaco-editor .find-widget>.find-part,.monaco-editor .find-widget>.replace-part{margin:3px 0 0 17px;font-size:12px;display:flex}.monaco-editor .find-widget>.find-part .monaco-inputbox,.monaco-editor .find-widget>.replace-part .monaco-inputbox{min-height:25px}.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-right:22px}.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.find-part .monaco-inputbox>.ibwrapper>.mirror,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.input,.monaco-editor .find-widget>.replace-part .monaco-inputbox>.ibwrapper>.mirror{padding-top:2px;padding-bottom:2px}.monaco-editor .find-widget>.find-part .find-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget>.replace-part .replace-actions{height:25px;display:flex;align-items:center}.monaco-editor .find-widget .monaco-findInput{vertical-align:middle;display:flex;flex:1}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element{width:100%}.monaco-editor .find-widget .monaco-findInput .monaco-scrollable-element .scrollbar.vertical{opacity:0}.monaco-editor .find-widget .matchesCount{display:flex;flex:initial;margin:0 0 0 3px;padding:2px 0 0 2px;height:25px;vertical-align:middle;box-sizing:border-box;text-align:center;line-height:23px}.monaco-editor .find-widget .button{width:16px;height:16px;padding:3px;border-radius:5px;flex:initial;margin-left:3px;background-position:center center;background-repeat:no-repeat;cursor:pointer;display:flex;align-items:center;justify-content:center}.monaco-editor .find-widget .codicon-find-selection{width:22px;height:22px;padding:3px;border-radius:5px}.monaco-editor .find-widget .button.left{margin-left:0;margin-right:3px}.monaco-editor .find-widget .button.wide{width:auto;padding:1px 6px;top:-1px}.monaco-editor .find-widget .button.toggle{position:absolute;top:0;left:3px;width:18px;height:100%;border-radius:0;box-sizing:border-box}.monaco-editor .find-widget .button.toggle.disabled{display:none}.monaco-editor .find-widget .disabled{color:var(--vscode-disabledForeground);cursor:default}.monaco-editor .find-widget>.replace-part{display:none}.monaco-editor .find-widget>.replace-part>.monaco-findInput{position:relative;display:flex;vertical-align:middle;flex:auto;flex-grow:0;flex-shrink:0}.monaco-editor .find-widget>.replace-part>.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.monaco-editor .find-widget.reduced-find-widget .matchesCount{display:none}.monaco-editor .find-widget.narrow-find-widget{max-width:257px!important}.monaco-editor .find-widget.collapsed-find-widget{max-width:170px!important}.monaco-editor .find-widget.collapsed-find-widget .button.previous,.monaco-editor .find-widget.collapsed-find-widget .button.next,.monaco-editor .find-widget.collapsed-find-widget .button.replace,.monaco-editor .find-widget.collapsed-find-widget .button.replace-all,.monaco-editor .find-widget.collapsed-find-widget>.find-part .monaco-findInput .controls{display:none}.monaco-editor .findMatch{animation-duration:0;animation-name:inherit!important}.monaco-editor .find-widget .monaco-sash{left:0!important}.monaco-editor.hc-black .find-widget .button:before{position:relative;top:1px;left:2px}.monaco-inputbox{position:relative;display:block;padding:0;box-sizing:border-box;border-radius:2px;font-size:inherit}.monaco-inputbox>.ibwrapper>.input,.monaco-inputbox>.ibwrapper>.mirror{padding:4px 6px}.monaco-inputbox>.ibwrapper{position:relative;width:100%;height:100%}.monaco-inputbox>.ibwrapper>.input{display:inline-block;box-sizing:border-box;width:100%;height:100%;line-height:inherit;border:none;font-family:inherit;font-size:inherit;resize:none;color:inherit}.monaco-inputbox>.ibwrapper>input{text-overflow:ellipsis}.monaco-inputbox>.ibwrapper>textarea.input{display:block;scrollbar-width:none;outline:none}.monaco-inputbox>.ibwrapper>textarea.input::-webkit-scrollbar{display:none}.monaco-inputbox>.ibwrapper>textarea.input.empty{white-space:nowrap}.monaco-inputbox>.ibwrapper>.mirror{position:absolute;display:inline-block;width:100%;top:0;left:0;box-sizing:border-box;white-space:pre-wrap;visibility:hidden;word-wrap:break-word}.monaco-inputbox-container{text-align:right}.monaco-inputbox-container .monaco-inputbox-message{display:inline-block;overflow:hidden;text-align:left;width:100%;box-sizing:border-box;padding:.4em;font-size:12px;line-height:17px;margin-top:-1px;word-wrap:break-word}.monaco-inputbox .monaco-action-bar{position:absolute;right:2px;top:4px}.monaco-inputbox .monaco-action-bar .action-item{margin-left:2px}.monaco-inputbox .monaco-action-bar .action-item .codicon{background-repeat:no-repeat;width:16px;height:16px}.monaco-findInput{position:relative}.monaco-findInput .monaco-inputbox{font-size:13px;width:100%}.monaco-findInput>.controls{position:absolute;top:3px;right:2px}.vs .monaco-findInput.disabled{background-color:#e1e1e1}.vs-dark .monaco-findInput.disabled{background-color:#333}.monaco-findInput.highlight-0 .controls,.hc-light .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-0 .1s linear 0s}.monaco-findInput.highlight-1 .controls,.hc-light .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-1 .1s linear 0s}.hc-black .monaco-findInput.highlight-0 .controls,.vs-dark .monaco-findInput.highlight-0 .controls{animation:monaco-findInput-highlight-dark-0 .1s linear 0s}.hc-black .monaco-findInput.highlight-1 .controls,.vs-dark .monaco-findInput.highlight-1 .controls{animation:monaco-findInput-highlight-dark-1 .1s linear 0s}@keyframes monaco-findInput-highlight-0{0%{background:rgba(253,255,0,.8)}to{background:transparent}}@keyframes monaco-findInput-highlight-1{0%{background:rgba(253,255,0,.8)}99%{background:transparent}}@keyframes monaco-findInput-highlight-dark-0{0%{background:rgba(255,255,255,.44)}to{background:transparent}}@keyframes monaco-findInput-highlight-dark-1{0%{background:rgba(255,255,255,.44)}99%{background:transparent}}.monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-editor .margin-view-overlays .codicon-folding-collapsed{cursor:pointer;opacity:0;transition:opacity .5s;display:flex;align-items:center;justify-content:center;font-size:140%;margin-left:2px}.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-collapsed,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-manual-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-expanded,.monaco-workbench.reduce-motion .monaco-editor .margin-view-overlays .codicon-folding-collapsed{transition:initial}.monaco-editor .margin-view-overlays:hover .codicon,.monaco-editor .margin-view-overlays .codicon.codicon-folding-collapsed,.monaco-editor .margin-view-overlays .codicon.codicon-folding-manual-collapsed,.monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons{opacity:1}.monaco-editor .inline-folded:after{color:gray;margin:.1em .2em 0;content:"\22ef";display:inline;line-height:1em;cursor:pointer}.monaco-editor .folded-background{background-color:var(--vscode-editor-foldBackground)}.monaco-editor .cldr.codicon.codicon-folding-expanded,.monaco-editor .cldr.codicon.codicon-folding-collapsed,.monaco-editor .cldr.codicon.codicon-folding-manual-expanded,.monaco-editor .cldr.codicon.codicon-folding-manual-collapsed{color:var(--vscode-editorGutter-foldingControlForeground)!important}.monaco-editor .suggest-preview-additional-widget{white-space:nowrap}.monaco-editor .suggest-preview-additional-widget .content-spacer{color:transparent;white-space:pre}.monaco-editor .suggest-preview-additional-widget .button{display:inline-block;cursor:pointer;text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-hidden{opacity:0;font-size:0}.monaco-editor .ghost-text-decoration,.monaco-editor .suggest-preview-text .ghost-text{font-style:italic}.monaco-editor .inline-completion-text-to-replace{text-decoration:underline;text-underline-position:under}.monaco-editor .ghost-text-decoration,.monaco-editor .ghost-text-decoration-preview,.monaco-editor .suggest-preview-text .ghost-text{color:var(--vscode-editorGhostText-foreground)!important;background-color:var(--vscode-editorGhostText-background);border:1px solid var(--vscode-editorGhostText-border)}.monaco-editor .inlineSuggestionsHints.withBorder{z-index:39;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .inlineSuggestionsHints a,.monaco-editor .inlineSuggestionsHints a:hover{color:var(--vscode-foreground)}.monaco-editor .inlineSuggestionsHints .keybinding{display:flex;margin-left:4px;opacity:.6}.monaco-editor .inlineSuggestionsHints .keybinding .monaco-keybinding-key{font-size:8px;padding:2px 3px}.monaco-editor .inlineSuggestionsHints .custom-actions .action-item:nth-child(2) a{display:flex;min-width:19px;justify-content:center}.monaco-editor .inlineSuggestionStatusBarItemLabel{margin-right:2px}.monaco-dropdown{height:100%;padding:0}.monaco-dropdown>.dropdown-label{cursor:pointer;height:100%;display:flex;align-items:center;justify-content:center}.monaco-dropdown>.dropdown-label>.action-label.disabled{cursor:default}.monaco-dropdown-with-primary{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-primary>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-primary>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-action-bar .action-item.menu-entry .action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default{display:flex!important;flex-direction:row;border-radius:5px}.monaco-dropdown-with-default>.action-container>.action-label{margin-right:0}.monaco-dropdown-with-default>.action-container.menu-entry>.action-label.icon{width:16px;height:16px;background-repeat:no-repeat;background-position:50%;background-size:16px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label .codicon[class*=codicon-]{font-size:12px;padding-left:0;padding-right:0;line-height:16px;margin-left:-3px}.monaco-dropdown-with-default>.dropdown-action-container>.monaco-dropdown>.dropdown-label>.action-label{display:block;background-size:16px;background-position:center center;background-repeat:no-repeat}.monaco-toolbar{height:100%}.monaco-toolbar .toolbar-toggle-more{display:inline-block;padding:0}.monaco-editor .snippet-placeholder{min-width:2px;outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetTabstopHighlightBorder, transparent)}.monaco-editor .finish-snippet-placeholder{outline-style:solid;outline-width:1px;background-color:var(--vscode-editor-snippetFinalTabstopHighlightBackground, transparent);outline-color:var(--vscode-editor-snippetFinalTabstopHighlightBorder, transparent)}.monaco-editor .suggest-widget{width:430px;z-index:40;display:flex;flex-direction:column;border-radius:3px}.monaco-editor .suggest-widget.message{flex-direction:row;align-items:center}.monaco-editor .suggest-widget,.monaco-editor .suggest-details{flex:0 1 auto;width:100%;border-style:solid;border-width:1px;border-color:var(--vscode-editorSuggestWidget-border);background-color:var(--vscode-editorSuggestWidget-background)}.monaco-editor.hc-black .suggest-widget,.monaco-editor.hc-black .suggest-details,.monaco-editor.hc-light .suggest-widget,.monaco-editor.hc-light .suggest-details{border-width:2px}.monaco-editor .suggest-widget .suggest-status-bar{box-sizing:border-box;display:none;flex-flow:row nowrap;justify-content:space-between;width:100%;font-size:80%;padding:0 4px;border-top:1px solid var(--vscode-editorSuggestWidget-border);overflow:hidden}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar{display:flex}.monaco-editor .suggest-widget .suggest-status-bar .left{padding-right:8px}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-label{color:var(--vscode-editorSuggestWidgetStatus-foreground)}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label{margin-right:0}.monaco-editor .suggest-widget.with-status-bar .suggest-status-bar .action-item:not(:last-of-type) .action-label:after{content:", ";margin-right:.3em}.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row>.contents>.main>.right>.readMore,.monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover>.contents>.main>.right.can-expand-details>.details-label{width:100%}.monaco-editor .suggest-widget>.message{padding-left:22px}.monaco-editor .suggest-widget>.tree{height:100%;width:100%}.monaco-editor .suggest-widget .monaco-list{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row{display:flex;-mox-box-sizing:border-box;box-sizing:border-box;padding-right:10px;background-repeat:no-repeat;background-position:2px 2px;white-space:nowrap;cursor:pointer;touch-action:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused{color:var(--vscode-editorSuggestWidget-selectedForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused .codicon{color:var(--vscode-editorSuggestWidget-selectedIconForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents{flex:1;height:100%;overflow:hidden;padding-left:2px}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main{display:flex;overflow:hidden;text-overflow:ellipsis;white-space:pre;justify-content:space-between}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{display:flex}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.focused)>.contents>.main .monaco-icon-label{color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-widget:not(.frozen) .monaco-highlighted-label .highlight{font-weight:700}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-highlightForeground)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused>.contents>.main .monaco-highlighted-label .highlight{color:var(--vscode-editorSuggestWidget-focusHighlightForeground)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:before{color:inherit;opacity:1;font-size:14px;cursor:pointer}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close{position:absolute;top:6px;right:2px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.codicon-close:hover,.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore:hover{opacity:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{opacity:.7}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.signature-label{overflow:hidden;text-overflow:ellipsis;opacity:.6}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.qualifier-label{margin-left:12px;opacity:.4;font-size:85%;line-height:initial;text-overflow:ellipsis;overflow:hidden;align-self:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{font-size:85%;margin-left:1.1em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label>.monaco-tokenized-source{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.details-label{display:none}.monaco-editor .suggest-widget:not(.shows-details) .monaco-list .monaco-list-row.focused>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.right>.details-label,.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row.focused:not(.string-label)>.contents>.main>.right>.details-label{display:inline}.monaco-editor .suggest-widget:not(.docs-side) .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right.can-expand-details>.details-label{width:calc(100% - 26px)}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left{flex-shrink:1;flex-grow:1;overflow:hidden}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.left>.monaco-icon-label{flex-shrink:0}.monaco-editor .suggest-widget .monaco-list .monaco-list-row:not(.string-label)>.contents>.main>.left>.monaco-icon-label{max-width:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.left>.monaco-icon-label{flex-shrink:1}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right{overflow:hidden;flex-shrink:4;max-width:70%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:inline-block;position:absolute;right:10px;width:18px;height:18px;visibility:hidden}.monaco-editor .suggest-widget.docs-side .monaco-list .monaco-list-row>.contents>.main>.right>.readMore{display:none!important}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.string-label>.contents>.main>.right>.readMore{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused.string-label>.contents>.main>.right>.readMore{display:inline-block}.monaco-editor .suggest-widget .monaco-list .monaco-list-row.focused:hover>.contents>.main>.right>.readMore{visibility:visible}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated{opacity:.66;text-decoration:unset}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label.deprecated>.monaco-icon-label-container>.monaco-icon-name-container{text-decoration:line-through}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .monaco-icon-label:before{height:100%}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon{display:block;height:16px;width:16px;margin-left:2px;background-repeat:no-repeat;background-size:80%;background-position:center}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.hide{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .suggest-icon{display:flex;align-items:center;margin-right:4px}.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .icon,.monaco-editor .suggest-widget.no-icons .monaco-list .monaco-list-row .suggest-icon:before{display:none}.monaco-editor .suggest-widget .monaco-list .monaco-list-row .icon.customcolor .colorspan{margin:0 0 0 .3em;border:.1em solid #000;width:.7em;height:.7em;display:inline-block}.monaco-editor .suggest-details-container{z-index:41}.monaco-editor .suggest-details{display:flex;flex-direction:column;cursor:default;color:var(--vscode-editorSuggestWidget-foreground)}.monaco-editor .suggest-details.focused{border-color:var(--vscode-focusBorder)}.monaco-editor .suggest-details a{color:var(--vscode-textLink-foreground)}.monaco-editor .suggest-details a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .suggest-details code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .suggest-details.no-docs{display:none}.monaco-editor .suggest-details>.monaco-scrollable-element{flex:1}.monaco-editor .suggest-details>.monaco-scrollable-element>.body{box-sizing:border-box;height:100%;width:100%}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type{flex:2;overflow:hidden;text-overflow:ellipsis;opacity:.7;white-space:pre;margin:0 24px 0 0;padding:4px 0 12px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.header>.type.auto-wrap{white-space:normal;word-break:break-all}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs{margin:0;padding:4px 5px;white-space:pre-wrap}.monaco-editor .suggest-details.no-type>.monaco-scrollable-element>.body>.docs{margin-right:24px;overflow:hidden}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs{padding:0;white-space:initial;min-height:calc(1rem + 8px)}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div,.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>span:not(:empty){padding:4px 5px}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:first-child{margin-top:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs>div>p:last-child{margin-bottom:0}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .monaco-tokenized-source{white-space:pre}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs .code{white-space:pre-wrap;word-wrap:break-word}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>.docs.markdown-docs .codicon{vertical-align:sub}.monaco-editor .suggest-details>.monaco-scrollable-element>.body>p:empty{display:none}.monaco-editor .suggest-details code{border-radius:3px;padding:0 .4em}.monaco-editor .suggest-details ul,.monaco-editor .suggest-details ol{padding-left:20px}.monaco-editor .suggest-details p code{font-family:var(--monaco-monospace-font)}::-ms-clear{display:none}.monaco-editor .editor-widget input{color:inherit}.monaco-editor{position:relative;overflow:visible;-webkit-text-size-adjust:100%;color:var(--vscode-editor-foreground);background-color:var(--vscode-editor-background)}.monaco-editor-background{background-color:var(--vscode-editor-background)}.monaco-editor .rangeHighlight{background-color:var(--vscode-editor-rangeHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-rangeHighlightBorder)}.monaco-editor.hc-black .rangeHighlight,.monaco-editor.hc-light .rangeHighlight{border-style:dotted}.monaco-editor .symbolHighlight{background-color:var(--vscode-editor-symbolHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-symbolHighlightBorder)}.monaco-editor.hc-black .symbolHighlight,.monaco-editor.hc-light .symbolHighlight{border-style:dotted}.monaco-editor .overflow-guard{position:relative;overflow:hidden}.monaco-editor .view-overlays{position:absolute;top:0}.monaco-editor .squiggly-error{border-bottom:4px double var(--vscode-editorError-border)}.monaco-editor .squiggly-error:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorError-background)}.monaco-editor .squiggly-warning{border-bottom:4px double var(--vscode-editorWarning-border)}.monaco-editor .squiggly-warning:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorWarning-background)}.monaco-editor .squiggly-info{border-bottom:4px double var(--vscode-editorInfo-border)}.monaco-editor .squiggly-info:before{display:block;content:"";width:100%;height:100%;background:var(--vscode-editorInfo-background)}.monaco-editor .squiggly-hint{border-bottom:2px dotted var(--vscode-editorHint-border)}.monaco-editor.showUnused .squiggly-unnecessary{border-bottom:2px dashed var(--vscode-editorUnnecessaryCode-border)}.monaco-editor.showDeprecated .squiggly-inline-deprecated{text-decoration:line-through;text-decoration-color:var(--vscode-editor-foreground, inherit)}.monaco-editor .inputarea{min-width:0;min-height:0;margin:0;padding:0;position:absolute;outline:none!important;resize:none;border:none;overflow:hidden;color:transparent;background-color:transparent;z-index:-10}.monaco-editor .inputarea.ime-input{z-index:10;caret-color:var(--vscode-editorCursor-foreground);color:var(--vscode-editor-foreground)}.monaco-editor .margin-view-overlays .line-numbers{font-variant-numeric:tabular-nums;position:absolute;text-align:right;display:inline-block;vertical-align:middle;box-sizing:border-box;cursor:default;height:100%}.monaco-editor .relative-current-line-number{text-align:left;display:inline-block;width:100%}.monaco-editor .margin-view-overlays .line-numbers.lh-odd{margin-top:1px}.monaco-editor .line-numbers{color:var(--vscode-editorLineNumber-foreground)}.monaco-editor .line-numbers.active-line-number{color:var(--vscode-editorLineNumber-activeForeground)}.monaco-editor .margin{background-color:var(--vscode-editorGutter-background)}.monaco-mouse-cursor-text{cursor:text}.monaco-editor .view-overlays .current-line,.monaco-editor .margin-view-overlays .current-line{display:block;position:absolute;left:0;top:0;box-sizing:border-box}.monaco-editor .margin-view-overlays .current-line.current-line-margin.current-line-margin-both{border-right:0}.monaco-editor .lines-content .cdr{position:absolute}.monaco-editor .glyph-margin{position:absolute;top:0}.monaco-editor .margin-view-overlays .cgmr{position:absolute;display:flex;align-items:center}.monaco-editor .lines-content .core-guide{position:absolute;box-sizing:border-box}.monaco-editor .lines-content .core-guide-indent{box-shadow:1px 0 0 0 var(--vscode-editorIndentGuide-background) inset}.monaco-editor .lines-content .core-guide-indent-active{box-shadow:1px 0 0 0 var(--vscode-editorIndentGuide-activeBackground, --vscode-editorIndentGuide-background) inset}.mtkcontrol{color:#fff!important;background:rgb(150,0,0)!important}.mtkoverflow{background-color:var(--vscode-button-background, --vscode-editor-background);color:var(--vscode-button-foreground, --vscode-editor-foreground);border-width:1px;border-style:solid;border-color:var(--vscode-contrastBorder);border-radius:2px;padding:4px;cursor:pointer}.mtkoverflow:hover{background-color:var(--vscode-button-hoverBackground)}.monaco-editor.no-user-select .lines-content,.monaco-editor.no-user-select .view-line,.monaco-editor.no-user-select .view-lines{-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-editor.mac .lines-content:hover,.monaco-editor.mac .view-line:hover,.monaco-editor.mac .view-lines:hover{-moz-user-select:text;user-select:text;-webkit-user-select:text;-ms-user-select:text}.monaco-editor.enable-user-select{-moz-user-select:initial;user-select:initial;-webkit-user-select:initial}.monaco-editor .view-lines{white-space:nowrap}.monaco-editor .view-line{position:absolute;width:100%}.monaco-editor .mtkw{color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .mtkz{display:inline-block;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .lines-decorations{position:absolute;top:0;background:white}.monaco-editor .margin-view-overlays .cldr{position:absolute;height:100%}.monaco-editor .margin-view-overlays .cmdr{position:absolute;left:0;width:100%;height:100%}.monaco-editor .minimap.slider-mouseover .minimap-slider{opacity:0;transition:opacity .1s linear}.monaco-editor .minimap.slider-mouseover:hover .minimap-slider,.monaco-editor .minimap.slider-mouseover .minimap-slider.active{opacity:1}.monaco-editor .minimap-slider .minimap-slider-horizontal{background:var(--vscode-minimapSlider-background)}.monaco-editor .minimap-slider:hover .minimap-slider-horizontal{background:var(--vscode-minimapSlider-hoverBackground)}.monaco-editor .minimap-slider.active .minimap-slider-horizontal{background:var(--vscode-minimapSlider-activeBackground)}.monaco-editor .minimap-shadow-visible{box-shadow:var(--vscode-scrollbar-shadow) -6px 0 6px -6px inset}.monaco-editor .minimap-shadow-hidden{position:absolute;width:0}.monaco-editor .minimap-shadow-visible{position:absolute;left:-6px;width:6px}.monaco-editor.no-minimap-shadow .minimap-shadow-visible{position:absolute;left:-1px;width:1px}.minimap.autohide{opacity:0;transition:opacity .5s}.minimap.autohide:hover{opacity:1}.monaco-editor .overlayWidgets{position:absolute;top:0;left:0}.monaco-editor .view-ruler{position:absolute;top:0;box-shadow:1px 0 0 0 var(--vscode-editorRuler-foreground) inset}.monaco-editor .scroll-decoration{position:absolute;top:0;left:0;height:6px;box-shadow:var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset}.monaco-editor .lines-content .cslr{position:absolute}.monaco-editor .focused .selected-text{background-color:var(--vscode-editor-selectionBackground)}.monaco-editor .selected-text{background-color:var(--vscode-editor-inactiveSelectionBackground)}.monaco-editor .top-left-radius{border-top-left-radius:3px}.monaco-editor .bottom-left-radius{border-bottom-left-radius:3px}.monaco-editor .top-right-radius{border-top-right-radius:3px}.monaco-editor .bottom-right-radius{border-bottom-right-radius:3px}.monaco-editor.hc-black .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-black .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-black .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-black .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor.hc-light .top-left-radius{border-top-left-radius:0}.monaco-editor.hc-light .bottom-left-radius{border-bottom-left-radius:0}.monaco-editor.hc-light .top-right-radius{border-top-right-radius:0}.monaco-editor.hc-light .bottom-right-radius{border-bottom-right-radius:0}.monaco-editor .cursors-layer{position:absolute;top:0}.monaco-editor .cursors-layer>.cursor{position:absolute;overflow:hidden;box-sizing:border-box}.monaco-editor .cursors-layer.cursor-smooth-caret-animation>.cursor{transition:all 80ms}.monaco-editor .cursors-layer.cursor-block-outline-style>.cursor{background:transparent!important;border-style:solid;border-width:1px}.monaco-editor .cursors-layer.cursor-underline-style>.cursor{border-bottom-width:2px;border-bottom-style:solid;background:transparent!important}.monaco-editor .cursors-layer.cursor-underline-thin-style>.cursor{border-bottom-width:1px;border-bottom-style:solid;background:transparent!important}@keyframes monaco-cursor-smooth{0%,20%{opacity:1}60%,to{opacity:0}}@keyframes monaco-cursor-phase{0%,20%{opacity:1}90%,to{opacity:0}}@keyframes monaco-cursor-expand{0%,20%{transform:scaleY(1)}80%,to{transform:scaleY(0)}}.cursor-smooth{animation:monaco-cursor-smooth .5s ease-in-out 0s 20 alternate}.cursor-phase{animation:monaco-cursor-phase .5s ease-in-out 0s 20 alternate}.cursor-expand>.cursor{animation:monaco-cursor-expand .5s ease-in-out 0s 20 alternate}.monaco-editor .blockDecorations-container{position:absolute;top:0;pointer-events:none}.monaco-editor .blockDecorations-block{position:absolute;box-sizing:border-box}.monaco-editor .mwh{position:absolute;color:var(--vscode-editorWhitespace-foreground)!important}.monaco-editor .rendered-markdown kbd{background-color:var(--vscode-keybindingLabel-background);color:var(--vscode-keybindingLabel-foreground);border-style:solid;border-width:1px;border-radius:3px;border-color:var(--vscode-keybindingLabel-border);border-bottom-color:var(--vscode-keybindingLabel-bottomBorder);box-shadow:inset 0 -1px 0 var(--vscode-widget-shadow);vertical-align:middle;padding:1px 3px}.monaco-icon-label{display:flex;overflow:hidden;text-overflow:ellipsis}.monaco-icon-label:before{background-size:16px;background-position:left center;background-repeat:no-repeat;padding-right:6px;width:16px;height:22px;line-height:inherit!important;display:inline-block;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:top;flex-shrink:0}.monaco-icon-label-container.disabled{color:var(--vscode-disabledForeground)}.monaco-icon-label>.monaco-icon-label-container{min-width:0;overflow:hidden;text-overflow:ellipsis;flex:1}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name{color:inherit;white-space:pre}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-name-container>.label-name>.label-separator{margin:0 2px;opacity:.5}.monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.7;margin-left:.5em;font-size:.9em;white-space:pre}.monaco-icon-label.nowrap>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{white-space:nowrap}.vs .monaco-icon-label>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{opacity:.95}.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.italic>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{font-style:italic}.monaco-icon-label.deprecated{text-decoration:line-through;opacity:.66}.monaco-icon-label.italic:after{font-style:italic}.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-name-container>.label-name,.monaco-icon-label.strikethrough>.monaco-icon-label-container>.monaco-icon-description-container>.label-description{text-decoration:line-through}.monaco-icon-label:after{opacity:.75;font-size:90%;font-weight:600;margin:auto 16px 0 5px;text-align:center}.monaco-list:focus .selected .monaco-icon-label,.monaco-list:focus .selected .monaco-icon-label:after{color:inherit!important}.monaco-list-row.focused.selected .label-description,.monaco-list-row.selected .label-description{opacity:.8}.monaco-editor .peekview-widget .head{box-sizing:border-box;display:flex;justify-content:space-between;flex-wrap:nowrap}.monaco-editor .peekview-widget .head .peekview-title{display:flex;align-items:baseline;font-size:13px;margin-left:20px;min-width:0;text-overflow:ellipsis;overflow:hidden}.monaco-editor .peekview-widget .head .peekview-title.clickable{cursor:pointer}.monaco-editor .peekview-widget .head .peekview-title .dirname:not(:empty){font-size:.9em;margin-left:.5em}.monaco-editor .peekview-widget .head .peekview-title .meta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.monaco-editor .peekview-widget .head .peekview-title .dirname,.monaco-editor .peekview-widget .head .peekview-title .filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.monaco-editor .peekview-widget .head .peekview-title .meta:not(:empty):before{content:"-";padding:0 .3em}.monaco-editor .peekview-widget .head .peekview-actions{flex:1;text-align:right;padding-right:2px}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar{display:inline-block}.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar,.monaco-editor .peekview-widget .head .peekview-actions>.monaco-action-bar>.actions-container{height:100%}.monaco-editor .peekview-widget>.body{border-top:1px solid;position:relative}.monaco-editor .peekview-widget .head .peekview-title .codicon{margin-right:4px;align-self:center}.monaco-editor .peekview-widget .monaco-list .monaco-list-row.focused .codicon{color:inherit!important}.monaco-editor .zone-widget{position:absolute;z-index:10}.monaco-editor .zone-widget .zone-widget-container{border-top-style:solid;border-bottom-style:solid;border-top-width:0;border-bottom-width:0;position:relative}.monaco-split-view2{position:relative;width:100%;height:100%}.monaco-split-view2>.sash-container{position:absolute;width:100%;height:100%;pointer-events:none}.monaco-split-view2>.sash-container>.monaco-sash{pointer-events:initial}.monaco-split-view2>.monaco-scrollable-element{width:100%;height:100%}.monaco-split-view2>.monaco-scrollable-element>.split-view-container{width:100%;height:100%;white-space:nowrap;position:relative}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view{white-space:initial;position:absolute}.monaco-split-view2>.monaco-scrollable-element>.split-view-container>.split-view-view:not(.visible){display:none}.monaco-split-view2.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view{width:100%}.monaco-split-view2.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view{height:100%}.monaco-split-view2.separator-border>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{content:" ";position:absolute;top:0;left:0;z-index:5;pointer-events:none;background-color:var(--separator-border)}.monaco-split-view2.separator-border.horizontal>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:100%;width:1px}.monaco-split-view2.separator-border.vertical>.monaco-scrollable-element>.split-view-container>.split-view-view:not(:first-child):before{height:1px;width:100%}.monaco-table{display:flex;flex-direction:column;position:relative;height:100%;width:100%;white-space:nowrap;overflow:hidden}.monaco-table>.monaco-split-view2{border-bottom:1px solid transparent}.monaco-table>.monaco-list{flex:1}.monaco-table-tr{display:flex;height:100%}.monaco-table-th{width:100%;height:100%;font-weight:700;overflow:hidden;text-overflow:ellipsis}.monaco-table-th,.monaco-table-td{box-sizing:border-box;flex-shrink:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{content:"";position:absolute;left:calc(var(--vscode-sash-size) / 2);width:0;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2,.monaco-workbench:not(.reduce-motion) .monaco-table>.monaco-split-view2 .monaco-sash.vertical:before{transition:border-color .2s ease-out}.monaco-tl-row{display:flex;height:100%;align-items:center;position:relative}.monaco-tl-row.disabled{cursor:default}.monaco-tl-indent{height:100%;position:absolute;top:0;left:16px;pointer-events:none}.hide-arrows .monaco-tl-indent{left:12px}.monaco-tl-indent>.indent-guide{display:inline-block;box-sizing:border-box;height:100%;border-left:1px solid transparent}.monaco-workbench:not(.reduce-motion) .monaco-tl-indent>.indent-guide{transition:border-color .1s linear}.monaco-tl-twistie,.monaco-tl-contents{height:100%}.monaco-tl-twistie{font-size:10px;text-align:right;padding-right:6px;flex-shrink:0;width:16px;display:flex!important;align-items:center;justify-content:center;transform:translate(3px)}.monaco-tl-contents{flex:1;overflow:hidden}.monaco-tl-twistie:before{border-radius:20px}.monaco-tl-twistie.collapsed:before{transform:rotate(-90deg)}.monaco-tl-twistie.codicon-tree-item-loading:before{animation:codicon-spin 1.25s steps(30) infinite}.monaco-tree-type-filter{position:absolute;top:0;display:flex;padding:3px;max-width:200px;z-index:100;margin:0 6px;border:1px solid var(--vscode-widget-border);border-bottom-left-radius:4px;border-bottom-right-radius:4px}.monaco-workbench:not(.reduce-motion) .monaco-tree-type-filter{transition:top .3s}.monaco-tree-type-filter.disabled{top:-40px!important}.monaco-tree-type-filter-grab{display:flex!important;align-items:center;justify-content:center;cursor:grab;margin-right:2px}.monaco-tree-type-filter-grab.grabbing{cursor:grabbing}.monaco-tree-type-filter-input{flex:1}.monaco-tree-type-filter-input .monaco-inputbox{height:23px}.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.input,.monaco-tree-type-filter-input .monaco-inputbox>.ibwrapper>.mirror{padding:2px 4px}.monaco-tree-type-filter-input .monaco-findInput>.controls{top:2px}.monaco-tree-type-filter-actionbar{margin-left:4px}.monaco-tree-type-filter-actionbar .monaco-action-bar .action-label{padding:2px}.monaco-editor .zone-widget .zone-widget-container.reference-zone-widget{border-top-width:1px;border-bottom-width:1px}.monaco-editor .reference-zone-widget .inline{display:inline-block;vertical-align:top}.monaco-editor .reference-zone-widget .messages{height:100%;width:100%;text-align:center;padding:3em 0}.monaco-editor .reference-zone-widget .ref-tree{line-height:23px;background-color:var(--vscode-peekViewResult-background);color:var(--vscode-peekViewResult-lineForeground)}.monaco-editor .reference-zone-widget .ref-tree .reference{text-overflow:ellipsis;overflow:hidden}.monaco-editor .reference-zone-widget .ref-tree .reference-file{display:inline-flex;width:100%;height:100%;color:var(--vscode-peekViewResult-fileForeground)}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file{color:inherit!important}.monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .monaco-list-rows>.monaco-list-row.selected:not(.highlighted){background-color:var(--vscode-peekViewResult-selectionBackground);color:var(--vscode-peekViewResult-selectionForeground)!important}.monaco-editor .reference-zone-widget .ref-tree .reference-file .count{margin-right:12px;margin-left:auto}.monaco-editor .reference-zone-widget .ref-tree .referenceMatch .highlight{background-color:var(--vscode-peekViewResult-matchHighlightBackground)}.monaco-editor .reference-zone-widget .preview .reference-decoration{background-color:var(--vscode-peekViewEditor-matchHighlightBackground);border:2px solid var(--vscode-peekViewEditor-matchHighlightBorder);box-sizing:border-box}.monaco-editor .reference-zone-widget .preview .monaco-editor .monaco-editor-background,.monaco-editor .reference-zone-widget .preview .monaco-editor .inputarea.ime-input{background-color:var(--vscode-peekViewEditor-background)}.monaco-editor .reference-zone-widget .preview .monaco-editor .margin{background-color:var(--vscode-peekViewEditorGutter-background)}.monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file,.monaco-editor.hc-light .reference-zone-widget .ref-tree .reference-file{font-weight:700}.monaco-editor.hc-black .reference-zone-widget .ref-tree .referenceMatch .highlight,.monaco-editor.hc-light .reference-zone-widget .ref-tree .referenceMatch .highlight{border:1px dotted var(--vscode-contrastActiveBorder, transparent);box-sizing:border-box}.monaco-count-badge{padding:3px 6px;border-radius:11px;font-size:11px;min-width:18px;min-height:18px;line-height:11px;font-weight:400;text-align:center;display:inline-block;box-sizing:border-box}.monaco-count-badge.long{padding:2px 3px;border-radius:2px;min-height:auto;line-height:normal}.monaco-editor .goto-definition-link{text-decoration:underline;cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .peekview-widget .head .peekview-title .severity-icon{display:inline-block;vertical-align:text-top;margin-right:4px}.monaco-editor .marker-widget{text-overflow:ellipsis;white-space:nowrap}.monaco-editor .marker-widget>.stale{opacity:.6;font-style:italic}.monaco-editor .marker-widget .title{display:inline-block;padding-right:5px}.monaco-editor .marker-widget .descriptioncontainer{position:absolute;white-space:pre;-moz-user-select:text;user-select:text;-webkit-user-select:text;padding:8px 12px 0 20px}.monaco-editor .marker-widget .descriptioncontainer .message{display:flex;flex-direction:column}.monaco-editor .marker-widget .descriptioncontainer .message .details{padding-left:6px}.monaco-editor .marker-widget .descriptioncontainer .message .source,.monaco-editor .marker-widget .descriptioncontainer .message span.code{opacity:.6}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link{opacity:.6;color:inherit}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:before{content:"("}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link:after{content:")"}.monaco-editor .marker-widget .descriptioncontainer .message a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground);color:var(--vscode-textLink-activeForeground)}.monaco-editor .marker-widget .descriptioncontainer .filename{cursor:pointer}.monaco-editor .zone-widget .codicon.codicon-error,.markers-panel .marker-icon.error,.markers-panel .marker-icon .codicon.codicon-error,.text-search-provider-messages .providerMessage .codicon.codicon-error,.extensions-viewlet>.extensions .codicon.codicon-error,.extension-editor .codicon.codicon-error,.preferences-editor .codicon.codicon-error{color:var(--vscode-problemsErrorIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-warning,.markers-panel .marker-icon.warning,.markers-panel .marker-icon .codicon.codicon-warning,.text-search-provider-messages .providerMessage .codicon.codicon-warning,.extensions-viewlet>.extensions .codicon.codicon-warning,.extension-editor .codicon.codicon-warning,.preferences-editor .codicon.codicon-warning{color:var(--vscode-problemsWarningIcon-foreground)}.monaco-editor .zone-widget .codicon.codicon-info,.markers-panel .marker-icon.info,.markers-panel .marker-icon .codicon.codicon-info,.text-search-provider-messages .providerMessage .codicon.codicon-info,.extensions-viewlet>.extensions .codicon.codicon-info,.extension-editor .codicon.codicon-info,.preferences-editor .codicon.codicon-info{color:var(--vscode-problemsInfoIcon-foreground)}.monaco-hover{cursor:default;position:absolute;overflow:hidden;z-index:50;-moz-user-select:text;user-select:text;-webkit-user-select:text;box-sizing:initial;animation:fadein .1s linear;line-height:1.5em}.monaco-hover.hidden{display:none}.monaco-hover a:hover:not(.disabled){cursor:pointer}.monaco-hover .hover-contents:not(.html-hover-contents){padding:4px 8px}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents){max-width:500px;word-wrap:break-word}.monaco-hover .markdown-hover>.hover-contents:not(.code-hover-contents) hr{min-width:100%}.monaco-hover p,.monaco-hover .code,.monaco-hover ul,.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{margin:8px 0}.monaco-hover h1,.monaco-hover h2,.monaco-hover h3,.monaco-hover h4,.monaco-hover h5,.monaco-hover h6{line-height:1.1}.monaco-hover code{font-family:var(--monaco-monospace-font)}.monaco-hover hr{box-sizing:border-box;border-left:0px;border-right:0px;margin:4px -8px -4px;height:1px}.monaco-hover p:first-child,.monaco-hover .code:first-child,.monaco-hover ul:first-child{margin-top:0}.monaco-hover p:last-child,.monaco-hover .code:last-child,.monaco-hover ul:last-child{margin-bottom:0}.monaco-hover ul,.monaco-hover ol{padding-left:20px}.monaco-hover li>p{margin-bottom:0}.monaco-hover li>ul{margin-top:0}.monaco-hover code{border-radius:3px;padding:0 .4em}.monaco-hover .monaco-tokenized-source{white-space:pre-wrap}.monaco-hover .hover-row.status-bar{font-size:12px;line-height:22px}.monaco-hover .hover-row.status-bar .info{font-style:italic;padding:0 8px}.monaco-hover .hover-row.status-bar .actions{display:flex;padding:0 8px}.monaco-hover .hover-row.status-bar .actions .action-container{margin-right:16px;cursor:pointer}.monaco-hover .hover-row.status-bar .actions .action-container .action .icon{padding-right:4px}.monaco-hover .markdown-hover .hover-contents .codicon{color:inherit;font-size:inherit;vertical-align:middle}.monaco-hover .hover-contents a.code-link:hover,.monaco-hover .hover-contents a.code-link{color:inherit}.monaco-hover .hover-contents a.code-link:before{content:"("}.monaco-hover .hover-contents a.code-link:after{content:")"}.monaco-hover .hover-contents a.code-link>span{text-decoration:underline;border-bottom:1px solid transparent;text-underline-position:under;color:var(--vscode-textLink-foreground)}.monaco-hover .hover-contents a.code-link>span:hover{color:var(--vscode-textLink-activeForeground)}.monaco-hover .markdown-hover .hover-contents:not(.code-hover-contents):not(.html-hover-contents) span{margin-bottom:4px;display:inline-block}.monaco-hover-content .action-container a{-webkit-user-select:none;-moz-user-select:none;user-select:none}.monaco-hover-content .action-container.disabled{pointer-events:none;opacity:.4;cursor:default}.monaco-editor .hoverHighlight{background-color:var(--vscode-editor-hoverHighlightBackground)}.monaco-editor .monaco-hover{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border);border-radius:3px}.monaco-editor .monaco-hover a{color:var(--vscode-textLink-foreground)}.monaco-editor .monaco-hover a:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .monaco-hover .hover-row .actions{background-color:var(--vscode-editorHoverWidget-statusBarBackground)}.monaco-editor .monaco-hover code{background-color:var(--vscode-textCodeBlock-background)}.monaco-editor.vs .valueSetReplacement{outline:solid 2px var(--vscode-editorBracketMatch-border)}.monaco-editor .linked-editing-decoration{background-color:var(--vscode-editor-linkedEditingBackground);min-width:1px}.monaco-editor .detected-link,.monaco-editor .detected-link-active{text-decoration:underline;text-underline-position:under}.monaco-editor .detected-link-active{cursor:pointer;color:var(--vscode-editorLink-activeForeground)!important}.monaco-editor .focused .selectionHighlight{background-color:var(--vscode-editor-selectionHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-selectionHighlightBorder)}.monaco-editor.hc-black .focused .selectionHighlight,.monaco-editor.hc-light .focused .selectionHighlight{border-style:dotted}.monaco-editor .wordHighlight{background-color:var(--vscode-editor-wordHighlightBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightBorder)}.monaco-editor.hc-black .wordHighlight,.monaco-editor.hc-light .wordHighlight{border-style:dotted}.monaco-editor .wordHighlightStrong{background-color:var(--vscode-editor-wordHighlightStrongBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightStrongBorder)}.monaco-editor.hc-black .wordHighlightStrong,.monaco-editor.hc-light .wordHighlightStrong{border-style:dotted}.monaco-editor .wordHighlightText{background-color:var(--vscode-editor-wordHighlightTextBackground);box-sizing:border-box;border:1px solid var(--vscode-editor-wordHighlightTextBorder)}.monaco-editor.hc-black .wordHighlightText,.monaco-editor.hc-light .wordHighlightText{border-style:dotted}.monaco-editor .parameter-hints-widget{z-index:39;display:flex;flex-direction:column;line-height:1.5em;cursor:default;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.hc-black .monaco-editor .parameter-hints-widget,.hc-light .monaco-editor .parameter-hints-widget{border-width:2px}.monaco-editor .parameter-hints-widget>.phwrapper{max-width:440px;display:flex;flex-direction:row}.monaco-editor .parameter-hints-widget.multiple{min-height:3.3em;padding:0}.monaco-editor .parameter-hints-widget.multiple .body:before{content:"";display:block;height:100%;position:absolute;opacity:.5;border-left:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget p,.monaco-editor .parameter-hints-widget ul{margin:8px 0}.monaco-editor .parameter-hints-widget .monaco-scrollable-element,.monaco-editor .parameter-hints-widget .body{display:flex;flex:1;flex-direction:column;min-height:100%}.monaco-editor .parameter-hints-widget .signature{padding:4px 5px;position:relative}.monaco-editor .parameter-hints-widget .signature.has-docs:after{content:"";display:block;position:absolute;left:0;width:100%;padding-top:4px;opacity:.5;border-bottom:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor .parameter-hints-widget .docs{padding:0 10px 0 5px;white-space:pre-wrap}.monaco-editor .parameter-hints-widget .docs.empty{display:none}.monaco-editor .parameter-hints-widget .docs a{color:var(--vscode-textLink-foreground)}.monaco-editor .parameter-hints-widget .docs a:hover{color:var(--vscode-textLink-activeForeground);cursor:pointer}.monaco-editor .parameter-hints-widget .docs .markdown-docs{white-space:initial}.monaco-editor .parameter-hints-widget .docs code{font-family:var(--monaco-monospace-font);border-radius:3px;padding:0 .4em;background-color:var(--vscode-textCodeBlock-background)}.monaco-editor .parameter-hints-widget .docs .monaco-tokenized-source,.monaco-editor .parameter-hints-widget .docs .code{white-space:pre-wrap}.monaco-editor .parameter-hints-widget .controls{display:none;flex-direction:column;align-items:center;min-width:22px;justify-content:flex-end}.monaco-editor .parameter-hints-widget.multiple .controls{display:flex;padding:0 2px}.monaco-editor .parameter-hints-widget.multiple .button{width:16px;height:16px;background-repeat:no-repeat;cursor:pointer}.monaco-editor .parameter-hints-widget .button.previous{bottom:24px}.monaco-editor .parameter-hints-widget .overloads{text-align:center;height:12px;line-height:12px;font-family:var(--monaco-monospace-font)}.monaco-editor .parameter-hints-widget .signature .parameter.active{color:var(--vscode-editorHoverWidget-highlightForeground);font-weight:700}.monaco-editor .parameter-hints-widget .documentation-parameter>.parameter{font-weight:700;margin-right:.5em}.monaco-editor .rename-box{z-index:100;color:inherit;border-radius:4px}.monaco-editor .rename-box.preview{padding:4px 4px 0}.monaco-editor .rename-box .rename-input{padding:3px;border-radius:2px}.monaco-editor .rename-box .rename-label{display:none;opacity:.8}.monaco-editor .rename-box.preview .rename-label{display:inherit}.monaco-editor .sticky-line{color:var(--vscode-editorLineNumber-foreground);overflow:hidden;white-space:nowrap;display:inline-block}.monaco-editor .sticky-line-number{text-align:right;float:left}.monaco-editor .sticky-line-root{background-color:inherit;overflow:hidden;white-space:nowrap;width:100%}.monaco-editor.hc-black .sticky-widget,.monaco-editor.hc-light .sticky-widget{border-bottom:1px solid var(--vscode-contrastBorder)}.monaco-editor .sticky-line-root:hover{background-color:var(--vscode-editorStickyScrollHover-background);cursor:pointer}.monaco-editor .sticky-widget{width:100%;box-shadow:var(--vscode-scrollbar-shadow) 0 3px 2px -2px;z-index:4;background-color:var(--vscode-editorStickyScroll-background)}.monaco-editor .sticky-widget.peek{background-color:var(--vscode-peekViewEditorStickyScroll-background)}.monaco-editor .unicode-highlight{border:1px solid var(--vscode-editorUnicodeHighlight-border);background-color:var(--vscode-editorUnicodeHighlight-background);box-sizing:border-box}.editor-banner{box-sizing:border-box;cursor:default;width:100%;font-size:12px;display:flex;overflow:visible;height:26px;background:var(--vscode-banner-background)}.editor-banner .icon-container{display:flex;flex-shrink:0;align-items:center;padding:0 6px 0 10px}.editor-banner .icon-container.custom-icon{background-repeat:no-repeat;background-position:center center;background-size:16px;width:16px;padding:0;margin:0 6px 0 10px}.editor-banner .message-container{display:flex;align-items:center;line-height:26px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.editor-banner .message-container p{-webkit-margin-before:0;margin-block-start:0;-webkit-margin-after:0;margin-block-end:0}.editor-banner .message-actions-container{flex-grow:1;flex-shrink:0;line-height:26px;margin:0 4px}.editor-banner .message-actions-container a.monaco-button{width:inherit;margin:2px 8px;padding:0 12px}.editor-banner .message-actions-container a{padding:3px;margin-left:12px;text-decoration:underline}.editor-banner .action-container{padding:0 10px 0 6px}.editor-banner{background-color:var(--vscode-banner-background)}.editor-banner,.editor-banner .action-container .codicon,.editor-banner .message-actions-container .monaco-link{color:var(--vscode-banner-foreground)}.editor-banner .icon-container .codicon{color:var(--vscode-banner-iconForeground)}.monaco-link{color:var(--vscode-textLink-foreground)}.monaco-link:hover{color:var(--vscode-textLink-activeForeground)}.monaco-editor .tokens-inspect-widget{z-index:50;-moz-user-select:text;user-select:text;-webkit-user-select:text;padding:10px;color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.monaco-editor.hc-black .tokens-inspect-widget,.monaco-editor.hc-light .tokens-inspect-widget{border-width:2px}.monaco-editor .tokens-inspect-widget .tokens-inspect-separator{height:1px;border:0;background-color:var(--vscode-editorHoverWidget-border)}.monaco-editor .tokens-inspect-widget .tm-token{font-family:var(--monaco-monospace-font)}.monaco-editor .tokens-inspect-widget .tm-token-length{font-weight:400;font-size:60%;float:right}.monaco-editor .tokens-inspect-widget .tm-metadata-table{width:100%}.monaco-editor .tokens-inspect-widget .tm-metadata-value{font-family:var(--monaco-monospace-font);text-align:right}.monaco-editor .tokens-inspect-widget .tm-token-type{font-family:var(--monaco-monospace-font)}.monaco-editor{font-family:-apple-system,BlinkMacSystemFont,Segoe WPC,Segoe UI,HelveticaNeue-Light,system-ui,Ubuntu,Droid Sans,sans-serif;--monaco-monospace-font: "SF Mono", Monaco, Menlo, Consolas, "Ubuntu Mono", "Liberation Mono", "DejaVu Sans Mono", "Courier New", monospace}.monaco-menu .monaco-action-bar.vertical .action-item .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-editor.vs-dark .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-black .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label,.monaco-editor.hc-light .monaco-menu .monaco-action-bar.vertical .action-menu-item:focus .action-label{stroke-width:1.2px}.monaco-hover p{margin:0}.monaco-aria-container{position:absolute!important;top:0;height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);clip-path:inset(50%)}.monaco-diff-editor .diffOverview{z-index:9}.monaco-diff-editor .diffOverview .diffViewport{z-index:10}.monaco-diff-editor.vs .diffOverview{background:rgba(0,0,0,.03)}.monaco-diff-editor.vs-dark .diffOverview{background:rgba(255,255,255,.01)}.monaco-scrollable-element.modified-in-monaco-diff-editor.vs .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.vs-dark .scrollbar{background:rgba(0,0,0,0)}.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-black .scrollbar,.monaco-scrollable-element.modified-in-monaco-diff-editor.hc-light .scrollbar{background:none}.monaco-scrollable-element.modified-in-monaco-diff-editor .slider{z-index:10}.modified-in-monaco-diff-editor .slider.active{background:rgba(171,171,171,.4)}.modified-in-monaco-diff-editor.hc-black .slider.active,.modified-in-monaco-diff-editor.hc-light .slider.active{background:none}.monaco-editor .insert-sign,.monaco-diff-editor .insert-sign,.monaco-editor .delete-sign,.monaco-diff-editor .delete-sign{font-size:11px!important;opacity:.7!important;display:flex!important;align-items:center}.monaco-editor.hc-black .insert-sign,.monaco-diff-editor.hc-black .insert-sign,.monaco-editor.hc-black .delete-sign,.monaco-diff-editor.hc-black .delete-sign,.monaco-editor.hc-light .insert-sign,.monaco-diff-editor.hc-light .insert-sign,.monaco-editor.hc-light .delete-sign,.monaco-diff-editor.hc-light .delete-sign{opacity:1}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .inline-added-margin-view-zone{text-align:right}.monaco-editor .arrow-revert-change{z-index:10;position:absolute}.monaco-editor .arrow-revert-change:hover{cursor:pointer}.monaco-editor .view-zones .view-lines .view-line span{display:inline-block}.monaco-editor .margin-view-zones .lightbulb-glyph:hover{cursor:pointer}.monaco-editor .char-insert,.monaco-diff-editor .char-insert{background-color:var(--vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-diff-editor .line-insert{background-color:var(--vscode-diffEditor-insertedLineBackground, --vscode-diffEditor-insertedTextBackground)}.monaco-editor .line-insert,.monaco-editor .char-insert{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-insertedTextBorder)}.monaco-editor.hc-black .line-insert,.monaco-editor.hc-light .line-insert,.monaco-editor.hc-black .char-insert,.monaco-editor.hc-light .char-insert{border-style:dashed}.monaco-editor .line-delete,.monaco-editor .char-delete{box-sizing:border-box;border:1px solid var(--vscode-diffEditor-removedTextBorder)}.monaco-editor.hc-black .line-delete,.monaco-editor.hc-light .line-delete,.monaco-editor.hc-black .char-delete,.monaco-editor.hc-light .char-delete{border-style:dashed}.monaco-editor .inline-added-margin-view-zone,.monaco-editor .gutter-insert,.monaco-diff-editor .gutter-insert{background-color:var(--vscode-diffEditorGutter-insertedLineBackground, --vscode-diffEditor-insertedLineBackground, --vscode-diffEditor-insertedTextBackground)}.monaco-editor .char-delete,.monaco-diff-editor .char-delete{background-color:var(--vscode-diffEditor-removedTextBackground)}.monaco-editor .line-delete,.monaco-diff-editor .line-delete{background-color:var(--vscode-diffEditor-removedLineBackground, --vscode-diffEditor-removedTextBackground)}.monaco-editor .inline-deleted-margin-view-zone,.monaco-editor .gutter-delete,.monaco-diff-editor .gutter-delete{background-color:var(--vscode-diffEditorGutter-removedLineBackground, --vscode-diffEditor-removedLineBackground, --vscode-diffEditor-removedTextBackground)}.monaco-diff-editor.side-by-side .editor.modified{box-shadow:-6px 0 5px -5px var(--vscode-scrollbar-shadow);border-left:1px solid var(--vscode-diffEditor-border)}.monaco-diff-editor .diffViewport{background:var(--vscode-scrollbarSlider-background)}.monaco-diff-editor .diffViewport:hover{background:var(--vscode-scrollbarSlider-hoverBackground)}.monaco-diff-editor .diffViewport:active{background:var(--vscode-scrollbarSlider-activeBackground)}.monaco-diff-editor .diff-review-line-number{text-align:right;display:inline-block;color:var(--vscode-editorLineNumber-foreground)}.monaco-diff-editor .diff-review{position:absolute;-moz-user-select:none;user-select:none;-webkit-user-select:none}.monaco-diff-editor .diff-review-summary{padding-left:10px}.monaco-diff-editor .diff-review-shadow{position:absolute;box-shadow:var(--vscode-scrollbar-shadow) 0 -6px 6px -6px inset}.monaco-diff-editor .diff-review-row{white-space:pre}.monaco-diff-editor .diff-review-table{display:table;min-width:100%}.monaco-diff-editor .diff-review-row{display:table-row;width:100%}.monaco-diff-editor .diff-review-spacer{display:inline-block;width:10px;vertical-align:middle}.monaco-diff-editor .diff-review-spacer>.codicon{font-size:9px!important}.monaco-diff-editor .diff-review-actions{display:inline-block;position:absolute;right:10px;top:2px}.monaco-diff-editor .diff-review-actions .action-label{width:16px;height:16px;margin:2px 0}.context-view{position:absolute}.context-view.fixed{all:initial;font-family:inherit;font-size:13px;position:fixed;color:inherit}.quick-input-widget{font-size:13px}.quick-input-widget .monaco-highlighted-label .highlight{color:#0066bf}.vs .quick-input-widget .monaco-list-row.focused .monaco-highlighted-label .highlight{color:#9dddff}.vs-dark .quick-input-widget .monaco-highlighted-label .highlight{color:#0097fb}.hc-black .quick-input-widget .monaco-highlighted-label .highlight{color:#f38518}.hc-light .quick-input-widget .monaco-highlighted-label .highlight{color:#0f4a85}.monaco-keybinding>.monaco-keybinding-key{background-color:#ddd6;border:solid 1px rgba(204,204,204,.4);border-bottom-color:#bbb6;box-shadow:inset 0 -1px #bbb6;color:#555}.hc-black .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px rgb(111,195,223);box-shadow:none;color:#fff}.hc-light .monaco-keybinding>.monaco-keybinding-key{background-color:transparent;border:solid 1px #0F4A85;box-shadow:none;color:#292929}.vs-dark .monaco-keybinding>.monaco-keybinding-key{background-color:#8080802b;border:solid 1px rgba(51,51,51,.6);border-bottom-color:#4449;box-shadow:inset 0 -1px #4449;color:#ccc}.monaco-progress-container{width:100%;height:5px;overflow:hidden}.monaco-progress-container .progress-bit{width:2%;height:5px;position:absolute;left:0;display:none}.monaco-progress-container.active .progress-bit{display:inherit}.monaco-progress-container.discrete .progress-bit{left:0;transition:width .1s linear}.monaco-progress-container.discrete.done .progress-bit{width:100%}.monaco-progress-container.infinite .progress-bit{animation-name:progress;animation-duration:4s;animation-iteration-count:infinite;transform:translateZ(0);animation-timing-function:linear}.monaco-progress-container.infinite.infinite-long-running .progress-bit{animation-timing-function:steps(100)}@keyframes progress{0%{transform:translate(0) scaleX(1)}50%{transform:translate(2500%) scaleX(3)}to{transform:translate(4900%) scaleX(1)}}.quick-input-widget{position:absolute;width:600px;z-index:2550;left:50%;margin-left:-300px;-webkit-app-region:no-drag;border-radius:6px}.quick-input-titlebar{display:flex;align-items:center;border-top-left-radius:5px;border-top-right-radius:5px}.quick-input-left-action-bar{display:flex;margin-left:4px;flex:1}.quick-input-title{padding:3px 0;text-align:center;text-overflow:ellipsis;overflow:hidden}.quick-input-right-action-bar{display:flex;margin-right:4px;flex:1}.quick-input-right-action-bar>.actions-container{justify-content:flex-end}.quick-input-titlebar .monaco-action-bar .action-label.codicon{background-position:center;background-repeat:no-repeat;padding:2px}.quick-input-description{margin:6px}.quick-input-header .quick-input-description{margin:4px 2px}.quick-input-header{display:flex;padding:8px 6px 6px}.quick-input-widget.hidden-input .quick-input-header{padding:0;margin-bottom:0}.quick-input-and-message{display:flex;flex-direction:column;flex-grow:1;min-width:0;position:relative}.quick-input-check-all{align-self:center;margin:0}.quick-input-filter{flex-grow:1;display:flex;position:relative}.quick-input-box{flex-grow:1}.quick-input-widget.show-checkboxes .quick-input-box,.quick-input-widget.show-checkboxes .quick-input-message{margin-left:5px}.quick-input-visible-count{position:absolute;left:-10000px}.quick-input-count{align-self:center;position:absolute;right:4px;display:flex;align-items:center}.quick-input-count .monaco-count-badge{vertical-align:middle;padding:2px 4px;border-radius:2px;min-height:auto;line-height:normal}.quick-input-action{margin-left:6px}.quick-input-action .monaco-text-button{font-size:11px;padding:0 6px;display:flex;height:25px;align-items:center}.quick-input-message{margin-top:-1px;padding:5px;overflow-wrap:break-word}.quick-input-message>.codicon{margin:0 .2em;vertical-align:text-bottom}.quick-input-message a{color:inherit}.quick-input-progress.monaco-progress-container{position:relative}.quick-input-progress.monaco-progress-container,.quick-input-progress.monaco-progress-container .progress-bit{height:2px}.quick-input-list{line-height:22px}.quick-input-widget.hidden-input .quick-input-list{margin-top:4px;padding-bottom:4px}.quick-input-list .monaco-list{overflow:hidden;max-height:440px;padding-bottom:5px}.quick-input-list .monaco-scrollable-element{padding:0 5px}.quick-input-list .quick-input-list-entry{box-sizing:border-box;overflow:hidden;display:flex;height:100%;padding:0 6px}.quick-input-list .quick-input-list-entry.quick-input-list-separator-border{border-top-width:1px;border-top-style:solid}.quick-input-list .monaco-list-row{border-radius:3px}.quick-input-list .monaco-list-row[data-index="0"] .quick-input-list-entry.quick-input-list-separator-border{border-top-style:none}.quick-input-list .quick-input-list-label{overflow:hidden;display:flex;height:100%;flex:1}.quick-input-list .quick-input-list-checkbox{align-self:center;margin:0}.quick-input-list .quick-input-list-rows{overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;height:100%;flex:1;margin-left:5px}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-rows{margin-left:10px}.quick-input-widget .quick-input-list .quick-input-list-checkbox{display:none}.quick-input-widget.show-checkboxes .quick-input-list .quick-input-list-checkbox{display:inline}.quick-input-list .quick-input-list-rows>.quick-input-list-row{display:flex;align-items:center}.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label,.quick-input-list .quick-input-list-rows>.quick-input-list-row .monaco-icon-label .monaco-icon-label-container>.monaco-icon-name-container{flex:1}.quick-input-list .quick-input-list-rows>.quick-input-list-row .codicon[class*=codicon-]{vertical-align:text-bottom}.quick-input-list .quick-input-list-rows .monaco-highlighted-label>span{opacity:1}.quick-input-list .quick-input-list-entry .quick-input-list-entry-keybinding{margin-right:8px}.quick-input-list .quick-input-list-label-meta{opacity:.7;line-height:normal;text-overflow:ellipsis;overflow:hidden}.quick-input-list .monaco-highlighted-label .highlight{font-weight:700}.quick-input-list .quick-input-list-entry .quick-input-list-separator{margin-right:4px}.quick-input-list .quick-input-list-entry-action-bar{display:flex;flex:0;overflow:visible}.quick-input-list .quick-input-list-entry-action-bar .action-label{display:none}.quick-input-list .quick-input-list-entry-action-bar .action-label.codicon{margin-right:4px;padding:0 2px 2px}.quick-input-list .quick-input-list-entry-action-bar{margin-top:1px;margin-right:4px}.quick-input-list .quick-input-list-entry .quick-input-list-entry-action-bar .action-label.always-visible,.quick-input-list .quick-input-list-entry:hover .quick-input-list-entry-action-bar .action-label,.quick-input-list .monaco-list-row.focused .quick-input-list-entry-action-bar .action-label{display:flex}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key,.quick-input-list .monaco-list-row.focused .quick-input-list-entry .quick-input-list-separator{color:inherit}.quick-input-list .monaco-list-row.focused .monaco-keybinding-key{background:none}.colorpicker-widget{height:190px;-moz-user-select:none;user-select:none;-webkit-user-select:none}.colorpicker-color-decoration,.hc-light .colorpicker-color-decoration{border:solid .1em #000;box-sizing:border-box;margin:.1em .2em 0;width:.8em;height:.8em;line-height:.8em;display:inline-block;cursor:pointer}.hc-black .colorpicker-color-decoration,.vs-dark .colorpicker-color-decoration{border:solid .1em #eee}.colorpicker-header{display:flex;height:24px;position:relative;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-header .picked-color{width:240px;display:flex;align-items:center;justify-content:center;line-height:24px;cursor:pointer;color:#fff;flex:1}.colorpicker-header .picked-color .codicon{color:inherit;font-size:14px;position:absolute;left:8px}.colorpicker-header .picked-color.light{color:#000}.colorpicker-header .original-color{width:74px;z-index:inherit;cursor:pointer}.standalone-colorpicker{color:var(--vscode-editorHoverWidget-foreground);background-color:var(--vscode-editorHoverWidget-background);border:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header.standalone-colorpicker{border-bottom:none}.colorpicker-header .close-button{cursor:pointer;background-color:var(--vscode-editorHoverWidget-background);border-left:1px solid var(--vscode-editorHoverWidget-border)}.colorpicker-header .close-button-inner-div{width:100%;height:100%;text-align:center}.colorpicker-header .close-button-inner-div:hover{background-color:var(--vscode-toolbar-hoverBackground)}.colorpicker-header .close-icon{padding:3px}.colorpicker-body{display:flex;padding:8px;position:relative}.colorpicker-body .saturation-wrap{overflow:hidden;height:150px;position:relative;min-width:220px;flex:1}.colorpicker-body .saturation-box{height:150px;position:absolute}.colorpicker-body .saturation-selection{width:9px;height:9px;margin:-5px 0 0 -5px;border:1px solid rgb(255,255,255);border-radius:100%;box-shadow:0 0 2px #000c;position:absolute}.colorpicker-body .strip{width:25px;height:150px}.colorpicker-body .standalone-strip{width:25px;height:122px}.colorpicker-body .hue-strip{position:relative;margin-left:8px;cursor:grab;background:linear-gradient(to bottom,#ff0000 0%,#ffff00 17%,#00ff00 33%,#00ffff 50%,#0000ff 67%,#ff00ff 83%,#ff0000 100%)}.colorpicker-body .opacity-strip{position:relative;margin-left:8px;cursor:grab;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAZdEVYdFNvZnR3YXJlAHBhaW50Lm5ldCA0LjAuMTZEaa/1AAAAHUlEQVQYV2PYvXu3JAi7uLiAMaYAjAGTQBPYLQkAa/0Zef3qRswAAAAASUVORK5CYII=);background-size:9px 9px;image-rendering:pixelated}.colorpicker-body .strip.grabbing{cursor:grabbing}.colorpicker-body .slider{position:absolute;top:0;left:-2px;width:calc(100% + 4px);height:4px;box-sizing:border-box;border:1px solid rgba(255,255,255,.71);box-shadow:0 0 1px #000000d9}.colorpicker-body .strip .overlay{height:150px;pointer-events:none}.colorpicker-body .standalone-strip .standalone-overlay{height:122px;pointer-events:none}.standalone-colorpicker-body{display:block;border:1px solid transparent;border-bottom:1px solid var(--vscode-editorHoverWidget-border);overflow:hidden}.colorpicker-body .insert-button{height:20px;width:58px;position:absolute;right:8px;bottom:8px;background:var(--vscode-button-background);color:var(--vscode-button-foreground);border-radius:2px;border:none;cursor:pointer}.colorpicker-body .insert-button:hover{background:var(--vscode-button-hoverBackground)}.monaco-editor .accessibilityHelpWidget{padding:10px;vertical-align:middle;overflow:scroll;color:var(--vscode-editorWidget-foreground);background-color:var(--vscode-editorWidget-background);box-shadow:0 2px 8px var(--vscode-widget-shadow);border:2px solid var(--vscode-contrastBorder)}.monaco-editor .iPadShowKeyboard{width:58px;min-width:0;height:36px;min-height:0;margin:0;padding:0;position:absolute;resize:none;overflow:hidden;background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjNDI0MjQyIi8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #F6F6F6;border-radius:4px}.monaco-editor.vs-dark .iPadShowKeyboard{background:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCA1MyAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwKSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNDguMDM2NCA0LjAxMDQySDQuMDA3NzlMNC4wMDc3OSAzMi4wMjg2SDQ4LjAzNjRWNC4wMTA0MlpNNC4wMDc3OSAwLjAwNzgxMjVDMS43OTcyMSAwLjAwNzgxMjUgMC4wMDUxODc5OSAxLjc5OTg0IDAuMDA1MTg3OTkgNC4wMTA0MlYzMi4wMjg2QzAuMDA1MTg3OTkgMzQuMjM5MiAxLjc5NzIxIDM2LjAzMTIgNC4wMDc3OSAzNi4wMzEySDQ4LjAzNjRDNTAuMjQ3IDM2LjAzMTIgNTIuMDM5IDM0LjIzOTIgNTIuMDM5IDMyLjAyODZWNC4wMTA0MkM1Mi4wMzkgMS43OTk4NCA1MC4yNDcgMC4wMDc4MTI1IDQ4LjAzNjQgMC4wMDc4MTI1SDQuMDA3NzlaTTguMDEwNDIgOC4wMTMwMkgxMi4wMTNWMTIuMDE1Nkg4LjAxMDQyVjguMDEzMDJaTTIwLjAxODIgOC4wMTMwMkgxNi4wMTU2VjEyLjAxNTZIMjAuMDE4MlY4LjAxMzAyWk0yNC4wMjA4IDguMDEzMDJIMjguMDIzNFYxMi4wMTU2SDI0LjAyMDhWOC4wMTMwMlpNMzYuMDI4NiA4LjAxMzAySDMyLjAyNlYxMi4wMTU2SDM2LjAyODZWOC4wMTMwMlpNNDAuMDMxMiA4LjAxMzAySDQ0LjAzMzlWMTIuMDE1Nkg0MC4wMzEyVjguMDEzMDJaTTE2LjAxNTYgMTYuMDE4Mkg4LjAxMDQyVjIwLjAyMDhIMTYuMDE1NlYxNi4wMTgyWk0yMC4wMTgyIDE2LjAxODJIMjQuMDIwOFYyMC4wMjA4SDIwLjAxODJWMTYuMDE4MlpNMzIuMDI2IDE2LjAxODJIMjguMDIzNFYyMC4wMjA4SDMyLjAyNlYxNi4wMTgyWk00NC4wMzM5IDE2LjAxODJWMjAuMDIwOEgzNi4wMjg2VjE2LjAxODJINDQuMDMzOVpNMTIuMDEzIDI0LjAyMzRIOC4wMTA0MlYyOC4wMjZIMTIuMDEzVjI0LjAyMzRaTTE2LjAxNTYgMjQuMDIzNEgzNi4wMjg2VjI4LjAyNkgxNi4wMTU2VjI0LjAyMzRaTTQ0LjAzMzkgMjQuMDIzNEg0MC4wMzEyVjI4LjAyNkg0NC4wMzM5VjI0LjAyMzRaIiBmaWxsPSIjQzVDNUM1Ii8+CjwvZz4KPGRlZnM+CjxjbGlwUGF0aCBpZD0iY2xpcDAiPgo8cmVjdCB3aWR0aD0iNTMiIGhlaWdodD0iMzYiIGZpbGw9IndoaXRlIi8+CjwvY2xpcFBhdGg+CjwvZGVmcz4KPC9zdmc+Cg==) center center no-repeat;border:4px solid #252526} diff --git a/static/assets/app.js b/static/assets/app.js index 9966bd36d83..d5b9db789ff 100644 --- a/static/assets/app.js +++ b/static/assets/app.js @@ -1,96 +1,100 @@ -import{b as kne}from"./chunk-JY7ZYBHV.js";import{a as Zh}from"./chunk-BZUL2CAN.js";import{$ as gi,$a as Ie,$b as Me,$c as AP,$d as KP,$e as nO,$f as DO,$g as Dre,$h as uF,$i as kF,$j as WF,$k as ry,$l as Ms,A as ci,Aa as Zi,Ab as qi,Ac as Ar,Ad as X3,Ae as zi,Af as pO,Ag as zO,Ah as ga,Ai as yl,Aj as Pi,Ak as ZF,Al as _z,B as Je,Ba as Kn,Bb as of,Bc as SP,Bd as lf,Be as ki,Bf as g_,Bg as Ym,Bh as iF,Bi as uk,Bj as V_,Bk as Zre,Bl as xu,C as M3,Ca as Mm,Cb as z3,Cc as lre,Cd as Q3,Ce as Jt,Cf as gl,Cg as BO,Ch as yu,Ci as hk,Cj as Sl,Ck as Sk,Cl as xa,D as W9,Da as aP,Db as mP,Dc as q3,Dd as Ot,De as Vc,Df as b_,Dg as HO,Dh as ig,Di as _F,Dj as Sf,Dk as Jre,Dl as ug,E as ei,Ea as lP,Eb as B3,Ec as cre,Ed as Hr,Ee as Do,Ef as mO,Eg as Tre,Eh as Nre,Ei as yF,Ej as Kre,Ek as ty,El as cne,F as V9,Fa as cP,Fb as H3,Fc as kP,Fd as r_,Fe as hf,Ff as gO,Fg as w_,Fh as wf,Fi as wF,Fj as kl,Fk as JF,Fl as yz,G as q9,Ga as O3,Gb as zc,Gc as dre,Gd as mre,Ge as ml,Gf as bO,Gg as Ire,Gh as Ri,Gi as O_,Gj as q_,Gk as ez,Gl as dne,H as K9,Ha as bi,Hb as gP,Hc as ul,Hd as jc,He as u_,Hf as vO,Hg as Xm,Hh as Mo,Hi as Lr,Hj as vk,Hk as ene,Hl as une,I as Bv,Ia as cu,Ib as bP,Ic as EP,Id as gre,Ie as aa,If as jm,Ig as pa,Ih as rF,Ii as fk,Ij as OF,Ik as kk,Il as wz,J as Hv,Ja as xs,Jb as vP,Jc as Qv,Jd as Z3,Je as ui,Jf as _O,Jg as UO,Jh as ba,Ji as og,Jj as K_,Jk as Ek,Jl as xz,K as N3,Ka as Te,Kb as _P,Kc as Zv,Kd as mu,Ke as tO,Kf as Wm,Kg as Is,Kh as vl,Ki as F_,Kj as _k,Kk as Tk,Kl as Cz,L as Am,La as du,Lb as $v,Lc as Jv,Ld as n_,Le as h_,Lf as ha,Lg as Qm,Lh as $c,Li as va,Lj as FF,Lk as tne,Ll as Sz,M as $9,Ma as Ae,Mb as yP,Mc as ure,Md as BP,Me as f_,Mf as bl,Mg as jO,Mh as Kt,Mi as z_,Mj as $re,Mk as tz,Ml as hne,N as Bt,Na as dP,Nb as Gv,Nc as fu,Nd as o_,Ne as Mn,Nf as yO,Ng as WO,Nh as jr,Ni as Yn,Nj as zF,Nk as iz,Nl as fne,O as Nc,Oa as un,Ob as U3,Oc as K3,Od as bre,Oe as iO,Of as vu,Og as VO,Oh as nF,Oi as B_,Oj as yk,Ok as rz,Ol as pne,P as G9,Pa as Br,Pb as Ni,Pc as Uc,Pd as F,Pe as jt,Pf as wO,Pg as vf,Ph as I_,Pi as wu,Pj as BF,Pk as ine,Pl as mne,Q as zr,Qa as uP,Qb as fe,Qc as hre,Qd as ti,Qe as rO,Qf as tk,Qg as qO,Qh as oF,Qi as xF,Qj as HF,Qk as iy,Ql as gne,R as Rc,Ra as Kv,Rb as ht,Rc as sf,Rd as cf,Re as ff,Rf as xO,Rg as sk,Rh as sF,Ri as nn,Rj as Gre,Rk as nz,Rl as bne,S as En,Sa as Ht,Sb as it,Sc as Om,Sd as s_,Se as ek,Sf as CO,Sg as _f,Sh as Rre,Si as wl,Sj as on,Sk as oz,Sl as vne,T as Y9,Ta as ar,Tb as wt,Tc as TP,Td as HP,Te as Gn,Tf as SO,Tg as fn,Th as aF,Ti as H_,Tj as wk,Tk as sz,Tl as _ne,U as Pc,Ua as uu,Ub as wP,Uc as Fm,Ud as sa,Ue as la,Uf as kO,Ug as KO,Uh as lF,Ui as CF,Uj as ya,Uk as rne,Ul as yne,V as Uv,Va as Io,Vb as are,Vc as IP,Vd as df,Ve as bu,Vf as EO,Vg as $O,Vh as cF,Vi as SF,Vj as sg,Vk as Ik,Vl as wne,W as Lm,Wa as Ke,Wb as Jr,Wc as zm,Wd as UP,We as qc,Wf as TO,Wg as GO,Wh as A_,Wi as Bre,Wj as No,Wk as az,Wl as xne,X as X9,Xa as Qr,Xb as dl,Xc as fre,Xd as jP,Xe as Ts,Xf as IO,Xg as Are,Xh as dF,Xi as lr,Xj as xk,Xk as nne,Xl as Cne,Y as jv,Ya as Ut,Yb as Ao,Yc as ks,Yd as WP,Ye as Hm,Yf as ik,Yg as YO,Yh as xf,Yi as Ds,Yj as UF,Yk as cg,Yl as Sne,Z as Q9,Za as ai,Zb as j3,Zc as pu,Zd as VP,Ze as vt,Zf as AO,Zg as Lre,Zh as ck,Zi as ii,Zj as jF,Zk as Ak,Zl as Cu,_ as Tn,_a as In,_b as xP,_c as e_,_d as qP,_e as ca,_f as LO,_g as XO,_h as L_,_i as _a,_j as pn,_k as lz,_l as Ca,a as b,aa as ll,ab as di,ac as Ss,ad as $3,ae as gu,af as yre,ag as MO,ah as ak,ai as hF,aj as Hre,ak as $_,al as Lk,am as Ns,b as He,ba as R3,bb as Di,bc as Zo,bd as hn,be as fl,bf as oO,bg as NO,bh as yf,bi as Pre,bj as xl,bk as El,bl as Dk,c as ft,ca as sre,cb as Xo,cc as Pm,cd as G3,ce as a_,cf as pf,cg as RO,ch as mt,ci as tr,cj as pk,ck as VF,cl as Mk,d as Xt,da as Wv,db as Cr,dc as na,dd as LP,de as l_,df as wre,dg as PO,dh as Ur,di as is,dj as EF,dk as qF,dl as cz,e as Yo,ea as Z9,eb as ra,ec as Jo,ed as Ki,ee as $P,ef as sO,eg as OO,eh as x_,ei as D_,ej as TF,ek as KF,el as dz,f as Pv,fa as Vv,fb as Qo,fc as Si,fd as DP,fe as pl,ff as xre,fg as fa,fh as Mre,fi as Ore,fj as mk,fk as wa,fl as uz,g as ko,ga as J9,gb as Cs,gc as Ji,gd as MP,ge as GP,gf as mf,gg as Vm,gh as lk,gi as fF,gj as IF,gk as ag,gl as one,h as Im,ha as eP,hb as Nm,hc as Ln,hd as t_,he as vre,hf as Cre,hg as qm,hh as QO,hi as Fre,hj as U_,hk as $F,hl as hz,i as qt,ia as ef,ib as tf,ic as Bc,id as NP,ie as YP,if as aO,ig as Km,ih as ZO,ii as dk,ij as Yc,ik as G_,il as sne,j as Ov,ja as qv,jb as Fc,jc as Hc,jd as RP,je as _re,jf as Sre,jg as $m,jh as JO,ji as zre,jj as j_,jk as Y_,jl as ny,k as H9,ka as tP,kb as pt,kc as Yv,kd as PP,ke as XP,kf as lO,kg as FO,kh as As,ki as _l,kj as AF,kk as GF,kl as fz,l as kn,la as yt,lb as Zr,lc as Xv,ld as OP,le as J3,lf as kre,lg as v_,lh as Zm,li as M_,lj as Ure,lk as Ck,ll as dg,m as Jh,ma as Ir,mb as _t,mc as Fi,md as mi,me as c_,mf as cO,mg as gf,mh as eF,mi as pF,mj as W_,mk as Yre,ml as pz,n as Fv,na as Eo,nb as An,nc as de,nd as FP,ne as QP,nf as Ere,ng as rk,nh as C_,ni as Cf,nj as LF,nk as kf,nl as Nk,o as ji,oa as Dm,ob as _i,oc as W3,od as pre,oe as Dn,of as da,og as Gm,oh as ma,oi as N_,oj as DF,ok as lg,ol as ane,p as D3,pa as qn,pb as Dt,pc as oa,pd as i_,pe as ZP,pf as je,pg as Nn,ph as S_,pi as R_,pj as MF,pk as X_,pl as mz,q as ri,qa as iP,qb as Vi,qc as $n,qd as zP,qe as uf,qf as ze,qg as __,qh as Jm,qi as mF,qj as NF,qk as Q_,ql as lne,r as le,ra as Lt,rb as rf,rc as We,rd as Mt,re as JP,rf as dO,rg as tn,rh as eg,ri as rg,rj as jre,rk as Z_,rl as Ef,s as ce,sa as To,sb as F3,sc as ee,sd as Sr,se as eO,sf as Um,sg as _u,sh as k_,si as gF,sj as gk,sk as YF,sl as Rk,t as Wi,ta as rP,tb as hP,tc as V3,td as er,te as Bm,tf as uO,tg as nk,th as tF,ti as Ls,tj as Cl,tk as J_,tl as oy,u as U9,ua as P3,ub as nf,uc as CP,ud as es,ue as Lo,uf as ts,ug as ok,uh as Kc,ui as ng,uj as bk,uk as XF,ul as gz,v as ke,va as nP,vb as cl,vc as Ue,vd as en,ve as $i,vf as ua,vg as br,vh as E_,vi as bF,vj as RF,vk as Xre,vl as bz,w as zv,wa as Oc,wb as fP,wc as lt,wd as hl,we as Wc,wf as p_,wg as Ei,wh as tg,wi as P_,wj as Wre,wk as QF,wl as Pk,x as j9,xa as Qt,xb as pP,xc as B,xd as gr,xe as d_,xf as m_,xg as bf,xh as Se,xi as vF,xj as Vre,xk as Qre,xl as vz,y as mr,ya as oP,yb as hu,yc as et,yd as Y3,ye as Es,yf as hO,yg as rn,yh as Pt,yi as Gc,yj as PF,yk as Tl,yl as Ok,z as al,za as sP,zb as Rm,zc as Qe,zd as af,ze as st,zf as fO,zg as y_,zh as T_,zi as rs,zj as qre,zk as ey,zl as sy}from"./chunk-23JDWT7I.js";import{a as ue,b as xt,c as lu,d as ao,e as N,f as Qi,g as Xh,h as Vn,i as Qh,j as xr,k as B9}from"./chunk-EP6THQJ3.js";var DB=Qi((qSe,LB)=>{"use strict";var Ly=Object.prototype.hasOwnProperty,AB=Object.prototype.toString,CB=Object.defineProperty,SB=Object.getOwnPropertyDescriptor,kB=function(e){return typeof Array.isArray=="function"?Array.isArray(e):AB.call(e)==="[object Array]"},EB=function(e){if(!e||AB.call(e)!=="[object Object]")return!1;var t=Ly.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&Ly.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!r)return!1;var n;for(n in e);return typeof n=="undefined"||Ly.call(e,n)},TB=function(e,t){CB&&t.name==="__proto__"?CB(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},IB=function(e,t){if(t==="__proto__")if(Ly.call(e,t)){if(SB)return SB(e,t).value}else return;return e[t]};LB.exports=function i(){var e,t,r,n,o,s,a=arguments[0],l=1,c=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l{});var hq=N(()=>{uq()});var Hme,Ume,yx,uT,wx,Zl,hT,fT,pT,mT,gT=N(()=>{Io();Es();ll();hq();lt();Ar();ti();He();wt();Hme=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ume=function(i,e){return function(t,r){e(t,r,i)}},yx=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},wx=new ht("selectionAnchorSet",!1),Zl=uT=class{static get(e){return e.getContribution(uT.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=wx.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(Qe.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new $i().appendText(b("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),ar(b("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(Qe.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};Zl.ID="editor.contrib.selectionAnchorController";Zl=uT=Hme([Ume(1,it)],Zl);hT=class extends de{constructor(){super({id:"editor.action.setSelectionAnchor",label:b("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2080),weight:100}})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.setSelectionAnchor()})}},fT=class extends de{constructor(){super({id:"editor.action.goToSelectionAnchor",label:b("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:wx})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.goToSelectionAnchor()})}},pT=class extends de{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:b("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:wx,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2089),weight:100}})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.selectFromAnchorToCursor()})}},mT=class extends de{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:b("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:wx,kbOpts:{kbExpr:F.editorTextFocus,primary:9,weight:100}})}run(e,t){var r;return yx(this,void 0,void 0,function*(){(r=Zl.get(t))===null||r===void 0||r.cancelSelectionAnchor()})}};Ue(Zl.ID,Zl,4);ee(hT);ee(fT);ee(pT);ee(mT)});var fq=N(()=>{});var pq=N(()=>{fq()});var jme,bT,vT,_T,yT,Ba,wT=N(()=>{jt();ke();pq();lt();di();et();Ar();ti();qc();Ur();He();Ji();tn();rn();jme=je("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},b("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),bT=class extends de{constructor(){super({id:"editor.action.jumpToBracket",label:b("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:3165,weight:100}})}run(e,t){var r;(r=Ba.get(t))===null||r===void 0||r.jumpToBracket()}},vT=class extends de{constructor(){super({id:"editor.action.selectToBracket",label:b("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,r){var n;let o=!0;r&&r.selectBrackets===!1&&(o=!1),(n=Ba.get(t))===null||n===void 0||n.selectToBracket(o)}},_T=class extends de{constructor(){super({id:"editor.action.removeBrackets",label:b("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:2561,weight:100}})}run(e,t){var r;(r=Ba.get(t))===null||r===void 0||r.removeBrackets(this.id)}},yT=class{constructor(e,t,r){this.position=e,this.brackets=t,this.options=r}},Ba=class i extends ce{static get(e){return e.getContribution(i.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new ui(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(70),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(70)&&(this._matchBrackets=this._editor.getOption(70),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;let e=this._editor.getModel(),t=this._editor.getSelections().map(r=>{let n=r.getStartPosition(),o=e.bracketPairs.matchBracket(n),s=null;if(o)o[0].containsPosition(n)&&!o[1].containsPosition(n)?s=o[1].getStartPosition():o[1].containsPosition(n)&&(s=o[0].getStartPosition());else{let a=e.bracketPairs.findEnclosingBrackets(n);if(a)s=a[1].getStartPosition();else{let l=e.bracketPairs.findNextBracket(n);l&&l.range&&(s=l.range.getStartPosition())}}return s?new Qe(s.lineNumber,s.column,s.lineNumber,s.column):new Qe(n.lineNumber,n.column,n.lineNumber,n.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),r=[];this._editor.getSelections().forEach(n=>{let o=n.getStartPosition(),s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){let c=t.bracketPairs.findNextBracket(o);c&&c.range&&(s=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(s){s.sort(B.compareRangesUsingStarts);let[c,d]=s;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){let u=a;a=l,l=u}}a&&l&&r.push(new Qe(a.lineNumber,a.column,l.lineNumber,l.column))}),r.length>0&&(this._editor.setSelections(r),this._editor.revealRange(r[0]))}removeBrackets(e){if(!this._editor.hasModel())return;let t=this._editor.getModel();this._editor.getSelections().forEach(r=>{let n=r.getPosition(),o=t.bracketPairs.matchBracket(n);o||(o=t.bracketPairs.findEnclosingBrackets(n)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(let r of this._lastBracketsData){let n=r.brackets;n&&(e[t++]={range:n[0],options:r.options},e[t++]={range:n[1],options:r.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}let e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}let t=this._editor.getModel(),r=t.getVersionId(),n=[];this._lastVersionId===r&&(n=this._lastBracketsData);let o=[],s=0;for(let u=0,h=e.length;u1&&o.sort(Ie.compare);let a=[],l=0,c=0,d=n.length;for(let u=0,h=o.length;u{et();Ar();xx=class{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let r=this._selection.startLineNumber,n=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&n===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(r)))if(this._isMovingLeft){let s=new B(r,n-1,r,n),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new B(r,o,r,o),a)}else{let s=new B(r,o,r,o+1),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new B(r,n,r,n),a)}}computeCursorState(e,t){return this._isMovingLeft?new Qe(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new Qe(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}});var Cx,xT,CT,ST=N(()=>{lt();ti();mq();He();Cx=class extends de{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let r=[],n=t.getSelections();for(let o of n)r.push(new xx(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop()}},xT=class extends Cx{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:b("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:F.writable})}},CT=class extends Cx{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:b("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:F.writable})}};ee(xT);ee(CT)});var kT,ET=N(()=>{lt();Zv();ure();et();ti();He();kT=class extends de{constructor(){super({id:"editor.action.transposeLetters",label:b("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let r=t.getModel(),n=[],o=t.getSelections();for(let s of o){if(!s.isEmpty())continue;let a=s.startLineNumber,l=s.startColumn,c=r.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;let d=l===c?s.getPosition():Jv.rightPosition(r,s.getPosition().lineNumber,s.getPosition().column),u=Jv.leftPosition(r,d),h=Jv.leftPosition(r,u),f=r.getValueInRange(B.fromPositions(h,u)),m=r.getValueInRange(B.fromPositions(u,d)),g=B.fromPositions(h,d);n.push(new ul(g,m+f))}n.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop())}};ee(kT)});function AT(i){return i.register(),i}function bq(i,e){i&&(i.addImplementation(1e4,"code-editor",(t,r)=>{let n=t.get(ai).getFocusedCodeEditor();if(n&&n.hasTextFocus()){let o=n.getOption(36),s=n.getSelection();return s&&s.isEmpty()&&!o||document.execCommand(e),!0}return!1}),i.addImplementation(0,"generic-dom",(t,r)=>(document.execCommand(e),!0)))}var Wme,qu,Vme,gq,qme,Kme,$me,TT,IT,LT=N(()=>{K9();Tn();JO();lt();In();ti();He();Ji();Zm();wt();Wme=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},qu="9_cutcopypaste",Vme=Pc||document.queryCommandSupported("cut"),gq=Pc||document.queryCommandSupported("copy"),qme=typeof navigator.clipboard=="undefined"||q9?document.queryCommandSupported("paste"):!0;Kme=Vme?AT(new Xv({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:Pc?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:Me.MenubarEditMenu,group:"2_ccp",title:b({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:Me.EditorContext,group:qu,title:b("actions.clipboard.cutLabel","Cut"),when:F.writable,order:1},{menuId:Me.CommandPalette,group:"",title:b("actions.clipboard.cutLabel","Cut"),order:1},{menuId:Me.SimpleEditorContext,group:qu,title:b("actions.clipboard.cutLabel","Cut"),when:F.writable,order:1}]})):void 0,$me=gq?AT(new Xv({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:Pc?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:Me.MenubarEditMenu,group:"2_ccp",title:b({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:Me.EditorContext,group:qu,title:b("actions.clipboard.copyLabel","Copy"),order:2},{menuId:Me.CommandPalette,group:"",title:b("actions.clipboard.copyLabel","Copy"),order:1},{menuId:Me.SimpleEditorContext,group:qu,title:b("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;Zo.appendMenuItem(Me.MenubarEditMenu,{submenu:Me.MenubarCopy,title:{value:b("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});Zo.appendMenuItem(Me.EditorContext,{submenu:Me.EditorContextCopy,title:{value:b("copy as","Copy As"),original:"Copy As"},group:qu,order:3});Zo.appendMenuItem(Me.EditorContext,{submenu:Me.EditorContextShare,title:{value:b("share","Share"),original:"Share"},group:"11_share",order:-1,when:fe.and(fe.notEquals("resourceScheme","output"),F.editorTextFocus)});Zo.appendMenuItem(Me.EditorTitleContext,{submenu:Me.EditorTitleContextShare,title:{value:b("share","Share"),original:"Share"},group:"11_share",order:-1});Zo.appendMenuItem(Me.ExplorerContext,{submenu:Me.ExplorerContextShare,title:{value:b("share","Share"),original:"Share"},group:"11_share",order:-1});TT=qme?AT(new Xv({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:Pc?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:Me.MenubarEditMenu,group:"2_ccp",title:b({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:Me.EditorContext,group:qu,title:b("actions.clipboard.pasteLabel","Paste"),when:F.writable,order:4},{menuId:Me.CommandPalette,group:"",title:b("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:Me.SimpleEditorContext,group:qu,title:b("actions.clipboard.pasteLabel","Paste"),when:F.writable,order:4}]})):void 0,IT=class extends de{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:b("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(36)&&t.getSelection().isEmpty()||(lk.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),lk.forceCopyWithSyntaxHighlighting=!1)}};bq(Kme,"cut");bq($me,"copy");TT&&(TT.addImplementation(1e4,"code-editor",(i,e)=>{let t=i.get(ai),r=i.get(As),n=t.getFocusedCodeEditor();return n&&n.hasTextFocus()?!document.execCommand("paste")&&Uv?(()=>Wme(void 0,void 0,void 0,function*(){let s=yield r.readText();if(s!==""){let a=QO.INSTANCE.get(s),l=!1,c=null,d=null;a&&(l=n.getOption(36)&&!!a.isFromEmptySelection,c=typeof a.multicursorText!="undefined"?a.multicursorText:null,d=a.mode),n.trigger("keyboard","paste",{text:s,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),TT.addImplementation(0,"generic-dom",(i,e)=>(document.execCommand("paste"),!0)));gq&&ee(IT)});function vq(i,e){return!(i.include&&!i.include.intersects(e)||i.excludes&&i.excludes.some(t=>yq(e,t,i.include))||!i.includeSourceActions&&nt.Source.contains(e))}function _q(i,e){let t=e.kind?new nt(e.kind):void 0;return!(i.include&&(!t||!i.include.contains(t))||i.excludes&&t&&i.excludes.some(r=>yq(t,r,i.include))||!i.includeSourceActions&&t&&nt.Source.contains(t)||i.onlyIncludePreferredActions&&!e.isPreferred)}function yq(i,e,t){return!(!e.contains(i)||t&&e.contains(t))}var Gme,nt,Vr,Cd,Sx,Sd=N(()=>{qt();Gme=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},nt=class i{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+i.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new i(this.value+i.sep+e)}};nt.sep=".";nt.None=new nt("@@none@@");nt.Empty=new nt("");nt.QuickFix=new nt("quickfix");nt.Refactor=new nt("refactor");nt.RefactorExtract=nt.Refactor.append("extract");nt.RefactorInline=nt.Refactor.append("inline");nt.RefactorMove=nt.Refactor.append("move");nt.RefactorRewrite=nt.Refactor.append("rewrite");nt.Source=new nt("source");nt.SourceOrganizeImports=nt.Source.append("organizeImports");nt.SourceFixAll=nt.Source.append("fixAll");nt.SurroundWith=nt.Refactor.append("surround");(function(i){i.Refactor="refactor",i.RefactorPreview="refactor preview",i.Lightbulb="lightbulb",i.Default="other (default)",i.SourceAction="source action",i.QuickFix="quick fix action",i.FixAll="fix all",i.OrganizeImports="organize imports",i.AutoFix="auto fix",i.QuickFixHover="quick fix hover window",i.OnSave="save participants",i.ProblemsView="problems view"})(Vr||(Vr={}));Cd=class i{static fromUser(e,t){return!e||typeof e!="object"?new i(t.kind,t.apply,!1):new i(i.getKindFromUser(e,t.kind),i.getApplyFromUser(e,t.apply),i.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new nt(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,r){this.kind=e,this.apply=t,this.preferred=r}},Sx=class{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Gme(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let r;try{r=yield this.provider.resolveCodeAction(this.action,e)}catch(n){Xt(n)}r&&(this.action.edit=r.edit)}return this})}}});function A0(i,e,t,r,n,o){var s;return kx(this,void 0,void 0,function*(){let a=r.filter||{},l={only:(s=a.include)===null||s===void 0?void 0:s.value,trigger:r.type},c=new iF(e,o),d=Yme(i,e,a),u=new le,h=d.map(m=>kx(this,void 0,void 0,function*(){try{n.report(m);let g=yield m.provideCodeActions(e,t,l,c.token);if(g&&u.add(g),c.token.isCancellationRequested)return wq;let w=((g==null?void 0:g.actions)||[]).filter(E=>E&&_q(a,E)),_=Qme(m,w,a.include);return{actions:w.map(E=>new Sx(E,m)),documentation:_}}catch(g){if(Yo(g))throw g;return Xt(g),wq}})),f=i.onDidChange(()=>{let m=i.all(e);ks(m,d)||c.cancel()});try{let m=yield Promise.all(h),g=m.map(_=>_.actions).flat(),w=[...hn(m.map(_=>_.documentation)),...Xme(i,e,r,g)];return new DT(g,w,u)}finally{f.dispose(),c.dispose()}})}function Yme(i,e,t){return i.all(e).filter(r=>r.providedCodeActionKinds?r.providedCodeActionKinds.some(n=>vq(t,new nt(n))):!0)}function*Xme(i,e,t,r){var n,o,s;if(e&&r.length)for(let a of i.all(e))a._getAdditionalMenuItems&&(yield*B9((n=a._getAdditionalMenuItems)===null||n===void 0?void 0:n.call(a,{trigger:t.type,only:(s=(o=t.filter)===null||o===void 0?void 0:o.include)===null||s===void 0?void 0:s.value},r.map(l=>l.action))))}function Qme(i,e,t){if(!i.documentation)return;let r=i.documentation.map(n=>({kind:new nt(n.kind),command:n.command}));if(t){let n;for(let o of r)o.kind.contains(t)&&(n?n.kind.contains(o.kind)&&(n=o):n=o);if(n)return n==null?void 0:n.command}for(let n of e)if(n.kind){for(let o of r)if(o.kind.contains(new nt(n.kind)))return o.command}}function xq(i,e,t,r,n=st.None){var o;return kx(this,void 0,void 0,function*(){let s=i.get(Kc),a=i.get(_i),l=i.get(Ln),c=i.get(Ri);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(n),!n.isCancellationRequested&&!(!((o=e.action.edit)===null||o===void 0)&&o.edits.length&&!(yield s.apply(e.action.edit,{editor:r==null?void 0:r.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==E0.OnSave,showPreview:r==null?void 0:r.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(d){let u=Zme(d);c.error(typeof u=="string"?u:b("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Zme(i){return typeof i=="string"?i:i instanceof Error&&typeof i.message=="string"?i.message:void 0}var kx,Ex,tp,Tx,Ix,Ax,T0,I0,DT,wq,E0,Ku=N(()=>{mi();ki();qt();ke();Ir();tg();et();Ar();Pt();Xo();yu();He();Vi();Mo();$c();Bc();Sd();kx=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ex="editor.action.codeAction",tp="editor.action.quickFix",Tx="editor.action.autoFix",Ix="editor.action.refactor",Ax="editor.action.sourceAction",T0="editor.action.organizeImports",I0="editor.action.fixAll",DT=class i extends ce{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return Ki(e.diagnostics)?Ki(t.diagnostics)?i.codeActionsPreferredComparator(e,t):-1:Ki(t.diagnostics)?1:i.codeActionsPreferredComparator(e,t)}constructor(e,t,r){super(),this.documentation=t,this._register(r),this.allActions=[...e].sort(i.codeActionsComparator),this.validActions=this.allActions.filter(({action:n})=>!n.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&nt.QuickFix.contains(new nt(e.kind))&&!!e.isPreferred)}},wq={actions:[],documentation:void 0};(function(i){i.OnSave="onSave",i.FromProblemsView="fromProblemsView",i.FromCodeActions="fromCodeActions"})(E0||(E0={}));Dt.registerCommand("_executeCodeActionProvider",function(i,e,t,r,n){return kx(this,void 0,void 0,function*(){if(!(e instanceof yt))throw ko();let{codeActionProvider:o}=i.get(Se),s=i.get(Di).getModel(e);if(!s)throw ko();let a=Qe.isISelection(t)?Qe.liftSelection(t):B.isIRange(t)?s.validateRange(t):void 0;if(!a)throw ko();let l=typeof r=="string"?new nt(r):void 0,c=yield A0(o,s,a,{type:1,triggerAction:Vr.Default,filter:{includeSourceActions:!0,include:l}},ba.None,st.None),d=[],u=Math.min(c.validActions.length,typeof n=="number"?n:0);for(let h=0;hh.action)}finally{setTimeout(()=>c.dispose(),100)}})})});var Jme,ege,MT,L0,Cq=N(()=>{F3();Ku();Sd();jr();Jme=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ege=function(i,e){return function(t,r){e(t,r,i)}},L0=MT=class{constructor(e){this.keybindingService=e}getResolver(){let e=new rf(()=>this.keybindingService.getKeybindings().filter(t=>MT.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let r=t.commandArgs;return t.command===T0?r={kind:nt.SourceOrganizeImports.value}:t.command===I0&&(r={kind:nt.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},Cd.fromUser(r,{kind:nt.None,apply:"never"}))}));return t=>{if(t.kind){let r=this.bestKeybindingForCodeAction(t,e.value);return r==null?void 0:r.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;let r=new nt(e.kind);return t.filter(n=>n.kind.contains(r)).filter(n=>n.preferred?e.isPreferred:!0).reduceRight((n,o)=>n?n.kind.contains(o.kind)?o:n:o,void 0)}};L0.codeActionCommands=[Ix,Ex,Ax,T0,I0];L0=MT=Jme([ege(0,Kt)],L0)});var Sq=N(()=>{});var kq=N(()=>{Sq()});var Eq=N(()=>{});var Tq=N(()=>{Eq()});var D0=N(()=>{kq();Tq()});var Iq=N(()=>{});var Aq=N(()=>{Iq()});var iOe,rOe,nOe,oOe,sOe,aOe,lOe,cOe,dOe,uOe,hOe,fOe,pOe,mOe,gOe,bOe,vOe,_Oe,yOe,wOe,xOe,COe,SOe,kOe,EOe,TOe,IOe,AOe,LOe,DOe,MOe,NOe,ROe,Lx=N(()=>{Aq();He();tn();iOe=je("symbolIcon.arrayForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),rOe=je("symbolIcon.booleanForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nOe=je("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},b("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),oOe=je("symbolIcon.colorForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sOe=je("symbolIcon.constantForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),aOe=je("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},b("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),lOe=je("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},b("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),cOe=je("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),dOe=je("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},b("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),uOe=je("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),hOe=je("symbolIcon.fileForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),fOe=je("symbolIcon.folderForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pOe=je("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},b("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),mOe=je("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gOe=je("symbolIcon.keyForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),bOe=je("symbolIcon.keywordForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),vOe=je("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},b("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_Oe=je("symbolIcon.moduleForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yOe=je("symbolIcon.namespaceForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),wOe=je("symbolIcon.nullForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),xOe=je("symbolIcon.numberForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),COe=je("symbolIcon.objectForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),SOe=je("symbolIcon.operatorForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),kOe=je("symbolIcon.packageForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),EOe=je("symbolIcon.propertyForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),TOe=je("symbolIcon.referenceForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),IOe=je("symbolIcon.snippetForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),AOe=je("symbolIcon.stringForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),LOe=je("symbolIcon.structForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),DOe=je("symbolIcon.textForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),MOe=je("symbolIcon.typeParameterForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),NOe=je("symbolIcon.unitForeground",{dark:ze,light:ze,hcDark:ze,hcLight:ze},b("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ROe=je("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},b("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))});function Dq(i,e,t){if(!e)return i.map(o=>({kind:"action",item:o,group:Lq,disabled:!!o.action.disabled,label:o.action.disabled||o.action.title}));let r=tge.map(o=>({group:o,actions:[]}));for(let o of i){let s=o.action.kind?new nt(o.action.kind):nt.None;for(let a of r)if(a.group.kind.contains(s)){a.actions.push(o);break}}let n=[];for(let o of r)if(o.actions.length){n.push({kind:"header",group:o.group});for(let s of o.actions)n.push({kind:"action",item:s,group:o.group,label:s.action.title,disabled:!!s.action.disabled,keybinding:t(s.action)})}return n}var Lq,tge,Mq=N(()=>{D0();Zr();Sd();Lx();He();Lq=Object.freeze({kind:nt.Empty,title:b("codeAction.widget.id.more","More Actions...")}),tge=Object.freeze([{kind:nt.QuickFix,title:b("codeAction.widget.id.quickfix","Quick Fix")},{kind:nt.RefactorExtract,title:b("codeAction.widget.id.extract","Extract"),icon:pt.wrench},{kind:nt.RefactorInline,title:b("codeAction.widget.id.inline","Inline"),icon:pt.wrench},{kind:nt.RefactorRewrite,title:b("codeAction.widget.id.convert","Rewrite"),icon:pt.wrench},{kind:nt.RefactorMove,title:b("codeAction.widget.id.move","Move"),icon:pt.wrench},{kind:nt.SurroundWith,title:b("codeAction.widget.id.surround","Surround With"),icon:pt.symbolSnippet},{kind:nt.Source,title:b("codeAction.widget.id.source","Source Action"),icon:pt.symbolFile},Lq])});var Nq=N(()=>{});var Rq=N(()=>{Nq()});var ige,rge,NT,ip,Jl,RT=N(()=>{Ht();oF();Zr();ei();ke();An();Rq();BO();Ku();He();jr();ige=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},rge=function(i,e){return function(t,r){e(t,r,i)}};(function(i){i.Hidden={type:0};class e{constructor(r,n,o,s){this.actions=r,this.trigger=n,this.editorPosition=o,this.widgetPosition=s,this.type=1}}i.Showing=e})(ip||(ip={}));Jl=NT=class extends ce{constructor(e,t){super(),this._editor=e,this._onClick=this._register(new Je),this.onClick=this._onClick.event,this._state=ip.Hidden,this._domNode=Ae("div.lightBulbWidget"),this._register(I_.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(r=>{let n=this._editor.getModel();(this.state.type!==1||!n||this.state.editorPosition.lineNumber>=n.getLineCount())&&this.hide()})),this._register(rP(this._domNode,r=>{if(this.state.type!==1)return;this._editor.focus(),r.preventDefault();let{top:n,height:o}=Zi(this._domNode),s=this._editor.getOption(65),a=Math.floor(s/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(r.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(63)&&!this._editor.getOption(63).enabled&&this.hide()})),this._register(ci.runAndSubscribe(t.onDidUpdateKeybindings,()=>{var r,n,o,s;this._preferredKbLabel=(n=(r=t.lookupKeybinding(Tx))===null||r===void 0?void 0:r.getLabel())!==null&&n!==void 0?n:void 0,this._quickFixKbLabel=(s=(o=t.lookupKeybinding(tp))===null||o===void 0?void 0:o.getLabel())!==null&&s!==void 0?s:void 0,this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,r){if(e.validActions.length<=0)return this.hide();let n=this._editor.getOptions();if(!n.get(63).enabled)return this.hide();let o=this._editor.getModel();if(!o)return this.hide();let{lineNumber:s,column:a}=o.validatePosition(r),l=o.getOptions().tabSize,c=n.get(49),d=o.getLineContent(s),u=Ym(d,l),h=c.spaceWidth*u>22,f=g=>g>2&&this._editor.getTopForLineNumber(g)===this._editor.getTopForLineNumber(g-1),m=s;if(!h){if(s>1&&!f(s-1))m-=1;else if(!f(s+1))m+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new ip.Showing(e,t,r,{position:{lineNumber:m,column:1},preference:NT._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==ip.Hidden&&(this.state=ip.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(..._t.asClassNameArray(pt.lightBulb)),this._domNode.classList.add(..._t.asClassNameArray(pt.lightbulbAutofix)),this._preferredKbLabel)){this.title=b("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(..._t.asClassNameArray(pt.lightbulbAutofix)),this._domNode.classList.add(..._t.asClassNameArray(pt.lightBulb)),this._quickFixKbLabel?this.title=b("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=b("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};Jl.ID="editor.contrib.lightbulbWidget";Jl._posPref=[0];Jl=NT=ige([rge(1,Kt)],Jl)});var Pq=N(()=>{});var Oq=N(()=>{Pq()});var Fq=N(()=>{});var zq=N(()=>{Fq()});function OT(i,e,t){return Hq(this,void 0,void 0,function*(){try{return yield i.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:oge(t)})}catch(r){return ft(r),!1}})}function oge(i){return i===!0?!0:i&&Array.isArray(i.enabledCommands)?i.enabledCommands:!1}var nge,Bq,Hq,PT,to,kd=N(()=>{dF();ck();qt();ei();ke();zq();uF();es();Q3();Pre();is();nge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Bq=function(i,e){return function(t,r){e(t,r,i)}},Hq=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},to=PT=class{constructor(e,t,r){this._options=e,this._languageService=t,this._openerService=r,this._onDidRenderAsync=new Je,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,r){if(!e)return{element:document.createElement("span"),dispose:()=>{}};let n=new le,o=n.add(A_(e,Object.assign(Object.assign({},this._getRenderOptions(e,n)),t),r));return o.element.classList.add("rendered-markdown"),{element:o.element,dispose:()=>n.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(r,n)=>Hq(this,void 0,void 0,function*(){var o,s,a;let l;r?l=this._languageService.getLanguageIdByLanguageName(r):this._options.editor&&(l=(o=this._options.editor.getModel())===null||o===void 0?void 0:o.getLanguageId()),l||(l=lf);let c=yield hF(this._languageService,n,l),d=document.createElement("span");if(d.innerHTML=(a=(s=PT._ttpTokenizer)===null||s===void 0?void 0:s.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){let u=this._options.editor.getOption(49);L_(d,u)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:r=>OT(this._openerService,r,e.isTrusted),disposables:t}}}};to._ttpTokenizer=xf("tokenizeToString",{createHTML(i){return i}});to=PT=nge([Bq(1,er),Bq(2,tr)],to)});var sge,Uq,Dx,qr,age,Mx,M0=N(()=>{dF();Io();ei();Es();ke();Oq();lt();et();kd();He();wt();is();Ht();sge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Uq=function(i,e){return function(t,r){e(t,r,i)}},qr=Dx=class{static get(e){return e.getContribution(Dx.ID)}constructor(e,t,r){this._openerService=r,this._messageWidget=new Wi,this._messageListeners=new le,this._mouseOverMessage=!1,this._editor=e,this._visible=Dx.MESSAGE_VISIBLE.bindTo(t)}dispose(){var e;(e=this._message)===null||e===void 0||e.dispose(),this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){ar(d_(e)?e.value:e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._message=d_(e)?A_(e,{actionHandler:{callback:n=>OT(this._openerService,n,d_(e)?e.isTrusted:void 0),disposables:this._messageListeners}}):void 0,this._messageWidget.value=new Mx(this._editor,t,typeof e=="string"?e:this._message.element),this._messageListeners.add(ci.debounce(this._editor.onDidBlurEditorText,(n,o)=>o,0)(()=>{this._mouseOverMessage||this._messageWidget.value&&aP(document.activeElement,this._messageWidget.value.getDomNode())||this.closeMessage()})),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(Lt(this._messageWidget.value.getDomNode(),bi.MOUSE_ENTER,()=>this._mouseOverMessage=!0,!0)),this._messageListeners.add(Lt(this._messageWidget.value.getDomNode(),bi.MOUSE_LEAVE,()=>this._mouseOverMessage=!1,!0));let r;this._messageListeners.add(this._editor.onMouseMove(n=>{n.target.position&&(r?r.containsPosition(n.target.position)||this.closeMessage():r=new B(t.lineNumber-3,1,n.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(Mx.fadeOut(this._messageWidget.value))}};qr.ID="editor.contrib.messageController";qr.MESSAGE_VISIBLE=new ht("messageVisible",!1,b("messageVisible","Whether the editor is currently showing an inline message"));qr=Dx=sge([Uq(1,it),Uq(2,tr)],qr);age=Fi.bindToContribution(qr.get);We(new age({id:"leaveEditorMessage",precondition:qr.MESSAGE_VISIBLE,handler:i=>i.closeMessage(),kbOpts:{weight:100+30,primary:9}}));Mx=class{static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(r),e.getDomNode().removeEventListener("animationend",t)},r=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:r},n){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:r},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";let o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);let s=document.createElement("div");typeof n=="string"?(s.classList.add("message"),s.textContent=n):(n.classList.add("message"),s.appendChild(n)),this._domNode.appendChild(s);let a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Ue(qr.ID,qr,4)});var jq=N(()=>{});var FT=N(()=>{jq()});function lge(i){if(i.kind==="action")return i.label}function Vq(i){return i.replace(/\r\n|\r|\n/g," ")}var Wq,zT,jT,WT,BT,HT,UT,Nx,Rx,qq=N(()=>{Ht();vF();mF();Zr();ke();Tn();An();FT();He();yl();jr();O_();tn();Wq=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zT=function(i,e){return function(t,r){e(t,r,i)}},jT="acceptSelectedCodeAction",WT="previewSelectedCodeAction",BT=class{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");let t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,r){var n,o;r.text.textContent=(o=(n=e.group)===null||n===void 0?void 0:n.title)!==null&&o!==void 0?o:""}disposeTemplate(e){}},HT=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);let t=document.createElement("div");t.className="icon",e.append(t);let r=document.createElement("span");r.className="title",e.append(r);let n=new P_(e,jv);return{container:e,icon:t,text:r,keybinding:n}}renderElement(e,t,r){var n,o,s;if(!((n=e.group)===null||n===void 0)&&n.icon?(r.icon.className=_t.asClassName(e.group.icon),e.group.icon.color&&(r.icon.style.color=da(e.group.icon.color.id))):(r.icon.className=_t.asClassName(pt.lightBulb),r.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;r.text.textContent=Vq(e.label),r.keybinding.set(e.keybinding),dP(!!e.keybinding,r.keybinding.element);let a=(o=this._keybindingService.lookupKeybinding(jT))===null||o===void 0?void 0:o.getLabel(),l=(s=this._keybindingService.lookupKeybinding(WT))===null||s===void 0?void 0:s.getLabel();r.container.classList.toggle("option-disabled",e.disabled),e.disabled?r.container.title=e.label:a&&l?this._supportsPreview?r.container.title=b({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):r.container.title=b({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):r.container.title=""}disposeTemplate(e){}};HT=Wq([zT(1,Kt)],HT);UT=class extends UIEvent{constructor(){super("acceptSelectedAction")}},Nx=class extends UIEvent{constructor(){super("previewSelectedAction")}};Rx=class extends ce{constructor(e,t,r,n,o,s){super(),this._delegate=n,this._contextViewService=o,this._keybindingService=s,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");let a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new R_(e,this.domNode,a,[new HT(t,this._keybindingService),new BT],{keyboardSupport:!1,typeNavigationEnabled:!0,keyboardNavigationLabelProvider:{getKeyboardNavigationLabel:lge},accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?Vq(l==null?void 0:l.label):"";return l.disabled&&(c=b({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>b({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(yF),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=r,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){let t=this._allMenuItems.filter(c=>c.kind==="header").length,n=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(n);let o=this._allMenuItems.map((c,d)=>{let u=document.getElementById(this._list.getElementID(d));if(u){u.style.width="auto";let h=u.getBoundingClientRect().width;return u.style.width="",h}return 0}),s=Math.max(...o,e),a=.7,l=Math.min(n,document.body.clientHeight*a);return this._list.layout(l,s),this.domNode.style.height=`${l}px`,this._list.domFocus(),s}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){let t=this._list.getFocus();if(t.length===0)return;let r=t[0],n=this._list.element(r);if(!this.focusCondition(n))return;let o=e?new Nx:new UT;this._list.setSelection([r],o)}onListSelection(e){if(!e.elements.length)return;let t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof Nx):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};Rx=Wq([zT(4,Gc),zT(5,Kt)],Rx)});var cge,VT,$u,Ed,Gu,N0,Kq=N(()=>{Ht();ng();ke();FT();He();qq();Ji();wt();yl();hl();Ut();tn();cge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},VT=function(i,e){return function(t,r){e(t,r,i)}};je("actionBar.toggledBackground",{dark:gl,light:gl,hcDark:gl,hcLight:gl},b("actionBar.toggledBackground","Background color for toggled action items in action bar."));$u={Visible:new ht("codeActionMenuVisible",!1,b("codeActionMenuVisible","Whether the action widget list is visible"))},Ed=Qr("actionWidgetService"),Gu=class extends ce{get isVisible(){return $u.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,r){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=r,this._list=this._register(new Wi)}show(e,t,r,n,o,s,a){let l=$u.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(Rx,e,t,r,n);this._contextViewService.showContextView({getAnchor:()=>o,render:d=>(l.set(!0),this._renderWidget(d,c,a!=null?a:[])),onHide:d=>{l.reset(),this._onWidgetClosed(d)}},s,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,r){var n;let o=document.createElement("div");if(o.classList.add("action-widget"),e.appendChild(o),this._list.value=t,this._list.value)o.appendChild(this._list.value.domNode);else throw new Error("List has no value");let s=new le,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),s.add(Lt(l,bi.MOUSE_DOWN,m=>m.stopPropagation()));let c=document.createElement("div"),d=e.appendChild(c);d.classList.add("context-view-pointerBlock"),s.add(Lt(d,bi.POINTER_MOVE,()=>d.remove())),s.add(Lt(d,bi.MOUSE_DOWN,()=>d.remove()));let u=0;if(r.length){let m=this._createActionBar(".action-widget-action-bar",r);m&&(o.appendChild(m.getContainer().parentElement),s.add(m),u=m.getContainer().offsetWidth)}let h=(n=this._list.value)===null||n===void 0?void 0:n.layout(u);o.style.width=`${h}px`;let f=s.add(xs(e));return s.add(f.onDidBlur(()=>this.hide())),s}_createActionBar(e,t){if(!t.length)return;let r=Ae(e),n=new Ls(r);return n.push(t,{icon:!1,label:!0}),n}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};Gu=cge([VT(0,Gc),VT(1,it),VT(2,Ke)],Gu);en(Ed,Gu,1);N0=100+1e3;Si(class extends Jo{constructor(){super({id:"hideCodeActionWidget",title:{value:b("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:$u.Visible,keybinding:{weight:N0,primary:9,secondary:[1033]}})}run(i){i.get(Ed).hide()}});Si(class extends Jo{constructor(){super({id:"selectPrevCodeAction",title:{value:b("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:$u.Visible,keybinding:{weight:N0,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.focusPrevious()}});Si(class extends Jo{constructor(){super({id:"selectNextCodeAction",title:{value:b("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:$u.Visible,keybinding:{weight:N0,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.focusNext()}});Si(class extends Jo{constructor(){super({id:jT,title:{value:b("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:$u.Visible,keybinding:{weight:N0,primary:3,secondary:[2137]}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.acceptSelected()}});Si(class extends Jo{constructor(){super({id:WT,title:{value:b("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:$u.Visible,keybinding:{weight:N0,primary:2051}})}run(i){let e=i.get(Ed);e instanceof Gu&&e.acceptSelected(!0)}})});var KT,qT,Yu,dge,Px,$T=N(()=>{jt();qt();ei();ke();Lo();wt();$c();Sd();Ku();KT=new ht("supportedCodeAction",""),qT=class extends ce{constructor(e,t,r,n=250){super(),this._editor=e,this._markerService=t,this._signalChange=r,this._delay=n,this._autoTriggerTimer=this._register(new aa),this._register(this._markerService.onMarkerChanged(o=>this._onMarkerChanges(o))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){let t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){let t=this._editor.getModel();t&&e.some(r=>c_(r,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:Vr.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),r=this._editor.getSelection();if(r.isEmpty()&&e.type===2){let{lineNumber:n,column:o}=r.getPosition(),s=t.getLineContent(n);if(s.length===0)return;if(o===1){if(/\s/.test(s[0]))return}else if(o===t.getLineMaxColumn(n)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[o-2])&&/\s/.test(s[o-1]))return}return r}};(function(i){i.Empty={type:0};class e{constructor(r,n,o){this.trigger=r,this.position=n,this._cancellablePromise=o,this.type=1,this.actions=o.catch(s=>{if(Yo(s))return dge;throw s})}cancel(){this._cancellablePromise.cancel()}}i.Triggered=e})(Yu||(Yu={}));dge=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1}),Px=class extends ce{constructor(e,t,r,n,o){super(),this._editor=e,this._registry=t,this._markerService=r,this._progressService=o,this._codeActionOracle=this._register(new Wi),this._state=Yu.Empty,this._onDidChangeState=this._register(new Je),this.onDidChangeState=this._onDidChangeState.event,this._disposed=!1,this._supportedCodeActions=KT.bindTo(n),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){this._disposed||(this._disposed=!0,super.dispose(),this.setState(Yu.Empty,!0))}_update(){if(this._disposed)return;this._codeActionOracle.value=void 0,this.setState(Yu.Empty);let e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(89)){let t=this._registry.all(e).flatMap(r=>{var n;return(n=r.providedCodeActionKinds)!==null&&n!==void 0?n:[]});this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new qT(this._editor,this._markerService,r=>{var n;if(!r){this.setState(Yu.Empty);return}let o=Jt(s=>A0(this._registry,e,r.selection,r.trigger,ba.None,s));r.trigger.type===1&&((n=this._progressService)===null||n===void 0||n.showWhile(o,250)),this.setState(new Yu.Triggered(r.trigger,r.selection.getStartPosition(),o))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:Vr.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!this._disposed&&this._onDidChangeState.fire(e))}}});var uge,ec,Ox,GT,Ha,Fx=N(()=>{Ht();qt();F3();ke();di();Pt();Ku();Cq();Mq();RT();M0();He();Kq();Vi();Sr();wt();Ut();F_();$c();Sd();$T();uge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ec=function(i,e){return function(t,r){e(t,r,i)}},Ox=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ha=GT=class extends ce{static get(e){return e.getContribution(GT.ID)}constructor(e,t,r,n,o,s,a,l,c,d){super(),this._commandService=a,this._configurationService=l,this._actionWidgetService=c,this._instantiationService=d,this._activeCodeActions=this._register(new Wi),this._showDisabled=!1,this._disposed=!1,this._editor=e,this._model=this._register(new Px(this._editor,o.codeActionProvider,t,r,s)),this._register(this._model.onDidChangeState(u=>this.update(u))),this._lightBulbWidget=new rf(()=>{let u=this._editor.getContribution(Jl.ID);return u&&this._register(u.onClick(h=>this.showCodeActionList(h.actions,h,{includeDisabledActions:!1,fromLightbulb:!0}))),u}),this._resolver=n.createInstance(L0),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){this._disposed=!0,super.dispose()}showCodeActions(e,t,r){return this.showCodeActionList(t,r,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,r,n){var o;if(!this._editor.hasModel())return;(o=qr.get(this._editor))===null||o===void 0||o.closeMessage();let s=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:r,autoApply:n,context:{notAvailableMessage:e,position:s}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t,r){return Ox(this,void 0,void 0,function*(){try{yield this._instantiationService.invokeFunction(xq,e,E0.FromCodeActions,{preview:r,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:Vr.QuickFix,filter:{}})}})}update(e){var t,r,n,o,s,a,l;return Ox(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let c;try{c=yield e.actions}catch(d){ft(d);return}if(!this._disposed)if((r=this._lightBulbWidget.value)===null||r===void 0||r.update(c,e.trigger,e.position),e.trigger.type===1){if(!((n=e.trigger.filter)===null||n===void 0)&&n.include){let u=this.tryGetValidActionToApply(e.trigger,c);if(u){try{(o=this._lightBulbWidget.value)===null||o===void 0||o.hide(),yield this._applyCodeAction(u,!1,!1)}finally{c.dispose()}return}if(e.trigger.context){let h=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,c);if(h&&h.action.disabled){(s=qr.get(this._editor))===null||s===void 0||s.showMessage(h.action.disabled,e.trigger.context.position),c.dispose();return}}}let d=!!(!((a=e.trigger.filter)===null||a===void 0)&&a.include);if(e.trigger.context&&(!c.allActions.length||!d&&!c.validActions.length)){(l=qr.get(this._editor))===null||l===void 0||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=c,c.dispose();return}this._activeCodeActions.value=c,this.showCodeActionList(c,this.toCoords(e.position),{includeDisabledActions:d,fromLightbulb:!1})}else this._actionWidgetService.isVisible?c.dispose():this._activeCodeActions.value=c})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:r})=>r.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,r){return Ox(this,void 0,void 0,function*(){let n=this._editor.getDomNode();if(!n)return;let o=r.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!o.length)return;let s=Ie.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,c)=>Ox(this,void 0,void 0,function*(){this._applyCodeAction(l,!0,!!c),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,Dq(o,this._shouldShowHeaders(),this._resolver.getResolver()),a,s,n,this._getActionBarActions(e,t,r))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();let t=this._editor.getScrolledVisiblePosition(e),r=Zi(this._editor.getDomNode()),n=r.left+t.left,o=r.top+t.top+t.height;return{x:n,y:o}}_shouldShowHeaders(){var e;let t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,r){if(r.fromLightbulb)return[];let n=e.documentation.map(o=>{var s;return{id:o.id,label:o.title,tooltip:(s=o.tooltip)!==null&&s!==void 0?s:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(o.id,...(a=o.arguments)!==null&&a!==void 0?a:[])}}});return r.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&n.push(this._showDisabled?{id:"hideMoreActions",label:b("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,r))}:{id:"showMoreActions",label:b("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,r))}),n}};Ha.ID="editor.contrib.codeActionController";Ha=GT=uge([ec(1,og),ec(2,it),ec(3,Ke),ec(4,Se),ec(5,vl),ec(6,_i),ec(7,Mt),ec(8,Ed),ec(9,Ke)],Ha)});function R0(i){return fe.regex(KT.keys()[0],new RegExp("(\\s|^)"+cl(i.value)+"\\b"))}function Xu(i,e,t,r,n=Vr.Default){if(i.hasModel()){let o=Ha.get(i);o==null||o.manualTriggerAtCurrentPosition(e,n,t,r)}}var YT,zx,Bx,Hx,Ux,jx,Wx,Vx,$q=N(()=>{Ni();lt();ti();Ku();He();wt();Sd();Fx();$T();YT={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:b("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:b("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[b("args.schema.apply.first","Always apply the first returned code action."),b("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),b("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:b("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};zx=class extends de{constructor(){super({id:tp,label:b("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:fe.and(F.writable,F.hasCodeActionsProvider),kbOpts:{kbExpr:F.textInputFocus,primary:2137,weight:100}})}run(e,t){return Xu(t,b("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,Vr.QuickFix)}},Bx=class extends Fi{constructor(){super({id:Ex,precondition:fe.and(F.writable,F.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:YT}]}})}runEditorCommand(e,t,r){let n=Cd.fromUser(r,{kind:nt.Empty,apply:"ifSingle"});return Xu(t,typeof(r==null?void 0:r.kind)=="string"?n.preferred?b("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",r.kind):b("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",r.kind):n.preferred?b("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):b("editor.action.codeAction.noneMessage","No code actions available"),{include:n.kind,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply)}},Hx=class extends de{constructor(){super({id:Ix,label:b("refactor.label","Refactor..."),alias:"Refactor...",precondition:fe.and(F.writable,F.hasCodeActionsProvider),kbOpts:{kbExpr:F.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:fe.and(F.writable,R0(nt.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:YT}]}})}run(e,t,r){let n=Cd.fromUser(r,{kind:nt.Refactor,apply:"never"});return Xu(t,typeof(r==null?void 0:r.kind)=="string"?n.preferred?b("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",r.kind):b("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",r.kind):n.preferred?b("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):b("editor.action.refactor.noneMessage","No refactorings available"),{include:nt.Refactor.contains(n.kind)?n.kind:nt.None,onlyIncludePreferredActions:n.preferred},n.apply,Vr.Refactor)}},Ux=class extends de{constructor(){super({id:Ax,label:b("source.label","Source Action..."),alias:"Source Action...",precondition:fe.and(F.writable,F.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:fe.and(F.writable,R0(nt.Source))},description:{description:"Source Action...",args:[{name:"args",schema:YT}]}})}run(e,t,r){let n=Cd.fromUser(r,{kind:nt.Source,apply:"never"});return Xu(t,typeof(r==null?void 0:r.kind)=="string"?n.preferred?b("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",r.kind):b("editor.action.source.noneMessage.kind","No source actions for '{0}' available",r.kind):n.preferred?b("editor.action.source.noneMessage.preferred","No preferred source actions available"):b("editor.action.source.noneMessage","No source actions available"),{include:nt.Source.contains(n.kind)?n.kind:nt.None,includeSourceActions:!0,onlyIncludePreferredActions:n.preferred},n.apply,Vr.SourceAction)}},jx=class extends de{constructor(){super({id:T0,label:b("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:fe.and(F.writable,R0(nt.SourceOrganizeImports)),kbOpts:{kbExpr:F.textInputFocus,primary:1581,weight:100}})}run(e,t){return Xu(t,b("editor.action.organize.noneMessage","No organize imports action available"),{include:nt.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",Vr.OrganizeImports)}},Wx=class extends de{constructor(){super({id:I0,label:b("fixAll.label","Fix All"),alias:"Fix All",precondition:fe.and(F.writable,R0(nt.SourceFixAll))})}run(e,t){return Xu(t,b("fixAll.noneMessage","No fix all action available"),{include:nt.SourceFixAll,includeSourceActions:!0},"ifSingle",Vr.FixAll)}},Vx=class extends de{constructor(){super({id:Tx,label:b("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:fe.and(F.writable,R0(nt.QuickFix)),kbOpts:{kbExpr:F.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return Xu(t,b("editor.action.autoFix.noneMessage","No auto fixes available"),{include:nt.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",Vr.AutoFix)}}});var XT=N(()=>{lt();tF();$q();Fx();RT();He();X3();dl();Ue(Ha.ID,Ha,3);Ue(Jl.ID,Jl,4);ee(zx);ee(Hx);ee(Ux);ee(jx);ee(Vx);ee(Wx);We(new Bx);Jr.as(af.Configuration).registerConfiguration(Object.assign(Object.assign({},k_),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:b("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}))});function QT(i,e,t){return Gq(this,void 0,void 0,function*(){let r=i.ordered(e),n=new Map,o=new rp,s=r.map((a,l)=>Gq(this,void 0,void 0,function*(){n.set(a,l);try{let c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&o.add(c,a)}catch(c){Xt(c)}}));return yield Promise.all(s),o.lenses=o.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:n.get(a.provider)n.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),o})}var Gq,rp,ZT=N(()=>{ki();qt();ke();zr();Ir();Xo();Vi();Pt();Gq=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},rp=class{constructor(){this.lenses=[],this._disposables=new le}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(let r of e.lenses)this.lenses.push({symbol:r,provider:t})}};Dt.registerCommand("_executeCodeLensProvider",function(i,...e){let[t,r]=e;Bt(yt.isUri(t)),Bt(typeof r=="number"||!r);let{codeLensProvider:n}=i.get(Se),o=i.get(Di).getModel(t);if(!o)throw ko();let s=[],a=new le;return QT(n,o,st.None).then(l=>{a.add(l);let c=[];for(let d of l.lenses)r==null||d.symbol.command?s.push(d.symbol):r-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(o,d.symbol,st.None)).then(u=>s.push(u||d.symbol)));return Promise.all(c)}).then(()=>s).finally(()=>{setTimeout(()=>a.dispose(),100)})})});var hge,fge,eI,qx,JT,Yq=N(()=>{jt();H9();df();et();ZT();hl();Ut();wu();hge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fge=function(i,e){return function(t,r){e(t,r,i)}},eI=Qr("ICodeLensCache"),qx=class{constructor(e,t){this.lineCount=e,this.data=t}},JT=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new sa(20,.75);let t="codelens/cache";tO(()=>e.remove(t,1));let r="codelens/cache2",n=e.get(r,1,"{}");this._deserialize(n),Ov(e.onWillSaveState)(o=>{o.reason===B_.SHUTDOWN&&e.store(r,this._serialize(),1,1)})}put(e,t){let r=t.lenses.map(s=>{var a;return{range:s.symbol.range,command:s.symbol.command&&{id:"",title:(a=s.symbol.command)===null||a===void 0?void 0:a.title}}}),n=new rp;n.add({lenses:r,dispose:()=>{}},this._fakeProvider);let o=new qx(e.getLineCount(),n);this._cache.set(e.uri.toString(),o)}get(e){let t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){let e=Object.create(null);for(let[t,r]of this._cache){let n=new Set;for(let o of r.data.lenses)n.add(o.symbol.range.startLineNumber);e[t]={lineCount:r.lineCount,lines:[...n.values()]}}return JSON.stringify(e)}_deserialize(e){try{let t=JSON.parse(e);for(let r in t){let n=t[r],o=[];for(let a of n.lines)o.push({range:new B(a,1,a,11)});let s=new rp;s.add({lenses:o,dispose(){}},this._fakeProvider),this._cache.set(r,new qx(n.lineCount,s))}}catch(t){}}};JT=hge([fge(0,Yn)],JT);en(eI,JT,1)});var Xq=N(()=>{});var Qq=N(()=>{Xq()});var tI,Kx,np,Zq,P0,Jq=N(()=>{Ht();Rre();Qq();et();Ur();tI=class{constructor(e,t,r){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=r,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}},Kx=class i{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${i._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();let r=[],n=!1;for(let o=0;o{c.symbol.command&&l.push(c.symbol),r.addDecoration({range:c.symbol.range,options:Zq},u=>this._decorationIds[d]=u),a?a=B.plusRange(a,c.symbol.range):a=B.lift(c.symbol.range)}),this._viewZone=new tI(a.startLineNumber-1,o,s),this._viewZoneId=n.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new Kx(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{let r=this._editor.getModel().getDecorationRange(e),n=this._data[t].symbol;return!!(r&&B.isEmpty(n.range)===r.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((r,n)=>{t.addDecoration({range:r.symbol.range,options:Zq},o=>this._decorationIds[n]=o)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t{jt();qt();ke();z_();lt();eg();ti();ZT();Yq();Jq();He();Vi();Mo();wl();Ds();Pt();pge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},O0=function(i,e){return function(t,r){e(t,r,i)}},mge=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},op=class{constructor(e,t,r,n,o,s){this._editor=e,this._languageFeaturesService=t,this._commandService=n,this._notificationService=o,this._codeLensCache=s,this._disposables=new le,this._localToDispose=new le,this._lenses=[],this._oldCodeLensModels=new le,this._provideCodeLensDebounce=r.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=r.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new ui(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(49)||a.hasChanged(18)||a.hasChanged(17))&&this._updateLensStyle(),a.hasChanged(16)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){let e=Math.max(1.3,this._editor.getOption(65)/this._editor.getOption(51)),t=this._editor.getOption(18);return(!t||t<5)&&(t=this._editor.getOption(51)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){let{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),r=this._editor.getOption(17),n=this._editor.getOption(49),{style:o}=this._editor.getContainerDomNode();o.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),o.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),o.setProperty("--vscode-editorCodeLens-fontFeatureSettings",n.fontFeatureSettings),r&&(o.setProperty("--vscode-editorCodeLens-fontFamily",r),o.setProperty("--vscode-editorCodeLens-fontFamilyDefault",S_.fontFamily)),this._editor.changeViewZones(s=>{for(let a of this._lenses)a.updateHeight(e,s)})}_localDispose(){var e,t,r;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(r=this._currentCodeLensModel)===null||r===void 0||r.dispose()}_onModelChange(){this._localDispose();let e=this._editor.getModel();if(!e||!this._editor.getOption(16))return;let t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(ml(()=>{let n=this._codeLensCache.get(e);t===n&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(let n of this._languageFeaturesService.codeLensProvider.all(e))if(typeof n.onDidChange=="function"){let o=n.onDidChange(()=>r.schedule());this._localToDispose.add(o)}let r=new ui(()=>{var n;let o=Date.now();(n=this._getCodeLensModelPromise)===null||n===void 0||n.cancel(),this._getCodeLensModelPromise=Jt(s=>QT(this._languageFeaturesService.codeLensProvider,e,s)),this._getCodeLensModelPromise.then(s=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=s,this._codeLensCache.put(e,s);let a=this._provideCodeLensDebounce.update(e,Date.now()-o);r.delay=a,this._renderCodeLensSymbols(s),this._resolveCodeLensesInViewportSoon()},ft)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(r),this._localToDispose.add(ri(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var n;this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{let a=[],l=-1;this._lenses.forEach(d=>{!d.isValid()||l===d.getLineNumber()?a.push(d):(d.update(s),l=d.getLineNumber())});let c=new np;a.forEach(d=>{d.dispose(c,s),this._lenses.splice(this._lenses.indexOf(d),1)}),c.commit(o)})}),r.schedule(),this._resolveCodeLensesScheduler.cancel(),(n=this._resolveCodeLensesPromise)===null||n===void 0||n.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{r.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(n=>{n.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(ri(()=>{if(this._editor.getModel()){let n=va.capture(this._editor);this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{this._disposeAllLenses(o,s)})}),n.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(n=>{if(n.target.type!==9)return;let o=n.target.element;if((o==null?void 0:o.tagName)==="SPAN"&&(o=o.parentElement),(o==null?void 0:o.tagName)==="A")for(let s of this._lenses){let a=s.getCommand(o);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),r.schedule()}_disposeAllLenses(e,t){let r=new np;for(let n of this._lenses)n.dispose(r,t);e&&r.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;let t=this._editor.getModel().getLineCount(),r=[],n;for(let a of e.lenses){let l=a.symbol.range.startLineNumber;l<1||l>t||(n&&n[n.length-1].symbol.range.startLineNumber===l?n.push(a):(n=[a],r.push(n)))}if(!r.length&&!this._lenses.length)return;let o=va.capture(this._editor),s=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{let c=new np,d=0,u=0;for(;uthis._resolveCodeLensesInViewportSoon())),d++,u++)}for(;dthis._resolveCodeLensesInViewportSoon())),u++;c.commit(a)})}),o.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;let t=this._editor.getModel();if(!t)return;let r=[],n=[];if(this._lenses.forEach(a=>{let l=a.computeIfNecessary(t);l&&(r.push(l),n.push(a))}),r.length===0)return;let o=Date.now(),s=Jt(a=>{let l=r.map((c,d)=>{let u=new Array(c.length),h=c.map((f,m)=>!f.symbol.command&&typeof f.provider.resolveCodeLens=="function"?Promise.resolve(f.provider.resolveCodeLens(t,f.symbol,a)).then(g=>{u[m]=g},Xt):(u[m]=f.symbol,Promise.resolve(void 0)));return Promise.all(h).then(()=>{!a.isCancellationRequested&&!n[d].isDisposed()&&n[d].updateCommands(u)})});return Promise.all(l)});this._resolveCodeLensesPromise=s,this._resolveCodeLensesPromise.then(()=>{let a=this._resolveCodeLensesDebounce.update(t,Date.now()-o);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{ft(a),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};op.ID="css.editor.codeLens";op=pge([O0(1,Se),O0(2,lr),O0(3,_i),O0(4,Ri),O0(5,eI)],op);Ue(op.ID,op,1);ee(class extends de{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:F.hasCodeLensProvider,label:b("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return mge(this,void 0,void 0,function*(){if(!t.hasModel())return;let r=e.get(nn),n=e.get(_i),o=e.get(Ri),s=t.getSelection().positionLineNumber,a=t.getContribution(op.ID);if(!a)return;let l=a.getModel();if(!l)return;let c=[];for(let u of l.lenses)u.symbol.command&&u.symbol.range.startLineNumber===s&&c.push({label:u.symbol.command.title,command:u.symbol.command});if(c.length===0)return;let d=yield r.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield n.executeCommand(this.id);try{yield n.executeCommand(d.command.id,...d.command.arguments||[])}catch(u){o.error(u)}}})}})});var tc,rI=N(()=>{_a();di();et();Ar();tc=class i{constructor(e,t,r){this.languageConfigurationService=r,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,r){if(r<0)return!1;let n=t.length,o=e.length;if(r+n>o)return!1;for(let s=0;s=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,r,n,o,s){let a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,u=o.getLineContent(a),h=o.getLineContent(c),f=u.lastIndexOf(t,l-1+t.length),m=h.indexOf(r,d-1-r.length);if(f!==-1&&m!==-1)if(a===c)u.substring(f+t.length,m).indexOf(r)>=0&&(f=-1,m=-1);else{let w=u.substring(f+t.length),_=h.substring(0,m);(w.indexOf(r)>=0||_.indexOf(r)>=0)&&(f=-1,m=-1)}let g;f!==-1&&m!==-1?(n&&f+t.length0&&h.charCodeAt(m-1)===32&&(r=" "+r,m-=1),g=i._createRemoveBlockCommentOperations(new B(a,f+t.length+1,c,m+1),t,r)):(g=i._createAddBlockCommentOperations(e,t,r,this._insertSpace),this._usedEndToken=g.length===1?r:null);for(let w of g)s.addTrackedEditOperation(w.range,w.text)}static _createRemoveBlockCommentOperations(e,t,r){let n=[];return B.isEmpty(e)?n.push(ii.delete(new B(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+r.length))):(n.push(ii.delete(new B(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),n.push(ii.delete(new B(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+r.length)))),n}static _createAddBlockCommentOperations(e,t,r,n){let o=[];return B.isEmpty(e)?o.push(ii.replace(new B(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+r)):(o.push(ii.insert(new Ie(e.startLineNumber,e.startColumn),t+(n?" ":""))),o.push(ii.insert(new Ie(e.endLineNumber,e.endColumn),(n?" ":"")+r))),o}getEditOperations(e,t){let r=this._selection.startLineNumber,n=this._selection.startColumn;e.tokenization.tokenizeIfCheap(r);let o=e.getLanguageIdAtPosition(r,n),s=this.languageConfigurationService.getLanguageConfiguration(o).comments;!s||!s.blockCommentStartToken||!s.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,s.blockCommentStartToken,s.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){let r=t.getInverseEditOperations();if(r.length===2){let n=r[0],o=r[1];return new Qe(n.range.endLineNumber,n.range.endColumn,o.range.startLineNumber,o.range.startColumn)}else{let n=r[0].range,o=this._usedEndToken?-this._usedEndToken.length-1:0;return new Qe(n.endLineNumber,n.endColumn+o,n.endLineNumber,n.endColumn+o)}}}});var $x,eK=N(()=>{Ni();_a();di();et();Ar();rI();$x=class i{constructor(e,t,r,n,o,s,a){this.languageConfigurationService=e,this._selection=t,this._tabSize=r,this._type=n,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,r,n){e.tokenization.tokenizeIfCheap(t);let o=e.getLanguageIdAtPosition(t,1),s=n.getLanguageConfiguration(o).comments,a=s?s.lineCommentToken:null;if(!a)return null;let l=[];for(let c=0,d=r-t+1;co?t[l].commentStrOffset=s-1:t[l].commentStrOffset=s}}}});var F0,nI,oI,sI,aI,lI=N(()=>{ll();lt();et();ti();Hr();rI();eK();He();Ji();F0=class extends de{constructor(e,t){super(t),this._type=e}run(e,t){let r=e.get(Ot);if(!t.hasModel())return;let n=t.getModel(),o=[],s=n.getOptions(),a=t.getOption(22),l=t.getSelections().map((d,u)=>({selection:d,index:u,ignoreFirstLine:!1}));l.sort((d,u)=>B.compareRangesUsingStarts(d.selection,u.selection));let c=l[0];for(let d=1;d{Ht();gF();Fc();ke();Tn();lt();ti();He();Ji();wt();yl();jr();Sr();U_();gge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qu=function(i,e){return function(t,r){e(t,r,i)}},sp=cI=class{static get(e){return e.getContribution(cI.ID)}constructor(e,t,r,n,o,s,a,l){this._contextMenuService=t,this._contextViewService=r,this._contextKeyService=n,this._keybindingService=o,this._menuService=s,this._configurationService=a,this._workspaceContextService=l,this._toDispose=new le,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(c=>this._onContextMenu(c))),this._toDispose.add(this._editor.onMouseWheel(c=>{if(this._contextMenuIsBeingShownCount>0){let d=this._contextViewService.getContextViewElement(),u=c.srcElement;u.shadowRoot&&lP(d)===u.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(c=>{this._editor.getOption(23)&&c.keyCode===58&&(c.preventDefault(),c.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(23)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu(e.event);if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let r=!1;for(let n of this._editor.getSelections())if(n.containsPosition(e.target.position)){r=!0;break}r||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t=e.event),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(23)||!this._editor.hasModel())return;let t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?Me.SimpleEditorContext:Me.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){let r=[],n=this._menuService.createMenu(t,this._contextKeyService),o=n.getActions({arg:e.uri});n.dispose();for(let s of o){let[,a]=s,l=0;for(let c of a)if(c instanceof Pm){let d=this._getMenuActions(e,c.item.submenu);d.length>0&&(r.push(new Nm(c.id,c.label,d)),l++)}else r.push(c),l++;l&&r.push(new Cs)}return r.length&&r.pop(),r}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;let r=this._editor.getOption(59);this._editor.updateOptions({hover:{enabled:!1}});let n=t;if(!n){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();let s=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),a=Zi(this._editor.getDomNode()),l=a.left+s.left,c=a.top+s.top+s.height;n={x:l,y:c}}let o=this._editor.getOption(125)&&!Lm;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:o?this._editor.getDomNode():void 0,getAnchor:()=>n,getActions:()=>e,getActionViewItem:s=>{let a=this._keybindingFor(s);if(a)return new rg(s,s,{label:!0,keybinding:a.getLabel(),isMenu:!0});let l=s;return typeof l.getActionViewItem=="function"?l.getActionViewItem():new rg(s,s,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:s=>this._keybindingFor(s),onHide:s=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:r})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel()||IF(this._workspaceContextService.getWorkspace()))return;let t=this._editor.getOption(71),r=0,n=c=>({id:`menu-action-${++r}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled=="undefined"?!0:c.enabled,checked:c.checked,run:c.run}),o=(c,d)=>new Nm(`menu-action-${++r}`,c,d,void 0),s=(c,d,u,h,f)=>{if(!d)return n({label:c,enabled:d,run:()=>{}});let m=w=>()=>{this._configurationService.updateValue(u,w)},g=[];for(let w of f)g.push(n({label:w.label,checked:h===w.value,run:m(w.value)}));return o(c,g)},a=[];a.push(n({label:b("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new Cs),a.push(n({label:b("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(s(b("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:b("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:b("context.minimap.size.fill","Fill"),value:"fill"},{label:b("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(s(b("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:b("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:b("context.minimap.slider.always","Always"),value:"always"}]));let l=this._editor.getOption(125)&&!Lm;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};sp.ID="editor.contrib.contextmenu";sp=cI=gge([Qu(1,rs),Qu(2,Gc),Qu(3,it),Qu(4,Kt),Qu(5,Ss),Qu(6,Mt),Qu(7,xl)],sp);dI=class extends de{constructor(){super({id:"editor.action.showContextMenu",label:b("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:1092,weight:100}})}run(e,t){var r;(r=sp.get(t))===null||r===void 0||r.showContextMenu()}};Ue(sp.ID,sp,2);ee(dI)});var z0,B0,Zu,hI,fI,pI=N(()=>{ke();lt();ti();He();z0=class{constructor(e){this.selections=e}equals(e){let t=this.selections.length,r=e.selections.length;if(t!==r)return!1;for(let n=0;n{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;let r=new z0(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(r)||(this._undoStack.push(new B0(r,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new B0(new z0(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new B0(new z0(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}};Zu.ID="editor.contrib.cursorUndoRedoController";hI=class extends de{constructor(){super({id:"cursorUndo",label:b("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:2099,weight:100}})}run(e,t,r){var n;(n=Zu.get(t))===null||n===void 0||n.cursorUndo()}},fI=class extends de{constructor(){super({id:"cursorRedo",label:b("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,r){var n;(n=Zu.get(t))===null||n===void 0||n.cursorRedo()}};Ue(Zu.ID,Zu,0);ee(hI);ee(fI)});var tK=N(()=>{});var iK=N(()=>{tK()});var Gx,rK=N(()=>{et();Ar();Gx=class{constructor(e,t,r){this.selection=e,this.targetPosition=t,this.copy=r,this.targetSelection=null}getEditOperations(e,t){let r=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new B(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),r),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new Qe(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new Qe(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber{ke();Tn();iK();lt();di();et();Ar();Ur();rK();Ju=class i extends ce{constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(34)||this._editor.getOption(21)||(ap(e)&&(this._modifierPressed=!0),this._mouseDown&&ap(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(34)||this._editor.getOption(21)||(ap(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===i.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){let t=e.target;if(this._dragSelection===null){let n=(this._editor.getSelections()||[]).filter(o=>t.position&&o.containsPosition(t.position));if(n.length===1)this._dragSelection=n[0];else return}ap(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){let t=new Ie(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let r=null;if(e.event.shiftKey){let n=this._editor.getSelection();if(n){let{selectionStartLineNumber:o,selectionStartColumn:s}=n;r=[new Qe(o,s,t.lineNumber,t.column)]}}else r=(this._editor.getSelections()||[]).map(n=>n.containsPosition(t)?new Qe(t.lineNumber,t.column,t.lineNumber,t.column):n);this._editor.setSelections(r||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(ap(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(i.ID,new Gx(this._dragSelection,t,ap(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new B(e.lineNumber,e.column,e.lineNumber,e.column),options:i._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}};Ju.ID="editor.contrib.dragAndDrop";Ju.TRIGGER_KEY_VALUE=En?6:5;Ju._DECORATION_OPTIONS=mt.register({description:"dnd-target",className:"dnd-target"});Ue(Ju.ID,Ju,2)});var Td,H0=N(()=>{Td=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let i;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?i=crypto.getRandomValues.bind(crypto):i=function(r){for(let n=0;nnK(this,void 0,void 0,function*(){return i}),asFile:()=>{},value:typeof i=="string"?i:void 0}}function oK(i,e,t){let r={id:Td(),name:i,uri:e,data:t};return{asString:()=>nK(this,void 0,void 0,function*(){return""}),asFile:()=>r,value:void 0}}function Yx(i){return i.toLowerCase()}function Xx(i,e){return sK(Yx(i),e.map(Yx))}function sK(i,e){if(i==="*/*")return e.length>0;if(e.includes(i))return!0;let t=i.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;let[r,n,o]=t;return o==="*"?e.some(s=>s.startsWith(n+"/")):!1}var nK,lp,eh,j0=N(()=>{mi();Jh();H0();nK=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};lp=class{constructor(){this._entries=new Map}get size(){let e=0;for(let t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){let t=[...this._entries.keys()];return kn.some(this,([r,n])=>n.asFile())&&t.push("files"),sK(Yx(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){let r=this._entries.get(e);r?r.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(let[e,t]of this._entries)for(let r of t)yield[e,r]}toKey(e){return Yx(e)}};eh=Object.freeze({create:i=>DP(i.map(e=>e.toString())).join(`\r +import{b as use}from"./chunk-I6K3GL3P.js";import{a as UN,b as l_,c as jN,d as YS,e as WN,f as qh,g as XS,h as Jo,i as fn,j as Dc,k as wm,l as xm,m as oo,n as QS,o as VN,p as KN,q as Xd,r as qN,s as GN}from"./chunk-AC3NSOOG.js";import{$ as Un,$a as Se,$b as DR,$c as k_,$d as iO,$e as gO,$f as WO,$g as Iw,$h as woe,$i as cb,$j as Dl,$k as mF,A as QN,Aa as fR,Ab as Ui,Ac as We,Ad as L_,Ae as Ri,Af as TO,Ag as XO,Ah as lu,Ai as Ow,Aj as UP,Ak as sF,Al as lse,B as Rc,Ba as pR,Bb as Qh,Bc as Mn,Bd as YR,Be as gi,Bf as U_,Bg as Km,Bh as Jm,Bi as e1,Bj as pb,Bk as Woe,Bl as cse,C as f_,Ca as wn,Cb as sw,Cc as RR,Cd as Zh,Ce as Kt,Cf as j_,Cg as QO,Ch as _oe,Ci as ob,Cj as Uw,Ck as n1,Cl as dse,D as Tm,Da as la,Db as wR,Dc as Kre,Dd as _w,De as Vc,Df as W_,Dg as JO,Dh as pf,Di as xa,Dj as jP,Dk as Voe,Dl as du,E as JN,Ea as mR,Eb as aw,Ec as fw,Ed as Tt,Ee as No,Ef as kO,Eg as doe,Eh as Ei,Ei as sb,Ej as Noe,Ek as Eb,El as ds,F as p_,Fa as gR,Fb as lw,Fc as qre,Fd as Kn,Fe as of,Ff as IO,Fg as G_,Fh as Ro,Fi as $r,Fj as WP,Fk as Qw,Fl as us,G as ZN,Ga as rw,Gb as Fc,Gc as OR,Gd as M_,Ge as wl,Gf as AO,Gg as uoe,Gh as hP,Gi as ab,Gj as jw,Gk as Jw,Gl as Os,H as nr,Ha as on,Hb as xR,Hc as Gre,Hd as Jre,He as F_,Hf as LO,Hg as qm,Hh as wa,Hi as cu,Hj as VP,Hk as Zw,I as Ln,Ia as Jd,Ib as ER,Ic as _l,Id as jc,Ie as ss,If as Bm,Ig as ya,Ih as El,Ii as IP,Ij as KP,Ik as aF,J as ml,Ja as ks,Jb as TR,Jc as PR,Jd as Zre,Je as ii,Jf as MO,Jg as ZO,Jh as Gc,Ji as lr,Jj as Roe,Jk as lF,K as li,Ka as me,Kb as kR,Kc as x_,Kd as bw,Ke as hO,Kf as Hm,Kg as Ms,Kh as Ht,Ki as kl,Kj as _f,Kk as cF,L as $e,La as Zd,Lb as y_,Lc as E_,Ld as nu,Le as B_,Lf as _a,Lg as Gm,Lh as Gn,Li as lb,Lj as Ww,Lk as Koe,M as ZS,Ma as fe,Mb as IR,Mc as T_,Md as D_,Me as fO,Mf as xl,Mg as eP,Mh as fP,Mi as AP,Mj as mb,Mk as dF,N as eR,Na as vR,Nb as C_,Nc as $re,Nd as XR,Ne as Rr,Nf as DO,Ng as tP,Nh as Z_,Ni as Ji,Nj as qP,Nk as qoe,O as Gt,Oa as gr,Ob as cw,Oc as tu,Od as N_,Oe as pO,Of as su,Og as uf,Oh as pP,Oi as cs,Oj as t1,Ok as Tb,P as tR,Pa as jn,Pb as wi,Pc as pw,Pd as eoe,Pe as Dt,Pf as NO,Pg as iP,Ph as eb,Pi as an,Pj as GP,Pk as uF,Q as iR,Qa as _R,Qb as ce,Qc as Uc,Qd as O,Qe as mO,Qf as Sw,Qg as kw,Qh as boe,Qi as Rs,Qj as gb,Qk as r1,R as nR,Ra as $h,Rb as rt,Rc as Yre,Rd as Vt,Re as sf,Rf as RO,Rg as hf,Rh as mP,Ri as qt,Rj as vb,Rk as hF,S as ew,Sa as Bt,Sb as Ke,Sc as Jh,Sd as ef,Se as Cw,Sf as OO,Sg as br,Sh as yoe,Si as Ea,Sj as $P,Sk as e3,T as m_,Ta as Ni,Tb as pt,Tc as Dm,Td as R_,Te as Gr,Tf as PO,Tg as nP,Th as gP,Ti as LP,Tj as Vw,Tk as Goe,U as g_,Ua as bR,Ub as AR,Uc as FR,Ud as QR,Ue as pa,Uf as FO,Ug as rP,Uh as vP,Ui as Toe,Uj as Ooe,Uk as fF,V as tw,Va as Lo,Vb as LR,Vc as Nm,Vd as fa,Ve as ou,Vf as BO,Vg as oP,Vh as _P,Vi as Il,Vj as _b,Vk as $oe,W as km,Wa as Be,Wb as MR,Wc as BR,Wd as tf,We as Kc,Wf as HO,Wg as hoe,Wh as bP,Wi as Pw,Wj as bb,Wk as bf,X as rR,Xa as rr,Xb as Mr,Xc as Rm,Xd as JR,Xe as Ls,Xf as zO,Xg as sP,Xh as Coe,Xi as MP,Xj as YP,Xk as t3,Y as Lt,Ya as Et,Yb as Bc,Yc as Xre,Yd as ZR,Ye as Pm,Yf as ww,Yg as foe,Yh as yP,Yi as DP,Yj as yb,Yk as kb,Z as Oc,Za as ei,Zb as Do,Zc as ha,Zd as eO,Ze as ut,Zf as UO,Zg as aP,Zh as Soe,Zi as Fw,Zj as XP,Zk as pF,_ as oR,_a as Lr,_b as dw,_c as iu,_d as tO,_e as ma,_f as jO,_g as poe,_h as Lw,_i as NP,_j as Poe,_k as Ki,a as v,aa as Mi,ab as ri,ac as xe,ad as HR,ae as nO,af as noe,ag as VO,ah as ff,ai as Mw,aj as Yc,ak as Cb,al as i3,b as Re,ba as di,bb as Si,bc as As,bd as mw,be as ru,bf as vO,bg as KO,bh as dt,bi as xoe,bj as db,bk as QP,bl as gF,c as lt,ca as gl,cb as ts,cc as ns,cd as vr,ce as yl,cf as af,cg as qO,ch as qn,ci as Ns,cj as RP,ck as Foe,cl as n3,d as Ut,da as iw,db as xn,dc as Mm,dd as gw,de as O_,df as roe,dg as GO,dh as $_,di as Zm,dj as koe,dk as Kw,dl as Ib,e as Zo,ea as Wre,eb as ca,ec as da,ed as zR,ee as P_,ef as _O,eg as $O,eh as moe,ei as CP,ej as ub,ek as Boe,el as vF,f as c_,fa as v_,fb as is,fc as rs,fd as ji,fe as rO,ff as ooe,fg as ba,fh as Aw,fi as mf,fj as OP,fk as Sb,fl as Xc,g as Io,ga as sR,gb as Is,gc as mi,gd as UR,ge as Cl,gf as lf,gg as zm,gh as lP,gi as tb,gj as PP,gk as i1,gl as Ta,h as Qd,ha as aR,hb as Am,hc as Xi,hd as jR,he as oO,hf as soe,hg as Um,hh as goe,hi as ib,hj as FP,hk as qw,hl as o1,i as At,ia as Vre,ib as Yh,ic as Dr,id as I_,ie as toe,if as bO,ig as jm,ih as Ds,ii as SP,ij as BP,ik as wb,il as Yoe,j as d_,ja as lR,jb as Pc,jc as Hc,jd as WR,je as sO,jf as aoe,jg as Wm,jh as $m,ji as Dw,jj as Ioe,jk as JP,jl as _F,k as $N,ka as Gh,kb as ct,kc as zc,kd as VR,ke as ioe,kf as yO,kg as YO,kh as cP,ki as Eoe,kj as Bw,kk as ZP,kl as Xoe,l as so,la as __,lb as or,lc as S_,ld as KR,le as aO,lf as loe,lg as V_,lh as Y_,li as Oo,lj as Al,lk as Hoe,ll as Qoe,m as Em,ma as cR,mb as gt,mc as w_,md as qR,me as yw,mf as CO,mg as cf,mh as Ca,mi as gf,mj as Hw,mk as Gw,ml as bF,n as u_,na as ft,nb as Kr,nc as xi,nd as oi,ne as nf,nf as coe,ng as xw,nh as X_,ni as wP,nj as HP,nk as $w,nl as yF,o as Vi,oa as Sn,ob as ui,oc as se,od as GR,oe as lO,of as ga,og as Vm,oh as Ym,oi as nb,oj as Aoe,ok as Yw,ol as CF,p as JS,pa as Ao,pb as St,pc as uw,pd as Qre,pe as Nr,pf as Oe,pg as Or,ph as Xm,pi as xP,pj as Loe,pk as zoe,pl as SF,q as Ft,qa as Im,qb as zi,qc as ua,qd as A_,qe as cO,qf as ke,qg as K_,qh as dP,qi as $c,qj as zP,qk as eF,ql as Joe,r as re,ra as mr,rb as Xh,rc as qr,rd as $R,re as rf,rf as SO,rg as _r,rh as voe,ri as ls,rj as Moe,rk as tF,rl as Zoe,s as oe,sa as dR,sb as ow,sc as Ne,sd as Mt,se as dO,sf as Fm,sg as au,sh as qc,si as Tl,sj as Ti,sk as iF,sl as ese,t as Hi,ta as Rt,tb as yR,tc as X,td as Wn,te as uO,tf as wO,tg as Ew,th as Q_,ti as Nw,tj as hb,tk as Uoe,tl as tse,u as YN,ua as es,ub as Mo,uc as hw,ud as Qi,ue as Om,uf as as,ug as Tw,uh as Qm,ui as Rw,uj as Ll,uk as xb,ul as ise,v as Ce,va as uR,vb as vl,vc as NR,vd as os,ve as ao,vf as va,vg as pn,vh as be,vi as EP,vj as vf,vk as nF,vl as nse,w as h_,wa as nw,wb as CR,wc as Ae,wd as sr,we as sn,wf as H_,wg as vi,wh as xt,wi as TP,wj as Doe,wk as rF,wl as rse,x as XN,xa as hR,xb as SR,xc as et,xd as bl,xe as Wc,xf as z_,xg as df,xh as J_,xi as kP,xj as Ml,xk as oF,xl as ose,y as Nc,ya as b_,yb as eu,yc as P,yd as Vn,ye as Sl,yf as xO,yg as ar,yh as Sa,yi as rb,yj as fb,yk as joe,yl as sse,z as zn,za as Di,zb as Lm,zc as qe,zd as vw,ze as tt,zf as EO,zg as q_,zh as uP,zi as Dn,zj as zw,zk as Xw,zl as ase}from"./chunk-7J2UPTE3.js";import{a as De,b as Pt,c as Yd,d as aa,e as M,f as Ze,g as zN,h as Bi,i as Kh,j as Cn}from"./chunk-3X664NSF.js";var E3=Ze((PSe,CB)=>{CB.exports=function(e){return e!=null&&e.constructor!=null&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}});var LB=Ze((FSe,AB)=>{"use strict";var Jb=Object.prototype.hasOwnProperty,IB=Object.prototype.toString,SB=Object.defineProperty,wB=Object.getOwnPropertyDescriptor,xB=function(e){return typeof Array.isArray=="function"?Array.isArray(e):IB.call(e)==="[object Array]"},EB=function(e){if(!e||IB.call(e)!=="[object Object]")return!1;var t=Jb.call(e,"constructor"),n=e.constructor&&e.constructor.prototype&&Jb.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!t&&!n)return!1;var r;for(r in e);return typeof r=="undefined"||Jb.call(e,r)},TB=function(e,t){SB&&t.name==="__proto__"?SB(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},kB=function(e,t){if(t==="__proto__")if(Jb.call(e,t)){if(wB)return wB(e,t).value}else return;return e[t]};AB.exports=function i(){var e,t,n,r,o,s,a=arguments[0],l=1,c=arguments.length,d=!1;for(typeof a=="boolean"&&(d=a,a=arguments[1]||{},l=2),(a==null||typeof a!="object"&&typeof a!="function")&&(a={});l{"use strict";var $H={};function tce(i){var e,t,n=$H[i];if(n)return n;for(n=$H[i]=[],e=0;e<128;e++)t=String.fromCharCode(e),/^[0-9a-z]$/i.test(t)?n.push(t):n.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2));for(e=0;e=55296&&o<=57343){if(o>=55296&&o<=56319&&n+1=56320&&s<=57343)){l+=encodeURIComponent(i[n]+i[n+1]),n++;continue}l+="%EF%BF%BD";continue}l+=encodeURIComponent(i[n])}return l}d4.defaultChars=";/?:@&=+$,-_.!~*'()#";d4.componentChars="-_.!~*'()";YH.exports=d4});var p4=Ze(Fl=>{"use strict";var lce=[65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111];Fl.REPLACEMENT_CHARACTER="\uFFFD";Fl.CODE_POINTS={EOF:-1,NULL:0,TABULATION:9,CARRIAGE_RETURN:13,LINE_FEED:10,FORM_FEED:12,SPACE:32,EXCLAMATION_MARK:33,QUOTATION_MARK:34,NUMBER_SIGN:35,AMPERSAND:38,APOSTROPHE:39,HYPHEN_MINUS:45,SOLIDUS:47,DIGIT_0:48,DIGIT_9:57,SEMICOLON:59,LESS_THAN_SIGN:60,EQUALS_SIGN:61,GREATER_THAN_SIGN:62,QUESTION_MARK:63,LATIN_CAPITAL_A:65,LATIN_CAPITAL_F:70,LATIN_CAPITAL_X:88,LATIN_CAPITAL_Z:90,RIGHT_SQUARE_BRACKET:93,GRAVE_ACCENT:96,LATIN_SMALL_A:97,LATIN_SMALL_F:102,LATIN_SMALL_X:120,LATIN_SMALL_Z:122,REPLACEMENT_CHARACTER:65533};Fl.CODE_POINT_SEQUENCES={DASH_DASH_STRING:[45,45],DOCTYPE_STRING:[68,79,67,84,89,80,69],CDATA_START_STRING:[91,67,68,65,84,65,91],SCRIPT_STRING:[115,99,114,105,112,116],PUBLIC_STRING:[80,85,66,76,73,67],SYSTEM_STRING:[83,89,83,84,69,77]};Fl.isSurrogate=function(i){return i>=55296&&i<=57343};Fl.isSurrogatePair=function(i){return i>=56320&&i<=57343};Fl.getSurrogatePairCodePoint=function(i,e){return(i-55296)*1024+9216+e};Fl.isControlCodePoint=function(i){return i!==32&&i!==10&&i!==13&&i!==9&&i!==12&&i>=1&&i<=31||i>=127&&i<=159};Fl.isUndefinedCodePoint=function(i){return i>=64976&&i<=65007||lce.indexOf(i)>-1}});var m4=Ze((X6e,pz)=>{"use strict";pz.exports={controlCharacterInInputStream:"control-character-in-input-stream",noncharacterInInputStream:"noncharacter-in-input-stream",surrogateInInputStream:"surrogate-in-input-stream",nonVoidHtmlElementStartTagWithTrailingSolidus:"non-void-html-element-start-tag-with-trailing-solidus",endTagWithAttributes:"end-tag-with-attributes",endTagWithTrailingSolidus:"end-tag-with-trailing-solidus",unexpectedSolidusInTag:"unexpected-solidus-in-tag",unexpectedNullCharacter:"unexpected-null-character",unexpectedQuestionMarkInsteadOfTagName:"unexpected-question-mark-instead-of-tag-name",invalidFirstCharacterOfTagName:"invalid-first-character-of-tag-name",unexpectedEqualsSignBeforeAttributeName:"unexpected-equals-sign-before-attribute-name",missingEndTagName:"missing-end-tag-name",unexpectedCharacterInAttributeName:"unexpected-character-in-attribute-name",unknownNamedCharacterReference:"unknown-named-character-reference",missingSemicolonAfterCharacterReference:"missing-semicolon-after-character-reference",unexpectedCharacterAfterDoctypeSystemIdentifier:"unexpected-character-after-doctype-system-identifier",unexpectedCharacterInUnquotedAttributeValue:"unexpected-character-in-unquoted-attribute-value",eofBeforeTagName:"eof-before-tag-name",eofInTag:"eof-in-tag",missingAttributeValue:"missing-attribute-value",missingWhitespaceBetweenAttributes:"missing-whitespace-between-attributes",missingWhitespaceAfterDoctypePublicKeyword:"missing-whitespace-after-doctype-public-keyword",missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers:"missing-whitespace-between-doctype-public-and-system-identifiers",missingWhitespaceAfterDoctypeSystemKeyword:"missing-whitespace-after-doctype-system-keyword",missingQuoteBeforeDoctypePublicIdentifier:"missing-quote-before-doctype-public-identifier",missingQuoteBeforeDoctypeSystemIdentifier:"missing-quote-before-doctype-system-identifier",missingDoctypePublicIdentifier:"missing-doctype-public-identifier",missingDoctypeSystemIdentifier:"missing-doctype-system-identifier",abruptDoctypePublicIdentifier:"abrupt-doctype-public-identifier",abruptDoctypeSystemIdentifier:"abrupt-doctype-system-identifier",cdataInHtmlContent:"cdata-in-html-content",incorrectlyOpenedComment:"incorrectly-opened-comment",eofInScriptHtmlCommentLikeText:"eof-in-script-html-comment-like-text",eofInDoctype:"eof-in-doctype",nestedComment:"nested-comment",abruptClosingOfEmptyComment:"abrupt-closing-of-empty-comment",eofInComment:"eof-in-comment",incorrectlyClosedComment:"incorrectly-closed-comment",eofInCdata:"eof-in-cdata",absenceOfDigitsInNumericCharacterReference:"absence-of-digits-in-numeric-character-reference",nullCharacterReference:"null-character-reference",surrogateCharacterReference:"surrogate-character-reference",characterReferenceOutsideUnicodeRange:"character-reference-outside-unicode-range",controlCharacterReference:"control-character-reference",noncharacterCharacterReference:"noncharacter-character-reference",missingWhitespaceBeforeDoctypeName:"missing-whitespace-before-doctype-name",missingDoctypeName:"missing-doctype-name",invalidCharacterSequenceAfterDoctypeName:"invalid-character-sequence-after-doctype-name",duplicateAttribute:"duplicate-attribute",nonConformingDoctype:"non-conforming-doctype",missingDoctype:"missing-doctype",misplacedDoctype:"misplaced-doctype",endTagWithoutMatchingOpenElement:"end-tag-without-matching-open-element",closingOfElementWithOpenChildElements:"closing-of-element-with-open-child-elements",disallowedContentInNoscriptInHead:"disallowed-content-in-noscript-in-head",openElementsLeftAfterEof:"open-elements-left-after-eof",abandonedHeadElementChild:"abandoned-head-element-child",misplacedStartTagForHeadElement:"misplaced-start-tag-for-head-element",nestedNoscriptInHead:"nested-noscript-in-head",eofInElementThatCanContainOnlyText:"eof-in-element-that-can-contain-only-text"}});var gz=Ze((Q6e,mz)=>{"use strict";var If=p4(),sx=m4(),mu=If.CODE_POINTS,cce=65536,ax=class{constructor(){this.html=null,this.pos=-1,this.lastGapPos=-1,this.lastCharPos=-1,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=cce}_err(){}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.lastCharPos){let t=this.html.charCodeAt(this.pos+1);if(If.isSurrogatePair(t))return this.pos++,this._addGap(),If.getSurrogatePairCodePoint(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,mu.EOF;return this._err(sx.surrogateInInputStream),e}dropParsedChunk(){this.pos>this.bufferWaterline&&(this.lastCharPos-=this.pos,this.html=this.html.substring(this.pos),this.pos=0,this.lastGapPos=-1,this.gapStack=[])}write(e,t){this.html?this.html+=e:this.html=e,this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1,this.html.length),this.lastCharPos=this.html.length-1,this.endOfChunkHit=!1}advance(){if(this.pos++,this.pos>this.lastCharPos)return this.endOfChunkHit=!this.lastChunkWritten,mu.EOF;let e=this.html.charCodeAt(this.pos);return this.skipNextNewLine&&e===mu.LINE_FEED?(this.skipNextNewLine=!1,this._addGap(),this.advance()):e===mu.CARRIAGE_RETURN?(this.skipNextNewLine=!0,mu.LINE_FEED):(this.skipNextNewLine=!1,If.isSurrogate(e)&&(e=this._processSurrogate(e)),e>31&&e<127||e===mu.LINE_FEED||e===mu.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){If.isControlCodePoint(e)?this._err(sx.controlCharacterInInputStream):If.isUndefinedCodePoint(e)&&this._err(sx.noncharacterInInputStream)}retreat(){this.pos===this.lastGapPos&&(this.lastGapPos=this.gapStack.pop(),this.pos--),this.pos--}};mz.exports=ax});var _z=Ze((J6e,vz)=>{"use strict";vz.exports=new Uint16Array([4,52,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,106,303,412,810,1432,1701,1796,1987,2114,2360,2420,2484,3170,3251,4140,4393,4575,4610,5106,5512,5728,6117,6274,6315,6345,6427,6516,7002,7910,8733,9323,9870,10170,10631,10893,11318,11386,11467,12773,13092,14474,14922,15448,15542,16419,17666,18166,18611,19004,19095,19298,19397,4,16,69,77,97,98,99,102,103,108,109,110,111,112,114,115,116,117,140,150,158,169,176,194,199,210,216,222,226,242,256,266,283,294,108,105,103,5,198,1,59,148,1,198,80,5,38,1,59,156,1,38,99,117,116,101,5,193,1,59,167,1,193,114,101,118,101,59,1,258,4,2,105,121,182,191,114,99,5,194,1,59,189,1,194,59,1,1040,114,59,3,55349,56580,114,97,118,101,5,192,1,59,208,1,192,112,104,97,59,1,913,97,99,114,59,1,256,100,59,1,10835,4,2,103,112,232,237,111,110,59,1,260,102,59,3,55349,56632,112,108,121,70,117,110,99,116,105,111,110,59,1,8289,105,110,103,5,197,1,59,264,1,197,4,2,99,115,272,277,114,59,3,55349,56476,105,103,110,59,1,8788,105,108,100,101,5,195,1,59,292,1,195,109,108,5,196,1,59,301,1,196,4,8,97,99,101,102,111,114,115,117,321,350,354,383,388,394,400,405,4,2,99,114,327,336,107,115,108,97,115,104,59,1,8726,4,2,118,119,342,345,59,1,10983,101,100,59,1,8966,121,59,1,1041,4,3,99,114,116,362,369,379,97,117,115,101,59,1,8757,110,111,117,108,108,105,115,59,1,8492,97,59,1,914,114,59,3,55349,56581,112,102,59,3,55349,56633,101,118,101,59,1,728,99,114,59,1,8492,109,112,101,113,59,1,8782,4,14,72,79,97,99,100,101,102,104,105,108,111,114,115,117,442,447,456,504,542,547,569,573,577,616,678,784,790,796,99,121,59,1,1063,80,89,5,169,1,59,454,1,169,4,3,99,112,121,464,470,497,117,116,101,59,1,262,4,2,59,105,476,478,1,8914,116,97,108,68,105,102,102,101,114,101,110,116,105,97,108,68,59,1,8517,108,101,121,115,59,1,8493,4,4,97,101,105,111,514,520,530,535,114,111,110,59,1,268,100,105,108,5,199,1,59,528,1,199,114,99,59,1,264,110,105,110,116,59,1,8752,111,116,59,1,266,4,2,100,110,553,560,105,108,108,97,59,1,184,116,101,114,68,111,116,59,1,183,114,59,1,8493,105,59,1,935,114,99,108,101,4,4,68,77,80,84,591,596,603,609,111,116,59,1,8857,105,110,117,115,59,1,8854,108,117,115,59,1,8853,105,109,101,115,59,1,8855,111,4,2,99,115,623,646,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8754,101,67,117,114,108,121,4,2,68,81,658,671,111,117,98,108,101,81,117,111,116,101,59,1,8221,117,111,116,101,59,1,8217,4,4,108,110,112,117,688,701,736,753,111,110,4,2,59,101,696,698,1,8759,59,1,10868,4,3,103,105,116,709,717,722,114,117,101,110,116,59,1,8801,110,116,59,1,8751,111,117,114,73,110,116,101,103,114,97,108,59,1,8750,4,2,102,114,742,745,59,1,8450,111,100,117,99,116,59,1,8720,110,116,101,114,67,108,111,99,107,119,105,115,101,67,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8755,111,115,115,59,1,10799,99,114,59,3,55349,56478,112,4,2,59,67,803,805,1,8915,97,112,59,1,8781,4,11,68,74,83,90,97,99,101,102,105,111,115,834,850,855,860,865,888,903,916,921,1011,1415,4,2,59,111,840,842,1,8517,116,114,97,104,100,59,1,10513,99,121,59,1,1026,99,121,59,1,1029,99,121,59,1,1039,4,3,103,114,115,873,879,883,103,101,114,59,1,8225,114,59,1,8609,104,118,59,1,10980,4,2,97,121,894,900,114,111,110,59,1,270,59,1,1044,108,4,2,59,116,910,912,1,8711,97,59,1,916,114,59,3,55349,56583,4,2,97,102,927,998,4,2,99,109,933,992,114,105,116,105,99,97,108,4,4,65,68,71,84,950,957,978,985,99,117,116,101,59,1,180,111,4,2,116,117,964,967,59,1,729,98,108,101,65,99,117,116,101,59,1,733,114,97,118,101,59,1,96,105,108,100,101,59,1,732,111,110,100,59,1,8900,102,101,114,101,110,116,105,97,108,68,59,1,8518,4,4,112,116,117,119,1021,1026,1048,1249,102,59,3,55349,56635,4,3,59,68,69,1034,1036,1041,1,168,111,116,59,1,8412,113,117,97,108,59,1,8784,98,108,101,4,6,67,68,76,82,85,86,1065,1082,1101,1189,1211,1236,111,110,116,111,117,114,73,110,116,101,103,114,97,108,59,1,8751,111,4,2,116,119,1089,1092,59,1,168,110,65,114,114,111,119,59,1,8659,4,2,101,111,1107,1141,102,116,4,3,65,82,84,1117,1124,1136,114,114,111,119,59,1,8656,105,103,104,116,65,114,114,111,119,59,1,8660,101,101,59,1,10980,110,103,4,2,76,82,1149,1177,101,102,116,4,2,65,82,1158,1165,114,114,111,119,59,1,10232,105,103,104,116,65,114,114,111,119,59,1,10234,105,103,104,116,65,114,114,111,119,59,1,10233,105,103,104,116,4,2,65,84,1199,1206,114,114,111,119,59,1,8658,101,101,59,1,8872,112,4,2,65,68,1218,1225,114,114,111,119,59,1,8657,111,119,110,65,114,114,111,119,59,1,8661,101,114,116,105,99,97,108,66,97,114,59,1,8741,110,4,6,65,66,76,82,84,97,1264,1292,1299,1352,1391,1408,114,114,111,119,4,3,59,66,85,1276,1278,1283,1,8595,97,114,59,1,10515,112,65,114,114,111,119,59,1,8693,114,101,118,101,59,1,785,101,102,116,4,3,82,84,86,1310,1323,1334,105,103,104,116,86,101,99,116,111,114,59,1,10576,101,101,86,101,99,116,111,114,59,1,10590,101,99,116,111,114,4,2,59,66,1345,1347,1,8637,97,114,59,1,10582,105,103,104,116,4,2,84,86,1362,1373,101,101,86,101,99,116,111,114,59,1,10591,101,99,116,111,114,4,2,59,66,1384,1386,1,8641,97,114,59,1,10583,101,101,4,2,59,65,1399,1401,1,8868,114,114,111,119,59,1,8615,114,114,111,119,59,1,8659,4,2,99,116,1421,1426,114,59,3,55349,56479,114,111,107,59,1,272,4,16,78,84,97,99,100,102,103,108,109,111,112,113,115,116,117,120,1466,1470,1478,1489,1515,1520,1525,1536,1544,1593,1609,1617,1650,1664,1668,1677,71,59,1,330,72,5,208,1,59,1476,1,208,99,117,116,101,5,201,1,59,1487,1,201,4,3,97,105,121,1497,1503,1512,114,111,110,59,1,282,114,99,5,202,1,59,1510,1,202,59,1,1069,111,116,59,1,278,114,59,3,55349,56584,114,97,118,101,5,200,1,59,1534,1,200,101,109,101,110,116,59,1,8712,4,2,97,112,1550,1555,99,114,59,1,274,116,121,4,2,83,86,1563,1576,109,97,108,108,83,113,117,97,114,101,59,1,9723,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9643,4,2,103,112,1599,1604,111,110,59,1,280,102,59,3,55349,56636,115,105,108,111,110,59,1,917,117,4,2,97,105,1624,1640,108,4,2,59,84,1631,1633,1,10869,105,108,100,101,59,1,8770,108,105,98,114,105,117,109,59,1,8652,4,2,99,105,1656,1660,114,59,1,8496,109,59,1,10867,97,59,1,919,109,108,5,203,1,59,1675,1,203,4,2,105,112,1683,1689,115,116,115,59,1,8707,111,110,101,110,116,105,97,108,69,59,1,8519,4,5,99,102,105,111,115,1713,1717,1722,1762,1791,121,59,1,1060,114,59,3,55349,56585,108,108,101,100,4,2,83,86,1732,1745,109,97,108,108,83,113,117,97,114,101,59,1,9724,101,114,121,83,109,97,108,108,83,113,117,97,114,101,59,1,9642,4,3,112,114,117,1770,1775,1781,102,59,3,55349,56637,65,108,108,59,1,8704,114,105,101,114,116,114,102,59,1,8497,99,114,59,1,8497,4,12,74,84,97,98,99,100,102,103,111,114,115,116,1822,1827,1834,1848,1855,1877,1882,1887,1890,1896,1978,1984,99,121,59,1,1027,5,62,1,59,1832,1,62,109,109,97,4,2,59,100,1843,1845,1,915,59,1,988,114,101,118,101,59,1,286,4,3,101,105,121,1863,1869,1874,100,105,108,59,1,290,114,99,59,1,284,59,1,1043,111,116,59,1,288,114,59,3,55349,56586,59,1,8921,112,102,59,3,55349,56638,101,97,116,101,114,4,6,69,70,71,76,83,84,1915,1933,1944,1953,1959,1971,113,117,97,108,4,2,59,76,1925,1927,1,8805,101,115,115,59,1,8923,117,108,108,69,113,117,97,108,59,1,8807,114,101,97,116,101,114,59,1,10914,101,115,115,59,1,8823,108,97,110,116,69,113,117,97,108,59,1,10878,105,108,100,101,59,1,8819,99,114,59,3,55349,56482,59,1,8811,4,8,65,97,99,102,105,111,115,117,2005,2012,2026,2032,2036,2049,2073,2089,82,68,99,121,59,1,1066,4,2,99,116,2018,2023,101,107,59,1,711,59,1,94,105,114,99,59,1,292,114,59,1,8460,108,98,101,114,116,83,112,97,99,101,59,1,8459,4,2,112,114,2055,2059,102,59,1,8461,105,122,111,110,116,97,108,76,105,110,101,59,1,9472,4,2,99,116,2079,2083,114,59,1,8459,114,111,107,59,1,294,109,112,4,2,68,69,2097,2107,111,119,110,72,117,109,112,59,1,8782,113,117,97,108,59,1,8783,4,14,69,74,79,97,99,100,102,103,109,110,111,115,116,117,2144,2149,2155,2160,2171,2189,2194,2198,2209,2245,2307,2329,2334,2341,99,121,59,1,1045,108,105,103,59,1,306,99,121,59,1,1025,99,117,116,101,5,205,1,59,2169,1,205,4,2,105,121,2177,2186,114,99,5,206,1,59,2184,1,206,59,1,1048,111,116,59,1,304,114,59,1,8465,114,97,118,101,5,204,1,59,2207,1,204,4,3,59,97,112,2217,2219,2238,1,8465,4,2,99,103,2225,2229,114,59,1,298,105,110,97,114,121,73,59,1,8520,108,105,101,115,59,1,8658,4,2,116,118,2251,2281,4,2,59,101,2257,2259,1,8748,4,2,103,114,2265,2271,114,97,108,59,1,8747,115,101,99,116,105,111,110,59,1,8898,105,115,105,98,108,101,4,2,67,84,2293,2300,111,109,109,97,59,1,8291,105,109,101,115,59,1,8290,4,3,103,112,116,2315,2320,2325,111,110,59,1,302,102,59,3,55349,56640,97,59,1,921,99,114,59,1,8464,105,108,100,101,59,1,296,4,2,107,109,2347,2352,99,121,59,1,1030,108,5,207,1,59,2358,1,207,4,5,99,102,111,115,117,2372,2386,2391,2397,2414,4,2,105,121,2378,2383,114,99,59,1,308,59,1,1049,114,59,3,55349,56589,112,102,59,3,55349,56641,4,2,99,101,2403,2408,114,59,3,55349,56485,114,99,121,59,1,1032,107,99,121,59,1,1028,4,7,72,74,97,99,102,111,115,2436,2441,2446,2452,2467,2472,2478,99,121,59,1,1061,99,121,59,1,1036,112,112,97,59,1,922,4,2,101,121,2458,2464,100,105,108,59,1,310,59,1,1050,114,59,3,55349,56590,112,102,59,3,55349,56642,99,114,59,3,55349,56486,4,11,74,84,97,99,101,102,108,109,111,115,116,2508,2513,2520,2562,2585,2981,2986,3004,3011,3146,3167,99,121,59,1,1033,5,60,1,59,2518,1,60,4,5,99,109,110,112,114,2532,2538,2544,2548,2558,117,116,101,59,1,313,98,100,97,59,1,923,103,59,1,10218,108,97,99,101,116,114,102,59,1,8466,114,59,1,8606,4,3,97,101,121,2570,2576,2582,114,111,110,59,1,317,100,105,108,59,1,315,59,1,1051,4,2,102,115,2591,2907,116,4,10,65,67,68,70,82,84,85,86,97,114,2614,2663,2672,2728,2735,2760,2820,2870,2888,2895,4,2,110,114,2620,2633,103,108,101,66,114,97,99,107,101,116,59,1,10216,114,111,119,4,3,59,66,82,2644,2646,2651,1,8592,97,114,59,1,8676,105,103,104,116,65,114,114,111,119,59,1,8646,101,105,108,105,110,103,59,1,8968,111,4,2,117,119,2679,2692,98,108,101,66,114,97,99,107,101,116,59,1,10214,110,4,2,84,86,2699,2710,101,101,86,101,99,116,111,114,59,1,10593,101,99,116,111,114,4,2,59,66,2721,2723,1,8643,97,114,59,1,10585,108,111,111,114,59,1,8970,105,103,104,116,4,2,65,86,2745,2752,114,114,111,119,59,1,8596,101,99,116,111,114,59,1,10574,4,2,101,114,2766,2792,101,4,3,59,65,86,2775,2777,2784,1,8867,114,114,111,119,59,1,8612,101,99,116,111,114,59,1,10586,105,97,110,103,108,101,4,3,59,66,69,2806,2808,2813,1,8882,97,114,59,1,10703,113,117,97,108,59,1,8884,112,4,3,68,84,86,2829,2841,2852,111,119,110,86,101,99,116,111,114,59,1,10577,101,101,86,101,99,116,111,114,59,1,10592,101,99,116,111,114,4,2,59,66,2863,2865,1,8639,97,114,59,1,10584,101,99,116,111,114,4,2,59,66,2881,2883,1,8636,97,114,59,1,10578,114,114,111,119,59,1,8656,105,103,104,116,97,114,114,111,119,59,1,8660,115,4,6,69,70,71,76,83,84,2922,2936,2947,2956,2962,2974,113,117,97,108,71,114,101,97,116,101,114,59,1,8922,117,108,108,69,113,117,97,108,59,1,8806,114,101,97,116,101,114,59,1,8822,101,115,115,59,1,10913,108,97,110,116,69,113,117,97,108,59,1,10877,105,108,100,101,59,1,8818,114,59,3,55349,56591,4,2,59,101,2992,2994,1,8920,102,116,97,114,114,111,119,59,1,8666,105,100,111,116,59,1,319,4,3,110,112,119,3019,3110,3115,103,4,4,76,82,108,114,3030,3058,3070,3098,101,102,116,4,2,65,82,3039,3046,114,114,111,119,59,1,10229,105,103,104,116,65,114,114,111,119,59,1,10231,105,103,104,116,65,114,114,111,119,59,1,10230,101,102,116,4,2,97,114,3079,3086,114,114,111,119,59,1,10232,105,103,104,116,97,114,114,111,119,59,1,10234,105,103,104,116,97,114,114,111,119,59,1,10233,102,59,3,55349,56643,101,114,4,2,76,82,3123,3134,101,102,116,65,114,114,111,119,59,1,8601,105,103,104,116,65,114,114,111,119,59,1,8600,4,3,99,104,116,3154,3158,3161,114,59,1,8466,59,1,8624,114,111,107,59,1,321,59,1,8810,4,8,97,99,101,102,105,111,115,117,3188,3192,3196,3222,3227,3237,3243,3248,112,59,1,10501,121,59,1,1052,4,2,100,108,3202,3213,105,117,109,83,112,97,99,101,59,1,8287,108,105,110,116,114,102,59,1,8499,114,59,3,55349,56592,110,117,115,80,108,117,115,59,1,8723,112,102,59,3,55349,56644,99,114,59,1,8499,59,1,924,4,9,74,97,99,101,102,111,115,116,117,3271,3276,3283,3306,3422,3427,4120,4126,4137,99,121,59,1,1034,99,117,116,101,59,1,323,4,3,97,101,121,3291,3297,3303,114,111,110,59,1,327,100,105,108,59,1,325,59,1,1053,4,3,103,115,119,3314,3380,3415,97,116,105,118,101,4,3,77,84,86,3327,3340,3365,101,100,105,117,109,83,112,97,99,101,59,1,8203,104,105,4,2,99,110,3348,3357,107,83,112,97,99,101,59,1,8203,83,112,97,99,101,59,1,8203,101,114,121,84,104,105,110,83,112,97,99,101,59,1,8203,116,101,100,4,2,71,76,3389,3405,114,101,97,116,101,114,71,114,101,97,116,101,114,59,1,8811,101,115,115,76,101,115,115,59,1,8810,76,105,110,101,59,1,10,114,59,3,55349,56593,4,4,66,110,112,116,3437,3444,3460,3464,114,101,97,107,59,1,8288,66,114,101,97,107,105,110,103,83,112,97,99,101,59,1,160,102,59,1,8469,4,13,59,67,68,69,71,72,76,78,80,82,83,84,86,3492,3494,3517,3536,3578,3657,3685,3784,3823,3860,3915,4066,4107,1,10988,4,2,111,117,3500,3510,110,103,114,117,101,110,116,59,1,8802,112,67,97,112,59,1,8813,111,117,98,108,101,86,101,114,116,105,99,97,108,66,97,114,59,1,8742,4,3,108,113,120,3544,3552,3571,101,109,101,110,116,59,1,8713,117,97,108,4,2,59,84,3561,3563,1,8800,105,108,100,101,59,3,8770,824,105,115,116,115,59,1,8708,114,101,97,116,101,114,4,7,59,69,70,71,76,83,84,3600,3602,3609,3621,3631,3637,3650,1,8815,113,117,97,108,59,1,8817,117,108,108,69,113,117,97,108,59,3,8807,824,114,101,97,116,101,114,59,3,8811,824,101,115,115,59,1,8825,108,97,110,116,69,113,117,97,108,59,3,10878,824,105,108,100,101,59,1,8821,117,109,112,4,2,68,69,3666,3677,111,119,110,72,117,109,112,59,3,8782,824,113,117,97,108,59,3,8783,824,101,4,2,102,115,3692,3724,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3709,3711,3717,1,8938,97,114,59,3,10703,824,113,117,97,108,59,1,8940,115,4,6,59,69,71,76,83,84,3739,3741,3748,3757,3764,3777,1,8814,113,117,97,108,59,1,8816,114,101,97,116,101,114,59,1,8824,101,115,115,59,3,8810,824,108,97,110,116,69,113,117,97,108,59,3,10877,824,105,108,100,101,59,1,8820,101,115,116,101,100,4,2,71,76,3795,3812,114,101,97,116,101,114,71,114,101,97,116,101,114,59,3,10914,824,101,115,115,76,101,115,115,59,3,10913,824,114,101,99,101,100,101,115,4,3,59,69,83,3838,3840,3848,1,8832,113,117,97,108,59,3,10927,824,108,97,110,116,69,113,117,97,108,59,1,8928,4,2,101,105,3866,3881,118,101,114,115,101,69,108,101,109,101,110,116,59,1,8716,103,104,116,84,114,105,97,110,103,108,101,4,3,59,66,69,3900,3902,3908,1,8939,97,114,59,3,10704,824,113,117,97,108,59,1,8941,4,2,113,117,3921,3973,117,97,114,101,83,117,4,2,98,112,3933,3952,115,101,116,4,2,59,69,3942,3945,3,8847,824,113,117,97,108,59,1,8930,101,114,115,101,116,4,2,59,69,3963,3966,3,8848,824,113,117,97,108,59,1,8931,4,3,98,99,112,3981,4e3,4045,115,101,116,4,2,59,69,3990,3993,3,8834,8402,113,117,97,108,59,1,8840,99,101,101,100,115,4,4,59,69,83,84,4015,4017,4025,4037,1,8833,113,117,97,108,59,3,10928,824,108,97,110,116,69,113,117,97,108,59,1,8929,105,108,100,101,59,3,8831,824,101,114,115,101,116,4,2,59,69,4056,4059,3,8835,8402,113,117,97,108,59,1,8841,105,108,100,101,4,4,59,69,70,84,4080,4082,4089,4100,1,8769,113,117,97,108,59,1,8772,117,108,108,69,113,117,97,108,59,1,8775,105,108,100,101,59,1,8777,101,114,116,105,99,97,108,66,97,114,59,1,8740,99,114,59,3,55349,56489,105,108,100,101,5,209,1,59,4135,1,209,59,1,925,4,14,69,97,99,100,102,103,109,111,112,114,115,116,117,118,4170,4176,4187,4205,4212,4217,4228,4253,4259,4292,4295,4316,4337,4346,108,105,103,59,1,338,99,117,116,101,5,211,1,59,4185,1,211,4,2,105,121,4193,4202,114,99,5,212,1,59,4200,1,212,59,1,1054,98,108,97,99,59,1,336,114,59,3,55349,56594,114,97,118,101,5,210,1,59,4226,1,210,4,3,97,101,105,4236,4241,4246,99,114,59,1,332,103,97,59,1,937,99,114,111,110,59,1,927,112,102,59,3,55349,56646,101,110,67,117,114,108,121,4,2,68,81,4272,4285,111,117,98,108,101,81,117,111,116,101,59,1,8220,117,111,116,101,59,1,8216,59,1,10836,4,2,99,108,4301,4306,114,59,3,55349,56490,97,115,104,5,216,1,59,4314,1,216,105,4,2,108,109,4323,4332,100,101,5,213,1,59,4330,1,213,101,115,59,1,10807,109,108,5,214,1,59,4344,1,214,101,114,4,2,66,80,4354,4380,4,2,97,114,4360,4364,114,59,1,8254,97,99,4,2,101,107,4372,4375,59,1,9182,101,116,59,1,9140,97,114,101,110,116,104,101,115,105,115,59,1,9180,4,9,97,99,102,104,105,108,111,114,115,4413,4422,4426,4431,4435,4438,4448,4471,4561,114,116,105,97,108,68,59,1,8706,121,59,1,1055,114,59,3,55349,56595,105,59,1,934,59,1,928,117,115,77,105,110,117,115,59,1,177,4,2,105,112,4454,4467,110,99,97,114,101,112,108,97,110,101,59,1,8460,102,59,1,8473,4,4,59,101,105,111,4481,4483,4526,4531,1,10939,99,101,100,101,115,4,4,59,69,83,84,4498,4500,4507,4519,1,8826,113,117,97,108,59,1,10927,108,97,110,116,69,113,117,97,108,59,1,8828,105,108,100,101,59,1,8830,109,101,59,1,8243,4,2,100,112,4537,4543,117,99,116,59,1,8719,111,114,116,105,111,110,4,2,59,97,4555,4557,1,8759,108,59,1,8733,4,2,99,105,4567,4572,114,59,3,55349,56491,59,1,936,4,4,85,102,111,115,4585,4594,4599,4604,79,84,5,34,1,59,4592,1,34,114,59,3,55349,56596,112,102,59,1,8474,99,114,59,3,55349,56492,4,12,66,69,97,99,101,102,104,105,111,114,115,117,4636,4642,4650,4681,4704,4763,4767,4771,5047,5069,5081,5094,97,114,114,59,1,10512,71,5,174,1,59,4648,1,174,4,3,99,110,114,4658,4664,4668,117,116,101,59,1,340,103,59,1,10219,114,4,2,59,116,4675,4677,1,8608,108,59,1,10518,4,3,97,101,121,4689,4695,4701,114,111,110,59,1,344,100,105,108,59,1,342,59,1,1056,4,2,59,118,4710,4712,1,8476,101,114,115,101,4,2,69,85,4722,4748,4,2,108,113,4728,4736,101,109,101,110,116,59,1,8715,117,105,108,105,98,114,105,117,109,59,1,8651,112,69,113,117,105,108,105,98,114,105,117,109,59,1,10607,114,59,1,8476,111,59,1,929,103,104,116,4,8,65,67,68,70,84,85,86,97,4792,4840,4849,4905,4912,4972,5022,5040,4,2,110,114,4798,4811,103,108,101,66,114,97,99,107,101,116,59,1,10217,114,111,119,4,3,59,66,76,4822,4824,4829,1,8594,97,114,59,1,8677,101,102,116,65,114,114,111,119,59,1,8644,101,105,108,105,110,103,59,1,8969,111,4,2,117,119,4856,4869,98,108,101,66,114,97,99,107,101,116,59,1,10215,110,4,2,84,86,4876,4887,101,101,86,101,99,116,111,114,59,1,10589,101,99,116,111,114,4,2,59,66,4898,4900,1,8642,97,114,59,1,10581,108,111,111,114,59,1,8971,4,2,101,114,4918,4944,101,4,3,59,65,86,4927,4929,4936,1,8866,114,114,111,119,59,1,8614,101,99,116,111,114,59,1,10587,105,97,110,103,108,101,4,3,59,66,69,4958,4960,4965,1,8883,97,114,59,1,10704,113,117,97,108,59,1,8885,112,4,3,68,84,86,4981,4993,5004,111,119,110,86,101,99,116,111,114,59,1,10575,101,101,86,101,99,116,111,114,59,1,10588,101,99,116,111,114,4,2,59,66,5015,5017,1,8638,97,114,59,1,10580,101,99,116,111,114,4,2,59,66,5033,5035,1,8640,97,114,59,1,10579,114,114,111,119,59,1,8658,4,2,112,117,5053,5057,102,59,1,8477,110,100,73,109,112,108,105,101,115,59,1,10608,105,103,104,116,97,114,114,111,119,59,1,8667,4,2,99,104,5087,5091,114,59,1,8475,59,1,8625,108,101,68,101,108,97,121,101,100,59,1,10740,4,13,72,79,97,99,102,104,105,109,111,113,115,116,117,5134,5150,5157,5164,5198,5203,5259,5265,5277,5283,5374,5380,5385,4,2,67,99,5140,5146,72,99,121,59,1,1065,121,59,1,1064,70,84,99,121,59,1,1068,99,117,116,101,59,1,346,4,5,59,97,101,105,121,5176,5178,5184,5190,5195,1,10940,114,111,110,59,1,352,100,105,108,59,1,350,114,99,59,1,348,59,1,1057,114,59,3,55349,56598,111,114,116,4,4,68,76,82,85,5216,5227,5238,5250,111,119,110,65,114,114,111,119,59,1,8595,101,102,116,65,114,114,111,119,59,1,8592,105,103,104,116,65,114,114,111,119,59,1,8594,112,65,114,114,111,119,59,1,8593,103,109,97,59,1,931,97,108,108,67,105,114,99,108,101,59,1,8728,112,102,59,3,55349,56650,4,2,114,117,5289,5293,116,59,1,8730,97,114,101,4,4,59,73,83,85,5306,5308,5322,5367,1,9633,110,116,101,114,115,101,99,116,105,111,110,59,1,8851,117,4,2,98,112,5329,5347,115,101,116,4,2,59,69,5338,5340,1,8847,113,117,97,108,59,1,8849,101,114,115,101,116,4,2,59,69,5358,5360,1,8848,113,117,97,108,59,1,8850,110,105,111,110,59,1,8852,99,114,59,3,55349,56494,97,114,59,1,8902,4,4,98,99,109,112,5395,5420,5475,5478,4,2,59,115,5401,5403,1,8912,101,116,4,2,59,69,5411,5413,1,8912,113,117,97,108,59,1,8838,4,2,99,104,5426,5468,101,101,100,115,4,4,59,69,83,84,5440,5442,5449,5461,1,8827,113,117,97,108,59,1,10928,108,97,110,116,69,113,117,97,108,59,1,8829,105,108,100,101,59,1,8831,84,104,97,116,59,1,8715,59,1,8721,4,3,59,101,115,5486,5488,5507,1,8913,114,115,101,116,4,2,59,69,5498,5500,1,8835,113,117,97,108,59,1,8839,101,116,59,1,8913,4,11,72,82,83,97,99,102,104,105,111,114,115,5536,5546,5552,5567,5579,5602,5607,5655,5695,5701,5711,79,82,78,5,222,1,59,5544,1,222,65,68,69,59,1,8482,4,2,72,99,5558,5563,99,121,59,1,1035,121,59,1,1062,4,2,98,117,5573,5576,59,1,9,59,1,932,4,3,97,101,121,5587,5593,5599,114,111,110,59,1,356,100,105,108,59,1,354,59,1,1058,114,59,3,55349,56599,4,2,101,105,5613,5631,4,2,114,116,5619,5627,101,102,111,114,101,59,1,8756,97,59,1,920,4,2,99,110,5637,5647,107,83,112,97,99,101,59,3,8287,8202,83,112,97,99,101,59,1,8201,108,100,101,4,4,59,69,70,84,5668,5670,5677,5688,1,8764,113,117,97,108,59,1,8771,117,108,108,69,113,117,97,108,59,1,8773,105,108,100,101,59,1,8776,112,102,59,3,55349,56651,105,112,108,101,68,111,116,59,1,8411,4,2,99,116,5717,5722,114,59,3,55349,56495,114,111,107,59,1,358,4,14,97,98,99,100,102,103,109,110,111,112,114,115,116,117,5758,5789,5805,5823,5830,5835,5846,5852,5921,5937,6089,6095,6101,6108,4,2,99,114,5764,5774,117,116,101,5,218,1,59,5772,1,218,114,4,2,59,111,5781,5783,1,8607,99,105,114,59,1,10569,114,4,2,99,101,5796,5800,121,59,1,1038,118,101,59,1,364,4,2,105,121,5811,5820,114,99,5,219,1,59,5818,1,219,59,1,1059,98,108,97,99,59,1,368,114,59,3,55349,56600,114,97,118,101,5,217,1,59,5844,1,217,97,99,114,59,1,362,4,2,100,105,5858,5905,101,114,4,2,66,80,5866,5892,4,2,97,114,5872,5876,114,59,1,95,97,99,4,2,101,107,5884,5887,59,1,9183,101,116,59,1,9141,97,114,101,110,116,104,101,115,105,115,59,1,9181,111,110,4,2,59,80,5913,5915,1,8899,108,117,115,59,1,8846,4,2,103,112,5927,5932,111,110,59,1,370,102,59,3,55349,56652,4,8,65,68,69,84,97,100,112,115,5955,5985,5996,6009,6026,6033,6044,6075,114,114,111,119,4,3,59,66,68,5967,5969,5974,1,8593,97,114,59,1,10514,111,119,110,65,114,114,111,119,59,1,8645,111,119,110,65,114,114,111,119,59,1,8597,113,117,105,108,105,98,114,105,117,109,59,1,10606,101,101,4,2,59,65,6017,6019,1,8869,114,114,111,119,59,1,8613,114,114,111,119,59,1,8657,111,119,110,97,114,114,111,119,59,1,8661,101,114,4,2,76,82,6052,6063,101,102,116,65,114,114,111,119,59,1,8598,105,103,104,116,65,114,114,111,119,59,1,8599,105,4,2,59,108,6082,6084,1,978,111,110,59,1,933,105,110,103,59,1,366,99,114,59,3,55349,56496,105,108,100,101,59,1,360,109,108,5,220,1,59,6115,1,220,4,9,68,98,99,100,101,102,111,115,118,6137,6143,6148,6152,6166,6250,6255,6261,6267,97,115,104,59,1,8875,97,114,59,1,10987,121,59,1,1042,97,115,104,4,2,59,108,6161,6163,1,8873,59,1,10982,4,2,101,114,6172,6175,59,1,8897,4,3,98,116,121,6183,6188,6238,97,114,59,1,8214,4,2,59,105,6194,6196,1,8214,99,97,108,4,4,66,76,83,84,6209,6214,6220,6231,97,114,59,1,8739,105,110,101,59,1,124,101,112,97,114,97,116,111,114,59,1,10072,105,108,100,101,59,1,8768,84,104,105,110,83,112,97,99,101,59,1,8202,114,59,3,55349,56601,112,102,59,3,55349,56653,99,114,59,3,55349,56497,100,97,115,104,59,1,8874,4,5,99,101,102,111,115,6286,6292,6298,6303,6309,105,114,99,59,1,372,100,103,101,59,1,8896,114,59,3,55349,56602,112,102,59,3,55349,56654,99,114,59,3,55349,56498,4,4,102,105,111,115,6325,6330,6333,6339,114,59,3,55349,56603,59,1,926,112,102,59,3,55349,56655,99,114,59,3,55349,56499,4,9,65,73,85,97,99,102,111,115,117,6365,6370,6375,6380,6391,6405,6410,6416,6422,99,121,59,1,1071,99,121,59,1,1031,99,121,59,1,1070,99,117,116,101,5,221,1,59,6389,1,221,4,2,105,121,6397,6402,114,99,59,1,374,59,1,1067,114,59,3,55349,56604,112,102,59,3,55349,56656,99,114,59,3,55349,56500,109,108,59,1,376,4,8,72,97,99,100,101,102,111,115,6445,6450,6457,6472,6477,6501,6505,6510,99,121,59,1,1046,99,117,116,101,59,1,377,4,2,97,121,6463,6469,114,111,110,59,1,381,59,1,1047,111,116,59,1,379,4,2,114,116,6483,6497,111,87,105,100,116,104,83,112,97,99,101,59,1,8203,97,59,1,918,114,59,1,8488,112,102,59,1,8484,99,114,59,3,55349,56501,4,16,97,98,99,101,102,103,108,109,110,111,112,114,115,116,117,119,6550,6561,6568,6612,6622,6634,6645,6672,6699,6854,6870,6923,6933,6963,6974,6983,99,117,116,101,5,225,1,59,6559,1,225,114,101,118,101,59,1,259,4,6,59,69,100,105,117,121,6582,6584,6588,6591,6600,6609,1,8766,59,3,8766,819,59,1,8767,114,99,5,226,1,59,6598,1,226,116,101,5,180,1,59,6607,1,180,59,1,1072,108,105,103,5,230,1,59,6620,1,230,4,2,59,114,6628,6630,1,8289,59,3,55349,56606,114,97,118,101,5,224,1,59,6643,1,224,4,2,101,112,6651,6667,4,2,102,112,6657,6663,115,121,109,59,1,8501,104,59,1,8501,104,97,59,1,945,4,2,97,112,6678,6692,4,2,99,108,6684,6688,114,59,1,257,103,59,1,10815,5,38,1,59,6697,1,38,4,2,100,103,6705,6737,4,5,59,97,100,115,118,6717,6719,6724,6727,6734,1,8743,110,100,59,1,10837,59,1,10844,108,111,112,101,59,1,10840,59,1,10842,4,7,59,101,108,109,114,115,122,6753,6755,6758,6762,6814,6835,6848,1,8736,59,1,10660,101,59,1,8736,115,100,4,2,59,97,6770,6772,1,8737,4,8,97,98,99,100,101,102,103,104,6790,6793,6796,6799,6802,6805,6808,6811,59,1,10664,59,1,10665,59,1,10666,59,1,10667,59,1,10668,59,1,10669,59,1,10670,59,1,10671,116,4,2,59,118,6821,6823,1,8735,98,4,2,59,100,6830,6832,1,8894,59,1,10653,4,2,112,116,6841,6845,104,59,1,8738,59,1,197,97,114,114,59,1,9084,4,2,103,112,6860,6865,111,110,59,1,261,102,59,3,55349,56658,4,7,59,69,97,101,105,111,112,6886,6888,6891,6897,6900,6904,6908,1,8776,59,1,10864,99,105,114,59,1,10863,59,1,8778,100,59,1,8779,115,59,1,39,114,111,120,4,2,59,101,6917,6919,1,8776,113,59,1,8778,105,110,103,5,229,1,59,6931,1,229,4,3,99,116,121,6941,6946,6949,114,59,3,55349,56502,59,1,42,109,112,4,2,59,101,6957,6959,1,8776,113,59,1,8781,105,108,100,101,5,227,1,59,6972,1,227,109,108,5,228,1,59,6981,1,228,4,2,99,105,6989,6997,111,110,105,110,116,59,1,8755,110,116,59,1,10769,4,16,78,97,98,99,100,101,102,105,107,108,110,111,112,114,115,117,7036,7041,7119,7135,7149,7155,7219,7224,7347,7354,7463,7489,7786,7793,7814,7866,111,116,59,1,10989,4,2,99,114,7047,7094,107,4,4,99,101,112,115,7058,7064,7073,7080,111,110,103,59,1,8780,112,115,105,108,111,110,59,1,1014,114,105,109,101,59,1,8245,105,109,4,2,59,101,7088,7090,1,8765,113,59,1,8909,4,2,118,119,7100,7105,101,101,59,1,8893,101,100,4,2,59,103,7113,7115,1,8965,101,59,1,8965,114,107,4,2,59,116,7127,7129,1,9141,98,114,107,59,1,9142,4,2,111,121,7141,7146,110,103,59,1,8780,59,1,1073,113,117,111,59,1,8222,4,5,99,109,112,114,116,7167,7181,7188,7193,7199,97,117,115,4,2,59,101,7176,7178,1,8757,59,1,8757,112,116,121,118,59,1,10672,115,105,59,1,1014,110,111,117,59,1,8492,4,3,97,104,119,7207,7210,7213,59,1,946,59,1,8502,101,101,110,59,1,8812,114,59,3,55349,56607,103,4,7,99,111,115,116,117,118,119,7241,7262,7288,7305,7328,7335,7340,4,3,97,105,117,7249,7253,7258,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,4,3,100,112,116,7270,7275,7281,111,116,59,1,10752,108,117,115,59,1,10753,105,109,101,115,59,1,10754,4,2,113,116,7294,7300,99,117,112,59,1,10758,97,114,59,1,9733,114,105,97,110,103,108,101,4,2,100,117,7318,7324,111,119,110,59,1,9661,112,59,1,9651,112,108,117,115,59,1,10756,101,101,59,1,8897,101,100,103,101,59,1,8896,97,114,111,119,59,1,10509,4,3,97,107,111,7362,7436,7458,4,2,99,110,7368,7432,107,4,3,108,115,116,7377,7386,7394,111,122,101,110,103,101,59,1,10731,113,117,97,114,101,59,1,9642,114,105,97,110,103,108,101,4,4,59,100,108,114,7411,7413,7419,7425,1,9652,111,119,110,59,1,9662,101,102,116,59,1,9666,105,103,104,116,59,1,9656,107,59,1,9251,4,2,49,51,7442,7454,4,2,50,52,7448,7451,59,1,9618,59,1,9617,52,59,1,9619,99,107,59,1,9608,4,2,101,111,7469,7485,4,2,59,113,7475,7478,3,61,8421,117,105,118,59,3,8801,8421,116,59,1,8976,4,4,112,116,119,120,7499,7504,7517,7523,102,59,3,55349,56659,4,2,59,116,7510,7512,1,8869,111,109,59,1,8869,116,105,101,59,1,8904,4,12,68,72,85,86,98,100,104,109,112,116,117,118,7549,7571,7597,7619,7655,7660,7682,7708,7715,7721,7728,7750,4,4,76,82,108,114,7559,7562,7565,7568,59,1,9559,59,1,9556,59,1,9558,59,1,9555,4,5,59,68,85,100,117,7583,7585,7588,7591,7594,1,9552,59,1,9574,59,1,9577,59,1,9572,59,1,9575,4,4,76,82,108,114,7607,7610,7613,7616,59,1,9565,59,1,9562,59,1,9564,59,1,9561,4,7,59,72,76,82,104,108,114,7635,7637,7640,7643,7646,7649,7652,1,9553,59,1,9580,59,1,9571,59,1,9568,59,1,9579,59,1,9570,59,1,9567,111,120,59,1,10697,4,4,76,82,108,114,7670,7673,7676,7679,59,1,9557,59,1,9554,59,1,9488,59,1,9484,4,5,59,68,85,100,117,7694,7696,7699,7702,7705,1,9472,59,1,9573,59,1,9576,59,1,9516,59,1,9524,105,110,117,115,59,1,8863,108,117,115,59,1,8862,105,109,101,115,59,1,8864,4,4,76,82,108,114,7738,7741,7744,7747,59,1,9563,59,1,9560,59,1,9496,59,1,9492,4,7,59,72,76,82,104,108,114,7766,7768,7771,7774,7777,7780,7783,1,9474,59,1,9578,59,1,9569,59,1,9566,59,1,9532,59,1,9508,59,1,9500,114,105,109,101,59,1,8245,4,2,101,118,7799,7804,118,101,59,1,728,98,97,114,5,166,1,59,7812,1,166,4,4,99,101,105,111,7824,7829,7834,7846,114,59,3,55349,56503,109,105,59,1,8271,109,4,2,59,101,7841,7843,1,8765,59,1,8909,108,4,3,59,98,104,7855,7857,7860,1,92,59,1,10693,115,117,98,59,1,10184,4,2,108,109,7872,7885,108,4,2,59,101,7879,7881,1,8226,116,59,1,8226,112,4,3,59,69,101,7894,7896,7899,1,8782,59,1,10926,4,2,59,113,7905,7907,1,8783,59,1,8783,4,15,97,99,100,101,102,104,105,108,111,114,115,116,117,119,121,7942,8021,8075,8080,8121,8126,8157,8279,8295,8430,8446,8485,8491,8707,8726,4,3,99,112,114,7950,7956,8007,117,116,101,59,1,263,4,6,59,97,98,99,100,115,7970,7972,7977,7984,7998,8003,1,8745,110,100,59,1,10820,114,99,117,112,59,1,10825,4,2,97,117,7990,7994,112,59,1,10827,112,59,1,10823,111,116,59,1,10816,59,3,8745,65024,4,2,101,111,8013,8017,116,59,1,8257,110,59,1,711,4,4,97,101,105,117,8031,8046,8056,8061,4,2,112,114,8037,8041,115,59,1,10829,111,110,59,1,269,100,105,108,5,231,1,59,8054,1,231,114,99,59,1,265,112,115,4,2,59,115,8069,8071,1,10828,109,59,1,10832,111,116,59,1,267,4,3,100,109,110,8088,8097,8104,105,108,5,184,1,59,8095,1,184,112,116,121,118,59,1,10674,116,5,162,2,59,101,8112,8114,1,162,114,100,111,116,59,1,183,114,59,3,55349,56608,4,3,99,101,105,8134,8138,8154,121,59,1,1095,99,107,4,2,59,109,8146,8148,1,10003,97,114,107,59,1,10003,59,1,967,114,4,7,59,69,99,101,102,109,115,8174,8176,8179,8258,8261,8268,8273,1,9675,59,1,10691,4,3,59,101,108,8187,8189,8193,1,710,113,59,1,8791,101,4,2,97,100,8200,8223,114,114,111,119,4,2,108,114,8210,8216,101,102,116,59,1,8634,105,103,104,116,59,1,8635,4,5,82,83,97,99,100,8235,8238,8241,8246,8252,59,1,174,59,1,9416,115,116,59,1,8859,105,114,99,59,1,8858,97,115,104,59,1,8861,59,1,8791,110,105,110,116,59,1,10768,105,100,59,1,10991,99,105,114,59,1,10690,117,98,115,4,2,59,117,8288,8290,1,9827,105,116,59,1,9827,4,4,108,109,110,112,8305,8326,8376,8400,111,110,4,2,59,101,8313,8315,1,58,4,2,59,113,8321,8323,1,8788,59,1,8788,4,2,109,112,8332,8344,97,4,2,59,116,8339,8341,1,44,59,1,64,4,3,59,102,108,8352,8354,8358,1,8705,110,59,1,8728,101,4,2,109,120,8365,8371,101,110,116,59,1,8705,101,115,59,1,8450,4,2,103,105,8382,8395,4,2,59,100,8388,8390,1,8773,111,116,59,1,10861,110,116,59,1,8750,4,3,102,114,121,8408,8412,8417,59,3,55349,56660,111,100,59,1,8720,5,169,2,59,115,8424,8426,1,169,114,59,1,8471,4,2,97,111,8436,8441,114,114,59,1,8629,115,115,59,1,10007,4,2,99,117,8452,8457,114,59,3,55349,56504,4,2,98,112,8463,8474,4,2,59,101,8469,8471,1,10959,59,1,10961,4,2,59,101,8480,8482,1,10960,59,1,10962,100,111,116,59,1,8943,4,7,100,101,108,112,114,118,119,8507,8522,8536,8550,8600,8697,8702,97,114,114,4,2,108,114,8516,8519,59,1,10552,59,1,10549,4,2,112,115,8528,8532,114,59,1,8926,99,59,1,8927,97,114,114,4,2,59,112,8545,8547,1,8630,59,1,10557,4,6,59,98,99,100,111,115,8564,8566,8573,8587,8592,8596,1,8746,114,99,97,112,59,1,10824,4,2,97,117,8579,8583,112,59,1,10822,112,59,1,10826,111,116,59,1,8845,114,59,1,10821,59,3,8746,65024,4,4,97,108,114,118,8610,8623,8663,8672,114,114,4,2,59,109,8618,8620,1,8631,59,1,10556,121,4,3,101,118,119,8632,8651,8656,113,4,2,112,115,8639,8645,114,101,99,59,1,8926,117,99,99,59,1,8927,101,101,59,1,8910,101,100,103,101,59,1,8911,101,110,5,164,1,59,8670,1,164,101,97,114,114,111,119,4,2,108,114,8684,8690,101,102,116,59,1,8630,105,103,104,116,59,1,8631,101,101,59,1,8910,101,100,59,1,8911,4,2,99,105,8713,8721,111,110,105,110,116,59,1,8754,110,116,59,1,8753,108,99,116,121,59,1,9005,4,19,65,72,97,98,99,100,101,102,104,105,106,108,111,114,115,116,117,119,122,8773,8778,8783,8821,8839,8854,8887,8914,8930,8944,9036,9041,9058,9197,9227,9258,9281,9297,9305,114,114,59,1,8659,97,114,59,1,10597,4,4,103,108,114,115,8793,8799,8805,8809,103,101,114,59,1,8224,101,116,104,59,1,8504,114,59,1,8595,104,4,2,59,118,8816,8818,1,8208,59,1,8867,4,2,107,108,8827,8834,97,114,111,119,59,1,10511,97,99,59,1,733,4,2,97,121,8845,8851,114,111,110,59,1,271,59,1,1076,4,3,59,97,111,8862,8864,8880,1,8518,4,2,103,114,8870,8876,103,101,114,59,1,8225,114,59,1,8650,116,115,101,113,59,1,10871,4,3,103,108,109,8895,8902,8907,5,176,1,59,8900,1,176,116,97,59,1,948,112,116,121,118,59,1,10673,4,2,105,114,8920,8926,115,104,116,59,1,10623,59,3,55349,56609,97,114,4,2,108,114,8938,8941,59,1,8643,59,1,8642,4,5,97,101,103,115,118,8956,8986,8989,8996,9001,109,4,3,59,111,115,8965,8967,8983,1,8900,110,100,4,2,59,115,8975,8977,1,8900,117,105,116,59,1,9830,59,1,9830,59,1,168,97,109,109,97,59,1,989,105,110,59,1,8946,4,3,59,105,111,9009,9011,9031,1,247,100,101,5,247,2,59,111,9020,9022,1,247,110,116,105,109,101,115,59,1,8903,110,120,59,1,8903,99,121,59,1,1106,99,4,2,111,114,9048,9053,114,110,59,1,8990,111,112,59,1,8973,4,5,108,112,116,117,119,9070,9076,9081,9130,9144,108,97,114,59,1,36,102,59,3,55349,56661,4,5,59,101,109,112,115,9093,9095,9109,9116,9122,1,729,113,4,2,59,100,9102,9104,1,8784,111,116,59,1,8785,105,110,117,115,59,1,8760,108,117,115,59,1,8724,113,117,97,114,101,59,1,8865,98,108,101,98,97,114,119,101,100,103,101,59,1,8966,110,4,3,97,100,104,9153,9160,9172,114,114,111,119,59,1,8595,111,119,110,97,114,114,111,119,115,59,1,8650,97,114,112,111,111,110,4,2,108,114,9184,9190,101,102,116,59,1,8643,105,103,104,116,59,1,8642,4,2,98,99,9203,9211,107,97,114,111,119,59,1,10512,4,2,111,114,9217,9222,114,110,59,1,8991,111,112,59,1,8972,4,3,99,111,116,9235,9248,9252,4,2,114,121,9241,9245,59,3,55349,56505,59,1,1109,108,59,1,10742,114,111,107,59,1,273,4,2,100,114,9264,9269,111,116,59,1,8945,105,4,2,59,102,9276,9278,1,9663,59,1,9662,4,2,97,104,9287,9292,114,114,59,1,8693,97,114,59,1,10607,97,110,103,108,101,59,1,10662,4,2,99,105,9311,9315,121,59,1,1119,103,114,97,114,114,59,1,10239,4,18,68,97,99,100,101,102,103,108,109,110,111,112,113,114,115,116,117,120,9361,9376,9398,9439,9444,9447,9462,9495,9531,9585,9598,9614,9659,9755,9771,9792,9808,9826,4,2,68,111,9367,9372,111,116,59,1,10871,116,59,1,8785,4,2,99,115,9382,9392,117,116,101,5,233,1,59,9390,1,233,116,101,114,59,1,10862,4,4,97,105,111,121,9408,9414,9430,9436,114,111,110,59,1,283,114,4,2,59,99,9421,9423,1,8790,5,234,1,59,9428,1,234,108,111,110,59,1,8789,59,1,1101,111,116,59,1,279,59,1,8519,4,2,68,114,9453,9458,111,116,59,1,8786,59,3,55349,56610,4,3,59,114,115,9470,9472,9482,1,10906,97,118,101,5,232,1,59,9480,1,232,4,2,59,100,9488,9490,1,10902,111,116,59,1,10904,4,4,59,105,108,115,9505,9507,9515,9518,1,10905,110,116,101,114,115,59,1,9191,59,1,8467,4,2,59,100,9524,9526,1,10901,111,116,59,1,10903,4,3,97,112,115,9539,9544,9564,99,114,59,1,275,116,121,4,3,59,115,118,9554,9556,9561,1,8709,101,116,59,1,8709,59,1,8709,112,4,2,49,59,9571,9583,4,2,51,52,9577,9580,59,1,8196,59,1,8197,1,8195,4,2,103,115,9591,9594,59,1,331,112,59,1,8194,4,2,103,112,9604,9609,111,110,59,1,281,102,59,3,55349,56662,4,3,97,108,115,9622,9635,9640,114,4,2,59,115,9629,9631,1,8917,108,59,1,10723,117,115,59,1,10865,105,4,3,59,108,118,9649,9651,9656,1,949,111,110,59,1,949,59,1,1013,4,4,99,115,117,118,9669,9686,9716,9747,4,2,105,111,9675,9680,114,99,59,1,8790,108,111,110,59,1,8789,4,2,105,108,9692,9696,109,59,1,8770,97,110,116,4,2,103,108,9705,9710,116,114,59,1,10902,101,115,115,59,1,10901,4,3,97,101,105,9724,9729,9734,108,115,59,1,61,115,116,59,1,8799,118,4,2,59,68,9741,9743,1,8801,68,59,1,10872,112,97,114,115,108,59,1,10725,4,2,68,97,9761,9766,111,116,59,1,8787,114,114,59,1,10609,4,3,99,100,105,9779,9783,9788,114,59,1,8495,111,116,59,1,8784,109,59,1,8770,4,2,97,104,9798,9801,59,1,951,5,240,1,59,9806,1,240,4,2,109,114,9814,9822,108,5,235,1,59,9820,1,235,111,59,1,8364,4,3,99,105,112,9834,9838,9843,108,59,1,33,115,116,59,1,8707,4,2,101,111,9849,9859,99,116,97,116,105,111,110,59,1,8496,110,101,110,116,105,97,108,101,59,1,8519,4,12,97,99,101,102,105,106,108,110,111,112,114,115,9896,9910,9914,9921,9954,9960,9967,9989,9994,10027,10036,10164,108,108,105,110,103,100,111,116,115,101,113,59,1,8786,121,59,1,1092,109,97,108,101,59,1,9792,4,3,105,108,114,9929,9935,9950,108,105,103,59,1,64259,4,2,105,108,9941,9945,103,59,1,64256,105,103,59,1,64260,59,3,55349,56611,108,105,103,59,1,64257,108,105,103,59,3,102,106,4,3,97,108,116,9975,9979,9984,116,59,1,9837,105,103,59,1,64258,110,115,59,1,9649,111,102,59,1,402,4,2,112,114,1e4,10005,102,59,3,55349,56663,4,2,97,107,10011,10016,108,108,59,1,8704,4,2,59,118,10022,10024,1,8916,59,1,10969,97,114,116,105,110,116,59,1,10765,4,2,97,111,10042,10159,4,2,99,115,10048,10155,4,6,49,50,51,52,53,55,10062,10102,10114,10135,10139,10151,4,6,50,51,52,53,54,56,10076,10083,10086,10093,10096,10099,5,189,1,59,10081,1,189,59,1,8531,5,188,1,59,10091,1,188,59,1,8533,59,1,8537,59,1,8539,4,2,51,53,10108,10111,59,1,8532,59,1,8534,4,3,52,53,56,10122,10129,10132,5,190,1,59,10127,1,190,59,1,8535,59,1,8540,53,59,1,8536,4,2,54,56,10145,10148,59,1,8538,59,1,8541,56,59,1,8542,108,59,1,8260,119,110,59,1,8994,99,114,59,3,55349,56507,4,17,69,97,98,99,100,101,102,103,105,106,108,110,111,114,115,116,118,10206,10217,10247,10254,10268,10273,10358,10363,10374,10380,10385,10406,10458,10464,10470,10497,10610,4,2,59,108,10212,10214,1,8807,59,1,10892,4,3,99,109,112,10225,10231,10244,117,116,101,59,1,501,109,97,4,2,59,100,10239,10241,1,947,59,1,989,59,1,10886,114,101,118,101,59,1,287,4,2,105,121,10260,10265,114,99,59,1,285,59,1,1075,111,116,59,1,289,4,4,59,108,113,115,10283,10285,10288,10308,1,8805,59,1,8923,4,3,59,113,115,10296,10298,10301,1,8805,59,1,8807,108,97,110,116,59,1,10878,4,4,59,99,100,108,10318,10320,10324,10345,1,10878,99,59,1,10921,111,116,4,2,59,111,10332,10334,1,10880,4,2,59,108,10340,10342,1,10882,59,1,10884,4,2,59,101,10351,10354,3,8923,65024,115,59,1,10900,114,59,3,55349,56612,4,2,59,103,10369,10371,1,8811,59,1,8921,109,101,108,59,1,8503,99,121,59,1,1107,4,4,59,69,97,106,10395,10397,10400,10403,1,8823,59,1,10898,59,1,10917,59,1,10916,4,4,69,97,101,115,10416,10419,10434,10453,59,1,8809,112,4,2,59,112,10426,10428,1,10890,114,111,120,59,1,10890,4,2,59,113,10440,10442,1,10888,4,2,59,113,10448,10450,1,10888,59,1,8809,105,109,59,1,8935,112,102,59,3,55349,56664,97,118,101,59,1,96,4,2,99,105,10476,10480,114,59,1,8458,109,4,3,59,101,108,10489,10491,10494,1,8819,59,1,10894,59,1,10896,5,62,6,59,99,100,108,113,114,10512,10514,10527,10532,10538,10545,1,62,4,2,99,105,10520,10523,59,1,10919,114,59,1,10874,111,116,59,1,8919,80,97,114,59,1,10645,117,101,115,116,59,1,10876,4,5,97,100,101,108,115,10557,10574,10579,10599,10605,4,2,112,114,10563,10570,112,114,111,120,59,1,10886,114,59,1,10616,111,116,59,1,8919,113,4,2,108,113,10586,10592,101,115,115,59,1,8923,108,101,115,115,59,1,10892,101,115,115,59,1,8823,105,109,59,1,8819,4,2,101,110,10616,10626,114,116,110,101,113,113,59,3,8809,65024,69,59,3,8809,65024,4,10,65,97,98,99,101,102,107,111,115,121,10653,10658,10713,10718,10724,10760,10765,10786,10850,10875,114,114,59,1,8660,4,4,105,108,109,114,10668,10674,10678,10684,114,115,112,59,1,8202,102,59,1,189,105,108,116,59,1,8459,4,2,100,114,10690,10695,99,121,59,1,1098,4,3,59,99,119,10703,10705,10710,1,8596,105,114,59,1,10568,59,1,8621,97,114,59,1,8463,105,114,99,59,1,293,4,3,97,108,114,10732,10748,10754,114,116,115,4,2,59,117,10741,10743,1,9829,105,116,59,1,9829,108,105,112,59,1,8230,99,111,110,59,1,8889,114,59,3,55349,56613,115,4,2,101,119,10772,10779,97,114,111,119,59,1,10533,97,114,111,119,59,1,10534,4,5,97,109,111,112,114,10798,10803,10809,10839,10844,114,114,59,1,8703,116,104,116,59,1,8763,107,4,2,108,114,10816,10827,101,102,116,97,114,114,111,119,59,1,8617,105,103,104,116,97,114,114,111,119,59,1,8618,102,59,3,55349,56665,98,97,114,59,1,8213,4,3,99,108,116,10858,10863,10869,114,59,3,55349,56509,97,115,104,59,1,8463,114,111,107,59,1,295,4,2,98,112,10881,10887,117,108,108,59,1,8259,104,101,110,59,1,8208,4,15,97,99,101,102,103,105,106,109,110,111,112,113,115,116,117,10925,10936,10958,10977,10990,11001,11039,11045,11101,11192,11220,11226,11237,11285,11299,99,117,116,101,5,237,1,59,10934,1,237,4,3,59,105,121,10944,10946,10955,1,8291,114,99,5,238,1,59,10953,1,238,59,1,1080,4,2,99,120,10964,10968,121,59,1,1077,99,108,5,161,1,59,10975,1,161,4,2,102,114,10983,10986,59,1,8660,59,3,55349,56614,114,97,118,101,5,236,1,59,10999,1,236,4,4,59,105,110,111,11011,11013,11028,11034,1,8520,4,2,105,110,11019,11024,110,116,59,1,10764,116,59,1,8749,102,105,110,59,1,10716,116,97,59,1,8489,108,105,103,59,1,307,4,3,97,111,112,11053,11092,11096,4,3,99,103,116,11061,11065,11088,114,59,1,299,4,3,101,108,112,11073,11076,11082,59,1,8465,105,110,101,59,1,8464,97,114,116,59,1,8465,104,59,1,305,102,59,1,8887,101,100,59,1,437,4,5,59,99,102,111,116,11113,11115,11121,11136,11142,1,8712,97,114,101,59,1,8453,105,110,4,2,59,116,11129,11131,1,8734,105,101,59,1,10717,100,111,116,59,1,305,4,5,59,99,101,108,112,11154,11156,11161,11179,11186,1,8747,97,108,59,1,8890,4,2,103,114,11167,11173,101,114,115,59,1,8484,99,97,108,59,1,8890,97,114,104,107,59,1,10775,114,111,100,59,1,10812,4,4,99,103,112,116,11202,11206,11211,11216,121,59,1,1105,111,110,59,1,303,102,59,3,55349,56666,97,59,1,953,114,111,100,59,1,10812,117,101,115,116,5,191,1,59,11235,1,191,4,2,99,105,11243,11248,114,59,3,55349,56510,110,4,5,59,69,100,115,118,11261,11263,11266,11271,11282,1,8712,59,1,8953,111,116,59,1,8949,4,2,59,118,11277,11279,1,8948,59,1,8947,59,1,8712,4,2,59,105,11291,11293,1,8290,108,100,101,59,1,297,4,2,107,109,11305,11310,99,121,59,1,1110,108,5,239,1,59,11316,1,239,4,6,99,102,109,111,115,117,11332,11346,11351,11357,11363,11380,4,2,105,121,11338,11343,114,99,59,1,309,59,1,1081,114,59,3,55349,56615,97,116,104,59,1,567,112,102,59,3,55349,56667,4,2,99,101,11369,11374,114,59,3,55349,56511,114,99,121,59,1,1112,107,99,121,59,1,1108,4,8,97,99,102,103,104,106,111,115,11404,11418,11433,11438,11445,11450,11455,11461,112,112,97,4,2,59,118,11413,11415,1,954,59,1,1008,4,2,101,121,11424,11430,100,105,108,59,1,311,59,1,1082,114,59,3,55349,56616,114,101,101,110,59,1,312,99,121,59,1,1093,99,121,59,1,1116,112,102,59,3,55349,56668,99,114,59,3,55349,56512,4,23,65,66,69,72,97,98,99,100,101,102,103,104,106,108,109,110,111,112,114,115,116,117,118,11515,11538,11544,11555,11560,11721,11780,11818,11868,12136,12160,12171,12203,12208,12246,12275,12327,12509,12523,12569,12641,12732,12752,4,3,97,114,116,11523,11528,11532,114,114,59,1,8666,114,59,1,8656,97,105,108,59,1,10523,97,114,114,59,1,10510,4,2,59,103,11550,11552,1,8806,59,1,10891,97,114,59,1,10594,4,9,99,101,103,109,110,112,113,114,116,11580,11586,11594,11600,11606,11624,11627,11636,11694,117,116,101,59,1,314,109,112,116,121,118,59,1,10676,114,97,110,59,1,8466,98,100,97,59,1,955,103,4,3,59,100,108,11615,11617,11620,1,10216,59,1,10641,101,59,1,10216,59,1,10885,117,111,5,171,1,59,11634,1,171,114,4,8,59,98,102,104,108,112,115,116,11655,11657,11669,11673,11677,11681,11685,11690,1,8592,4,2,59,102,11663,11665,1,8676,115,59,1,10527,115,59,1,10525,107,59,1,8617,112,59,1,8619,108,59,1,10553,105,109,59,1,10611,108,59,1,8610,4,3,59,97,101,11702,11704,11709,1,10923,105,108,59,1,10521,4,2,59,115,11715,11717,1,10925,59,3,10925,65024,4,3,97,98,114,11729,11734,11739,114,114,59,1,10508,114,107,59,1,10098,4,2,97,107,11745,11758,99,4,2,101,107,11752,11755,59,1,123,59,1,91,4,2,101,115,11764,11767,59,1,10635,108,4,2,100,117,11774,11777,59,1,10639,59,1,10637,4,4,97,101,117,121,11790,11796,11811,11815,114,111,110,59,1,318,4,2,100,105,11802,11807,105,108,59,1,316,108,59,1,8968,98,59,1,123,59,1,1083,4,4,99,113,114,115,11828,11832,11845,11864,97,59,1,10550,117,111,4,2,59,114,11840,11842,1,8220,59,1,8222,4,2,100,117,11851,11857,104,97,114,59,1,10599,115,104,97,114,59,1,10571,104,59,1,8626,4,5,59,102,103,113,115,11880,11882,12008,12011,12031,1,8804,116,4,5,97,104,108,114,116,11895,11913,11935,11947,11996,114,114,111,119,4,2,59,116,11905,11907,1,8592,97,105,108,59,1,8610,97,114,112,111,111,110,4,2,100,117,11925,11931,111,119,110,59,1,8637,112,59,1,8636,101,102,116,97,114,114,111,119,115,59,1,8647,105,103,104,116,4,3,97,104,115,11959,11974,11984,114,114,111,119,4,2,59,115,11969,11971,1,8596,59,1,8646,97,114,112,111,111,110,115,59,1,8651,113,117,105,103,97,114,114,111,119,59,1,8621,104,114,101,101,116,105,109,101,115,59,1,8907,59,1,8922,4,3,59,113,115,12019,12021,12024,1,8804,59,1,8806,108,97,110,116,59,1,10877,4,5,59,99,100,103,115,12043,12045,12049,12070,12083,1,10877,99,59,1,10920,111,116,4,2,59,111,12057,12059,1,10879,4,2,59,114,12065,12067,1,10881,59,1,10883,4,2,59,101,12076,12079,3,8922,65024,115,59,1,10899,4,5,97,100,101,103,115,12095,12103,12108,12126,12131,112,112,114,111,120,59,1,10885,111,116,59,1,8918,113,4,2,103,113,12115,12120,116,114,59,1,8922,103,116,114,59,1,10891,116,114,59,1,8822,105,109,59,1,8818,4,3,105,108,114,12144,12150,12156,115,104,116,59,1,10620,111,111,114,59,1,8970,59,3,55349,56617,4,2,59,69,12166,12168,1,8822,59,1,10897,4,2,97,98,12177,12198,114,4,2,100,117,12184,12187,59,1,8637,4,2,59,108,12193,12195,1,8636,59,1,10602,108,107,59,1,9604,99,121,59,1,1113,4,5,59,97,99,104,116,12220,12222,12227,12235,12241,1,8810,114,114,59,1,8647,111,114,110,101,114,59,1,8990,97,114,100,59,1,10603,114,105,59,1,9722,4,2,105,111,12252,12258,100,111,116,59,1,320,117,115,116,4,2,59,97,12267,12269,1,9136,99,104,101,59,1,9136,4,4,69,97,101,115,12285,12288,12303,12322,59,1,8808,112,4,2,59,112,12295,12297,1,10889,114,111,120,59,1,10889,4,2,59,113,12309,12311,1,10887,4,2,59,113,12317,12319,1,10887,59,1,8808,105,109,59,1,8934,4,8,97,98,110,111,112,116,119,122,12345,12359,12364,12421,12446,12467,12474,12490,4,2,110,114,12351,12355,103,59,1,10220,114,59,1,8701,114,107,59,1,10214,103,4,3,108,109,114,12373,12401,12409,101,102,116,4,2,97,114,12382,12389,114,114,111,119,59,1,10229,105,103,104,116,97,114,114,111,119,59,1,10231,97,112,115,116,111,59,1,10236,105,103,104,116,97,114,114,111,119,59,1,10230,112,97,114,114,111,119,4,2,108,114,12433,12439,101,102,116,59,1,8619,105,103,104,116,59,1,8620,4,3,97,102,108,12454,12458,12462,114,59,1,10629,59,3,55349,56669,117,115,59,1,10797,105,109,101,115,59,1,10804,4,2,97,98,12480,12485,115,116,59,1,8727,97,114,59,1,95,4,3,59,101,102,12498,12500,12506,1,9674,110,103,101,59,1,9674,59,1,10731,97,114,4,2,59,108,12517,12519,1,40,116,59,1,10643,4,5,97,99,104,109,116,12535,12540,12548,12561,12564,114,114,59,1,8646,111,114,110,101,114,59,1,8991,97,114,4,2,59,100,12556,12558,1,8651,59,1,10605,59,1,8206,114,105,59,1,8895,4,6,97,99,104,105,113,116,12583,12589,12594,12597,12614,12635,113,117,111,59,1,8249,114,59,3,55349,56513,59,1,8624,109,4,3,59,101,103,12606,12608,12611,1,8818,59,1,10893,59,1,10895,4,2,98,117,12620,12623,59,1,91,111,4,2,59,114,12630,12632,1,8216,59,1,8218,114,111,107,59,1,322,5,60,8,59,99,100,104,105,108,113,114,12660,12662,12675,12680,12686,12692,12698,12705,1,60,4,2,99,105,12668,12671,59,1,10918,114,59,1,10873,111,116,59,1,8918,114,101,101,59,1,8907,109,101,115,59,1,8905,97,114,114,59,1,10614,117,101,115,116,59,1,10875,4,2,80,105,12711,12716,97,114,59,1,10646,4,3,59,101,102,12724,12726,12729,1,9667,59,1,8884,59,1,9666,114,4,2,100,117,12739,12746,115,104,97,114,59,1,10570,104,97,114,59,1,10598,4,2,101,110,12758,12768,114,116,110,101,113,113,59,3,8808,65024,69,59,3,8808,65024,4,14,68,97,99,100,101,102,104,105,108,110,111,112,115,117,12803,12809,12893,12908,12914,12928,12933,12937,13011,13025,13032,13049,13052,13069,68,111,116,59,1,8762,4,4,99,108,112,114,12819,12827,12849,12887,114,5,175,1,59,12825,1,175,4,2,101,116,12833,12836,59,1,9794,4,2,59,101,12842,12844,1,10016,115,101,59,1,10016,4,2,59,115,12855,12857,1,8614,116,111,4,4,59,100,108,117,12869,12871,12877,12883,1,8614,111,119,110,59,1,8615,101,102,116,59,1,8612,112,59,1,8613,107,101,114,59,1,9646,4,2,111,121,12899,12905,109,109,97,59,1,10793,59,1,1084,97,115,104,59,1,8212,97,115,117,114,101,100,97,110,103,108,101,59,1,8737,114,59,3,55349,56618,111,59,1,8487,4,3,99,100,110,12945,12954,12985,114,111,5,181,1,59,12952,1,181,4,4,59,97,99,100,12964,12966,12971,12976,1,8739,115,116,59,1,42,105,114,59,1,10992,111,116,5,183,1,59,12983,1,183,117,115,4,3,59,98,100,12995,12997,13e3,1,8722,59,1,8863,4,2,59,117,13006,13008,1,8760,59,1,10794,4,2,99,100,13017,13021,112,59,1,10971,114,59,1,8230,112,108,117,115,59,1,8723,4,2,100,112,13038,13044,101,108,115,59,1,8871,102,59,3,55349,56670,59,1,8723,4,2,99,116,13058,13063,114,59,3,55349,56514,112,111,115,59,1,8766,4,3,59,108,109,13077,13079,13087,1,956,116,105,109,97,112,59,1,8888,97,112,59,1,8888,4,24,71,76,82,86,97,98,99,100,101,102,103,104,105,106,108,109,111,112,114,115,116,117,118,119,13142,13165,13217,13229,13247,13330,13359,13414,13420,13508,13513,13579,13602,13626,13631,13762,13767,13855,13936,13995,14214,14285,14312,14432,4,2,103,116,13148,13152,59,3,8921,824,4,2,59,118,13158,13161,3,8811,8402,59,3,8811,824,4,3,101,108,116,13173,13200,13204,102,116,4,2,97,114,13181,13188,114,114,111,119,59,1,8653,105,103,104,116,97,114,114,111,119,59,1,8654,59,3,8920,824,4,2,59,118,13210,13213,3,8810,8402,59,3,8810,824,105,103,104,116,97,114,114,111,119,59,1,8655,4,2,68,100,13235,13241,97,115,104,59,1,8879,97,115,104,59,1,8878,4,5,98,99,110,112,116,13259,13264,13270,13275,13308,108,97,59,1,8711,117,116,101,59,1,324,103,59,3,8736,8402,4,5,59,69,105,111,112,13287,13289,13293,13298,13302,1,8777,59,3,10864,824,100,59,3,8779,824,115,59,1,329,114,111,120,59,1,8777,117,114,4,2,59,97,13316,13318,1,9838,108,4,2,59,115,13325,13327,1,9838,59,1,8469,4,2,115,117,13336,13344,112,5,160,1,59,13342,1,160,109,112,4,2,59,101,13352,13355,3,8782,824,59,3,8783,824,4,5,97,101,111,117,121,13371,13385,13391,13407,13411,4,2,112,114,13377,13380,59,1,10819,111,110,59,1,328,100,105,108,59,1,326,110,103,4,2,59,100,13399,13401,1,8775,111,116,59,3,10861,824,112,59,1,10818,59,1,1085,97,115,104,59,1,8211,4,7,59,65,97,100,113,115,120,13436,13438,13443,13466,13472,13478,13494,1,8800,114,114,59,1,8663,114,4,2,104,114,13450,13454,107,59,1,10532,4,2,59,111,13460,13462,1,8599,119,59,1,8599,111,116,59,3,8784,824,117,105,118,59,1,8802,4,2,101,105,13484,13489,97,114,59,1,10536,109,59,3,8770,824,105,115,116,4,2,59,115,13503,13505,1,8708,59,1,8708,114,59,3,55349,56619,4,4,69,101,115,116,13523,13527,13563,13568,59,3,8807,824,4,3,59,113,115,13535,13537,13559,1,8817,4,3,59,113,115,13545,13547,13551,1,8817,59,3,8807,824,108,97,110,116,59,3,10878,824,59,3,10878,824,105,109,59,1,8821,4,2,59,114,13574,13576,1,8815,59,1,8815,4,3,65,97,112,13587,13592,13597,114,114,59,1,8654,114,114,59,1,8622,97,114,59,1,10994,4,3,59,115,118,13610,13612,13623,1,8715,4,2,59,100,13618,13620,1,8956,59,1,8954,59,1,8715,99,121,59,1,1114,4,7,65,69,97,100,101,115,116,13647,13652,13656,13661,13665,13737,13742,114,114,59,1,8653,59,3,8806,824,114,114,59,1,8602,114,59,1,8229,4,4,59,102,113,115,13675,13677,13703,13725,1,8816,116,4,2,97,114,13684,13691,114,114,111,119,59,1,8602,105,103,104,116,97,114,114,111,119,59,1,8622,4,3,59,113,115,13711,13713,13717,1,8816,59,3,8806,824,108,97,110,116,59,3,10877,824,4,2,59,115,13731,13734,3,10877,824,59,1,8814,105,109,59,1,8820,4,2,59,114,13748,13750,1,8814,105,4,2,59,101,13757,13759,1,8938,59,1,8940,105,100,59,1,8740,4,2,112,116,13773,13778,102,59,3,55349,56671,5,172,3,59,105,110,13787,13789,13829,1,172,110,4,4,59,69,100,118,13800,13802,13806,13812,1,8713,59,3,8953,824,111,116,59,3,8949,824,4,3,97,98,99,13820,13823,13826,59,1,8713,59,1,8951,59,1,8950,105,4,2,59,118,13836,13838,1,8716,4,3,97,98,99,13846,13849,13852,59,1,8716,59,1,8958,59,1,8957,4,3,97,111,114,13863,13892,13899,114,4,4,59,97,115,116,13874,13876,13883,13888,1,8742,108,108,101,108,59,1,8742,108,59,3,11005,8421,59,3,8706,824,108,105,110,116,59,1,10772,4,3,59,99,101,13907,13909,13914,1,8832,117,101,59,1,8928,4,2,59,99,13920,13923,3,10927,824,4,2,59,101,13929,13931,1,8832,113,59,3,10927,824,4,4,65,97,105,116,13946,13951,13971,13982,114,114,59,1,8655,114,114,4,3,59,99,119,13961,13963,13967,1,8603,59,3,10547,824,59,3,8605,824,103,104,116,97,114,114,111,119,59,1,8603,114,105,4,2,59,101,13990,13992,1,8939,59,1,8941,4,7,99,104,105,109,112,113,117,14011,14036,14060,14080,14085,14090,14106,4,4,59,99,101,114,14021,14023,14028,14032,1,8833,117,101,59,1,8929,59,3,10928,824,59,3,55349,56515,111,114,116,4,2,109,112,14045,14050,105,100,59,1,8740,97,114,97,108,108,101,108,59,1,8742,109,4,2,59,101,14067,14069,1,8769,4,2,59,113,14075,14077,1,8772,59,1,8772,105,100,59,1,8740,97,114,59,1,8742,115,117,4,2,98,112,14098,14102,101,59,1,8930,101,59,1,8931,4,3,98,99,112,14114,14157,14171,4,4,59,69,101,115,14124,14126,14130,14133,1,8836,59,3,10949,824,59,1,8840,101,116,4,2,59,101,14141,14144,3,8834,8402,113,4,2,59,113,14151,14153,1,8840,59,3,10949,824,99,4,2,59,101,14164,14166,1,8833,113,59,3,10928,824,4,4,59,69,101,115,14181,14183,14187,14190,1,8837,59,3,10950,824,59,1,8841,101,116,4,2,59,101,14198,14201,3,8835,8402,113,4,2,59,113,14208,14210,1,8841,59,3,10950,824,4,4,103,105,108,114,14224,14228,14238,14242,108,59,1,8825,108,100,101,5,241,1,59,14236,1,241,103,59,1,8824,105,97,110,103,108,101,4,2,108,114,14254,14269,101,102,116,4,2,59,101,14263,14265,1,8938,113,59,1,8940,105,103,104,116,4,2,59,101,14279,14281,1,8939,113,59,1,8941,4,2,59,109,14291,14293,1,957,4,3,59,101,115,14301,14303,14308,1,35,114,111,59,1,8470,112,59,1,8199,4,9,68,72,97,100,103,105,108,114,115,14332,14338,14344,14349,14355,14369,14376,14408,14426,97,115,104,59,1,8877,97,114,114,59,1,10500,112,59,3,8781,8402,97,115,104,59,1,8876,4,2,101,116,14361,14365,59,3,8805,8402,59,3,62,8402,110,102,105,110,59,1,10718,4,3,65,101,116,14384,14389,14393,114,114,59,1,10498,59,3,8804,8402,4,2,59,114,14399,14402,3,60,8402,105,101,59,3,8884,8402,4,2,65,116,14414,14419,114,114,59,1,10499,114,105,101,59,3,8885,8402,105,109,59,3,8764,8402,4,3,65,97,110,14440,14445,14468,114,114,59,1,8662,114,4,2,104,114,14452,14456,107,59,1,10531,4,2,59,111,14462,14464,1,8598,119,59,1,8598,101,97,114,59,1,10535,4,18,83,97,99,100,101,102,103,104,105,108,109,111,112,114,115,116,117,118,14512,14515,14535,14560,14597,14603,14618,14643,14657,14662,14701,14741,14747,14769,14851,14877,14907,14916,59,1,9416,4,2,99,115,14521,14531,117,116,101,5,243,1,59,14529,1,243,116,59,1,8859,4,2,105,121,14541,14557,114,4,2,59,99,14548,14550,1,8858,5,244,1,59,14555,1,244,59,1,1086,4,5,97,98,105,111,115,14572,14577,14583,14587,14591,115,104,59,1,8861,108,97,99,59,1,337,118,59,1,10808,116,59,1,8857,111,108,100,59,1,10684,108,105,103,59,1,339,4,2,99,114,14609,14614,105,114,59,1,10687,59,3,55349,56620,4,3,111,114,116,14626,14630,14640,110,59,1,731,97,118,101,5,242,1,59,14638,1,242,59,1,10689,4,2,98,109,14649,14654,97,114,59,1,10677,59,1,937,110,116,59,1,8750,4,4,97,99,105,116,14672,14677,14693,14698,114,114,59,1,8634,4,2,105,114,14683,14687,114,59,1,10686,111,115,115,59,1,10683,110,101,59,1,8254,59,1,10688,4,3,97,101,105,14709,14714,14719,99,114,59,1,333,103,97,59,1,969,4,3,99,100,110,14727,14733,14736,114,111,110,59,1,959,59,1,10678,117,115,59,1,8854,112,102,59,3,55349,56672,4,3,97,101,108,14755,14759,14764,114,59,1,10679,114,112,59,1,10681,117,115,59,1,8853,4,7,59,97,100,105,111,115,118,14785,14787,14792,14831,14837,14841,14848,1,8744,114,114,59,1,8635,4,4,59,101,102,109,14802,14804,14817,14824,1,10845,114,4,2,59,111,14811,14813,1,8500,102,59,1,8500,5,170,1,59,14822,1,170,5,186,1,59,14829,1,186,103,111,102,59,1,8886,114,59,1,10838,108,111,112,101,59,1,10839,59,1,10843,4,3,99,108,111,14859,14863,14873,114,59,1,8500,97,115,104,5,248,1,59,14871,1,248,108,59,1,8856,105,4,2,108,109,14884,14893,100,101,5,245,1,59,14891,1,245,101,115,4,2,59,97,14901,14903,1,8855,115,59,1,10806,109,108,5,246,1,59,14914,1,246,98,97,114,59,1,9021,4,12,97,99,101,102,104,105,108,109,111,114,115,117,14948,14992,14996,15033,15038,15068,15090,15189,15192,15222,15427,15441,114,4,4,59,97,115,116,14959,14961,14976,14989,1,8741,5,182,2,59,108,14968,14970,1,182,108,101,108,59,1,8741,4,2,105,108,14982,14986,109,59,1,10995,59,1,11005,59,1,8706,121,59,1,1087,114,4,5,99,105,109,112,116,15009,15014,15019,15024,15027,110,116,59,1,37,111,100,59,1,46,105,108,59,1,8240,59,1,8869,101,110,107,59,1,8241,114,59,3,55349,56621,4,3,105,109,111,15046,15057,15063,4,2,59,118,15052,15054,1,966,59,1,981,109,97,116,59,1,8499,110,101,59,1,9742,4,3,59,116,118,15076,15078,15087,1,960,99,104,102,111,114,107,59,1,8916,59,1,982,4,2,97,117,15096,15119,110,4,2,99,107,15103,15115,107,4,2,59,104,15110,15112,1,8463,59,1,8462,118,59,1,8463,115,4,9,59,97,98,99,100,101,109,115,116,15140,15142,15148,15151,15156,15168,15171,15179,15184,1,43,99,105,114,59,1,10787,59,1,8862,105,114,59,1,10786,4,2,111,117,15162,15165,59,1,8724,59,1,10789,59,1,10866,110,5,177,1,59,15177,1,177,105,109,59,1,10790,119,111,59,1,10791,59,1,177,4,3,105,112,117,15200,15208,15213,110,116,105,110,116,59,1,10773,102,59,3,55349,56673,110,100,5,163,1,59,15220,1,163,4,10,59,69,97,99,101,105,110,111,115,117,15244,15246,15249,15253,15258,15334,15347,15367,15416,15421,1,8826,59,1,10931,112,59,1,10935,117,101,59,1,8828,4,2,59,99,15264,15266,1,10927,4,6,59,97,99,101,110,115,15280,15282,15290,15299,15303,15329,1,8826,112,112,114,111,120,59,1,10935,117,114,108,121,101,113,59,1,8828,113,59,1,10927,4,3,97,101,115,15311,15319,15324,112,112,114,111,120,59,1,10937,113,113,59,1,10933,105,109,59,1,8936,105,109,59,1,8830,109,101,4,2,59,115,15342,15344,1,8242,59,1,8473,4,3,69,97,115,15355,15358,15362,59,1,10933,112,59,1,10937,105,109,59,1,8936,4,3,100,102,112,15375,15378,15404,59,1,8719,4,3,97,108,115,15386,15392,15398,108,97,114,59,1,9006,105,110,101,59,1,8978,117,114,102,59,1,8979,4,2,59,116,15410,15412,1,8733,111,59,1,8733,105,109,59,1,8830,114,101,108,59,1,8880,4,2,99,105,15433,15438,114,59,3,55349,56517,59,1,968,110,99,115,112,59,1,8200,4,6,102,105,111,112,115,117,15462,15467,15472,15478,15485,15491,114,59,3,55349,56622,110,116,59,1,10764,112,102,59,3,55349,56674,114,105,109,101,59,1,8279,99,114,59,3,55349,56518,4,3,97,101,111,15499,15520,15534,116,4,2,101,105,15506,15515,114,110,105,111,110,115,59,1,8461,110,116,59,1,10774,115,116,4,2,59,101,15528,15530,1,63,113,59,1,8799,116,5,34,1,59,15540,1,34,4,21,65,66,72,97,98,99,100,101,102,104,105,108,109,110,111,112,114,115,116,117,120,15586,15609,15615,15620,15796,15855,15893,15931,15977,16001,16039,16183,16204,16222,16228,16285,16312,16318,16363,16408,16416,4,3,97,114,116,15594,15599,15603,114,114,59,1,8667,114,59,1,8658,97,105,108,59,1,10524,97,114,114,59,1,10511,97,114,59,1,10596,4,7,99,100,101,110,113,114,116,15636,15651,15656,15664,15687,15696,15770,4,2,101,117,15642,15646,59,3,8765,817,116,101,59,1,341,105,99,59,1,8730,109,112,116,121,118,59,1,10675,103,4,4,59,100,101,108,15675,15677,15680,15683,1,10217,59,1,10642,59,1,10661,101,59,1,10217,117,111,5,187,1,59,15694,1,187,114,4,11,59,97,98,99,102,104,108,112,115,116,119,15721,15723,15727,15739,15742,15746,15750,15754,15758,15763,15767,1,8594,112,59,1,10613,4,2,59,102,15733,15735,1,8677,115,59,1,10528,59,1,10547,115,59,1,10526,107,59,1,8618,112,59,1,8620,108,59,1,10565,105,109,59,1,10612,108,59,1,8611,59,1,8605,4,2,97,105,15776,15781,105,108,59,1,10522,111,4,2,59,110,15788,15790,1,8758,97,108,115,59,1,8474,4,3,97,98,114,15804,15809,15814,114,114,59,1,10509,114,107,59,1,10099,4,2,97,107,15820,15833,99,4,2,101,107,15827,15830,59,1,125,59,1,93,4,2,101,115,15839,15842,59,1,10636,108,4,2,100,117,15849,15852,59,1,10638,59,1,10640,4,4,97,101,117,121,15865,15871,15886,15890,114,111,110,59,1,345,4,2,100,105,15877,15882,105,108,59,1,343,108,59,1,8969,98,59,1,125,59,1,1088,4,4,99,108,113,115,15903,15907,15914,15927,97,59,1,10551,100,104,97,114,59,1,10601,117,111,4,2,59,114,15922,15924,1,8221,59,1,8221,104,59,1,8627,4,3,97,99,103,15939,15966,15970,108,4,4,59,105,112,115,15950,15952,15957,15963,1,8476,110,101,59,1,8475,97,114,116,59,1,8476,59,1,8477,116,59,1,9645,5,174,1,59,15975,1,174,4,3,105,108,114,15985,15991,15997,115,104,116,59,1,10621,111,111,114,59,1,8971,59,3,55349,56623,4,2,97,111,16007,16028,114,4,2,100,117,16014,16017,59,1,8641,4,2,59,108,16023,16025,1,8640,59,1,10604,4,2,59,118,16034,16036,1,961,59,1,1009,4,3,103,110,115,16047,16167,16171,104,116,4,6,97,104,108,114,115,116,16063,16081,16103,16130,16143,16155,114,114,111,119,4,2,59,116,16073,16075,1,8594,97,105,108,59,1,8611,97,114,112,111,111,110,4,2,100,117,16093,16099,111,119,110,59,1,8641,112,59,1,8640,101,102,116,4,2,97,104,16112,16120,114,114,111,119,115,59,1,8644,97,114,112,111,111,110,115,59,1,8652,105,103,104,116,97,114,114,111,119,115,59,1,8649,113,117,105,103,97,114,114,111,119,59,1,8605,104,114,101,101,116,105,109,101,115,59,1,8908,103,59,1,730,105,110,103,100,111,116,115,101,113,59,1,8787,4,3,97,104,109,16191,16196,16201,114,114,59,1,8644,97,114,59,1,8652,59,1,8207,111,117,115,116,4,2,59,97,16214,16216,1,9137,99,104,101,59,1,9137,109,105,100,59,1,10990,4,4,97,98,112,116,16238,16252,16257,16278,4,2,110,114,16244,16248,103,59,1,10221,114,59,1,8702,114,107,59,1,10215,4,3,97,102,108,16265,16269,16273,114,59,1,10630,59,3,55349,56675,117,115,59,1,10798,105,109,101,115,59,1,10805,4,2,97,112,16291,16304,114,4,2,59,103,16298,16300,1,41,116,59,1,10644,111,108,105,110,116,59,1,10770,97,114,114,59,1,8649,4,4,97,99,104,113,16328,16334,16339,16342,113,117,111,59,1,8250,114,59,3,55349,56519,59,1,8625,4,2,98,117,16348,16351,59,1,93,111,4,2,59,114,16358,16360,1,8217,59,1,8217,4,3,104,105,114,16371,16377,16383,114,101,101,59,1,8908,109,101,115,59,1,8906,105,4,4,59,101,102,108,16394,16396,16399,16402,1,9657,59,1,8885,59,1,9656,116,114,105,59,1,10702,108,117,104,97,114,59,1,10600,59,1,8478,4,19,97,98,99,100,101,102,104,105,108,109,111,112,113,114,115,116,117,119,122,16459,16466,16472,16572,16590,16672,16687,16746,16844,16850,16924,16963,16988,17115,17121,17154,17206,17614,17656,99,117,116,101,59,1,347,113,117,111,59,1,8218,4,10,59,69,97,99,101,105,110,112,115,121,16494,16496,16499,16513,16518,16531,16536,16556,16564,16569,1,8827,59,1,10932,4,2,112,114,16505,16508,59,1,10936,111,110,59,1,353,117,101,59,1,8829,4,2,59,100,16524,16526,1,10928,105,108,59,1,351,114,99,59,1,349,4,3,69,97,115,16544,16547,16551,59,1,10934,112,59,1,10938,105,109,59,1,8937,111,108,105,110,116,59,1,10771,105,109,59,1,8831,59,1,1089,111,116,4,3,59,98,101,16582,16584,16587,1,8901,59,1,8865,59,1,10854,4,7,65,97,99,109,115,116,120,16606,16611,16634,16642,16646,16652,16668,114,114,59,1,8664,114,4,2,104,114,16618,16622,107,59,1,10533,4,2,59,111,16628,16630,1,8600,119,59,1,8600,116,5,167,1,59,16640,1,167,105,59,1,59,119,97,114,59,1,10537,109,4,2,105,110,16659,16665,110,117,115,59,1,8726,59,1,8726,116,59,1,10038,114,4,2,59,111,16679,16682,3,55349,56624,119,110,59,1,8994,4,4,97,99,111,121,16697,16702,16716,16739,114,112,59,1,9839,4,2,104,121,16708,16713,99,121,59,1,1097,59,1,1096,114,116,4,2,109,112,16724,16729,105,100,59,1,8739,97,114,97,108,108,101,108,59,1,8741,5,173,1,59,16744,1,173,4,2,103,109,16752,16770,109,97,4,3,59,102,118,16762,16764,16767,1,963,59,1,962,59,1,962,4,8,59,100,101,103,108,110,112,114,16788,16790,16795,16806,16817,16828,16832,16838,1,8764,111,116,59,1,10858,4,2,59,113,16801,16803,1,8771,59,1,8771,4,2,59,69,16812,16814,1,10910,59,1,10912,4,2,59,69,16823,16825,1,10909,59,1,10911,101,59,1,8774,108,117,115,59,1,10788,97,114,114,59,1,10610,97,114,114,59,1,8592,4,4,97,101,105,116,16860,16883,16891,16904,4,2,108,115,16866,16878,108,115,101,116,109,105,110,117,115,59,1,8726,104,112,59,1,10803,112,97,114,115,108,59,1,10724,4,2,100,108,16897,16900,59,1,8739,101,59,1,8995,4,2,59,101,16910,16912,1,10922,4,2,59,115,16918,16920,1,10924,59,3,10924,65024,4,3,102,108,112,16932,16938,16958,116,99,121,59,1,1100,4,2,59,98,16944,16946,1,47,4,2,59,97,16952,16954,1,10692,114,59,1,9023,102,59,3,55349,56676,97,4,2,100,114,16970,16985,101,115,4,2,59,117,16978,16980,1,9824,105,116,59,1,9824,59,1,8741,4,3,99,115,117,16996,17028,17089,4,2,97,117,17002,17015,112,4,2,59,115,17009,17011,1,8851,59,3,8851,65024,112,4,2,59,115,17022,17024,1,8852,59,3,8852,65024,117,4,2,98,112,17035,17062,4,3,59,101,115,17043,17045,17048,1,8847,59,1,8849,101,116,4,2,59,101,17056,17058,1,8847,113,59,1,8849,4,3,59,101,115,17070,17072,17075,1,8848,59,1,8850,101,116,4,2,59,101,17083,17085,1,8848,113,59,1,8850,4,3,59,97,102,17097,17099,17112,1,9633,114,4,2,101,102,17106,17109,59,1,9633,59,1,9642,59,1,9642,97,114,114,59,1,8594,4,4,99,101,109,116,17131,17136,17142,17148,114,59,3,55349,56520,116,109,110,59,1,8726,105,108,101,59,1,8995,97,114,102,59,1,8902,4,2,97,114,17160,17172,114,4,2,59,102,17167,17169,1,9734,59,1,9733,4,2,97,110,17178,17202,105,103,104,116,4,2,101,112,17188,17197,112,115,105,108,111,110,59,1,1013,104,105,59,1,981,115,59,1,175,4,5,98,99,109,110,112,17218,17351,17420,17423,17427,4,9,59,69,100,101,109,110,112,114,115,17238,17240,17243,17248,17261,17267,17279,17285,17291,1,8834,59,1,10949,111,116,59,1,10941,4,2,59,100,17254,17256,1,8838,111,116,59,1,10947,117,108,116,59,1,10945,4,2,69,101,17273,17276,59,1,10955,59,1,8842,108,117,115,59,1,10943,97,114,114,59,1,10617,4,3,101,105,117,17299,17335,17339,116,4,3,59,101,110,17308,17310,17322,1,8834,113,4,2,59,113,17317,17319,1,8838,59,1,10949,101,113,4,2,59,113,17330,17332,1,8842,59,1,10955,109,59,1,10951,4,2,98,112,17345,17348,59,1,10965,59,1,10963,99,4,6,59,97,99,101,110,115,17366,17368,17376,17385,17389,17415,1,8827,112,112,114,111,120,59,1,10936,117,114,108,121,101,113,59,1,8829,113,59,1,10928,4,3,97,101,115,17397,17405,17410,112,112,114,111,120,59,1,10938,113,113,59,1,10934,105,109,59,1,8937,105,109,59,1,8831,59,1,8721,103,59,1,9834,4,13,49,50,51,59,69,100,101,104,108,109,110,112,115,17455,17462,17469,17476,17478,17481,17496,17509,17524,17530,17536,17548,17554,5,185,1,59,17460,1,185,5,178,1,59,17467,1,178,5,179,1,59,17474,1,179,1,8835,59,1,10950,4,2,111,115,17487,17491,116,59,1,10942,117,98,59,1,10968,4,2,59,100,17502,17504,1,8839,111,116,59,1,10948,115,4,2,111,117,17516,17520,108,59,1,10185,98,59,1,10967,97,114,114,59,1,10619,117,108,116,59,1,10946,4,2,69,101,17542,17545,59,1,10956,59,1,8843,108,117,115,59,1,10944,4,3,101,105,117,17562,17598,17602,116,4,3,59,101,110,17571,17573,17585,1,8835,113,4,2,59,113,17580,17582,1,8839,59,1,10950,101,113,4,2,59,113,17593,17595,1,8843,59,1,10956,109,59,1,10952,4,2,98,112,17608,17611,59,1,10964,59,1,10966,4,3,65,97,110,17622,17627,17650,114,114,59,1,8665,114,4,2,104,114,17634,17638,107,59,1,10534,4,2,59,111,17644,17646,1,8601,119,59,1,8601,119,97,114,59,1,10538,108,105,103,5,223,1,59,17664,1,223,4,13,97,98,99,100,101,102,104,105,111,112,114,115,119,17694,17709,17714,17737,17742,17749,17754,17860,17905,17957,17964,18090,18122,4,2,114,117,17700,17706,103,101,116,59,1,8982,59,1,964,114,107,59,1,9140,4,3,97,101,121,17722,17728,17734,114,111,110,59,1,357,100,105,108,59,1,355,59,1,1090,111,116,59,1,8411,108,114,101,99,59,1,8981,114,59,3,55349,56625,4,4,101,105,107,111,17764,17805,17836,17851,4,2,114,116,17770,17786,101,4,2,52,102,17777,17780,59,1,8756,111,114,101,59,1,8756,97,4,3,59,115,118,17795,17797,17802,1,952,121,109,59,1,977,59,1,977,4,2,99,110,17811,17831,107,4,2,97,115,17818,17826,112,112,114,111,120,59,1,8776,105,109,59,1,8764,115,112,59,1,8201,4,2,97,115,17842,17846,112,59,1,8776,105,109,59,1,8764,114,110,5,254,1,59,17858,1,254,4,3,108,109,110,17868,17873,17901,100,101,59,1,732,101,115,5,215,3,59,98,100,17884,17886,17898,1,215,4,2,59,97,17892,17894,1,8864,114,59,1,10801,59,1,10800,116,59,1,8749,4,3,101,112,115,17913,17917,17953,97,59,1,10536,4,4,59,98,99,102,17927,17929,17934,17939,1,8868,111,116,59,1,9014,105,114,59,1,10993,4,2,59,111,17945,17948,3,55349,56677,114,107,59,1,10970,97,59,1,10537,114,105,109,101,59,1,8244,4,3,97,105,112,17972,17977,18082,100,101,59,1,8482,4,7,97,100,101,109,112,115,116,17993,18051,18056,18059,18066,18072,18076,110,103,108,101,4,5,59,100,108,113,114,18009,18011,18017,18032,18035,1,9653,111,119,110,59,1,9663,101,102,116,4,2,59,101,18026,18028,1,9667,113,59,1,8884,59,1,8796,105,103,104,116,4,2,59,101,18045,18047,1,9657,113,59,1,8885,111,116,59,1,9708,59,1,8796,105,110,117,115,59,1,10810,108,117,115,59,1,10809,98,59,1,10701,105,109,101,59,1,10811,101,122,105,117,109,59,1,9186,4,3,99,104,116,18098,18111,18116,4,2,114,121,18104,18108,59,3,55349,56521,59,1,1094,99,121,59,1,1115,114,111,107,59,1,359,4,2,105,111,18128,18133,120,116,59,1,8812,104,101,97,100,4,2,108,114,18143,18154,101,102,116,97,114,114,111,119,59,1,8606,105,103,104,116,97,114,114,111,119,59,1,8608,4,18,65,72,97,98,99,100,102,103,104,108,109,111,112,114,115,116,117,119,18204,18209,18214,18234,18250,18268,18292,18308,18319,18343,18379,18397,18413,18504,18547,18553,18584,18603,114,114,59,1,8657,97,114,59,1,10595,4,2,99,114,18220,18230,117,116,101,5,250,1,59,18228,1,250,114,59,1,8593,114,4,2,99,101,18241,18245,121,59,1,1118,118,101,59,1,365,4,2,105,121,18256,18265,114,99,5,251,1,59,18263,1,251,59,1,1091,4,3,97,98,104,18276,18281,18287,114,114,59,1,8645,108,97,99,59,1,369,97,114,59,1,10606,4,2,105,114,18298,18304,115,104,116,59,1,10622,59,3,55349,56626,114,97,118,101,5,249,1,59,18317,1,249,4,2,97,98,18325,18338,114,4,2,108,114,18332,18335,59,1,8639,59,1,8638,108,107,59,1,9600,4,2,99,116,18349,18374,4,2,111,114,18355,18369,114,110,4,2,59,101,18363,18365,1,8988,114,59,1,8988,111,112,59,1,8975,114,105,59,1,9720,4,2,97,108,18385,18390,99,114,59,1,363,5,168,1,59,18395,1,168,4,2,103,112,18403,18408,111,110,59,1,371,102,59,3,55349,56678,4,6,97,100,104,108,115,117,18427,18434,18445,18470,18475,18494,114,114,111,119,59,1,8593,111,119,110,97,114,114,111,119,59,1,8597,97,114,112,111,111,110,4,2,108,114,18457,18463,101,102,116,59,1,8639,105,103,104,116,59,1,8638,117,115,59,1,8846,105,4,3,59,104,108,18484,18486,18489,1,965,59,1,978,111,110,59,1,965,112,97,114,114,111,119,115,59,1,8648,4,3,99,105,116,18512,18537,18542,4,2,111,114,18518,18532,114,110,4,2,59,101,18526,18528,1,8989,114,59,1,8989,111,112,59,1,8974,110,103,59,1,367,114,105,59,1,9721,99,114,59,3,55349,56522,4,3,100,105,114,18561,18566,18572,111,116,59,1,8944,108,100,101,59,1,361,105,4,2,59,102,18579,18581,1,9653,59,1,9652,4,2,97,109,18590,18595,114,114,59,1,8648,108,5,252,1,59,18601,1,252,97,110,103,108,101,59,1,10663,4,15,65,66,68,97,99,100,101,102,108,110,111,112,114,115,122,18643,18648,18661,18667,18847,18851,18857,18904,18909,18915,18931,18937,18943,18949,18996,114,114,59,1,8661,97,114,4,2,59,118,18656,18658,1,10984,59,1,10985,97,115,104,59,1,8872,4,2,110,114,18673,18679,103,114,116,59,1,10652,4,7,101,107,110,112,114,115,116,18695,18704,18711,18720,18742,18754,18810,112,115,105,108,111,110,59,1,1013,97,112,112,97,59,1,1008,111,116,104,105,110,103,59,1,8709,4,3,104,105,114,18728,18732,18735,105,59,1,981,59,1,982,111,112,116,111,59,1,8733,4,2,59,104,18748,18750,1,8597,111,59,1,1009,4,2,105,117,18760,18766,103,109,97,59,1,962,4,2,98,112,18772,18791,115,101,116,110,101,113,4,2,59,113,18784,18787,3,8842,65024,59,3,10955,65024,115,101,116,110,101,113,4,2,59,113,18803,18806,3,8843,65024,59,3,10956,65024,4,2,104,114,18816,18822,101,116,97,59,1,977,105,97,110,103,108,101,4,2,108,114,18834,18840,101,102,116,59,1,8882,105,103,104,116,59,1,8883,121,59,1,1074,97,115,104,59,1,8866,4,3,101,108,114,18865,18884,18890,4,3,59,98,101,18873,18875,18880,1,8744,97,114,59,1,8891,113,59,1,8794,108,105,112,59,1,8942,4,2,98,116,18896,18901,97,114,59,1,124,59,1,124,114,59,3,55349,56627,116,114,105,59,1,8882,115,117,4,2,98,112,18923,18927,59,3,8834,8402,59,3,8835,8402,112,102,59,3,55349,56679,114,111,112,59,1,8733,116,114,105,59,1,8883,4,2,99,117,18955,18960,114,59,3,55349,56523,4,2,98,112,18966,18981,110,4,2,69,101,18973,18977,59,3,10955,65024,59,3,8842,65024,110,4,2,69,101,18988,18992,59,3,10956,65024,59,3,8843,65024,105,103,122,97,103,59,1,10650,4,7,99,101,102,111,112,114,115,19020,19026,19061,19066,19072,19075,19089,105,114,99,59,1,373,4,2,100,105,19032,19055,4,2,98,103,19038,19043,97,114,59,1,10847,101,4,2,59,113,19050,19052,1,8743,59,1,8793,101,114,112,59,1,8472,114,59,3,55349,56628,112,102,59,3,55349,56680,59,1,8472,4,2,59,101,19081,19083,1,8768,97,116,104,59,1,8768,99,114,59,3,55349,56524,4,14,99,100,102,104,105,108,109,110,111,114,115,117,118,119,19125,19146,19152,19157,19173,19176,19192,19197,19202,19236,19252,19269,19286,19291,4,3,97,105,117,19133,19137,19142,112,59,1,8898,114,99,59,1,9711,112,59,1,8899,116,114,105,59,1,9661,114,59,3,55349,56629,4,2,65,97,19163,19168,114,114,59,1,10234,114,114,59,1,10231,59,1,958,4,2,65,97,19182,19187,114,114,59,1,10232,114,114,59,1,10229,97,112,59,1,10236,105,115,59,1,8955,4,3,100,112,116,19210,19215,19230,111,116,59,1,10752,4,2,102,108,19221,19225,59,3,55349,56681,117,115,59,1,10753,105,109,101,59,1,10754,4,2,65,97,19242,19247,114,114,59,1,10233,114,114,59,1,10230,4,2,99,113,19258,19263,114,59,3,55349,56525,99,117,112,59,1,10758,4,2,112,116,19275,19281,108,117,115,59,1,10756,114,105,59,1,9651,101,101,59,1,8897,101,100,103,101,59,1,8896,4,8,97,99,101,102,105,111,115,117,19316,19335,19349,19357,19362,19367,19373,19379,99,4,2,117,121,19323,19332,116,101,5,253,1,59,19330,1,253,59,1,1103,4,2,105,121,19341,19346,114,99,59,1,375,59,1,1099,110,5,165,1,59,19355,1,165,114,59,3,55349,56630,99,121,59,1,1111,112,102,59,3,55349,56682,99,114,59,3,55349,56526,4,2,99,109,19385,19389,121,59,1,1102,108,5,255,1,59,19395,1,255,4,10,97,99,100,101,102,104,105,111,115,119,19419,19426,19441,19446,19462,19467,19472,19480,19486,19492,99,117,116,101,59,1,378,4,2,97,121,19432,19438,114,111,110,59,1,382,59,1,1079,111,116,59,1,380,4,2,101,116,19452,19458,116,114,102,59,1,8488,97,59,1,950,114,59,3,55349,56631,99,121,59,1,1078,103,114,97,114,114,59,1,8669,112,102,59,3,55349,56683,99,114,59,3,55349,56527,4,2,106,110,19498,19501,59,1,8205,106,59,1,8204])});var N1=Ze((Z6e,gU)=>{"use strict";var dce=gz(),ki=p4(),_u=_z(),ve=m4(),K=ki.CODE_POINTS,gu=ki.CODE_POINT_SEQUENCES,uce={128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},dU=1,uU=2,hU=4,hce=dU|uU|hU,Xt="DATA_STATE",Lf="RCDATA_STATE",M1="RAWTEXT_STATE",zl="SCRIPT_DATA_STATE",fU="PLAINTEXT_STATE",bz="TAG_OPEN_STATE",yz="END_TAG_OPEN_STATE",lx="TAG_NAME_STATE",Cz="RCDATA_LESS_THAN_SIGN_STATE",Sz="RCDATA_END_TAG_OPEN_STATE",wz="RCDATA_END_TAG_NAME_STATE",xz="RAWTEXT_LESS_THAN_SIGN_STATE",Ez="RAWTEXT_END_TAG_OPEN_STATE",Tz="RAWTEXT_END_TAG_NAME_STATE",kz="SCRIPT_DATA_LESS_THAN_SIGN_STATE",Iz="SCRIPT_DATA_END_TAG_OPEN_STATE",Az="SCRIPT_DATA_END_TAG_NAME_STATE",Lz="SCRIPT_DATA_ESCAPE_START_STATE",Mz="SCRIPT_DATA_ESCAPE_START_DASH_STATE",Bs="SCRIPT_DATA_ESCAPED_STATE",Dz="SCRIPT_DATA_ESCAPED_DASH_STATE",cx="SCRIPT_DATA_ESCAPED_DASH_DASH_STATE",g4="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN_STATE",Nz="SCRIPT_DATA_ESCAPED_END_TAG_OPEN_STATE",Rz="SCRIPT_DATA_ESCAPED_END_TAG_NAME_STATE",Oz="SCRIPT_DATA_DOUBLE_ESCAPE_START_STATE",Bl="SCRIPT_DATA_DOUBLE_ESCAPED_STATE",Pz="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_STATE",Fz="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH_STATE",v4="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN_STATE",Bz="SCRIPT_DATA_DOUBLE_ESCAPE_END_STATE",Na="BEFORE_ATTRIBUTE_NAME_STATE",_4="ATTRIBUTE_NAME_STATE",dx="AFTER_ATTRIBUTE_NAME_STATE",ux="BEFORE_ATTRIBUTE_VALUE_STATE",b4="ATTRIBUTE_VALUE_DOUBLE_QUOTED_STATE",y4="ATTRIBUTE_VALUE_SINGLE_QUOTED_STATE",C4="ATTRIBUTE_VALUE_UNQUOTED_STATE",hx="AFTER_ATTRIBUTE_VALUE_QUOTED_STATE",id="SELF_CLOSING_START_TAG_STATE",k1="BOGUS_COMMENT_STATE",Hz="MARKUP_DECLARATION_OPEN_STATE",zz="COMMENT_START_STATE",Uz="COMMENT_START_DASH_STATE",nd="COMMENT_STATE",jz="COMMENT_LESS_THAN_SIGN_STATE",Wz="COMMENT_LESS_THAN_SIGN_BANG_STATE",Vz="COMMENT_LESS_THAN_SIGN_BANG_DASH_STATE",Kz="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH_STATE",S4="COMMENT_END_DASH_STATE",w4="COMMENT_END_STATE",qz="COMMENT_END_BANG_STATE",Gz="DOCTYPE_STATE",x4="BEFORE_DOCTYPE_NAME_STATE",E4="DOCTYPE_NAME_STATE",$z="AFTER_DOCTYPE_NAME_STATE",Yz="AFTER_DOCTYPE_PUBLIC_KEYWORD_STATE",Xz="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER_STATE",fx="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED_STATE",px="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED_STATE",mx="AFTER_DOCTYPE_PUBLIC_IDENTIFIER_STATE",Qz="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS_STATE",Jz="AFTER_DOCTYPE_SYSTEM_KEYWORD_STATE",Zz="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER_STATE",I1="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED_STATE",A1="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED_STATE",gx="AFTER_DOCTYPE_SYSTEM_IDENTIFIER_STATE",Hl="BOGUS_DOCTYPE_STATE",T4="CDATA_SECTION_STATE",eU="CDATA_SECTION_BRACKET_STATE",tU="CDATA_SECTION_END_STATE",Af="CHARACTER_REFERENCE_STATE",iU="NAMED_CHARACTER_REFERENCE_STATE",nU="AMBIGUOS_AMPERSAND_STATE",rU="NUMERIC_CHARACTER_REFERENCE_STATE",oU="HEXADEMICAL_CHARACTER_REFERENCE_START_STATE",sU="DECIMAL_CHARACTER_REFERENCE_START_STATE",aU="HEXADEMICAL_CHARACTER_REFERENCE_STATE",lU="DECIMAL_CHARACTER_REFERENCE_STATE",L1="NUMERIC_CHARACTER_REFERENCE_END_STATE";function qi(i){return i===K.SPACE||i===K.LINE_FEED||i===K.TABULATION||i===K.FORM_FEED}function D1(i){return i>=K.DIGIT_0&&i<=K.DIGIT_9}function Hs(i){return i>=K.LATIN_CAPITAL_A&&i<=K.LATIN_CAPITAL_Z}function vu(i){return i>=K.LATIN_SMALL_A&&i<=K.LATIN_SMALL_Z}function od(i){return vu(i)||Hs(i)}function vx(i){return od(i)||D1(i)}function pU(i){return i>=K.LATIN_CAPITAL_A&&i<=K.LATIN_CAPITAL_F}function mU(i){return i>=K.LATIN_SMALL_A&&i<=K.LATIN_SMALL_F}function fce(i){return D1(i)||pU(i)||mU(i)}function k4(i){return i+32}function mn(i){return i<=65535?String.fromCharCode(i):(i-=65536,String.fromCharCode(i>>>10&1023|55296)+String.fromCharCode(56320|i&1023))}function rd(i){return String.fromCharCode(k4(i))}function cU(i,e){let t=_u[++i],n=++i,r=n+t-1;for(;n<=r;){let o=n+r>>>1,s=_u[o];if(se)r=o-1;else return _u[o+t]}return-1}var fo=class i{constructor(){this.preprocessor=new dce,this.tokenQueue=[],this.allowCDATA=!1,this.state=Xt,this.returnState="",this.charRefCode=-1,this.tempBuff=[],this.lastStartTagName="",this.consumedAfterSnapshot=-1,this.active=!1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr=null}_err(){}_errOnNextCodePoint(e){this._consume(),this._err(e),this._unconsume()}getNextToken(){for(;!this.tokenQueue.length&&this.active;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this[this.state](e)}return this.tokenQueue.shift()}write(e,t){this.active=!0,this.preprocessor.write(e,t)}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e)}_ensureHibernation(){if(this.preprocessor.endOfChunkHit){for(;this.consumedAfterSnapshot>0;this.consumedAfterSnapshot--)this.preprocessor.retreat();return this.active=!1,this.tokenQueue.push({type:i.HIBERNATION_TOKEN}),!0}return!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(){this.consumedAfterSnapshot--,this.preprocessor.retreat()}_reconsumeInState(e){this.state=e,this._unconsume()}_consumeSequenceIfMatch(e,t,n){let r=0,o=!0,s=e.length,a=0,l=t,c;for(;a0&&(l=this._consume(),r++),l===K.EOF){o=!1;break}if(c=e[a],l!==c&&(n||l!==k4(c))){o=!1;break}}if(!o)for(;r--;)this._unconsume();return o}_isTempBufferEqualToScriptString(){if(this.tempBuff.length!==gu.SCRIPT_STRING.length)return!1;for(let e=0;e0&&this._err(ve.endTagWithAttributes),e.selfClosing&&this._err(ve.endTagWithTrailingSolidus)),this.tokenQueue.push(e)}_emitCurrentCharacterToken(){this.currentCharacterToken&&(this.tokenQueue.push(this.currentCharacterToken),this.currentCharacterToken=null)}_emitEOFToken(){this._createEOFToken(),this._emitCurrentToken()}_appendCharToCurrentCharacterToken(e,t){this.currentCharacterToken&&this.currentCharacterToken.type!==e&&this._emitCurrentCharacterToken(),this.currentCharacterToken?this.currentCharacterToken.chars+=t:this._createCharacterToken(e,t)}_emitCodePoint(e){let t=i.CHARACTER_TOKEN;qi(e)?t=i.WHITESPACE_CHARACTER_TOKEN:e===K.NULL&&(t=i.NULL_CHARACTER_TOKEN),this._appendCharToCurrentCharacterToken(t,mn(e))}_emitSeveralCodePoints(e){for(let t=0;t-1;){let o=_u[r],s=o")):e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.state=Bs,this._emitChars(ki.REPLACEMENT_CHARACTER)):e===K.EOF?(this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Bs,this._emitCodePoint(e))}[g4](e){e===K.SOLIDUS?(this.tempBuff=[],this.state=Nz):od(e)?(this.tempBuff=[],this._emitChars("<"),this._reconsumeInState(Oz)):(this._emitChars("<"),this._reconsumeInState(Bs))}[Nz](e){od(e)?(this._createEndTagToken(),this._reconsumeInState(Rz)):(this._emitChars("")):e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.state=Bl,this._emitChars(ki.REPLACEMENT_CHARACTER)):e===K.EOF?(this._err(ve.eofInScriptHtmlCommentLikeText),this._emitEOFToken()):(this.state=Bl,this._emitCodePoint(e))}[v4](e){e===K.SOLIDUS?(this.tempBuff=[],this.state=Bz,this._emitChars("/")):this._reconsumeInState(Bl)}[Bz](e){qi(e)||e===K.SOLIDUS||e===K.GREATER_THAN_SIGN?(this.state=this._isTempBufferEqualToScriptString()?Bs:Bl,this._emitCodePoint(e)):Hs(e)?(this.tempBuff.push(k4(e)),this._emitCodePoint(e)):vu(e)?(this.tempBuff.push(e),this._emitCodePoint(e)):this._reconsumeInState(Bl)}[Na](e){qi(e)||(e===K.SOLIDUS||e===K.GREATER_THAN_SIGN||e===K.EOF?this._reconsumeInState(dx):e===K.EQUALS_SIGN?(this._err(ve.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=_4):(this._createAttr(""),this._reconsumeInState(_4)))}[_4](e){qi(e)||e===K.SOLIDUS||e===K.GREATER_THAN_SIGN||e===K.EOF?(this._leaveAttrName(dx),this._unconsume()):e===K.EQUALS_SIGN?this._leaveAttrName(ux):Hs(e)?this.currentAttr.name+=rd(e):e===K.QUOTATION_MARK||e===K.APOSTROPHE||e===K.LESS_THAN_SIGN?(this._err(ve.unexpectedCharacterInAttributeName),this.currentAttr.name+=mn(e)):e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentAttr.name+=ki.REPLACEMENT_CHARACTER):this.currentAttr.name+=mn(e)}[dx](e){qi(e)||(e===K.SOLIDUS?this.state=id:e===K.EQUALS_SIGN?this.state=ux:e===K.GREATER_THAN_SIGN?(this.state=Xt,this._emitCurrentToken()):e===K.EOF?(this._err(ve.eofInTag),this._emitEOFToken()):(this._createAttr(""),this._reconsumeInState(_4)))}[ux](e){qi(e)||(e===K.QUOTATION_MARK?this.state=b4:e===K.APOSTROPHE?this.state=y4:e===K.GREATER_THAN_SIGN?(this._err(ve.missingAttributeValue),this.state=Xt,this._emitCurrentToken()):this._reconsumeInState(C4))}[b4](e){e===K.QUOTATION_MARK?this.state=hx:e===K.AMPERSAND?(this.returnState=b4,this.state=Af):e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=ki.REPLACEMENT_CHARACTER):e===K.EOF?(this._err(ve.eofInTag),this._emitEOFToken()):this.currentAttr.value+=mn(e)}[y4](e){e===K.APOSTROPHE?this.state=hx:e===K.AMPERSAND?(this.returnState=y4,this.state=Af):e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=ki.REPLACEMENT_CHARACTER):e===K.EOF?(this._err(ve.eofInTag),this._emitEOFToken()):this.currentAttr.value+=mn(e)}[C4](e){qi(e)?this._leaveAttrValue(Na):e===K.AMPERSAND?(this.returnState=C4,this.state=Af):e===K.GREATER_THAN_SIGN?(this._leaveAttrValue(Xt),this._emitCurrentToken()):e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentAttr.value+=ki.REPLACEMENT_CHARACTER):e===K.QUOTATION_MARK||e===K.APOSTROPHE||e===K.LESS_THAN_SIGN||e===K.EQUALS_SIGN||e===K.GRAVE_ACCENT?(this._err(ve.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=mn(e)):e===K.EOF?(this._err(ve.eofInTag),this._emitEOFToken()):this.currentAttr.value+=mn(e)}[hx](e){qi(e)?this._leaveAttrValue(Na):e===K.SOLIDUS?this._leaveAttrValue(id):e===K.GREATER_THAN_SIGN?(this._leaveAttrValue(Xt),this._emitCurrentToken()):e===K.EOF?(this._err(ve.eofInTag),this._emitEOFToken()):(this._err(ve.missingWhitespaceBetweenAttributes),this._reconsumeInState(Na))}[id](e){e===K.GREATER_THAN_SIGN?(this.currentToken.selfClosing=!0,this.state=Xt,this._emitCurrentToken()):e===K.EOF?(this._err(ve.eofInTag),this._emitEOFToken()):(this._err(ve.unexpectedSolidusInTag),this._reconsumeInState(Na))}[k1](e){e===K.GREATER_THAN_SIGN?(this.state=Xt,this._emitCurrentToken()):e===K.EOF?(this._emitCurrentToken(),this._emitEOFToken()):e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentToken.data+=ki.REPLACEMENT_CHARACTER):this.currentToken.data+=mn(e)}[Hz](e){this._consumeSequenceIfMatch(gu.DASH_DASH_STRING,e,!0)?(this._createCommentToken(),this.state=zz):this._consumeSequenceIfMatch(gu.DOCTYPE_STRING,e,!1)?this.state=Gz:this._consumeSequenceIfMatch(gu.CDATA_START_STRING,e,!0)?this.allowCDATA?this.state=T4:(this._err(ve.cdataInHtmlContent),this._createCommentToken(),this.currentToken.data="[CDATA[",this.state=k1):this._ensureHibernation()||(this._err(ve.incorrectlyOpenedComment),this._createCommentToken(),this._reconsumeInState(k1))}[zz](e){e===K.HYPHEN_MINUS?this.state=Uz:e===K.GREATER_THAN_SIGN?(this._err(ve.abruptClosingOfEmptyComment),this.state=Xt,this._emitCurrentToken()):this._reconsumeInState(nd)}[Uz](e){e===K.HYPHEN_MINUS?this.state=w4:e===K.GREATER_THAN_SIGN?(this._err(ve.abruptClosingOfEmptyComment),this.state=Xt,this._emitCurrentToken()):e===K.EOF?(this._err(ve.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(nd))}[nd](e){e===K.HYPHEN_MINUS?this.state=S4:e===K.LESS_THAN_SIGN?(this.currentToken.data+="<",this.state=jz):e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentToken.data+=ki.REPLACEMENT_CHARACTER):e===K.EOF?(this._err(ve.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.data+=mn(e)}[jz](e){e===K.EXCLAMATION_MARK?(this.currentToken.data+="!",this.state=Wz):e===K.LESS_THAN_SIGN?this.currentToken.data+="!":this._reconsumeInState(nd)}[Wz](e){e===K.HYPHEN_MINUS?this.state=Vz:this._reconsumeInState(nd)}[Vz](e){e===K.HYPHEN_MINUS?this.state=Kz:this._reconsumeInState(S4)}[Kz](e){e!==K.GREATER_THAN_SIGN&&e!==K.EOF&&this._err(ve.nestedComment),this._reconsumeInState(w4)}[S4](e){e===K.HYPHEN_MINUS?this.state=w4:e===K.EOF?(this._err(ve.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="-",this._reconsumeInState(nd))}[w4](e){e===K.GREATER_THAN_SIGN?(this.state=Xt,this._emitCurrentToken()):e===K.EXCLAMATION_MARK?this.state=qz:e===K.HYPHEN_MINUS?this.currentToken.data+="-":e===K.EOF?(this._err(ve.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--",this._reconsumeInState(nd))}[qz](e){e===K.HYPHEN_MINUS?(this.currentToken.data+="--!",this.state=S4):e===K.GREATER_THAN_SIGN?(this._err(ve.incorrectlyClosedComment),this.state=Xt,this._emitCurrentToken()):e===K.EOF?(this._err(ve.eofInComment),this._emitCurrentToken(),this._emitEOFToken()):(this.currentToken.data+="--!",this._reconsumeInState(nd))}[Gz](e){qi(e)?this.state=x4:e===K.GREATER_THAN_SIGN?this._reconsumeInState(x4):e===K.EOF?(this._err(ve.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ve.missingWhitespaceBeforeDoctypeName),this._reconsumeInState(x4))}[x4](e){qi(e)||(Hs(e)?(this._createDoctypeToken(rd(e)),this.state=E4):e===K.NULL?(this._err(ve.unexpectedNullCharacter),this._createDoctypeToken(ki.REPLACEMENT_CHARACTER),this.state=E4):e===K.GREATER_THAN_SIGN?(this._err(ve.missingDoctypeName),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Xt):e===K.EOF?(this._err(ve.eofInDoctype),this._createDoctypeToken(null),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._createDoctypeToken(mn(e)),this.state=E4))}[E4](e){qi(e)?this.state=$z:e===K.GREATER_THAN_SIGN?(this.state=Xt,this._emitCurrentToken()):Hs(e)?this.currentToken.name+=rd(e):e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentToken.name+=ki.REPLACEMENT_CHARACTER):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.name+=mn(e)}[$z](e){qi(e)||(e===K.GREATER_THAN_SIGN?(this.state=Xt,this._emitCurrentToken()):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this._consumeSequenceIfMatch(gu.PUBLIC_STRING,e,!1)?this.state=Yz:this._consumeSequenceIfMatch(gu.SYSTEM_STRING,e,!1)?this.state=Jz:this._ensureHibernation()||(this._err(ve.invalidCharacterSequenceAfterDoctypeName),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hl)))}[Yz](e){qi(e)?this.state=Xz:e===K.QUOTATION_MARK?(this._err(ve.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=fx):e===K.APOSTROPHE?(this._err(ve.missingWhitespaceAfterDoctypePublicKeyword),this.currentToken.publicId="",this.state=px):e===K.GREATER_THAN_SIGN?(this._err(ve.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Xt,this._emitCurrentToken()):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ve.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hl))}[Xz](e){qi(e)||(e===K.QUOTATION_MARK?(this.currentToken.publicId="",this.state=fx):e===K.APOSTROPHE?(this.currentToken.publicId="",this.state=px):e===K.GREATER_THAN_SIGN?(this._err(ve.missingDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this.state=Xt,this._emitCurrentToken()):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ve.missingQuoteBeforeDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hl)))}[fx](e){e===K.QUOTATION_MARK?this.state=mx:e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentToken.publicId+=ki.REPLACEMENT_CHARACTER):e===K.GREATER_THAN_SIGN?(this._err(ve.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Xt):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=mn(e)}[px](e){e===K.APOSTROPHE?this.state=mx:e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentToken.publicId+=ki.REPLACEMENT_CHARACTER):e===K.GREATER_THAN_SIGN?(this._err(ve.abruptDoctypePublicIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Xt):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.publicId+=mn(e)}[mx](e){qi(e)?this.state=Qz:e===K.GREATER_THAN_SIGN?(this.state=Xt,this._emitCurrentToken()):e===K.QUOTATION_MARK?(this._err(ve.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=I1):e===K.APOSTROPHE?(this._err(ve.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),this.currentToken.systemId="",this.state=A1):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hl))}[Qz](e){qi(e)||(e===K.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Xt):e===K.QUOTATION_MARK?(this.currentToken.systemId="",this.state=I1):e===K.APOSTROPHE?(this.currentToken.systemId="",this.state=A1):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hl)))}[Jz](e){qi(e)?this.state=Zz:e===K.QUOTATION_MARK?(this._err(ve.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=I1):e===K.APOSTROPHE?(this._err(ve.missingWhitespaceAfterDoctypeSystemKeyword),this.currentToken.systemId="",this.state=A1):e===K.GREATER_THAN_SIGN?(this._err(ve.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Xt,this._emitCurrentToken()):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hl))}[Zz](e){qi(e)||(e===K.QUOTATION_MARK?(this.currentToken.systemId="",this.state=I1):e===K.APOSTROPHE?(this.currentToken.systemId="",this.state=A1):e===K.GREATER_THAN_SIGN?(this._err(ve.missingDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this.state=Xt,this._emitCurrentToken()):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ve.missingQuoteBeforeDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._reconsumeInState(Hl)))}[I1](e){e===K.QUOTATION_MARK?this.state=gx:e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentToken.systemId+=ki.REPLACEMENT_CHARACTER):e===K.GREATER_THAN_SIGN?(this._err(ve.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Xt):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=mn(e)}[A1](e){e===K.APOSTROPHE?this.state=gx:e===K.NULL?(this._err(ve.unexpectedNullCharacter),this.currentToken.systemId+=ki.REPLACEMENT_CHARACTER):e===K.GREATER_THAN_SIGN?(this._err(ve.abruptDoctypeSystemIdentifier),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this.state=Xt):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):this.currentToken.systemId+=mn(e)}[gx](e){qi(e)||(e===K.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Xt):e===K.EOF?(this._err(ve.eofInDoctype),this.currentToken.forceQuirks=!0,this._emitCurrentToken(),this._emitEOFToken()):(this._err(ve.unexpectedCharacterAfterDoctypeSystemIdentifier),this._reconsumeInState(Hl)))}[Hl](e){e===K.GREATER_THAN_SIGN?(this._emitCurrentToken(),this.state=Xt):e===K.NULL?this._err(ve.unexpectedNullCharacter):e===K.EOF&&(this._emitCurrentToken(),this._emitEOFToken())}[T4](e){e===K.RIGHT_SQUARE_BRACKET?this.state=eU:e===K.EOF?(this._err(ve.eofInCdata),this._emitEOFToken()):this._emitCodePoint(e)}[eU](e){e===K.RIGHT_SQUARE_BRACKET?this.state=tU:(this._emitChars("]"),this._reconsumeInState(T4))}[tU](e){e===K.GREATER_THAN_SIGN?this.state=Xt:e===K.RIGHT_SQUARE_BRACKET?this._emitChars("]"):(this._emitChars("]]"),this._reconsumeInState(T4))}[Af](e){this.tempBuff=[K.AMPERSAND],e===K.NUMBER_SIGN?(this.tempBuff.push(e),this.state=rU):vx(e)?this._reconsumeInState(iU):(this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[iU](e){let t=this._matchNamedCharacterReference(e);if(this._ensureHibernation())this.tempBuff=[K.AMPERSAND];else if(t){let n=this.tempBuff[this.tempBuff.length-1]===K.SEMICOLON;this._isCharacterReferenceAttributeQuirk(n)||(n||this._errOnNextCodePoint(ve.missingSemicolonAfterCharacterReference),this.tempBuff=t),this._flushCodePointsConsumedAsCharacterReference(),this.state=this.returnState}else this._flushCodePointsConsumedAsCharacterReference(),this.state=nU}[nU](e){vx(e)?this._isCharacterReferenceInAttribute()?this.currentAttr.value+=mn(e):this._emitCodePoint(e):(e===K.SEMICOLON&&this._err(ve.unknownNamedCharacterReference),this._reconsumeInState(this.returnState))}[rU](e){this.charRefCode=0,e===K.LATIN_SMALL_X||e===K.LATIN_CAPITAL_X?(this.tempBuff.push(e),this.state=oU):this._reconsumeInState(sU)}[oU](e){fce(e)?this._reconsumeInState(aU):(this._err(ve.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[sU](e){D1(e)?this._reconsumeInState(lU):(this._err(ve.absenceOfDigitsInNumericCharacterReference),this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState))}[aU](e){pU(e)?this.charRefCode=this.charRefCode*16+e-55:mU(e)?this.charRefCode=this.charRefCode*16+e-87:D1(e)?this.charRefCode=this.charRefCode*16+e-48:e===K.SEMICOLON?this.state=L1:(this._err(ve.missingSemicolonAfterCharacterReference),this._reconsumeInState(L1))}[lU](e){D1(e)?this.charRefCode=this.charRefCode*10+e-48:e===K.SEMICOLON?this.state=L1:(this._err(ve.missingSemicolonAfterCharacterReference),this._reconsumeInState(L1))}[L1](){if(this.charRefCode===K.NULL)this._err(ve.nullCharacterReference),this.charRefCode=K.REPLACEMENT_CHARACTER;else if(this.charRefCode>1114111)this._err(ve.characterReferenceOutsideUnicodeRange),this.charRefCode=K.REPLACEMENT_CHARACTER;else if(ki.isSurrogate(this.charRefCode))this._err(ve.surrogateCharacterReference),this.charRefCode=K.REPLACEMENT_CHARACTER;else if(ki.isUndefinedCodePoint(this.charRefCode))this._err(ve.noncharacterCharacterReference);else if(ki.isControlCodePoint(this.charRefCode)||this.charRefCode===K.CARRIAGE_RETURN){this._err(ve.controlCharacterReference);let e=uce[this.charRefCode];e&&(this.charRefCode=e)}this.tempBuff=[this.charRefCode],this._flushCodePointsConsumedAsCharacterReference(),this._reconsumeInState(this.returnState)}};fo.CHARACTER_TOKEN="CHARACTER_TOKEN";fo.NULL_CHARACTER_TOKEN="NULL_CHARACTER_TOKEN";fo.WHITESPACE_CHARACTER_TOKEN="WHITESPACE_CHARACTER_TOKEN";fo.START_TAG_TOKEN="START_TAG_TOKEN";fo.END_TAG_TOKEN="END_TAG_TOKEN";fo.COMMENT_TOKEN="COMMENT_TOKEN";fo.DOCTYPE_TOKEN="DOCTYPE_TOKEN";fo.EOF_TOKEN="EOF_TOKEN";fo.HIBERNATION_TOKEN="HIBERNATION_TOKEN";fo.MODE={DATA:Xt,RCDATA:Lf,RAWTEXT:M1,SCRIPT_DATA:zl,PLAINTEXT:fU};fo.getTokenAttr=function(i,e){for(let t=i.attrs.length-1;t>=0;t--)if(i.attrs[t].name===e)return i.attrs[t].value;return null};gU.exports=fo});var bu=Ze(Mf=>{"use strict";var _x=Mf.NAMESPACES={HTML:"http://www.w3.org/1999/xhtml",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"};Mf.ATTRS={TYPE:"type",ACTION:"action",ENCODING:"encoding",PROMPT:"prompt",NAME:"name",COLOR:"color",FACE:"face",SIZE:"size"};Mf.DOCUMENT_MODE={NO_QUIRKS:"no-quirks",QUIRKS:"quirks",LIMITED_QUIRKS:"limited-quirks"};var Me=Mf.TAG_NAMES={A:"a",ADDRESS:"address",ANNOTATION_XML:"annotation-xml",APPLET:"applet",AREA:"area",ARTICLE:"article",ASIDE:"aside",B:"b",BASE:"base",BASEFONT:"basefont",BGSOUND:"bgsound",BIG:"big",BLOCKQUOTE:"blockquote",BODY:"body",BR:"br",BUTTON:"button",CAPTION:"caption",CENTER:"center",CODE:"code",COL:"col",COLGROUP:"colgroup",DD:"dd",DESC:"desc",DETAILS:"details",DIALOG:"dialog",DIR:"dir",DIV:"div",DL:"dl",DT:"dt",EM:"em",EMBED:"embed",FIELDSET:"fieldset",FIGCAPTION:"figcaption",FIGURE:"figure",FONT:"font",FOOTER:"footer",FOREIGN_OBJECT:"foreignObject",FORM:"form",FRAME:"frame",FRAMESET:"frameset",H1:"h1",H2:"h2",H3:"h3",H4:"h4",H5:"h5",H6:"h6",HEAD:"head",HEADER:"header",HGROUP:"hgroup",HR:"hr",HTML:"html",I:"i",IMG:"img",IMAGE:"image",INPUT:"input",IFRAME:"iframe",KEYGEN:"keygen",LABEL:"label",LI:"li",LINK:"link",LISTING:"listing",MAIN:"main",MALIGNMARK:"malignmark",MARQUEE:"marquee",MATH:"math",MENU:"menu",META:"meta",MGLYPH:"mglyph",MI:"mi",MO:"mo",MN:"mn",MS:"ms",MTEXT:"mtext",NAV:"nav",NOBR:"nobr",NOFRAMES:"noframes",NOEMBED:"noembed",NOSCRIPT:"noscript",OBJECT:"object",OL:"ol",OPTGROUP:"optgroup",OPTION:"option",P:"p",PARAM:"param",PLAINTEXT:"plaintext",PRE:"pre",RB:"rb",RP:"rp",RT:"rt",RTC:"rtc",RUBY:"ruby",S:"s",SCRIPT:"script",SECTION:"section",SELECT:"select",SOURCE:"source",SMALL:"small",SPAN:"span",STRIKE:"strike",STRONG:"strong",STYLE:"style",SUB:"sub",SUMMARY:"summary",SUP:"sup",TABLE:"table",TBODY:"tbody",TEMPLATE:"template",TEXTAREA:"textarea",TFOOT:"tfoot",TD:"td",TH:"th",THEAD:"thead",TITLE:"title",TR:"tr",TRACK:"track",TT:"tt",U:"u",UL:"ul",SVG:"svg",VAR:"var",WBR:"wbr",XMP:"xmp"};Mf.SPECIAL_ELEMENTS={[_x.HTML]:{[Me.ADDRESS]:!0,[Me.APPLET]:!0,[Me.AREA]:!0,[Me.ARTICLE]:!0,[Me.ASIDE]:!0,[Me.BASE]:!0,[Me.BASEFONT]:!0,[Me.BGSOUND]:!0,[Me.BLOCKQUOTE]:!0,[Me.BODY]:!0,[Me.BR]:!0,[Me.BUTTON]:!0,[Me.CAPTION]:!0,[Me.CENTER]:!0,[Me.COL]:!0,[Me.COLGROUP]:!0,[Me.DD]:!0,[Me.DETAILS]:!0,[Me.DIR]:!0,[Me.DIV]:!0,[Me.DL]:!0,[Me.DT]:!0,[Me.EMBED]:!0,[Me.FIELDSET]:!0,[Me.FIGCAPTION]:!0,[Me.FIGURE]:!0,[Me.FOOTER]:!0,[Me.FORM]:!0,[Me.FRAME]:!0,[Me.FRAMESET]:!0,[Me.H1]:!0,[Me.H2]:!0,[Me.H3]:!0,[Me.H4]:!0,[Me.H5]:!0,[Me.H6]:!0,[Me.HEAD]:!0,[Me.HEADER]:!0,[Me.HGROUP]:!0,[Me.HR]:!0,[Me.HTML]:!0,[Me.IFRAME]:!0,[Me.IMG]:!0,[Me.INPUT]:!0,[Me.LI]:!0,[Me.LINK]:!0,[Me.LISTING]:!0,[Me.MAIN]:!0,[Me.MARQUEE]:!0,[Me.MENU]:!0,[Me.META]:!0,[Me.NAV]:!0,[Me.NOEMBED]:!0,[Me.NOFRAMES]:!0,[Me.NOSCRIPT]:!0,[Me.OBJECT]:!0,[Me.OL]:!0,[Me.P]:!0,[Me.PARAM]:!0,[Me.PLAINTEXT]:!0,[Me.PRE]:!0,[Me.SCRIPT]:!0,[Me.SECTION]:!0,[Me.SELECT]:!0,[Me.SOURCE]:!0,[Me.STYLE]:!0,[Me.SUMMARY]:!0,[Me.TABLE]:!0,[Me.TBODY]:!0,[Me.TD]:!0,[Me.TEMPLATE]:!0,[Me.TEXTAREA]:!0,[Me.TFOOT]:!0,[Me.TH]:!0,[Me.THEAD]:!0,[Me.TITLE]:!0,[Me.TR]:!0,[Me.TRACK]:!0,[Me.UL]:!0,[Me.WBR]:!0,[Me.XMP]:!0},[_x.MATHML]:{[Me.MI]:!0,[Me.MO]:!0,[Me.MN]:!0,[Me.MS]:!0,[Me.MTEXT]:!0,[Me.ANNOTATION_XML]:!0},[_x.SVG]:{[Me.TITLE]:!0,[Me.FOREIGN_OBJECT]:!0,[Me.DESC]:!0}}});var yU=Ze((tEe,bU)=>{"use strict";var _U=bu(),Pe=_U.TAG_NAMES,Ii=_U.NAMESPACES;function vU(i){switch(i.length){case 1:return i===Pe.P;case 2:return i===Pe.RB||i===Pe.RP||i===Pe.RT||i===Pe.DD||i===Pe.DT||i===Pe.LI;case 3:return i===Pe.RTC;case 6:return i===Pe.OPTION;case 8:return i===Pe.OPTGROUP}return!1}function pce(i){switch(i.length){case 1:return i===Pe.P;case 2:return i===Pe.RB||i===Pe.RP||i===Pe.RT||i===Pe.DD||i===Pe.DT||i===Pe.LI||i===Pe.TD||i===Pe.TH||i===Pe.TR;case 3:return i===Pe.RTC;case 5:return i===Pe.TBODY||i===Pe.TFOOT||i===Pe.THEAD;case 6:return i===Pe.OPTION;case 7:return i===Pe.CAPTION;case 8:return i===Pe.OPTGROUP||i===Pe.COLGROUP}return!1}function I4(i,e){switch(i.length){case 2:if(i===Pe.TD||i===Pe.TH)return e===Ii.HTML;if(i===Pe.MI||i===Pe.MO||i===Pe.MN||i===Pe.MS)return e===Ii.MATHML;break;case 4:if(i===Pe.HTML)return e===Ii.HTML;if(i===Pe.DESC)return e===Ii.SVG;break;case 5:if(i===Pe.TABLE)return e===Ii.HTML;if(i===Pe.MTEXT)return e===Ii.MATHML;if(i===Pe.TITLE)return e===Ii.SVG;break;case 6:return(i===Pe.APPLET||i===Pe.OBJECT)&&e===Ii.HTML;case 7:return(i===Pe.CAPTION||i===Pe.MARQUEE)&&e===Ii.HTML;case 8:return i===Pe.TEMPLATE&&e===Ii.HTML;case 13:return i===Pe.FOREIGN_OBJECT&&e===Ii.SVG;case 14:return i===Pe.ANNOTATION_XML&&e===Ii.MATHML}return!1}var bx=class{constructor(e,t){this.stackTop=-1,this.items=[],this.current=e,this.currentTagName=null,this.currentTmplContent=null,this.tmplCount=0,this.treeAdapter=t}_indexOf(e){let t=-1;for(let n=this.stackTop;n>=0;n--)if(this.items[n]===e){t=n;break}return t}_isInTemplate(){return this.currentTagName===Pe.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ii.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagName=this.current&&this.treeAdapter.getTagName(this.current),this.currentTmplContent=this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):null}push(e){this.items[++this.stackTop]=e,this._updateCurrentElement(),this._isInTemplate()&&this.tmplCount++}pop(){this.stackTop--,this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this._updateCurrentElement()}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&this._updateCurrentElement()}insertAfter(e,t){let n=this._indexOf(e)+1;this.items.splice(n,0,t),n===++this.stackTop&&this._updateCurrentElement()}popUntilTagNamePopped(e){for(;this.stackTop>-1;){let t=this.currentTagName,n=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),t===e&&n===Ii.HTML)break}}popUntilElementPopped(e){for(;this.stackTop>-1;){let t=this.current;if(this.pop(),t===e)break}}popUntilNumberedHeaderPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===Pe.H1||e===Pe.H2||e===Pe.H3||e===Pe.H4||e===Pe.H5||e===Pe.H6&&t===Ii.HTML)break}}popUntilTableCellPopped(){for(;this.stackTop>-1;){let e=this.currentTagName,t=this.treeAdapter.getNamespaceURI(this.current);if(this.pop(),e===Pe.TD||e===Pe.TH&&t===Ii.HTML)break}}popAllUpToHtmlElement(){this.stackTop=0,this._updateCurrentElement()}clearBackToTableContext(){for(;this.currentTagName!==Pe.TABLE&&this.currentTagName!==Pe.TEMPLATE&&this.currentTagName!==Pe.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Ii.HTML;)this.pop()}clearBackToTableBodyContext(){for(;this.currentTagName!==Pe.TBODY&&this.currentTagName!==Pe.TFOOT&&this.currentTagName!==Pe.THEAD&&this.currentTagName!==Pe.TEMPLATE&&this.currentTagName!==Pe.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Ii.HTML;)this.pop()}clearBackToTableRowContext(){for(;this.currentTagName!==Pe.TR&&this.currentTagName!==Pe.TEMPLATE&&this.currentTagName!==Pe.HTML||this.treeAdapter.getNamespaceURI(this.current)!==Ii.HTML;)this.pop()}remove(e){for(let t=this.stackTop;t>=0;t--)if(this.items[t]===e){this.items.splice(t,1),this.stackTop--,this._updateCurrentElement();break}}tryPeekProperlyNestedBodyElement(){let e=this.items[1];return e&&this.treeAdapter.getTagName(e)===Pe.BODY?e:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e);return--t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.currentTagName===Pe.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===Ii.HTML)return!0;if(I4(n,r))return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]),n=this.treeAdapter.getNamespaceURI(this.items[e]);if((t===Pe.H1||t===Pe.H2||t===Pe.H3||t===Pe.H4||t===Pe.H5||t===Pe.H6)&&n===Ii.HTML)return!0;if(I4(t,n))return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===Ii.HTML)return!0;if((n===Pe.UL||n===Pe.OL)&&r===Ii.HTML||I4(n,r))return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]),r=this.treeAdapter.getNamespaceURI(this.items[t]);if(n===e&&r===Ii.HTML)return!0;if(n===Pe.BUTTON&&r===Ii.HTML||I4(n,r))return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Ii.HTML){if(n===e)return!0;if(n===Pe.TABLE||n===Pe.TEMPLATE||n===Pe.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.treeAdapter.getTagName(this.items[e]);if(this.treeAdapter.getNamespaceURI(this.items[e])===Ii.HTML){if(t===Pe.TBODY||t===Pe.THEAD||t===Pe.TFOOT)return!0;if(t===Pe.TABLE||t===Pe.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let n=this.treeAdapter.getTagName(this.items[t]);if(this.treeAdapter.getNamespaceURI(this.items[t])===Ii.HTML){if(n===e)return!0;if(n!==Pe.OPTION&&n!==Pe.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;vU(this.currentTagName);)this.pop()}generateImpliedEndTagsThoroughly(){for(;pce(this.currentTagName);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;vU(this.currentTagName)&&this.currentTagName!==e;)this.pop()}};bU.exports=bx});var SU=Ze((iEe,CU)=>{"use strict";var R1=class i{constructor(e){this.length=0,this.entries=[],this.treeAdapter=e,this.bookmark=null}_getNoahArkConditionCandidates(e){let t=[];if(this.length>=3){let n=this.treeAdapter.getAttrList(e).length,r=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let s=this.length-1;s>=0;s--){let a=this.entries[s];if(a.type===i.MARKER_ENTRY)break;let l=a.element,c=this.treeAdapter.getAttrList(l);this.treeAdapter.getTagName(l)===r&&this.treeAdapter.getNamespaceURI(l)===o&&c.length===n&&t.push({idx:s,attrs:c})}}return t.length<3?[]:t}_ensureNoahArkCondition(e){let t=this._getNoahArkConditionCandidates(e),n=t.length;if(n){let r=this.treeAdapter.getAttrList(e),o=r.length,s=Object.create(null);for(let a=0;a=3-1;a--)this.entries.splice(t[a].idx,1),this.length--}}insertMarker(){this.entries.push({type:i.MARKER_ENTRY}),this.length++}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.push({type:i.ELEMENT_ENTRY,element:e,token:t}),this.length++}insertElementAfterBookmark(e,t){let n=this.length-1;for(;n>=0&&this.entries[n]!==this.bookmark;n--);this.entries.splice(n+1,0,{type:i.ELEMENT_ENTRY,element:e,token:t}),this.length++}removeEntry(e){for(let t=this.length-1;t>=0;t--)if(this.entries[t]===e){this.entries.splice(t,1),this.length--;break}}clearToLastMarker(){for(;this.length;){let e=this.entries.pop();if(this.length--,e.type===i.MARKER_ENTRY)break}}getElementEntryInScopeWithTagName(e){for(let t=this.length-1;t>=0;t--){let n=this.entries[t];if(n.type===i.MARKER_ENTRY)return null;if(this.treeAdapter.getTagName(n.element)===e)return n}return null}getElementEntry(e){for(let t=this.length-1;t>=0;t--){let n=this.entries[t];if(n.type===i.ELEMENT_ENTRY&&n.element===e)return n}return null}};R1.MARKER_ENTRY="MARKER_ENTRY";R1.ELEMENT_ENTRY="ELEMENT_ENTRY";CU.exports=R1});var Ra=Ze((nEe,wU)=>{"use strict";var A4=class{constructor(e){let t={},n=this._getOverriddenMethods(this,t);for(let r of Object.keys(n))typeof n[r]=="function"&&(t[r]=e[r],e[r]=n[r])}_getOverriddenMethods(){throw new Error("Not implemented")}};A4.install=function(i,e,t){i.__mixins||(i.__mixins=[]);for(let r=0;r{"use strict";var mce=Ra(),yx=class extends mce{constructor(e){super(e),this.preprocessor=e,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.offset=0,this.col=0,this.line=1}_getOverriddenMethods(e,t){return{advance(){let n=this.pos+1,r=this.html[n];return e.isEol&&(e.isEol=!1,e.line++,e.lineStartPos=n),(r===` +`||r==="\r"&&this.html[n+1]!==` +`)&&(e.isEol=!0),e.col=n-e.lineStartPos+1,e.offset=e.droppedBufferSize+n,t.advance.call(this)},retreat(){t.retreat.call(this),e.isEol=!1,e.col=this.pos-e.lineStartPos+1},dropParsedChunk(){let n=this.pos;t.dropParsedChunk.call(this);let r=n-this.pos;e.lineStartPos-=r,e.droppedBufferSize+=r,e.offset=e.droppedBufferSize+this.pos}}}};xU.exports=yx});var xx=Ze((oEe,TU)=>{"use strict";var EU=Ra(),Sx=N1(),gce=Cx(),wx=class extends EU{constructor(e){super(e),this.tokenizer=e,this.posTracker=EU.install(e.preprocessor,gce),this.currentAttrLocation=null,this.ctLoc=null}_getCurrentLocation(){return{startLine:this.posTracker.line,startCol:this.posTracker.col,startOffset:this.posTracker.offset,endLine:-1,endCol:-1,endOffset:-1}}_attachCurrentAttrLocationInfo(){this.currentAttrLocation.endLine=this.posTracker.line,this.currentAttrLocation.endCol=this.posTracker.col,this.currentAttrLocation.endOffset=this.posTracker.offset;let e=this.tokenizer.currentToken,t=this.tokenizer.currentAttr;e.location.attrs||(e.location.attrs=Object.create(null)),e.location.attrs[t.name]=this.currentAttrLocation}_getOverriddenMethods(e,t){let n={_createStartTagToken(){t._createStartTagToken.call(this),this.currentToken.location=e.ctLoc},_createEndTagToken(){t._createEndTagToken.call(this),this.currentToken.location=e.ctLoc},_createCommentToken(){t._createCommentToken.call(this),this.currentToken.location=e.ctLoc},_createDoctypeToken(r){t._createDoctypeToken.call(this,r),this.currentToken.location=e.ctLoc},_createCharacterToken(r,o){t._createCharacterToken.call(this,r,o),this.currentCharacterToken.location=e.ctLoc},_createEOFToken(){t._createEOFToken.call(this),this.currentToken.location=e._getCurrentLocation()},_createAttr(r){t._createAttr.call(this,r),e.currentAttrLocation=e._getCurrentLocation()},_leaveAttrName(r){t._leaveAttrName.call(this,r),e._attachCurrentAttrLocationInfo()},_leaveAttrValue(r){t._leaveAttrValue.call(this,r),e._attachCurrentAttrLocationInfo()},_emitCurrentToken(){let r=this.currentToken.location;this.currentCharacterToken&&(this.currentCharacterToken.location.endLine=r.startLine,this.currentCharacterToken.location.endCol=r.startCol,this.currentCharacterToken.location.endOffset=r.startOffset),this.currentToken.type===Sx.EOF_TOKEN?(r.endLine=r.startLine,r.endCol=r.startCol,r.endOffset=r.startOffset):(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col+1,r.endOffset=e.posTracker.offset+1),t._emitCurrentToken.call(this)},_emitCurrentCharacterToken(){let r=this.currentCharacterToken&&this.currentCharacterToken.location;r&&r.endOffset===-1&&(r.endLine=e.posTracker.line,r.endCol=e.posTracker.col,r.endOffset=e.posTracker.offset),t._emitCurrentCharacterToken.call(this)}};return Object.keys(Sx.MODE).forEach(r=>{let o=Sx.MODE[r];n[o]=function(s){e.ctLoc=e._getCurrentLocation(),t[o].call(this,s)}}),n}};TU.exports=wx});var IU=Ze((sEe,kU)=>{"use strict";var vce=Ra(),Ex=class extends vce{constructor(e,t){super(e),this.onItemPop=t.onItemPop}_getOverriddenMethods(e,t){return{pop(){e.onItemPop(this.current),t.pop.call(this)},popAllUpToHtmlElement(){for(let n=this.stackTop;n>0;n--)e.onItemPop(this.items[n]);t.popAllUpToHtmlElement.call(this)},remove(n){e.onItemPop(this.current),t.remove.call(this,n)}}}};kU.exports=Ex});var MU=Ze((aEe,LU)=>{"use strict";var Tx=Ra(),AU=N1(),_ce=xx(),bce=IU(),yce=bu(),kx=yce.TAG_NAMES,Ix=class extends Tx{constructor(e){super(e),this.parser=e,this.treeAdapter=this.parser.treeAdapter,this.posTracker=null,this.lastStartTagToken=null,this.lastFosterParentingLocation=null,this.currentToken=null}_setStartLocation(e){let t=null;this.lastStartTagToken&&(t=Object.assign({},this.lastStartTagToken.location),t.startTag=this.lastStartTagToken.location),this.treeAdapter.setNodeSourceCodeLocation(e,t)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let r=t.location,o=this.treeAdapter.getTagName(e),s=t.type===AU.END_TAG_TOKEN&&o===t.tagName,a={};s?(a.endTag=Object.assign({},r),a.endLine=r.endLine,a.endCol=r.endCol,a.endOffset=r.endOffset):(a.endLine=r.startLine,a.endCol=r.startCol,a.endOffset=r.startOffset),this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),e.lastStartTagToken=null,e.lastFosterParentingLocation=null,e.currentToken=null;let o=Tx.install(this.tokenizer,_ce);e.posTracker=o.posTracker,Tx.install(this.openElements,bce,{onItemPop:function(s){e._setEndLocation(s,e.currentToken)}})},_runParsingLoop(n){t._runParsingLoop.call(this,n);for(let r=this.openElements.stackTop;r>=0;r--)e._setEndLocation(this.openElements.items[r],e.currentToken)},_processTokenInForeignContent(n){e.currentToken=n,t._processTokenInForeignContent.call(this,n)},_processToken(n){if(e.currentToken=n,t._processToken.call(this,n),n.type===AU.END_TAG_TOKEN&&(n.tagName===kx.HTML||n.tagName===kx.BODY&&this.openElements.hasInScope(kx.BODY)))for(let o=this.openElements.stackTop;o>=0;o--){let s=this.openElements.items[o];if(this.treeAdapter.getTagName(s)===n.tagName){e._setEndLocation(s,n);break}}},_setDocumentType(n){t._setDocumentType.call(this,n);let r=this.treeAdapter.getChildNodes(this.document),o=r.length;for(let s=0;s{"use strict";var Cce=Ra(),Ax=class extends Cce{constructor(e,t){super(e),this.posTracker=null,this.onParseError=t.onParseError}_setErrorLocation(e){e.startLine=e.endLine=this.posTracker.line,e.startCol=e.endCol=this.posTracker.col,e.startOffset=e.endOffset=this.posTracker.offset}_reportError(e){let t={code:e,startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1};this._setErrorLocation(t),this.onParseError(t)}_getOverriddenMethods(e){return{_err(t){e._reportError(t)}}}};DU.exports=Ax});var RU=Ze((cEe,NU)=>{"use strict";var Sce=L4(),wce=Cx(),xce=Ra(),Lx=class extends Sce{constructor(e,t){super(e,t),this.posTracker=xce.install(e,wce),this.lastErrOffset=-1}_reportError(e){this.lastErrOffset!==this.posTracker.offset&&(this.lastErrOffset=this.posTracker.offset,super._reportError(e))}};NU.exports=Lx});var PU=Ze((dEe,OU)=>{"use strict";var Ece=L4(),Tce=RU(),kce=Ra(),Mx=class extends Ece{constructor(e,t){super(e,t);let n=kce.install(e.preprocessor,Tce,t);this.posTracker=n.posTracker}};OU.exports=Mx});var HU=Ze((uEe,BU)=>{"use strict";var Ice=L4(),Ace=PU(),Lce=xx(),FU=Ra(),Dx=class extends Ice{constructor(e,t){super(e,t),this.opts=t,this.ctLoc=null,this.locBeforeToken=!1}_setErrorLocation(e){this.ctLoc&&(e.startLine=this.ctLoc.startLine,e.startCol=this.ctLoc.startCol,e.startOffset=this.ctLoc.startOffset,e.endLine=this.locBeforeToken?this.ctLoc.startLine:this.ctLoc.endLine,e.endCol=this.locBeforeToken?this.ctLoc.startCol:this.ctLoc.endCol,e.endOffset=this.locBeforeToken?this.ctLoc.startOffset:this.ctLoc.endOffset)}_getOverriddenMethods(e,t){return{_bootstrap(n,r){t._bootstrap.call(this,n,r),FU.install(this.tokenizer,Ace,e.opts),FU.install(this.tokenizer,Lce)},_processInputToken(n){e.ctLoc=n.location,t._processInputToken.call(this,n)},_err(n,r){e.locBeforeToken=r&&r.beforeToken,e._reportError(n)}}}};BU.exports=Dx});var jU=Ze(si=>{"use strict";var{DOCUMENT_MODE:Mce}=bu();si.createDocument=function(){return{nodeName:"#document",mode:Mce.NO_QUIRKS,childNodes:[]}};si.createDocumentFragment=function(){return{nodeName:"#document-fragment",childNodes:[]}};si.createElement=function(i,e,t){return{nodeName:i,tagName:i,attrs:t,namespaceURI:e,childNodes:[],parentNode:null}};si.createCommentNode=function(i){return{nodeName:"#comment",data:i,parentNode:null}};var zU=function(i){return{nodeName:"#text",value:i,parentNode:null}},UU=si.appendChild=function(i,e){i.childNodes.push(e),e.parentNode=i},Dce=si.insertBefore=function(i,e,t){let n=i.childNodes.indexOf(t);i.childNodes.splice(n,0,e),e.parentNode=i};si.setTemplateContent=function(i,e){i.content=e};si.getTemplateContent=function(i){return i.content};si.setDocumentType=function(i,e,t,n){let r=null;for(let o=0;o{"use strict";WU.exports=function(e,t){return t=t||Object.create(null),[e,t].reduce((n,r)=>(Object.keys(r).forEach(o=>{n[o]=r[o]}),n),Object.create(null))}});var XU=Ze(M4=>{"use strict";var{DOCUMENT_MODE:Df}=bu(),GU="html",Nce="about:legacy-compat",Rce="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",$U=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Oce=$U.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]),Pce=["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"],YU=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],Fce=YU.concat(["-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"]);function KU(i){let e=i.indexOf('"')!==-1?"'":'"';return e+i+e}function qU(i,e){for(let t=0;t-1)return Df.QUIRKS;let n=e===null?Oce:$U;if(qU(t,n))return Df.QUIRKS;if(n=e===null?YU:Fce,qU(t,n))return Df.LIMITED_QUIRKS}return Df.NO_QUIRKS};M4.serializeContent=function(i,e,t){let n="!DOCTYPE ";return i&&(n+=i),e?n+=" PUBLIC "+KU(e):t&&(n+=" SYSTEM"),t!==null&&(n+=" "+KU(t)),n}});var JU=Ze(sd=>{"use strict";var Nx=N1(),Rx=bu(),mt=Rx.TAG_NAMES,Sr=Rx.NAMESPACES,D4=Rx.ATTRS,QU={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Bce="definitionurl",Hce="definitionURL",zce={attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Uce={"xlink:actuate":{prefix:"xlink",name:"actuate",namespace:Sr.XLINK},"xlink:arcrole":{prefix:"xlink",name:"arcrole",namespace:Sr.XLINK},"xlink:href":{prefix:"xlink",name:"href",namespace:Sr.XLINK},"xlink:role":{prefix:"xlink",name:"role",namespace:Sr.XLINK},"xlink:show":{prefix:"xlink",name:"show",namespace:Sr.XLINK},"xlink:title":{prefix:"xlink",name:"title",namespace:Sr.XLINK},"xlink:type":{prefix:"xlink",name:"type",namespace:Sr.XLINK},"xml:base":{prefix:"xml",name:"base",namespace:Sr.XML},"xml:lang":{prefix:"xml",name:"lang",namespace:Sr.XML},"xml:space":{prefix:"xml",name:"space",namespace:Sr.XML},xmlns:{prefix:"",name:"xmlns",namespace:Sr.XMLNS},"xmlns:xlink":{prefix:"xmlns",name:"xlink",namespace:Sr.XMLNS}},jce=sd.SVG_TAG_NAMES_ADJUSTMENT_MAP={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},Wce={[mt.B]:!0,[mt.BIG]:!0,[mt.BLOCKQUOTE]:!0,[mt.BODY]:!0,[mt.BR]:!0,[mt.CENTER]:!0,[mt.CODE]:!0,[mt.DD]:!0,[mt.DIV]:!0,[mt.DL]:!0,[mt.DT]:!0,[mt.EM]:!0,[mt.EMBED]:!0,[mt.H1]:!0,[mt.H2]:!0,[mt.H3]:!0,[mt.H4]:!0,[mt.H5]:!0,[mt.H6]:!0,[mt.HEAD]:!0,[mt.HR]:!0,[mt.I]:!0,[mt.IMG]:!0,[mt.LI]:!0,[mt.LISTING]:!0,[mt.MENU]:!0,[mt.META]:!0,[mt.NOBR]:!0,[mt.OL]:!0,[mt.P]:!0,[mt.PRE]:!0,[mt.RUBY]:!0,[mt.S]:!0,[mt.SMALL]:!0,[mt.SPAN]:!0,[mt.STRONG]:!0,[mt.STRIKE]:!0,[mt.SUB]:!0,[mt.SUP]:!0,[mt.TABLE]:!0,[mt.TT]:!0,[mt.U]:!0,[mt.UL]:!0,[mt.VAR]:!0};sd.causesExit=function(i){let e=i.tagName;return e===mt.FONT&&(Nx.getTokenAttr(i,D4.COLOR)!==null||Nx.getTokenAttr(i,D4.SIZE)!==null||Nx.getTokenAttr(i,D4.FACE)!==null)?!0:Wce[e]};sd.adjustTokenMathMLAttrs=function(i){for(let e=0;e{"use strict";var q=N1(),qce=yU(),ZU=SU(),Gce=MU(),$ce=HU(),ej=Ra(),Yce=jU(),Xce=VU(),tj=XU(),Oa=JU(),wr=m4(),Qce=p4(),Cu=bu(),T=Cu.TAG_NAMES,it=Cu.NAMESPACES,uj=Cu.ATTRS,Jce={scriptingEnabled:!0,sourceCodeLocationInfo:!1,onParseError:null,treeAdapter:Yce},hj="hidden",Zce=8,ede=3,fj="INITIAL_MODE",Px="BEFORE_HTML_MODE",z4="BEFORE_HEAD_MODE",Of="IN_HEAD_MODE",pj="IN_HEAD_NO_SCRIPT_MODE",U4="AFTER_HEAD_MODE",Pa="IN_BODY_MODE",P4="TEXT_MODE",Br="IN_TABLE_MODE",mj="IN_TABLE_TEXT_MODE",j4="IN_CAPTION_MODE",W1="IN_COLUMN_GROUP_MODE",gs="IN_TABLE_BODY_MODE",Vl="IN_ROW_MODE",W4="IN_CELL_MODE",Fx="IN_SELECT_MODE",Bx="IN_SELECT_IN_TABLE_MODE",F4="IN_TEMPLATE_MODE",Hx="AFTER_BODY_MODE",V4="IN_FRAMESET_MODE",gj="AFTER_FRAMESET_MODE",vj="AFTER_AFTER_BODY_MODE",_j="AFTER_AFTER_FRAMESET_MODE",tde={[T.TR]:Vl,[T.TBODY]:gs,[T.THEAD]:gs,[T.TFOOT]:gs,[T.CAPTION]:j4,[T.COLGROUP]:W1,[T.TABLE]:Br,[T.BODY]:Pa,[T.FRAMESET]:V4},ide={[T.CAPTION]:Br,[T.COLGROUP]:Br,[T.TBODY]:Br,[T.TFOOT]:Br,[T.THEAD]:Br,[T.COL]:W1,[T.TR]:gs,[T.TD]:Vl,[T.TH]:Vl},ij={[fj]:{[q.CHARACTER_TOKEN]:P1,[q.NULL_CHARACTER_TOKEN]:P1,[q.WHITESPACE_CHARACTER_TOKEN]:ti,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:dde,[q.START_TAG_TOKEN]:P1,[q.END_TAG_TOKEN]:P1,[q.EOF_TOKEN]:P1},[Px]:{[q.CHARACTER_TOKEN]:B1,[q.NULL_CHARACTER_TOKEN]:B1,[q.WHITESPACE_CHARACTER_TOKEN]:ti,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:ude,[q.END_TAG_TOKEN]:hde,[q.EOF_TOKEN]:B1},[z4]:{[q.CHARACTER_TOKEN]:H1,[q.NULL_CHARACTER_TOKEN]:H1,[q.WHITESPACE_CHARACTER_TOKEN]:ti,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:N4,[q.START_TAG_TOKEN]:fde,[q.END_TAG_TOKEN]:pde,[q.EOF_TOKEN]:H1},[Of]:{[q.CHARACTER_TOKEN]:z1,[q.NULL_CHARACTER_TOKEN]:z1,[q.WHITESPACE_CHARACTER_TOKEN]:po,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:N4,[q.START_TAG_TOKEN]:cr,[q.END_TAG_TOKEN]:Su,[q.EOF_TOKEN]:z1},[pj]:{[q.CHARACTER_TOKEN]:U1,[q.NULL_CHARACTER_TOKEN]:U1,[q.WHITESPACE_CHARACTER_TOKEN]:po,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:N4,[q.START_TAG_TOKEN]:mde,[q.END_TAG_TOKEN]:gde,[q.EOF_TOKEN]:U1},[U4]:{[q.CHARACTER_TOKEN]:j1,[q.NULL_CHARACTER_TOKEN]:j1,[q.WHITESPACE_CHARACTER_TOKEN]:po,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:N4,[q.START_TAG_TOKEN]:vde,[q.END_TAG_TOKEN]:_de,[q.EOF_TOKEN]:j1},[Pa]:{[q.CHARACTER_TOKEN]:R4,[q.NULL_CHARACTER_TOKEN]:ti,[q.WHITESPACE_CHARACTER_TOKEN]:yu,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:mo,[q.END_TAG_TOKEN]:zx,[q.EOF_TOKEN]:jl},[P4]:{[q.CHARACTER_TOKEN]:po,[q.NULL_CHARACTER_TOKEN]:po,[q.WHITESPACE_CHARACTER_TOKEN]:po,[q.COMMENT_TOKEN]:ti,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:ti,[q.END_TAG_TOKEN]:Yde,[q.EOF_TOKEN]:Xde},[Br]:{[q.CHARACTER_TOKEN]:Wl,[q.NULL_CHARACTER_TOKEN]:Wl,[q.WHITESPACE_CHARACTER_TOKEN]:Wl,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:Ux,[q.END_TAG_TOKEN]:jx,[q.EOF_TOKEN]:jl},[mj]:{[q.CHARACTER_TOKEN]:sue,[q.NULL_CHARACTER_TOKEN]:ti,[q.WHITESPACE_CHARACTER_TOKEN]:oue,[q.COMMENT_TOKEN]:F1,[q.DOCTYPE_TOKEN]:F1,[q.START_TAG_TOKEN]:F1,[q.END_TAG_TOKEN]:F1,[q.EOF_TOKEN]:F1},[j4]:{[q.CHARACTER_TOKEN]:R4,[q.NULL_CHARACTER_TOKEN]:ti,[q.WHITESPACE_CHARACTER_TOKEN]:yu,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:aue,[q.END_TAG_TOKEN]:lue,[q.EOF_TOKEN]:jl},[W1]:{[q.CHARACTER_TOKEN]:B4,[q.NULL_CHARACTER_TOKEN]:B4,[q.WHITESPACE_CHARACTER_TOKEN]:po,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:cue,[q.END_TAG_TOKEN]:due,[q.EOF_TOKEN]:jl},[gs]:{[q.CHARACTER_TOKEN]:Wl,[q.NULL_CHARACTER_TOKEN]:Wl,[q.WHITESPACE_CHARACTER_TOKEN]:Wl,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:uue,[q.END_TAG_TOKEN]:hue,[q.EOF_TOKEN]:jl},[Vl]:{[q.CHARACTER_TOKEN]:Wl,[q.NULL_CHARACTER_TOKEN]:Wl,[q.WHITESPACE_CHARACTER_TOKEN]:Wl,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:fue,[q.END_TAG_TOKEN]:pue,[q.EOF_TOKEN]:jl},[W4]:{[q.CHARACTER_TOKEN]:R4,[q.NULL_CHARACTER_TOKEN]:ti,[q.WHITESPACE_CHARACTER_TOKEN]:yu,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:mue,[q.END_TAG_TOKEN]:gue,[q.EOF_TOKEN]:jl},[Fx]:{[q.CHARACTER_TOKEN]:po,[q.NULL_CHARACTER_TOKEN]:ti,[q.WHITESPACE_CHARACTER_TOKEN]:po,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:bj,[q.END_TAG_TOKEN]:yj,[q.EOF_TOKEN]:jl},[Bx]:{[q.CHARACTER_TOKEN]:po,[q.NULL_CHARACTER_TOKEN]:ti,[q.WHITESPACE_CHARACTER_TOKEN]:po,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:vue,[q.END_TAG_TOKEN]:_ue,[q.EOF_TOKEN]:jl},[F4]:{[q.CHARACTER_TOKEN]:R4,[q.NULL_CHARACTER_TOKEN]:ti,[q.WHITESPACE_CHARACTER_TOKEN]:yu,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:bue,[q.END_TAG_TOKEN]:yue,[q.EOF_TOKEN]:Cj},[Hx]:{[q.CHARACTER_TOKEN]:H4,[q.NULL_CHARACTER_TOKEN]:H4,[q.WHITESPACE_CHARACTER_TOKEN]:yu,[q.COMMENT_TOKEN]:cde,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:Cue,[q.END_TAG_TOKEN]:Sue,[q.EOF_TOKEN]:O1},[V4]:{[q.CHARACTER_TOKEN]:ti,[q.NULL_CHARACTER_TOKEN]:ti,[q.WHITESPACE_CHARACTER_TOKEN]:po,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:wue,[q.END_TAG_TOKEN]:xue,[q.EOF_TOKEN]:O1},[gj]:{[q.CHARACTER_TOKEN]:ti,[q.NULL_CHARACTER_TOKEN]:ti,[q.WHITESPACE_CHARACTER_TOKEN]:po,[q.COMMENT_TOKEN]:$n,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:Eue,[q.END_TAG_TOKEN]:Tue,[q.EOF_TOKEN]:O1},[vj]:{[q.CHARACTER_TOKEN]:O4,[q.NULL_CHARACTER_TOKEN]:O4,[q.WHITESPACE_CHARACTER_TOKEN]:yu,[q.COMMENT_TOKEN]:nj,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:kue,[q.END_TAG_TOKEN]:O4,[q.EOF_TOKEN]:O1},[_j]:{[q.CHARACTER_TOKEN]:ti,[q.NULL_CHARACTER_TOKEN]:ti,[q.WHITESPACE_CHARACTER_TOKEN]:yu,[q.COMMENT_TOKEN]:nj,[q.DOCTYPE_TOKEN]:ti,[q.START_TAG_TOKEN]:Iue,[q.END_TAG_TOKEN]:ti,[q.EOF_TOKEN]:O1}},Ox=class{constructor(e){this.options=Xce(Jce,e),this.treeAdapter=this.options.treeAdapter,this.pendingScript=null,this.options.sourceCodeLocationInfo&&ej.install(this,Gce),this.options.onParseError&&ej.install(this,$ce,{onParseError:this.options.onParseError})}parse(e){let t=this.treeAdapter.createDocument();return this._bootstrap(t,null),this.tokenizer.write(e,!0),this._runParsingLoop(null),t}parseFragment(e,t){t||(t=this.treeAdapter.createElement(T.TEMPLATE,it.HTML,[]));let n=this.treeAdapter.createElement("documentmock",it.HTML,[]);this._bootstrap(n,t),this.treeAdapter.getTagName(t)===T.TEMPLATE&&this._pushTmplInsertionMode(F4),this._initTokenizerForFragmentParsing(),this._insertFakeRootElement(),this._resetInsertionMode(),this._findFormInFragmentContext(),this.tokenizer.write(e,!0),this._runParsingLoop(null);let r=this.treeAdapter.getFirstChild(n),o=this.treeAdapter.createDocumentFragment();return this._adoptNodes(r,o),o}_bootstrap(e,t){this.tokenizer=new q(this.options),this.stopped=!1,this.insertionMode=fj,this.originalInsertionMode="",this.document=e,this.fragmentContext=t,this.headElement=null,this.formElement=null,this.openElements=new qce(this.document,this.treeAdapter),this.activeFormattingElements=new ZU(this.treeAdapter),this.tmplInsertionModeStack=[],this.tmplInsertionModeStackTop=-1,this.currentTmplInsertionMode=null,this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1}_err(){}_runParsingLoop(e){for(;!this.stopped;){this._setupTokenizerCDATAMode();let t=this.tokenizer.getNextToken();if(t.type===q.HIBERNATION_TOKEN)break;if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.type===q.WHITESPACE_CHARACTER_TOKEN&&t.chars[0]===` +`)){if(t.chars.length===1)continue;t.chars=t.chars.substr(1)}if(this._processInputToken(t),e&&this.pendingScript)break}}runParsingLoopForCurrentChunk(e,t){if(this._runParsingLoop(t),t&&this.pendingScript){let n=this.pendingScript;this.pendingScript=null,t(n);return}e&&e()}_setupTokenizerCDATAMode(){let e=this._getAdjustedCurrentElement();this.tokenizer.allowCDATA=e&&e!==this.document&&this.treeAdapter.getNamespaceURI(e)!==it.HTML&&!this._isIntegrationPoint(e)}_switchToTextParsing(e,t){this._insertElement(e,it.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=P4}switchToPlaintextParsing(){this.insertionMode=P4,this.originalInsertionMode=Pa,this.tokenizer.state=q.MODE.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;do{if(this.treeAdapter.getTagName(e)===T.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}while(e)}_initTokenizerForFragmentParsing(){if(this.treeAdapter.getNamespaceURI(this.fragmentContext)===it.HTML){let e=this.treeAdapter.getTagName(this.fragmentContext);e===T.TITLE||e===T.TEXTAREA?this.tokenizer.state=q.MODE.RCDATA:e===T.STYLE||e===T.XMP||e===T.IFRAME||e===T.NOEMBED||e===T.NOFRAMES||e===T.NOSCRIPT?this.tokenizer.state=q.MODE.RAWTEXT:e===T.SCRIPT?this.tokenizer.state=q.MODE.SCRIPT_DATA:e===T.PLAINTEXT&&(this.tokenizer.state=q.MODE.PLAINTEXT)}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",r=e.systemId||"";this.treeAdapter.setDocumentType(this.document,t,n,r)}_attachElementToTree(e){if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.appendChild(t,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n),this.openElements.push(n)}_insertFakeElement(e){let t=this.treeAdapter.createElement(e,it.HTML,[]);this._attachElementToTree(t),this.openElements.push(t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,it.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t),this.openElements.push(t)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(T.HTML,it.HTML,[]);this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n)}_insertCharacters(e){if(this._shouldFosterParentOnInsertion())this._fosterParentText(e.chars);else{let t=this.openElements.currentTmplContent||this.openElements.current;this.treeAdapter.insertText(t,e.chars)}}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_shouldProcessTokenInForeignContent(e){let t=this._getAdjustedCurrentElement();if(!t||t===this.document)return!1;let n=this.treeAdapter.getNamespaceURI(t);if(n===it.HTML||this.treeAdapter.getTagName(t)===T.ANNOTATION_XML&&n===it.MATHML&&e.type===q.START_TAG_TOKEN&&e.tagName===T.SVG)return!1;let r=e.type===q.CHARACTER_TOKEN||e.type===q.NULL_CHARACTER_TOKEN||e.type===q.WHITESPACE_CHARACTER_TOKEN;return(e.type===q.START_TAG_TOKEN&&e.tagName!==T.MGLYPH&&e.tagName!==T.MALIGNMARK||r)&&this._isIntegrationPoint(t,it.MATHML)||(e.type===q.START_TAG_TOKEN||r)&&this._isIntegrationPoint(t,it.HTML)?!1:e.type!==q.EOF_TOKEN}_processToken(e){ij[this.insertionMode][e.type](this,e)}_processTokenInBodyMode(e){ij[Pa][e.type](this,e)}_processTokenInForeignContent(e){e.type===q.CHARACTER_TOKEN?Lue(this,e):e.type===q.NULL_CHARACTER_TOKEN?Aue(this,e):e.type===q.WHITESPACE_CHARACTER_TOKEN?po(this,e):e.type===q.COMMENT_TOKEN?$n(this,e):e.type===q.START_TAG_TOKEN?Mue(this,e):e.type===q.END_TAG_TOKEN&&Due(this,e)}_processInputToken(e){this._shouldProcessTokenInForeignContent(e)?this._processTokenInForeignContent(e):this._processToken(e),e.type===q.START_TAG_TOKEN&&e.selfClosing&&!e.ackSelfClosing&&this._err(wr.nonVoidHtmlElementStartTagWithTrailingSolidus)}_isIntegrationPoint(e,t){let n=this.treeAdapter.getTagName(e),r=this.treeAdapter.getNamespaceURI(e),o=this.treeAdapter.getAttrList(e);return Oa.isIntegrationPoint(n,r,o,t)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.length;if(e){let t=e,n=null;do if(t--,n=this.activeFormattingElements.entries[t],n.type===ZU.MARKER_ENTRY||this.openElements.contains(n.element)){t++;break}while(t>0);for(let r=t;r=0;e--){let n=this.openElements.items[e];e===0&&(t=!0,this.fragmentContext&&(n=this.fragmentContext));let r=this.treeAdapter.getTagName(n),o=tde[r];if(o){this.insertionMode=o;break}else if(!t&&(r===T.TD||r===T.TH)){this.insertionMode=W4;break}else if(!t&&r===T.HEAD){this.insertionMode=Of;break}else if(r===T.SELECT){this._resetInsertionModeForSelect(e);break}else if(r===T.TEMPLATE){this.insertionMode=this.currentTmplInsertionMode;break}else if(r===T.HTML){this.insertionMode=this.headElement?U4:z4;break}else if(t){this.insertionMode=Pa;break}}}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let n=this.openElements.items[t],r=this.treeAdapter.getTagName(n);if(r===T.TEMPLATE)break;if(r===T.TABLE){this.insertionMode=Bx;return}}this.insertionMode=Fx}_pushTmplInsertionMode(e){this.tmplInsertionModeStack.push(e),this.tmplInsertionModeStackTop++,this.currentTmplInsertionMode=e}_popTmplInsertionMode(){this.tmplInsertionModeStack.pop(),this.tmplInsertionModeStackTop--,this.currentTmplInsertionMode=this.tmplInsertionModeStack[this.tmplInsertionModeStackTop]}_isElementCausesFosterParenting(e){let t=this.treeAdapter.getTagName(e);return t===T.TABLE||t===T.TBODY||t===T.TFOOT||t===T.THEAD||t===T.TR}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.current)}_findFosterParentingLocation(){let e={parent:null,beforeElement:null};for(let t=this.openElements.stackTop;t>=0;t--){let n=this.openElements.items[t],r=this.treeAdapter.getTagName(n),o=this.treeAdapter.getNamespaceURI(n);if(r===T.TEMPLATE&&o===it.HTML){e.parent=this.treeAdapter.getTemplateContent(n);break}else if(r===T.TABLE){e.parent=this.treeAdapter.getParentNode(n),e.parent?e.beforeElement=n:e.parent=this.openElements.items[t-1];break}}return e.parent||(e.parent=this.openElements.items[0]),e}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_fosterParentText(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertTextBefore(t.parent,e,t.beforeElement):this.treeAdapter.insertText(t.parent,e)}_isSpecialElement(e){let t=this.treeAdapter.getTagName(e),n=this.treeAdapter.getNamespaceURI(e);return Cu.SPECIAL_ELEMENTS[n][t]}};Sj.exports=Ox;function nde(i,e){let t=i.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return t?i.openElements.contains(t.element)?i.openElements.hasInScope(e.tagName)||(t=null):(i.activeFormattingElements.removeEntry(t),t=null):zs(i,e),t}function rde(i,e){let t=null;for(let n=i.openElements.stackTop;n>=0;n--){let r=i.openElements.items[n];if(r===e.element)break;i._isSpecialElement(r)&&(t=r)}return t||(i.openElements.popUntilElementPopped(e.element),i.activeFormattingElements.removeEntry(e)),t}function ode(i,e,t){let n=e,r=i.openElements.getCommonAncestor(e);for(let o=0,s=r;s!==t;o++,s=r){r=i.openElements.getCommonAncestor(s);let a=i.activeFormattingElements.getElementEntry(s),l=a&&o>=ede;!a||l?(l&&i.activeFormattingElements.removeEntry(a),i.openElements.remove(s)):(s=sde(i,a),n===e&&(i.activeFormattingElements.bookmark=a),i.treeAdapter.detachNode(n),i.treeAdapter.appendChild(s,n),n=s)}return n}function sde(i,e){let t=i.treeAdapter.getNamespaceURI(e.element),n=i.treeAdapter.createElement(e.token.tagName,t,e.token.attrs);return i.openElements.replace(e.element,n),e.element=n,n}function ade(i,e,t){if(i._isElementCausesFosterParenting(e))i._fosterParentElement(t);else{let n=i.treeAdapter.getTagName(e),r=i.treeAdapter.getNamespaceURI(e);n===T.TEMPLATE&&r===it.HTML&&(e=i.treeAdapter.getTemplateContent(e)),i.treeAdapter.appendChild(e,t)}}function lde(i,e,t){let n=i.treeAdapter.getNamespaceURI(t.element),r=t.token,o=i.treeAdapter.createElement(r.tagName,n,r.attrs);i._adoptNodes(e,o),i.treeAdapter.appendChild(e,o),i.activeFormattingElements.insertElementAfterBookmark(o,t.token),i.activeFormattingElements.removeEntry(t),i.openElements.remove(t.element),i.openElements.insertAfter(e,o)}function ld(i,e){let t;for(let n=0;n0?(i.openElements.generateImpliedEndTagsThoroughly(),i.openElements.currentTagName!==T.TEMPLATE&&i._err(wr.closingOfElementWithOpenChildElements),i.openElements.popUntilTagNamePopped(T.TEMPLATE),i.activeFormattingElements.clearToLastMarker(),i._popTmplInsertionMode(),i._resetInsertionMode()):i._err(wr.endTagWithoutMatchingOpenElement)}function z1(i,e){i.openElements.pop(),i.insertionMode=U4,i._processToken(e)}function mde(i,e){let t=e.tagName;t===T.HTML?mo(i,e):t===T.BASEFONT||t===T.BGSOUND||t===T.HEAD||t===T.LINK||t===T.META||t===T.NOFRAMES||t===T.STYLE?cr(i,e):t===T.NOSCRIPT?i._err(wr.nestedNoscriptInHead):U1(i,e)}function gde(i,e){let t=e.tagName;t===T.NOSCRIPT?(i.openElements.pop(),i.insertionMode=Of):t===T.BR?U1(i,e):i._err(wr.endTagWithoutMatchingOpenElement)}function U1(i,e){let t=e.type===q.EOF_TOKEN?wr.openElementsLeftAfterEof:wr.disallowedContentInNoscriptInHead;i._err(t),i.openElements.pop(),i.insertionMode=Of,i._processToken(e)}function vde(i,e){let t=e.tagName;t===T.HTML?mo(i,e):t===T.BODY?(i._insertElement(e,it.HTML),i.framesetOk=!1,i.insertionMode=Pa):t===T.FRAMESET?(i._insertElement(e,it.HTML),i.insertionMode=V4):t===T.BASE||t===T.BASEFONT||t===T.BGSOUND||t===T.LINK||t===T.META||t===T.NOFRAMES||t===T.SCRIPT||t===T.STYLE||t===T.TEMPLATE||t===T.TITLE?(i._err(wr.abandonedHeadElementChild),i.openElements.push(i.headElement),cr(i,e),i.openElements.remove(i.headElement)):t===T.HEAD?i._err(wr.misplacedStartTagForHeadElement):j1(i,e)}function _de(i,e){let t=e.tagName;t===T.BODY||t===T.HTML||t===T.BR?j1(i,e):t===T.TEMPLATE?Su(i,e):i._err(wr.endTagWithoutMatchingOpenElement)}function j1(i,e){i._insertFakeElement(T.BODY),i.insertionMode=Pa,i._processToken(e)}function yu(i,e){i._reconstructActiveFormattingElements(),i._insertCharacters(e)}function R4(i,e){i._reconstructActiveFormattingElements(),i._insertCharacters(e),i.framesetOk=!1}function bde(i,e){i.openElements.tmplCount===0&&i.treeAdapter.adoptAttributes(i.openElements.items[0],e.attrs)}function yde(i,e){let t=i.openElements.tryPeekProperlyNestedBodyElement();t&&i.openElements.tmplCount===0&&(i.framesetOk=!1,i.treeAdapter.adoptAttributes(t,e.attrs))}function Cde(i,e){let t=i.openElements.tryPeekProperlyNestedBodyElement();i.framesetOk&&t&&(i.treeAdapter.detachNode(t),i.openElements.popAllUpToHtmlElement(),i._insertElement(e,it.HTML),i.insertionMode=V4)}function Ul(i,e){i.openElements.hasInButtonScope(T.P)&&i._closePElement(),i._insertElement(e,it.HTML)}function Sde(i,e){i.openElements.hasInButtonScope(T.P)&&i._closePElement();let t=i.openElements.currentTagName;(t===T.H1||t===T.H2||t===T.H3||t===T.H4||t===T.H5||t===T.H6)&&i.openElements.pop(),i._insertElement(e,it.HTML)}function rj(i,e){i.openElements.hasInButtonScope(T.P)&&i._closePElement(),i._insertElement(e,it.HTML),i.skipNextNewLine=!0,i.framesetOk=!1}function wde(i,e){let t=i.openElements.tmplCount>0;(!i.formElement||t)&&(i.openElements.hasInButtonScope(T.P)&&i._closePElement(),i._insertElement(e,it.HTML),t||(i.formElement=i.openElements.current))}function xde(i,e){i.framesetOk=!1;let t=e.tagName;for(let n=i.openElements.stackTop;n>=0;n--){let r=i.openElements.items[n],o=i.treeAdapter.getTagName(r),s=null;if(t===T.LI&&o===T.LI?s=T.LI:(t===T.DD||t===T.DT)&&(o===T.DD||o===T.DT)&&(s=o),s){i.openElements.generateImpliedEndTagsWithExclusion(s),i.openElements.popUntilTagNamePopped(s);break}if(o!==T.ADDRESS&&o!==T.DIV&&o!==T.P&&i._isSpecialElement(r))break}i.openElements.hasInButtonScope(T.P)&&i._closePElement(),i._insertElement(e,it.HTML)}function Ede(i,e){i.openElements.hasInButtonScope(T.P)&&i._closePElement(),i._insertElement(e,it.HTML),i.tokenizer.state=q.MODE.PLAINTEXT}function Tde(i,e){i.openElements.hasInScope(T.BUTTON)&&(i.openElements.generateImpliedEndTags(),i.openElements.popUntilTagNamePopped(T.BUTTON)),i._reconstructActiveFormattingElements(),i._insertElement(e,it.HTML),i.framesetOk=!1}function kde(i,e){let t=i.activeFormattingElements.getElementEntryInScopeWithTagName(T.A);t&&(ld(i,e),i.openElements.remove(t.element),i.activeFormattingElements.removeEntry(t)),i._reconstructActiveFormattingElements(),i._insertElement(e,it.HTML),i.activeFormattingElements.pushElement(i.openElements.current,e)}function Nf(i,e){i._reconstructActiveFormattingElements(),i._insertElement(e,it.HTML),i.activeFormattingElements.pushElement(i.openElements.current,e)}function Ide(i,e){i._reconstructActiveFormattingElements(),i.openElements.hasInScope(T.NOBR)&&(ld(i,e),i._reconstructActiveFormattingElements()),i._insertElement(e,it.HTML),i.activeFormattingElements.pushElement(i.openElements.current,e)}function oj(i,e){i._reconstructActiveFormattingElements(),i._insertElement(e,it.HTML),i.activeFormattingElements.insertMarker(),i.framesetOk=!1}function Ade(i,e){i.treeAdapter.getDocumentMode(i.document)!==Cu.DOCUMENT_MODE.QUIRKS&&i.openElements.hasInButtonScope(T.P)&&i._closePElement(),i._insertElement(e,it.HTML),i.framesetOk=!1,i.insertionMode=Br}function Rf(i,e){i._reconstructActiveFormattingElements(),i._appendElement(e,it.HTML),i.framesetOk=!1,e.ackSelfClosing=!0}function Lde(i,e){i._reconstructActiveFormattingElements(),i._appendElement(e,it.HTML);let t=q.getTokenAttr(e,uj.TYPE);(!t||t.toLowerCase()!==hj)&&(i.framesetOk=!1),e.ackSelfClosing=!0}function sj(i,e){i._appendElement(e,it.HTML),e.ackSelfClosing=!0}function Mde(i,e){i.openElements.hasInButtonScope(T.P)&&i._closePElement(),i._appendElement(e,it.HTML),i.framesetOk=!1,e.ackSelfClosing=!0}function Dde(i,e){e.tagName=T.IMG,Rf(i,e)}function Nde(i,e){i._insertElement(e,it.HTML),i.skipNextNewLine=!0,i.tokenizer.state=q.MODE.RCDATA,i.originalInsertionMode=i.insertionMode,i.framesetOk=!1,i.insertionMode=P4}function Rde(i,e){i.openElements.hasInButtonScope(T.P)&&i._closePElement(),i._reconstructActiveFormattingElements(),i.framesetOk=!1,i._switchToTextParsing(e,q.MODE.RAWTEXT)}function Ode(i,e){i.framesetOk=!1,i._switchToTextParsing(e,q.MODE.RAWTEXT)}function aj(i,e){i._switchToTextParsing(e,q.MODE.RAWTEXT)}function Pde(i,e){i._reconstructActiveFormattingElements(),i._insertElement(e,it.HTML),i.framesetOk=!1,i.insertionMode===Br||i.insertionMode===j4||i.insertionMode===gs||i.insertionMode===Vl||i.insertionMode===W4?i.insertionMode=Bx:i.insertionMode=Fx}function lj(i,e){i.openElements.currentTagName===T.OPTION&&i.openElements.pop(),i._reconstructActiveFormattingElements(),i._insertElement(e,it.HTML)}function cj(i,e){i.openElements.hasInScope(T.RUBY)&&i.openElements.generateImpliedEndTags(),i._insertElement(e,it.HTML)}function Fde(i,e){i.openElements.hasInScope(T.RUBY)&&i.openElements.generateImpliedEndTagsWithExclusion(T.RTC),i._insertElement(e,it.HTML)}function Bde(i,e){i.openElements.hasInButtonScope(T.P)&&i._closePElement(),i._insertElement(e,it.HTML)}function Hde(i,e){i._reconstructActiveFormattingElements(),Oa.adjustTokenMathMLAttrs(e),Oa.adjustTokenXMLAttrs(e),e.selfClosing?i._appendElement(e,it.MATHML):i._insertElement(e,it.MATHML),e.ackSelfClosing=!0}function zde(i,e){i._reconstructActiveFormattingElements(),Oa.adjustTokenSVGAttrs(e),Oa.adjustTokenXMLAttrs(e),e.selfClosing?i._appendElement(e,it.SVG):i._insertElement(e,it.SVG),e.ackSelfClosing=!0}function ps(i,e){i._reconstructActiveFormattingElements(),i._insertElement(e,it.HTML)}function mo(i,e){let t=e.tagName;switch(t.length){case 1:t===T.I||t===T.S||t===T.B||t===T.U?Nf(i,e):t===T.P?Ul(i,e):t===T.A?kde(i,e):ps(i,e);break;case 2:t===T.DL||t===T.OL||t===T.UL?Ul(i,e):t===T.H1||t===T.H2||t===T.H3||t===T.H4||t===T.H5||t===T.H6?Sde(i,e):t===T.LI||t===T.DD||t===T.DT?xde(i,e):t===T.EM||t===T.TT?Nf(i,e):t===T.BR?Rf(i,e):t===T.HR?Mde(i,e):t===T.RB?cj(i,e):t===T.RT||t===T.RP?Fde(i,e):t!==T.TH&&t!==T.TD&&t!==T.TR&&ps(i,e);break;case 3:t===T.DIV||t===T.DIR||t===T.NAV?Ul(i,e):t===T.PRE?rj(i,e):t===T.BIG?Nf(i,e):t===T.IMG||t===T.WBR?Rf(i,e):t===T.XMP?Rde(i,e):t===T.SVG?zde(i,e):t===T.RTC?cj(i,e):t!==T.COL&&ps(i,e);break;case 4:t===T.HTML?bde(i,e):t===T.BASE||t===T.LINK||t===T.META?cr(i,e):t===T.BODY?yde(i,e):t===T.MAIN||t===T.MENU?Ul(i,e):t===T.FORM?wde(i,e):t===T.CODE||t===T.FONT?Nf(i,e):t===T.NOBR?Ide(i,e):t===T.AREA?Rf(i,e):t===T.MATH?Hde(i,e):t===T.MENU?Bde(i,e):t!==T.HEAD&&ps(i,e);break;case 5:t===T.STYLE||t===T.TITLE?cr(i,e):t===T.ASIDE?Ul(i,e):t===T.SMALL?Nf(i,e):t===T.TABLE?Ade(i,e):t===T.EMBED?Rf(i,e):t===T.INPUT?Lde(i,e):t===T.PARAM||t===T.TRACK?sj(i,e):t===T.IMAGE?Dde(i,e):t!==T.FRAME&&t!==T.TBODY&&t!==T.TFOOT&&t!==T.THEAD&&ps(i,e);break;case 6:t===T.SCRIPT?cr(i,e):t===T.CENTER||t===T.FIGURE||t===T.FOOTER||t===T.HEADER||t===T.HGROUP||t===T.DIALOG?Ul(i,e):t===T.BUTTON?Tde(i,e):t===T.STRIKE||t===T.STRONG?Nf(i,e):t===T.APPLET||t===T.OBJECT?oj(i,e):t===T.KEYGEN?Rf(i,e):t===T.SOURCE?sj(i,e):t===T.IFRAME?Ode(i,e):t===T.SELECT?Pde(i,e):t===T.OPTION?lj(i,e):ps(i,e);break;case 7:t===T.BGSOUND?cr(i,e):t===T.DETAILS||t===T.ADDRESS||t===T.ARTICLE||t===T.SECTION||t===T.SUMMARY?Ul(i,e):t===T.LISTING?rj(i,e):t===T.MARQUEE?oj(i,e):t===T.NOEMBED?aj(i,e):t!==T.CAPTION&&ps(i,e);break;case 8:t===T.BASEFONT?cr(i,e):t===T.FRAMESET?Cde(i,e):t===T.FIELDSET?Ul(i,e):t===T.TEXTAREA?Nde(i,e):t===T.TEMPLATE?cr(i,e):t===T.NOSCRIPT?i.options.scriptingEnabled?aj(i,e):ps(i,e):t===T.OPTGROUP?lj(i,e):t!==T.COLGROUP&&ps(i,e);break;case 9:t===T.PLAINTEXT?Ede(i,e):ps(i,e);break;case 10:t===T.BLOCKQUOTE||t===T.FIGCAPTION?Ul(i,e):ps(i,e);break;default:ps(i,e)}}function Ude(i){i.openElements.hasInScope(T.BODY)&&(i.insertionMode=Hx)}function jde(i,e){i.openElements.hasInScope(T.BODY)&&(i.insertionMode=Hx,i._processToken(e))}function ad(i,e){let t=e.tagName;i.openElements.hasInScope(t)&&(i.openElements.generateImpliedEndTags(),i.openElements.popUntilTagNamePopped(t))}function Wde(i){let e=i.openElements.tmplCount>0,t=i.formElement;e||(i.formElement=null),(t||e)&&i.openElements.hasInScope(T.FORM)&&(i.openElements.generateImpliedEndTags(),e?i.openElements.popUntilTagNamePopped(T.FORM):i.openElements.remove(t))}function Vde(i){i.openElements.hasInButtonScope(T.P)||i._insertFakeElement(T.P),i._closePElement()}function Kde(i){i.openElements.hasInListItemScope(T.LI)&&(i.openElements.generateImpliedEndTagsWithExclusion(T.LI),i.openElements.popUntilTagNamePopped(T.LI))}function qde(i,e){let t=e.tagName;i.openElements.hasInScope(t)&&(i.openElements.generateImpliedEndTagsWithExclusion(t),i.openElements.popUntilTagNamePopped(t))}function Gde(i){i.openElements.hasNumberedHeaderInScope()&&(i.openElements.generateImpliedEndTags(),i.openElements.popUntilNumberedHeaderPopped())}function dj(i,e){let t=e.tagName;i.openElements.hasInScope(t)&&(i.openElements.generateImpliedEndTags(),i.openElements.popUntilTagNamePopped(t),i.activeFormattingElements.clearToLastMarker())}function $de(i){i._reconstructActiveFormattingElements(),i._insertFakeElement(T.BR),i.openElements.pop(),i.framesetOk=!1}function zs(i,e){let t=e.tagName;for(let n=i.openElements.stackTop;n>0;n--){let r=i.openElements.items[n];if(i.treeAdapter.getTagName(r)===t){i.openElements.generateImpliedEndTagsWithExclusion(t),i.openElements.popUntilElementPopped(r);break}if(i._isSpecialElement(r))break}}function zx(i,e){let t=e.tagName;switch(t.length){case 1:t===T.A||t===T.B||t===T.I||t===T.S||t===T.U?ld(i,e):t===T.P?Vde(i,e):zs(i,e);break;case 2:t===T.DL||t===T.UL||t===T.OL?ad(i,e):t===T.LI?Kde(i,e):t===T.DD||t===T.DT?qde(i,e):t===T.H1||t===T.H2||t===T.H3||t===T.H4||t===T.H5||t===T.H6?Gde(i,e):t===T.BR?$de(i,e):t===T.EM||t===T.TT?ld(i,e):zs(i,e);break;case 3:t===T.BIG?ld(i,e):t===T.DIR||t===T.DIV||t===T.NAV||t===T.PRE?ad(i,e):zs(i,e);break;case 4:t===T.BODY?Ude(i,e):t===T.HTML?jde(i,e):t===T.FORM?Wde(i,e):t===T.CODE||t===T.FONT||t===T.NOBR?ld(i,e):t===T.MAIN||t===T.MENU?ad(i,e):zs(i,e);break;case 5:t===T.ASIDE?ad(i,e):t===T.SMALL?ld(i,e):zs(i,e);break;case 6:t===T.CENTER||t===T.FIGURE||t===T.FOOTER||t===T.HEADER||t===T.HGROUP||t===T.DIALOG?ad(i,e):t===T.APPLET||t===T.OBJECT?dj(i,e):t===T.STRIKE||t===T.STRONG?ld(i,e):zs(i,e);break;case 7:t===T.ADDRESS||t===T.ARTICLE||t===T.DETAILS||t===T.SECTION||t===T.SUMMARY||t===T.LISTING?ad(i,e):t===T.MARQUEE?dj(i,e):zs(i,e);break;case 8:t===T.FIELDSET?ad(i,e):t===T.TEMPLATE?Su(i,e):zs(i,e);break;case 10:t===T.BLOCKQUOTE||t===T.FIGCAPTION?ad(i,e):zs(i,e);break;default:zs(i,e)}}function jl(i,e){i.tmplInsertionModeStackTop>-1?Cj(i,e):i.stopped=!0}function Yde(i,e){e.tagName===T.SCRIPT&&(i.pendingScript=i.openElements.current),i.openElements.pop(),i.insertionMode=i.originalInsertionMode}function Xde(i,e){i._err(wr.eofInElementThatCanContainOnlyText),i.openElements.pop(),i.insertionMode=i.originalInsertionMode,i._processToken(e)}function Wl(i,e){let t=i.openElements.currentTagName;t===T.TABLE||t===T.TBODY||t===T.TFOOT||t===T.THEAD||t===T.TR?(i.pendingCharacterTokens=[],i.hasNonWhitespacePendingCharacterToken=!1,i.originalInsertionMode=i.insertionMode,i.insertionMode=mj,i._processToken(e)):ms(i,e)}function Qde(i,e){i.openElements.clearBackToTableContext(),i.activeFormattingElements.insertMarker(),i._insertElement(e,it.HTML),i.insertionMode=j4}function Jde(i,e){i.openElements.clearBackToTableContext(),i._insertElement(e,it.HTML),i.insertionMode=W1}function Zde(i,e){i.openElements.clearBackToTableContext(),i._insertFakeElement(T.COLGROUP),i.insertionMode=W1,i._processToken(e)}function eue(i,e){i.openElements.clearBackToTableContext(),i._insertElement(e,it.HTML),i.insertionMode=gs}function tue(i,e){i.openElements.clearBackToTableContext(),i._insertFakeElement(T.TBODY),i.insertionMode=gs,i._processToken(e)}function iue(i,e){i.openElements.hasInTableScope(T.TABLE)&&(i.openElements.popUntilTagNamePopped(T.TABLE),i._resetInsertionMode(),i._processToken(e))}function nue(i,e){let t=q.getTokenAttr(e,uj.TYPE);t&&t.toLowerCase()===hj?i._appendElement(e,it.HTML):ms(i,e),e.ackSelfClosing=!0}function rue(i,e){!i.formElement&&i.openElements.tmplCount===0&&(i._insertElement(e,it.HTML),i.formElement=i.openElements.current,i.openElements.pop())}function Ux(i,e){let t=e.tagName;switch(t.length){case 2:t===T.TD||t===T.TH||t===T.TR?tue(i,e):ms(i,e);break;case 3:t===T.COL?Zde(i,e):ms(i,e);break;case 4:t===T.FORM?rue(i,e):ms(i,e);break;case 5:t===T.TABLE?iue(i,e):t===T.STYLE?cr(i,e):t===T.TBODY||t===T.TFOOT||t===T.THEAD?eue(i,e):t===T.INPUT?nue(i,e):ms(i,e);break;case 6:t===T.SCRIPT?cr(i,e):ms(i,e);break;case 7:t===T.CAPTION?Qde(i,e):ms(i,e);break;case 8:t===T.COLGROUP?Jde(i,e):t===T.TEMPLATE?cr(i,e):ms(i,e);break;default:ms(i,e)}}function jx(i,e){let t=e.tagName;t===T.TABLE?i.openElements.hasInTableScope(T.TABLE)&&(i.openElements.popUntilTagNamePopped(T.TABLE),i._resetInsertionMode()):t===T.TEMPLATE?Su(i,e):t!==T.BODY&&t!==T.CAPTION&&t!==T.COL&&t!==T.COLGROUP&&t!==T.HTML&&t!==T.TBODY&&t!==T.TD&&t!==T.TFOOT&&t!==T.TH&&t!==T.THEAD&&t!==T.TR&&ms(i,e)}function ms(i,e){let t=i.fosterParentingEnabled;i.fosterParentingEnabled=!0,i._processTokenInBodyMode(e),i.fosterParentingEnabled=t}function oue(i,e){i.pendingCharacterTokens.push(e)}function sue(i,e){i.pendingCharacterTokens.push(e),i.hasNonWhitespacePendingCharacterToken=!0}function F1(i,e){let t=0;if(i.hasNonWhitespacePendingCharacterToken)for(;t0?(i.openElements.popUntilTagNamePopped(T.TEMPLATE),i.activeFormattingElements.clearToLastMarker(),i._popTmplInsertionMode(),i._resetInsertionMode(),i._processToken(e)):i.stopped=!0}function Cue(i,e){e.tagName===T.HTML?mo(i,e):H4(i,e)}function Sue(i,e){e.tagName===T.HTML?i.fragmentContext||(i.insertionMode=vj):H4(i,e)}function H4(i,e){i.insertionMode=Pa,i._processToken(e)}function wue(i,e){let t=e.tagName;t===T.HTML?mo(i,e):t===T.FRAMESET?i._insertElement(e,it.HTML):t===T.FRAME?(i._appendElement(e,it.HTML),e.ackSelfClosing=!0):t===T.NOFRAMES&&cr(i,e)}function xue(i,e){e.tagName===T.FRAMESET&&!i.openElements.isRootHtmlElementCurrent()&&(i.openElements.pop(),!i.fragmentContext&&i.openElements.currentTagName!==T.FRAMESET&&(i.insertionMode=gj))}function Eue(i,e){let t=e.tagName;t===T.HTML?mo(i,e):t===T.NOFRAMES&&cr(i,e)}function Tue(i,e){e.tagName===T.HTML&&(i.insertionMode=_j)}function kue(i,e){e.tagName===T.HTML?mo(i,e):O4(i,e)}function O4(i,e){i.insertionMode=Pa,i._processToken(e)}function Iue(i,e){let t=e.tagName;t===T.HTML?mo(i,e):t===T.NOFRAMES&&cr(i,e)}function Aue(i,e){e.chars=Qce.REPLACEMENT_CHARACTER,i._insertCharacters(e)}function Lue(i,e){i._insertCharacters(e),i.framesetOk=!1}function Mue(i,e){if(Oa.causesExit(e)&&!i.fragmentContext){for(;i.treeAdapter.getNamespaceURI(i.openElements.current)!==it.HTML&&!i._isIntegrationPoint(i.openElements.current);)i.openElements.pop();i._processToken(e)}else{let t=i._getAdjustedCurrentElement(),n=i.treeAdapter.getNamespaceURI(t);n===it.MATHML?Oa.adjustTokenMathMLAttrs(e):n===it.SVG&&(Oa.adjustTokenSVGTagName(e),Oa.adjustTokenSVGAttrs(e)),Oa.adjustTokenXMLAttrs(e),e.selfClosing?i._appendElement(e,n):i._insertElement(e,n),e.ackSelfClosing=!0}}function Due(i,e){for(let t=i.openElements.stackTop;t>0;t--){let n=i.openElements.items[t];if(i.treeAdapter.getNamespaceURI(n)===it.HTML){i._processToken(e);break}if(i.treeAdapter.getTagName(n).toLowerCase()===e.tagName){i.openElements.popUntilElementPopped(n);break}}}});var Uj=Ze((U7e,zj)=>{var Pj=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Que=/\n/g,Jue=/^\s*/,Zue=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,ehe=/^:\s*/,the=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,ihe=/^[;\s]*/,nhe=/^\s+|\s+$/g,rhe=` +`,Fj="/",Bj="*",Eu="",ohe="comment",she="declaration";zj.exports=function(i,e){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];e=e||{};var t=1,n=1;function r(g){var b=g.match(Que);b&&(t+=b.length);var S=g.lastIndexOf(rhe);n=~S?g.length-S:n+g.length}function o(){var g={line:t,column:n};return function(b){return b.position=new s(g),d(),b}}function s(g){this.start=g,this.end={line:t,column:n},this.source=e.source}s.prototype.content=i;var a=[];function l(g){var b=new Error(e.source+":"+t+":"+n+": "+g);if(b.reason=g,b.filename=e.source,b.line=t,b.column=n,b.source=i,e.silent)a.push(b);else throw b}function c(g){var b=g.exec(i);if(b){var S=b[0];return r(S),i=i.slice(S.length),b}}function d(){c(Jue)}function u(g){var b;for(g=g||[];b=h();)b!==!1&&g.push(b);return g}function h(){var g=o();if(!(Fj!=i.charAt(0)||Bj!=i.charAt(1))){for(var b=2;Eu!=i.charAt(b)&&(Bj!=i.charAt(b)||Fj!=i.charAt(b+1));)++b;if(b+=2,Eu===i.charAt(b-1))return l("End of comment missing");var S=i.slice(2,b-2);return n+=2,r(S),i=i.slice(b),n+=2,g({type:ohe,comment:S})}}function p(){var g=o(),b=c(Zue);if(b){if(h(),!c(ehe))return l("property missing ':'");var S=c(the),k=g({type:she,property:Hj(b[0].replace(Pj,Eu)),value:S?Hj(S[0].replace(Pj,Eu)):Eu});return c(ihe),k}}function m(){var g=[];u(g);for(var b;b=p();)b!==!1&&(g.push(b),u(g));return g}return d(),m()};function Hj(i){return i?i.replace(nhe,Eu):Eu}});var Wj=Ze((j7e,jj)=>{var ahe=Uj();function lhe(i,e){var t=null;if(!i||typeof i!="string")return t;for(var n,r=ahe(i),o=typeof e=="function",s,a,l=0,c=r.length;l{});var dK=M(()=>{cK()});var Fme,Bme,R5,O5,ic,c6,d6,u6,h6,f6=M(()=>{Lo();Sl();gl();dK();et();Mn();Vt();Re();pt();Fme=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Bme=function(i,e){return function(t,n){e(t,n,i)}},R5=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},O5=new rt("selectionAnchorSet",!1),ic=class uK{static get(e){return e.getContribution(uK.ID)}constructor(e,t){this.editor=e,this.selectionAnchorSetContextKey=O5.bindTo(t),this.modelChangeListener=e.onDidChangeModel(()=>this.selectionAnchorSetContextKey.reset())}setSelectionAnchor(){if(this.editor.hasModel()){let e=this.editor.getPosition();this.editor.changeDecorations(t=>{this.decorationId&&t.removeDecoration(this.decorationId),this.decorationId=t.addDecoration(We.fromPositions(e,e),{description:"selection-anchor",stickiness:1,hoverMessage:new sn().appendText(v("selectionAnchor","Selection Anchor")),className:"selection-anchor"})}),this.selectionAnchorSetContextKey.set(!!this.decorationId),Ni(v("anchorSet","Anchor set at {0}:{1}",e.lineNumber,e.column))}}goToSelectionAnchor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);e&&this.editor.setPosition(e.getStartPosition())}}selectFromAnchorToCursor(){if(this.editor.hasModel()&&this.decorationId){let e=this.editor.getModel().getDecorationRange(this.decorationId);if(e){let t=this.editor.getPosition();this.editor.setSelection(We.fromPositions(e.getStartPosition(),t)),this.cancelSelectionAnchor()}}}cancelSelectionAnchor(){if(this.decorationId){let e=this.decorationId;this.editor.changeDecorations(t=>{t.removeDecoration(e),this.decorationId=void 0}),this.selectionAnchorSetContextKey.set(!1)}}dispose(){this.cancelSelectionAnchor(),this.modelChangeListener.dispose()}};ic.ID="editor.contrib.selectionAnchorController";ic=Fme([Bme(1,Ke)],ic);c6=class extends se{constructor(){super({id:"editor.action.setSelectionAnchor",label:v("setSelectionAnchor","Set Selection Anchor"),alias:"Set Selection Anchor",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2080),weight:100}})}run(e,t){var n;return R5(this,void 0,void 0,function*(){(n=ic.get(t))===null||n===void 0||n.setSelectionAnchor()})}},d6=class extends se{constructor(){super({id:"editor.action.goToSelectionAnchor",label:v("goToSelectionAnchor","Go to Selection Anchor"),alias:"Go to Selection Anchor",precondition:O5})}run(e,t){var n;return R5(this,void 0,void 0,function*(){(n=ic.get(t))===null||n===void 0||n.goToSelectionAnchor()})}},u6=class extends se{constructor(){super({id:"editor.action.selectFromAnchorToCursor",label:v("selectFromAnchorToCursor","Select from Anchor to Cursor"),alias:"Select from Anchor to Cursor",precondition:O5,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2089),weight:100}})}run(e,t){var n;return R5(this,void 0,void 0,function*(){(n=ic.get(t))===null||n===void 0||n.selectFromAnchorToCursor()})}},h6=class extends se{constructor(){super({id:"editor.action.cancelSelectionAnchor",label:v("cancelSelectionAnchor","Cancel Selection Anchor"),alias:"Cancel Selection Anchor",precondition:O5,kbOpts:{kbExpr:O.editorTextFocus,primary:9,weight:100}})}run(e,t){var n;return R5(this,void 0,void 0,function*(){(n=ic.get(t))===null||n===void 0||n.cancelSelectionAnchor()})}};Ae(ic.ID,ic,4);X(c6);X(d6);X(u6);X(h6)});var hK=M(()=>{});var fK=M(()=>{hK()});var Hme,p6,m6,g6,v6,qa,_6=M(()=>{Dt();Ce();fK();et();ri();qe();Mn();Vt();Kc();qn();Re();Xi();_r();ar();Hme=Oe("editorOverviewRuler.bracketMatchForeground",{dark:"#A0A0A0",light:"#A0A0A0",hcDark:"#A0A0A0",hcLight:"#A0A0A0"},v("overviewRulerBracketMatchForeground","Overview ruler marker color for matching brackets.")),p6=class extends se{constructor(){super({id:"editor.action.jumpToBracket",label:v("smartSelect.jumpBracket","Go to Bracket"),alias:"Go to Bracket",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:3165,weight:100}})}run(e,t){var n;(n=qa.get(t))===null||n===void 0||n.jumpToBracket()}},m6=class extends se{constructor(){super({id:"editor.action.selectToBracket",label:v("smartSelect.selectToBracket","Select to Bracket"),alias:"Select to Bracket",precondition:void 0,description:{description:"Select to Bracket",args:[{name:"args",schema:{type:"object",properties:{selectBrackets:{type:"boolean",default:!0}}}}]}})}run(e,t,n){var r;let o=!0;n&&n.selectBrackets===!1&&(o=!1),(r=qa.get(t))===null||r===void 0||r.selectToBracket(o)}},g6=class extends se{constructor(){super({id:"editor.action.removeBrackets",label:v("smartSelect.removeBrackets","Remove Brackets"),alias:"Remove Brackets",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:2561,weight:100}})}run(e,t){var n;(n=qa.get(t))===null||n===void 0||n.removeBrackets(this.id)}},v6=class{constructor(e,t,n){this.position=e,this.brackets=t,this.options=n}},qa=class i extends oe{static get(e){return e.getContribution(i.ID)}constructor(e){super(),this._editor=e,this._lastBracketsData=[],this._lastVersionId=0,this._decorations=this._editor.createDecorationsCollection(),this._updateBracketsSoon=this._register(new ii(()=>this._updateBrackets(),50)),this._matchBrackets=this._editor.getOption(69),this._updateBracketsSoon.schedule(),this._register(e.onDidChangeCursorPosition(t=>{this._matchBrackets!=="never"&&this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelContent(t=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModel(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeModelLanguageConfiguration(t=>{this._lastBracketsData=[],this._updateBracketsSoon.schedule()})),this._register(e.onDidChangeConfiguration(t=>{t.hasChanged(69)&&(this._matchBrackets=this._editor.getOption(69),this._decorations.clear(),this._lastBracketsData=[],this._lastVersionId=0,this._updateBracketsSoon.schedule())})),this._register(e.onDidBlurEditorWidget(()=>{this._updateBracketsSoon.schedule()})),this._register(e.onDidFocusEditorWidget(()=>{this._updateBracketsSoon.schedule()}))}jumpToBracket(){if(!this._editor.hasModel())return;let e=this._editor.getModel(),t=this._editor.getSelections().map(n=>{let r=n.getStartPosition(),o=e.bracketPairs.matchBracket(r),s=null;if(o)o[0].containsPosition(r)&&!o[1].containsPosition(r)?s=o[1].getStartPosition():o[1].containsPosition(r)&&(s=o[0].getStartPosition());else{let a=e.bracketPairs.findEnclosingBrackets(r);if(a)s=a[1].getStartPosition();else{let l=e.bracketPairs.findNextBracket(r);l&&l.range&&(s=l.range.getStartPosition())}}return s?new We(s.lineNumber,s.column,s.lineNumber,s.column):new We(r.lineNumber,r.column,r.lineNumber,r.column)});this._editor.setSelections(t),this._editor.revealRange(t[0])}selectToBracket(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=[];this._editor.getSelections().forEach(r=>{let o=r.getStartPosition(),s=t.bracketPairs.matchBracket(o);if(!s&&(s=t.bracketPairs.findEnclosingBrackets(o),!s)){let c=t.bracketPairs.findNextBracket(o);c&&c.range&&(s=t.bracketPairs.matchBracket(c.range.getStartPosition()))}let a=null,l=null;if(s){s.sort(P.compareRangesUsingStarts);let[c,d]=s;if(a=e?c.getStartPosition():c.getEndPosition(),l=e?d.getEndPosition():d.getStartPosition(),d.containsPosition(o)){let u=a;a=l,l=u}}a&&l&&n.push(new We(a.lineNumber,a.column,l.lineNumber,l.column))}),n.length>0&&(this._editor.setSelections(n),this._editor.revealRange(n[0]))}removeBrackets(e){if(!this._editor.hasModel())return;let t=this._editor.getModel();this._editor.getSelections().forEach(n=>{let r=n.getPosition(),o=t.bracketPairs.matchBracket(r);o||(o=t.bracketPairs.findEnclosingBrackets(r)),o&&(this._editor.pushUndoStop(),this._editor.executeEdits(e,[{range:o[0],text:""},{range:o[1],text:""}]),this._editor.pushUndoStop())})}_updateBrackets(){if(this._matchBrackets==="never")return;this._recomputeBrackets();let e=[],t=0;for(let n of this._lastBracketsData){let r=n.brackets;r&&(e[t++]={range:r[0],options:n.options},e[t++]={range:r[1],options:n.options})}this._decorations.set(e)}_recomputeBrackets(){if(!this._editor.hasModel()||!this._editor.hasWidgetFocus()){this._lastBracketsData=[],this._lastVersionId=0;return}let e=this._editor.getSelections();if(e.length>100){this._lastBracketsData=[],this._lastVersionId=0;return}let t=this._editor.getModel(),n=t.getVersionId(),r=[];this._lastVersionId===n&&(r=this._lastBracketsData);let o=[],s=0;for(let u=0,h=e.length;u1&&o.sort(Se.compare);let a=[],l=0,c=0,d=r.length;for(let u=0,h=o.length;u{qe();Mn();P5=class{constructor(e,t){this._selection=e,this._isMovingLeft=t}getEditOperations(e,t){if(this._selection.startLineNumber!==this._selection.endLineNumber||this._selection.isEmpty())return;let n=this._selection.startLineNumber,r=this._selection.startColumn,o=this._selection.endColumn;if(!(this._isMovingLeft&&r===1)&&!(!this._isMovingLeft&&o===e.getLineMaxColumn(n)))if(this._isMovingLeft){let s=new P(n,r-1,n,r),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new P(n,o,n,o),a)}else{let s=new P(n,o,n,o+1),a=e.getValueInRange(s);t.addEditOperation(s,null),t.addEditOperation(new P(n,r,n,r),a)}}computeCursorState(e,t){return this._isMovingLeft?new We(this._selection.startLineNumber,this._selection.startColumn-1,this._selection.endLineNumber,this._selection.endColumn-1):new We(this._selection.startLineNumber,this._selection.startColumn+1,this._selection.endLineNumber,this._selection.endColumn+1)}}});var F5,b6,y6,C6=M(()=>{et();Vt();pK();Re();F5=class extends se{constructor(e,t){super(t),this.left=e}run(e,t){if(!t.hasModel())return;let n=[],r=t.getSelections();for(let o of r)n.push(new P5(o,this.left));t.pushUndoStop(),t.executeCommands(this.id,n),t.pushUndoStop()}},b6=class extends F5{constructor(){super(!0,{id:"editor.action.moveCarretLeftAction",label:v("caret.moveLeft","Move Selected Text Left"),alias:"Move Selected Text Left",precondition:O.writable})}},y6=class extends F5{constructor(){super(!1,{id:"editor.action.moveCarretRightAction",label:v("caret.moveRight","Move Selected Text Right"),alias:"Move Selected Text Right",precondition:O.writable})}};X(b6);X(y6)});var S6,w6=M(()=>{et();E_();$re();qe();Vt();Re();S6=class extends se{constructor(){super({id:"editor.action.transposeLetters",label:v("transposeLetters.label","Transpose Letters"),alias:"Transpose Letters",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:306},weight:100}})}run(e,t){if(!t.hasModel())return;let n=t.getModel(),r=[],o=t.getSelections();for(let s of o){if(!s.isEmpty())continue;let a=s.startLineNumber,l=s.startColumn,c=n.getLineMaxColumn(a);if(a===1&&(l===1||l===2&&c===2))continue;let d=l===c?s.getPosition():T_.rightPosition(n,s.getPosition().lineNumber,s.getPosition().column),u=T_.leftPosition(n,d),h=T_.leftPosition(n,u),p=n.getValueInRange(P.fromPositions(h,u)),m=n.getValueInRange(P.fromPositions(u,d)),g=P.fromPositions(h,d);r.push(new _l(g,m+p))}r.length>0&&(t.pushUndoStop(),t.executeCommands(this.id,r),t.pushUndoStop())}};X(S6)});function T6(i){return i.register(),i}function gK(i,e){i&&(i.addImplementation(1e4,"code-editor",(t,n)=>{let r=t.get(ei).getFocusedCodeEditor();if(r&&r.hasTextFocus()){let o=r.getOption(35),s=r.getSelection();return s&&s.isEmpty()&&!o||document.execCommand(e),!0}return!1}),i.addImplementation(0,"generic-dom",(t,n)=>(document.execCommand(e),!0)))}var zme,Du,Ume,mK,jme,Wme,Vme,x6,E6,k6=M(()=>{ew();nr();goe();et();Lr();Vt();Re();Xi();$m();pt();zme=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Du="9_cutcopypaste",Ume=Rc||document.queryCommandSupported("cut"),mK=Rc||document.queryCommandSupported("copy"),jme=typeof navigator.clipboard=="undefined"||iR?document.queryCommandSupported("paste"):!0;Wme=Ume?T6(new w_({id:"editor.action.clipboardCutAction",precondition:void 0,kbOpts:Rc?{primary:2102,win:{primary:2102,secondary:[1044]},weight:100}:void 0,menuOpts:[{menuId:xe.MenubarEditMenu,group:"2_ccp",title:v({key:"miCut",comment:["&& denotes a mnemonic"]},"Cu&&t"),order:1},{menuId:xe.EditorContext,group:Du,title:v("actions.clipboard.cutLabel","Cut"),when:O.writable,order:1},{menuId:xe.CommandPalette,group:"",title:v("actions.clipboard.cutLabel","Cut"),order:1},{menuId:xe.SimpleEditorContext,group:Du,title:v("actions.clipboard.cutLabel","Cut"),when:O.writable,order:1}]})):void 0,Vme=mK?T6(new w_({id:"editor.action.clipboardCopyAction",precondition:void 0,kbOpts:Rc?{primary:2081,win:{primary:2081,secondary:[2067]},weight:100}:void 0,menuOpts:[{menuId:xe.MenubarEditMenu,group:"2_ccp",title:v({key:"miCopy",comment:["&& denotes a mnemonic"]},"&&Copy"),order:2},{menuId:xe.EditorContext,group:Du,title:v("actions.clipboard.copyLabel","Copy"),order:2},{menuId:xe.CommandPalette,group:"",title:v("actions.clipboard.copyLabel","Copy"),order:1},{menuId:xe.SimpleEditorContext,group:Du,title:v("actions.clipboard.copyLabel","Copy"),order:2}]})):void 0;ns.appendMenuItem(xe.MenubarEditMenu,{submenu:xe.MenubarCopy,title:{value:v("copy as","Copy As"),original:"Copy As"},group:"2_ccp",order:3});ns.appendMenuItem(xe.EditorContext,{submenu:xe.EditorContextCopy,title:{value:v("copy as","Copy As"),original:"Copy As"},group:Du,order:3});ns.appendMenuItem(xe.EditorContext,{submenu:xe.EditorContextShare,title:{value:v("share","Share"),original:"Share"},group:"11_share",order:-1,when:ce.and(ce.notEquals("resourceScheme","output"),O.editorTextFocus)});ns.appendMenuItem(xe.EditorTitleContext,{submenu:xe.EditorTitleContextShare,title:{value:v("share","Share"),original:"Share"},group:"11_share",order:-1});ns.appendMenuItem(xe.ExplorerContext,{submenu:xe.ExplorerContextShare,title:{value:v("share","Share"),original:"Share"},group:"11_share",order:-1});x6=jme?T6(new w_({id:"editor.action.clipboardPasteAction",precondition:void 0,kbOpts:Rc?{primary:2100,win:{primary:2100,secondary:[1043]},linux:{primary:2100,secondary:[1043]},weight:100}:void 0,menuOpts:[{menuId:xe.MenubarEditMenu,group:"2_ccp",title:v({key:"miPaste",comment:["&& denotes a mnemonic"]},"&&Paste"),order:4},{menuId:xe.EditorContext,group:Du,title:v("actions.clipboard.pasteLabel","Paste"),when:O.writable,order:4},{menuId:xe.CommandPalette,group:"",title:v("actions.clipboard.pasteLabel","Paste"),order:1},{menuId:xe.SimpleEditorContext,group:Du,title:v("actions.clipboard.pasteLabel","Paste"),when:O.writable,order:4}]})):void 0,E6=class extends se{constructor(){super({id:"editor.action.clipboardCopyWithSyntaxHighlightingAction",label:v("actions.clipboard.copyWithSyntaxHighlightingLabel","Copy With Syntax Highlighting"),alias:"Copy With Syntax Highlighting",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,weight:100}})}run(e,t){!t.hasModel()||!t.getOption(35)&&t.getSelection().isEmpty()||(Aw.forceCopyWithSyntaxHighlighting=!0,t.focus(),document.execCommand("copy"),Aw.forceCopyWithSyntaxHighlighting=!1)}};gK(Wme,"cut");gK(Vme,"copy");x6&&(x6.addImplementation(1e4,"code-editor",(i,e)=>{let t=i.get(ei),n=i.get(Ds),r=t.getFocusedCodeEditor();return r&&r.hasTextFocus()?!document.execCommand("paste")&&f_?(()=>zme(void 0,void 0,void 0,function*(){let s=yield n.readText();if(s!==""){let a=lP.INSTANCE.get(s),l=!1,c=null,d=null;a&&(l=r.getOption(35)&&!!a.isFromEmptySelection,c=typeof a.multicursorText!="undefined"?a.multicursorText:null,d=a.mode),r.trigger("keyboard","paste",{text:s,pasteOnNewLine:l,multicursorText:c,mode:d})}}))():!0:!1}),x6.addImplementation(0,"generic-dom",(i,e)=>(document.execCommand("paste"),!0)));mK&&X(E6)});function vK(i,e){return!(i.include&&!i.include.intersects(e)||i.excludes&&i.excludes.some(t=>bK(e,t,i.include))||!i.includeSourceActions&&Qe.Source.contains(e))}function _K(i,e){let t=e.kind?new Qe(e.kind):void 0;return!(i.include&&(!t||!i.include.contains(t))||i.excludes&&t&&i.excludes.some(n=>bK(t,n,i.include))||!i.includeSourceActions&&t&&Qe.Source.contains(t)||i.onlyIncludePreferredActions&&!e.isPreferred)}function bK(i,e,t){return!(!e.contains(i)||t&&e.contains(t))}var Kme,Qe,Xn,md,B5,gd=M(()=>{At();Kme=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Qe=class i{constructor(e){this.value=e}equals(e){return this.value===e.value}contains(e){return this.equals(e)||this.value===""||e.value.startsWith(this.value+i.sep)}intersects(e){return this.contains(e)||e.contains(this)}append(e){return new i(this.value+i.sep+e)}};Qe.sep=".";Qe.None=new Qe("@@none@@");Qe.Empty=new Qe("");Qe.QuickFix=new Qe("quickfix");Qe.Refactor=new Qe("refactor");Qe.RefactorExtract=Qe.Refactor.append("extract");Qe.RefactorInline=Qe.Refactor.append("inline");Qe.RefactorMove=Qe.Refactor.append("move");Qe.RefactorRewrite=Qe.Refactor.append("rewrite");Qe.Source=new Qe("source");Qe.SourceOrganizeImports=Qe.Source.append("organizeImports");Qe.SourceFixAll=Qe.Source.append("fixAll");Qe.SurroundWith=Qe.Refactor.append("surround");(function(i){i.Refactor="refactor",i.RefactorPreview="refactor preview",i.Lightbulb="lightbulb",i.Default="other (default)",i.SourceAction="source action",i.QuickFix="quick fix action",i.FixAll="fix all",i.OrganizeImports="organize imports",i.AutoFix="auto fix",i.QuickFixHover="quick fix hover window",i.OnSave="save participants",i.ProblemsView="problems view"})(Xn||(Xn={}));md=class i{static fromUser(e,t){return!e||typeof e!="object"?new i(t.kind,t.apply,!1):new i(i.getKindFromUser(e,t.kind),i.getApplyFromUser(e,t.apply),i.getPreferredUser(e))}static getApplyFromUser(e,t){switch(typeof e.apply=="string"?e.apply.toLowerCase():""){case"first":return"first";case"never":return"never";case"ifsingle":return"ifSingle";default:return t}}static getKindFromUser(e,t){return typeof e.kind=="string"?new Qe(e.kind):t}static getPreferredUser(e){return typeof e.preferred=="boolean"?e.preferred:!1}constructor(e,t,n){this.kind=e,this.apply=t,this.preferred=n}},B5=class{constructor(e,t){this.action=e,this.provider=t}resolve(e){var t;return Kme(this,void 0,void 0,function*(){if(!((t=this.provider)===null||t===void 0)&&t.resolveCodeAction&&!this.action.edit){let n;try{n=yield this.provider.resolveCodeAction(this.action,e)}catch(r){Ut(r)}n&&(this.action.edit=n.edit)}return this})}}});function l0(i,e,t,n,r,o){var s;return H5(this,void 0,void 0,function*(){let a=n.filter||{},l={only:(s=a.include)===null||s===void 0?void 0:s.value,trigger:n.type},c=new uP(e,o),d=qme(i,e,a),u=new re,h=d.map(m=>H5(this,void 0,void 0,function*(){try{r.report(m);let g=yield m.provideCodeActions(e,t,l,c.token);if(g&&u.add(g),c.token.isCancellationRequested)return yK;let b=((g==null?void 0:g.actions)||[]).filter(k=>k&&_K(a,k)),S=$me(m,b,a.include);return{actions:b.map(k=>new B5(k,m)),documentation:S}}catch(g){if(Zo(g))throw g;return Ut(g),yK}})),p=i.onDidChange(()=>{let m=i.all(e);ha(m,d)||c.cancel()});try{let m=yield Promise.all(h),g=m.map(S=>S.actions).flat(),b=[...vr(m.map(S=>S.documentation)),...Gme(i,e,n,g)];return new I6(g,b,u)}finally{p.dispose(),c.dispose()}})}function qme(i,e,t){return i.all(e).filter(n=>n.providedCodeActionKinds?n.providedCodeActionKinds.some(r=>vK(t,new Qe(r))):!0)}function*Gme(i,e,t,n){var r,o,s;if(e&&n.length)for(let a of i.all(e))a._getAdditionalMenuItems&&(yield*(r=a._getAdditionalMenuItems)===null||r===void 0?void 0:r.call(a,{trigger:t.type,only:(s=(o=t.filter)===null||o===void 0?void 0:o.include)===null||s===void 0?void 0:s.value},n.map(l=>l.action)))}function $me(i,e,t){if(!i.documentation)return;let n=i.documentation.map(r=>({kind:new Qe(r.kind),command:r.command}));if(t){let r;for(let o of n)o.kind.contains(t)&&(r?r.kind.contains(o.kind)&&(r=o):r=o);if(r)return r==null?void 0:r.command}for(let r of e)if(r.kind){for(let o of n)if(o.kind.contains(new Qe(r.kind)))return o.command}}function CK(i,e,t,n,r=tt.None){var o;return H5(this,void 0,void 0,function*(){let s=i.get(qc),a=i.get(ui),l=i.get(Dr),c=i.get(Ei);if(l.publicLog2("codeAction.applyCodeAction",{codeActionTitle:e.action.title,codeActionKind:e.action.kind,codeActionIsPreferred:!!e.action.isPreferred,reason:t}),yield e.resolve(r),!r.isCancellationRequested&&!(!((o=e.action.edit)===null||o===void 0)&&o.edits.length&&!(yield s.apply(e.action.edit,{editor:n==null?void 0:n.editor,label:e.action.title,quotableLabel:e.action.title,code:"undoredo.codeAction",respectAutoSaveConfig:t!==o0.OnSave,showPreview:n==null?void 0:n.preview})).isApplied)&&e.action.command)try{yield a.executeCommand(e.action.command.id,...e.action.command.arguments||[])}catch(d){let u=Yme(d);c.error(typeof u=="string"?u:v("applyCodeActionFailed","An unknown error occurred while applying the code action"))}})}function Yme(i){return typeof i=="string"?i:i instanceof Error&&typeof i.message=="string"?i.message:void 0}var H5,z5,Gf,U5,j5,W5,s0,a0,I6,yK,o0,Nu=M(()=>{oi();gi();At();Ce();Sn();Qm();qe();Mn();xt();ts();lu();Re();zi();Ro();Gc();Hc();gd();H5=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},z5="editor.action.codeAction",Gf="editor.action.quickFix",U5="editor.action.autoFix",j5="editor.action.refactor",W5="editor.action.sourceAction",s0="editor.action.organizeImports",a0="editor.action.fixAll",I6=class i extends oe{static codeActionsPreferredComparator(e,t){return e.isPreferred&&!t.isPreferred?-1:!e.isPreferred&&t.isPreferred?1:0}static codeActionsComparator({action:e},{action:t}){return ji(e.diagnostics)?ji(t.diagnostics)?i.codeActionsPreferredComparator(e,t):-1:ji(t.diagnostics)?1:i.codeActionsPreferredComparator(e,t)}constructor(e,t,n){super(),this.documentation=t,this._register(n),this.allActions=[...e].sort(i.codeActionsComparator),this.validActions=this.allActions.filter(({action:r})=>!r.disabled)}get hasAutoFix(){return this.validActions.some(({action:e})=>!!e.kind&&Qe.QuickFix.contains(new Qe(e.kind))&&!!e.isPreferred)}},yK={actions:[],documentation:void 0};(function(i){i.OnSave="onSave",i.FromProblemsView="fromProblemsView",i.FromCodeActions="fromCodeActions"})(o0||(o0={}));St.registerCommand("_executeCodeActionProvider",function(i,e,t,n,r){return H5(this,void 0,void 0,function*(){if(!(e instanceof ft))throw Io();let{codeActionProvider:o}=i.get(be),s=i.get(Si).getModel(e);if(!s)throw Io();let a=We.isISelection(t)?We.liftSelection(t):P.isIRange(t)?s.validateRange(t):void 0;if(!a)throw Io();let l=typeof n=="string"?new Qe(n):void 0,c=yield l0(o,s,a,{type:1,triggerAction:Xn.Default,filter:{includeSourceActions:!0,include:l}},wa.None,tt.None),d=[],u=Math.min(c.validActions.length,typeof r=="number"?r:0);for(let h=0;hh.action)}finally{setTimeout(()=>c.dispose(),100)}})})});var Xme,Qme,c0,wK=M(()=>{ow();Nu();gd();Gn();Xme=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Qme=function(i,e){return function(t,n){e(t,n,i)}},c0=class SK{constructor(e){this.keybindingService=e}getResolver(){let e=new Xh(()=>this.keybindingService.getKeybindings().filter(t=>SK.codeActionCommands.indexOf(t.command)>=0).filter(t=>t.resolvedKeybinding).map(t=>{let n=t.commandArgs;return t.command===s0?n={kind:Qe.SourceOrganizeImports.value}:t.command===a0&&(n={kind:Qe.SourceFixAll.value}),Object.assign({resolvedKeybinding:t.resolvedKeybinding},md.fromUser(n,{kind:Qe.None,apply:"never"}))}));return t=>{if(t.kind){let n=this.bestKeybindingForCodeAction(t,e.value);return n==null?void 0:n.resolvedKeybinding}}}bestKeybindingForCodeAction(e,t){if(!e.kind)return;let n=new Qe(e.kind);return t.filter(r=>r.kind.contains(n)).filter(r=>r.preferred?e.isPreferred:!0).reduceRight((r,o)=>r?r.kind.contains(o.kind)?o:r:o,void 0)}};c0.codeActionCommands=[j5,z5,W5,s0,a0];c0=Xme([Qme(0,Ht)],c0)});var xK=M(()=>{});var EK=M(()=>{xK()});var TK=M(()=>{});var kK=M(()=>{TK()});var d0=M(()=>{EK();kK()});var IK=M(()=>{});var AK=M(()=>{IK()});var tLe,iLe,nLe,rLe,oLe,sLe,aLe,lLe,cLe,dLe,uLe,hLe,fLe,pLe,mLe,gLe,vLe,_Le,bLe,yLe,CLe,SLe,wLe,xLe,ELe,TLe,kLe,ILe,ALe,LLe,MLe,DLe,NLe,V5=M(()=>{AK();Re();_r();tLe=Oe("symbolIcon.arrayForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.arrayForeground","The foreground color for array symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),iLe=Oe("symbolIcon.booleanForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.booleanForeground","The foreground color for boolean symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),nLe=Oe("symbolIcon.classForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},v("symbolIcon.classForeground","The foreground color for class symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),rLe=Oe("symbolIcon.colorForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.colorForeground","The foreground color for color symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),oLe=Oe("symbolIcon.constantForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.constantForeground","The foreground color for constant symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),sLe=Oe("symbolIcon.constructorForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},v("symbolIcon.constructorForeground","The foreground color for constructor symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),aLe=Oe("symbolIcon.enumeratorForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},v("symbolIcon.enumeratorForeground","The foreground color for enumerator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),lLe=Oe("symbolIcon.enumeratorMemberForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.enumeratorMemberForeground","The foreground color for enumerator member symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),cLe=Oe("symbolIcon.eventForeground",{dark:"#EE9D28",light:"#D67E00",hcDark:"#EE9D28",hcLight:"#D67E00"},v("symbolIcon.eventForeground","The foreground color for event symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),dLe=Oe("symbolIcon.fieldForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.fieldForeground","The foreground color for field symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),uLe=Oe("symbolIcon.fileForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.fileForeground","The foreground color for file symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),hLe=Oe("symbolIcon.folderForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.folderForeground","The foreground color for folder symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),fLe=Oe("symbolIcon.functionForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},v("symbolIcon.functionForeground","The foreground color for function symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),pLe=Oe("symbolIcon.interfaceForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.interfaceForeground","The foreground color for interface symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),mLe=Oe("symbolIcon.keyForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.keyForeground","The foreground color for key symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),gLe=Oe("symbolIcon.keywordForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.keywordForeground","The foreground color for keyword symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),vLe=Oe("symbolIcon.methodForeground",{dark:"#B180D7",light:"#652D90",hcDark:"#B180D7",hcLight:"#652D90"},v("symbolIcon.methodForeground","The foreground color for method symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),_Le=Oe("symbolIcon.moduleForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.moduleForeground","The foreground color for module symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),bLe=Oe("symbolIcon.namespaceForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.namespaceForeground","The foreground color for namespace symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),yLe=Oe("symbolIcon.nullForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.nullForeground","The foreground color for null symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),CLe=Oe("symbolIcon.numberForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.numberForeground","The foreground color for number symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),SLe=Oe("symbolIcon.objectForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.objectForeground","The foreground color for object symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),wLe=Oe("symbolIcon.operatorForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.operatorForeground","The foreground color for operator symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),xLe=Oe("symbolIcon.packageForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.packageForeground","The foreground color for package symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ELe=Oe("symbolIcon.propertyForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.propertyForeground","The foreground color for property symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),TLe=Oe("symbolIcon.referenceForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.referenceForeground","The foreground color for reference symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),kLe=Oe("symbolIcon.snippetForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.snippetForeground","The foreground color for snippet symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ILe=Oe("symbolIcon.stringForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.stringForeground","The foreground color for string symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),ALe=Oe("symbolIcon.structForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.structForeground","The foreground color for struct symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),LLe=Oe("symbolIcon.textForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.textForeground","The foreground color for text symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),MLe=Oe("symbolIcon.typeParameterForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.typeParameterForeground","The foreground color for type parameter symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),DLe=Oe("symbolIcon.unitForeground",{dark:ke,light:ke,hcDark:ke,hcLight:ke},v("symbolIcon.unitForeground","The foreground color for unit symbols. These symbols appear in the outline, breadcrumb, and suggest widget.")),NLe=Oe("symbolIcon.variableForeground",{dark:"#75BEFF",light:"#007ACC",hcDark:"#75BEFF",hcLight:"#007ACC"},v("symbolIcon.variableForeground","The foreground color for variable symbols. These symbols appear in the outline, breadcrumb, and suggest widget."))});function MK(i,e,t){if(!e)return i.map(o=>({kind:"action",item:o,group:LK,disabled:!!o.action.disabled,label:o.action.disabled||o.action.title}));let n=Jme.map(o=>({group:o,actions:[]}));for(let o of i){let s=o.action.kind?new Qe(o.action.kind):Qe.None;for(let a of n)if(a.group.kind.contains(s)){a.actions.push(o);break}}let r=[];for(let o of n)if(o.actions.length){r.push({kind:"header",group:o.group});for(let s of o.actions)r.push({kind:"action",item:s,group:o.group,label:s.action.title,disabled:!!s.action.disabled,keybinding:t(s.action)})}return r}var LK,Jme,DK=M(()=>{d0();or();gd();V5();Re();LK=Object.freeze({kind:Qe.Empty,title:v("codeAction.widget.id.more","More Actions...")}),Jme=Object.freeze([{kind:Qe.QuickFix,title:v("codeAction.widget.id.quickfix","Quick Fix...")},{kind:Qe.RefactorExtract,title:v("codeAction.widget.id.extract","Extract..."),icon:ct.wrench},{kind:Qe.RefactorInline,title:v("codeAction.widget.id.inline","Inline..."),icon:ct.wrench},{kind:Qe.RefactorRewrite,title:v("codeAction.widget.id.convert","Rewrite..."),icon:ct.wrench},{kind:Qe.RefactorMove,title:v("codeAction.widget.id.move","Move..."),icon:ct.wrench},{kind:Qe.SurroundWith,title:v("codeAction.widget.id.surround","Surround With..."),icon:ct.symbolSnippet},{kind:Qe.Source,title:v("codeAction.widget.id.source","Source Action..."),icon:ct.symbolFile},LK])});var NK=M(()=>{});var RK=M(()=>{NK()});var Zme,e1e,$f,rc,A6=M(()=>{Bt();pP();or();Gt();Ce();Kr();Mi();RK();QO();Nu();Re();Gn();Zme=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},e1e=function(i,e){return function(t,n){e(t,n,i)}};(function(i){i.Hidden={type:0};class e{constructor(n,r,o,s){this.actions=n,this.trigger=r,this.editorPosition=o,this.widgetPosition=s,this.type=1}}i.Showing=e})($f||($f={}));rc=class OK extends oe{constructor(e,t){super(),this._editor=e,this._onClick=this._register(new $e),this.onClick=this._onClick.event,this._state=$f.Hidden,this._domNode=fe("div.lightBulbWidget"),this._register(Z_.ignoreTarget(this._domNode)),this._editor.addContentWidget(this),this._register(this._editor.onDidChangeModelContent(n=>{let r=this._editor.getModel();(this.state.type!==1||!r||this.state.editorPosition.lineNumber>=r.getLineCount())&&this.hide()})),this._register(uR(this._domNode,n=>{if(this.state.type!==1)return;this._editor.focus(),n.preventDefault();let{top:r,height:o}=wn(this._domNode),s=this._editor.getOption(64),a=Math.floor(s/3);this.state.widgetPosition.position!==null&&this.state.widgetPosition.position.lineNumber{(n.buttons&1)===1&&this.hide()})),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(62)&&!this._editor.getOption(62).enabled&&this.hide()})),this._register(li.runAndSubscribe(t.onDidUpdateKeybindings,()=>{var n,r;this._preferredKbLabel=Un((n=t.lookupKeybinding(U5))===null||n===void 0?void 0:n.getLabel()),this._quickFixKbLabel=Un((r=t.lookupKeybinding(Gf))===null||r===void 0?void 0:r.getLabel()),this._updateLightBulbTitleAndIcon()}))}dispose(){super.dispose(),this._editor.removeContentWidget(this)}getId(){return"LightBulbWidget"}getDomNode(){return this._domNode}getPosition(){return this._state.type===1?this._state.widgetPosition:null}update(e,t,n){if(e.validActions.length<=0)return this.hide();let r=this._editor.getOptions();if(!r.get(62).enabled)return this.hide();let o=this._editor.getModel();if(!o)return this.hide();let{lineNumber:s,column:a}=o.validatePosition(n),l=o.getOptions().tabSize,c=r.get(48),d=o.getLineContent(s),u=Km(d,l),h=c.spaceWidth*u>22,p=g=>g>2&&this._editor.getTopForLineNumber(g)===this._editor.getTopForLineNumber(g-1),m=s;if(!h){if(s>1&&!p(s-1))m-=1;else if(!p(s+1))m+=1;else if(a*c.spaceWidth<22)return this.hide()}this.state=new $f.Showing(e,t,n,{position:{lineNumber:m,column:1},preference:OK._posPref}),this._editor.layoutContentWidget(this)}hide(){this.state!==$f.Hidden&&(this.state=$f.Hidden,this._editor.layoutContentWidget(this))}get state(){return this._state}set state(e){this._state=e,this._updateLightBulbTitleAndIcon()}_updateLightBulbTitleAndIcon(){if(this.state.type===1&&this.state.actions.hasAutoFix&&(this._domNode.classList.remove(...gt.asClassNameArray(ct.lightBulb)),this._domNode.classList.add(...gt.asClassNameArray(ct.lightbulbAutofix)),this._preferredKbLabel)){this.title=v("preferredcodeActionWithKb","Show Code Actions. Preferred Quick Fix Available ({0})",this._preferredKbLabel);return}this._domNode.classList.remove(...gt.asClassNameArray(ct.lightbulbAutofix)),this._domNode.classList.add(...gt.asClassNameArray(ct.lightBulb)),this._quickFixKbLabel?this.title=v("codeActionWithKb","Show Code Actions ({0})",this._quickFixKbLabel):this.title=v("codeAction","Show Code Actions")}set title(e){this._domNode.title=e}};rc.ID="editor.contrib.lightbulbWidget";rc._posPref=[0];rc=Zme([e1e(1,Ht)],rc)});var PK=M(()=>{});var FK=M(()=>{PK()});var t1e,i1e,Qn,n1e,K5,u0=M(()=>{Lo();Dt();Ce();FK();et();qe();Re();pt();t1e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},i1e=function(i,e){return function(t,n){e(t,n,i)}},Qn=class L6{static get(e){return e.getContribution(L6.ID)}constructor(e,t){this._messageWidget=new Hi,this._messageListeners=new re,this._editor=e,this._visible=L6.MESSAGE_VISIBLE.bindTo(t)}dispose(){this._messageListeners.dispose(),this._messageWidget.dispose(),this._visible.reset()}showMessage(e,t){Ni(e),this._visible.set(!0),this._messageWidget.clear(),this._messageListeners.clear(),this._messageWidget.value=new K5(this._editor,t,e),this._messageListeners.add(this._editor.onDidBlurEditorText(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeCursorPosition(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidDispose(()=>this.closeMessage())),this._messageListeners.add(this._editor.onDidChangeModel(()=>this.closeMessage())),this._messageListeners.add(new ss(()=>this.closeMessage(),3e3));let n;this._messageListeners.add(this._editor.onMouseMove(r=>{r.target.position&&(n?n.containsPosition(r.target.position)||this.closeMessage():n=new P(t.lineNumber-3,1,r.target.position.lineNumber+3,1))}))}closeMessage(){this._visible.reset(),this._messageListeners.clear(),this._messageWidget.value&&this._messageListeners.add(K5.fadeOut(this._messageWidget.value))}};Qn.ID="editor.contrib.messageController";Qn.MESSAGE_VISIBLE=new rt("messageVisible",!1,v("messageVisible","Whether the editor is currently showing an inline message"));Qn=t1e([i1e(1,Ke)],Qn);n1e=xi.bindToContribution(Qn.get);Ne(new n1e({id:"leaveEditorMessage",precondition:Qn.MESSAGE_VISIBLE,handler:i=>i.closeMessage(),kbOpts:{weight:100+30,primary:9}}));K5=class{static fadeOut(e){let t=()=>{e.dispose(),clearTimeout(n),e.getDomNode().removeEventListener("animationend",t)},n=setTimeout(t,110);return e.getDomNode().addEventListener("animationend",t),e.getDomNode().classList.add("fadeOut"),{dispose:t}}constructor(e,{lineNumber:t,column:n},r){this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._editor=e,this._editor.revealLinesInCenterIfOutsideViewport(t,t,0),this._position={lineNumber:t,column:n},this._domNode=document.createElement("div"),this._domNode.classList.add("monaco-editor-overlaymessage"),this._domNode.style.marginLeft="-6px";let o=document.createElement("div");o.classList.add("anchor","top"),this._domNode.appendChild(o);let s=document.createElement("div");s.classList.add("message"),s.textContent=r,this._domNode.appendChild(s);let a=document.createElement("div");a.classList.add("anchor","below"),this._domNode.appendChild(a),this._editor.addContentWidget(this),this._domNode.classList.add("fadeIn")}dispose(){this._editor.removeContentWidget(this)}getId(){return"messageoverlay"}getDomNode(){return this._domNode}getPosition(){return{position:this._position,preference:[1,2],positionAffinity:1}}afterRender(e){this._domNode.classList.toggle("below",e===2)}};Ae(Qn.ID,Qn,4)});var BK=M(()=>{});var M6=M(()=>{BK()});function zK(i){return i.replace(/\r\n|\r|\n/g," ")}var HK,D6,P6,F6,N6,R6,O6,q5,G5,UK=M(()=>{Bt();xP();SP();or();Ce();nr();Kr();M6();Re();Tl();Gn();rb();_r();HK=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},D6=function(i,e){return function(t,n){e(t,n,i)}},P6="acceptSelectedCodeAction",F6="previewSelectedCodeAction",N6=class{get templateId(){return"header"}renderTemplate(e){e.classList.add("group-header");let t=document.createElement("span");return e.append(t),{container:e,text:t}}renderElement(e,t,n){var r,o;n.text.textContent=(o=(r=e.group)===null||r===void 0?void 0:r.title)!==null&&o!==void 0?o:""}disposeTemplate(e){}},R6=class{get templateId(){return"action"}constructor(e,t){this._supportsPreview=e,this._keybindingService=t}renderTemplate(e){e.classList.add(this.templateId);let t=document.createElement("div");t.className="icon",e.append(t);let n=document.createElement("span");n.className="title",e.append(n);let r=new nb(e,p_);return{container:e,icon:t,text:n,keybinding:r}}renderElement(e,t,n){var r,o,s;if(!((r=e.group)===null||r===void 0)&&r.icon?(n.icon.className=gt.asClassName(e.group.icon),e.group.icon.color&&(n.icon.style.color=ga(e.group.icon.color.id))):(n.icon.className=gt.asClassName(ct.lightBulb),n.icon.style.color="var(--vscode-editorLightBulb-foreground)"),!e.item||!e.label)return;n.text.textContent=zK(e.label),n.keybinding.set(e.keybinding),vR(!!e.keybinding,n.keybinding.element);let a=(o=this._keybindingService.lookupKeybinding(P6))===null||o===void 0?void 0:o.getLabel(),l=(s=this._keybindingService.lookupKeybinding(F6))===null||s===void 0?void 0:s.getLabel();n.container.classList.toggle("option-disabled",e.disabled),e.disabled?n.container.title=e.label:a&&l?this._supportsPreview?n.container.title=v({key:"label-preview",comment:['placeholders are keybindings, e.g "F2 to apply, Shift+F2 to preview"']},"{0} to apply, {1} to preview",a,l):n.container.title=v({key:"label",comment:['placeholder is a keybinding, e.g "F2 to apply"']},"{0} to apply",a):n.container.title=""}disposeTemplate(e){}};R6=HK([D6(1,Ht)],R6);O6=class extends UIEvent{constructor(){super("acceptSelectedAction")}},q5=class extends UIEvent{constructor(){super("previewSelectedAction")}},G5=class extends oe{constructor(e,t,n,r,o,s){super(),this._delegate=r,this._contextViewService=o,this._keybindingService=s,this._actionLineHeight=24,this._headerLineHeight=26,this.domNode=document.createElement("div"),this.domNode.classList.add("actionList");let a={getHeight:l=>l.kind==="header"?this._headerLineHeight:this._actionLineHeight,getTemplateId:l=>l.kind};this._list=this._register(new ib(e,this.domNode,a,[new R6(t,this._keybindingService),new N6],{keyboardSupport:!1,accessibilityProvider:{getAriaLabel:l=>{if(l.kind==="action"){let c=l.label?zK(l==null?void 0:l.label):"";return l.disabled&&(c=v({key:"customQuickFixWidget.labels",comment:["Action widget labels for accessibility."]},"{0}, Disabled Reason: {1}",c,l.disabled)),c}return null},getWidgetAriaLabel:()=>v({key:"customQuickFixWidget",comment:["An action widget option"]},"Action Widget"),getRole:l=>l.kind==="action"?"option":"separator",getWidgetRole:()=>"listbox"}})),this._list.style(TP),this._register(this._list.onMouseClick(l=>this.onListClick(l))),this._register(this._list.onMouseOver(l=>this.onListHover(l))),this._register(this._list.onDidChangeFocus(()=>this._list.domFocus())),this._register(this._list.onDidChangeSelection(l=>this.onListSelection(l))),this._allMenuItems=n,this._list.splice(0,this._list.length,this._allMenuItems),this._list.length&&this.focusNext()}focusCondition(e){return!e.disabled&&e.kind==="action"}hide(e){this._delegate.onHide(e),this._contextViewService.hideContextView()}layout(e){let t=this._allMenuItems.filter(c=>c.kind==="header").length,r=this._allMenuItems.length*this._actionLineHeight+t*this._headerLineHeight-t*this._actionLineHeight;this._list.layout(r);let o=this._allMenuItems.map((c,d)=>{let u=document.getElementById(this._list.getElementID(d));if(u){u.style.width="auto";let h=u.getBoundingClientRect().width;return u.style.width="",h}return 0}),s=Math.max(...o,e),a=.7,l=Math.min(r,document.body.clientHeight*a);return this._list.layout(l,s),this.domNode.style.height=`${l}px`,this._list.domFocus(),s}focusPrevious(){this._list.focusPrevious(1,!0,void 0,this.focusCondition)}focusNext(){this._list.focusNext(1,!0,void 0,this.focusCondition)}acceptSelected(e){let t=this._list.getFocus();if(t.length===0)return;let n=t[0],r=this._list.element(n);if(!this.focusCondition(r))return;let o=e?new q5:new O6;this._list.setSelection([n],o)}onListSelection(e){if(!e.elements.length)return;let t=e.elements[0];t.item&&this.focusCondition(t)?this._delegate.onSelect(t.item,e.browserEvent instanceof q5):this._list.setSelection([])}onListHover(e){this._list.setFocus(typeof e.index=="number"?[e.index]:[])}onListClick(e){e.element&&this.focusCondition(e.element)&&this._list.setFocus([])}};G5=HK([D6(4,$c),D6(5,Ht)],G5)});var r1e,B6,Ru,vd,Ou,h0,jK=M(()=>{Bt();gf();Ce();M6();Re();UK();Xi();pt();Tl();bl();Et();r1e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},B6=function(i,e){return function(t,n){e(t,n,i)}},Ru={Visible:new rt("codeActionMenuVisible",!1,v("codeActionMenuVisible","Whether the action widget list is visible"))},vd=rr("actionWidgetService"),Ou=class extends oe{get isVisible(){return Ru.Visible.getValue(this._contextKeyService)||!1}constructor(e,t,n){super(),this._contextViewService=e,this._contextKeyService=t,this._instantiationService=n,this._list=this._register(new Hi)}show(e,t,n,r,o,s,a){let l=Ru.Visible.bindTo(this._contextKeyService),c=this._instantiationService.createInstance(G5,e,t,n,r);this._contextViewService.showContextView({getAnchor:()=>o,render:d=>(l.set(!0),this._renderWidget(d,c,a!=null?a:[])),onHide:d=>{l.reset(),this._onWidgetClosed(d)}},s,!1)}acceptSelected(e){var t;(t=this._list.value)===null||t===void 0||t.acceptSelected(e)}focusPrevious(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusPrevious()}focusNext(){var e,t;(t=(e=this._list)===null||e===void 0?void 0:e.value)===null||t===void 0||t.focusNext()}hide(){var e;(e=this._list.value)===null||e===void 0||e.hide(),this._list.clear()}_renderWidget(e,t,n){var r;let o=document.createElement("div");if(o.classList.add("action-widget"),e.appendChild(o),this._list.value=t,this._list.value)o.appendChild(this._list.value.domNode);else throw new Error("List has no value");let s=new re,a=document.createElement("div"),l=e.appendChild(a);l.classList.add("context-view-block"),s.add(Rt(l,on.MOUSE_DOWN,m=>m.stopPropagation()));let c=document.createElement("div"),d=e.appendChild(c);d.classList.add("context-view-pointerBlock"),s.add(Rt(d,on.POINTER_MOVE,()=>d.remove())),s.add(Rt(d,on.MOUSE_DOWN,()=>d.remove()));let u=0;if(n.length){let m=this._createActionBar(".action-widget-action-bar",n);m&&(o.appendChild(m.getContainer().parentElement),s.add(m),u=m.getContainer().offsetWidth)}let h=(r=this._list.value)===null||r===void 0?void 0:r.layout(u);o.style.width=`${h}px`;let p=s.add(ks(e));return s.add(p.onDidBlur(()=>this.hide())),s}_createActionBar(e,t){if(!t.length)return;let n=fe(e),r=new Oo(n);return r.push(t,{icon:!1,label:!0}),r}_onWidgetClosed(e){var t;(t=this._list.value)===null||t===void 0||t.hide(e)}};Ou=r1e([B6(0,$c),B6(1,Ke),B6(2,Be)],Ou);sr(vd,Ou,1);h0=100+1e3;mi(class extends rs{constructor(){super({id:"hideCodeActionWidget",title:{value:v("hideCodeActionWidget.title","Hide action widget"),original:"Hide action widget"},precondition:Ru.Visible,keybinding:{weight:h0,primary:9,secondary:[1033]}})}run(i){i.get(vd).hide()}});mi(class extends rs{constructor(){super({id:"selectPrevCodeAction",title:{value:v("selectPrevCodeAction.title","Select previous action"),original:"Select previous action"},precondition:Ru.Visible,keybinding:{weight:h0,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}})}run(i){let e=i.get(vd);e instanceof Ou&&e.focusPrevious()}});mi(class extends rs{constructor(){super({id:"selectNextCodeAction",title:{value:v("selectNextCodeAction.title","Select next action"),original:"Select next action"},precondition:Ru.Visible,keybinding:{weight:h0,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}})}run(i){let e=i.get(vd);e instanceof Ou&&e.focusNext()}});mi(class extends rs{constructor(){super({id:P6,title:{value:v("acceptSelected.title","Accept selected action"),original:"Accept selected action"},precondition:Ru.Visible,keybinding:{weight:h0,primary:3,secondary:[2137]}})}run(i){let e=i.get(vd);e instanceof Ou&&e.acceptSelected()}});mi(class extends rs{constructor(){super({id:F6,title:{value:v("previewSelected.title","Preview selected action"),original:"Preview selected action"},precondition:Ru.Visible,keybinding:{weight:h0,primary:2051}})}run(i){let e=i.get(vd);e instanceof Ou&&e.acceptSelected(!0)}})});var H6,o1e,Yf,U6,z6,Pu,s1e,$5,j6=M(()=>{Dt();At();Gt();Ce();ao();pt();Gc();gd();Nu();H6=function(i,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?i!==e||!n:!e.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(i):n?n.value:e.get(i)},o1e=function(i,e,t,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?i!==e||!r:!e.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(i,t):r?r.value=t:e.set(i,t),t},U6=new rt("supportedCodeAction",""),z6=class extends oe{constructor(e,t,n,r=250){super(),this._editor=e,this._markerService=t,this._signalChange=n,this._delay=r,this._autoTriggerTimer=this._register(new ss),this._register(this._markerService.onMarkerChanged(o=>this._onMarkerChanges(o))),this._register(this._editor.onDidChangeCursorPosition(()=>this._tryAutoTrigger()))}trigger(e){let t=this._getRangeOfSelectionUnlessWhitespaceEnclosed(e);this._signalChange(t?{trigger:e,selection:t}:void 0)}_onMarkerChanges(e){let t=this._editor.getModel();t&&e.some(n=>nf(n,t.uri))&&this._tryAutoTrigger()}_tryAutoTrigger(){this._autoTriggerTimer.cancelAndSet(()=>{this.trigger({type:2,triggerAction:Xn.Default})},this._delay)}_getRangeOfSelectionUnlessWhitespaceEnclosed(e){if(!this._editor.hasModel())return;let t=this._editor.getModel(),n=this._editor.getSelection();if(n.isEmpty()&&e.type===2){let{lineNumber:r,column:o}=n.getPosition(),s=t.getLineContent(r);if(s.length===0)return;if(o===1){if(/\s/.test(s[0]))return}else if(o===t.getLineMaxColumn(r)){if(/\s/.test(s[s.length-1]))return}else if(/\s/.test(s[o-2])&&/\s/.test(s[o-1]))return}return n}};(function(i){i.Empty={type:0};class e{constructor(n,r,o){this.trigger=n,this.position=r,this._cancellablePromise=o,this.type=1,this.actions=o.catch(s=>{if(Zo(s))return s1e;throw s})}cancel(){this._cancellablePromise.cancel()}}i.Triggered=e})(Pu||(Pu={}));s1e=Object.freeze({allActions:[],validActions:[],dispose:()=>{},documentation:[],hasAutoFix:!1}),$5=class extends oe{constructor(e,t,n,r,o){super(),this._editor=e,this._registry=t,this._markerService=n,this._progressService=o,this._codeActionOracle=this._register(new Hi),this._state=Pu.Empty,this._onDidChangeState=this._register(new $e),this.onDidChangeState=this._onDidChangeState.event,Yf.set(this,!1),this._supportedCodeActions=U6.bindTo(r),this._register(this._editor.onDidChangeModel(()=>this._update())),this._register(this._editor.onDidChangeModelLanguage(()=>this._update())),this._register(this._registry.onDidChange(()=>this._update())),this._update()}dispose(){H6(this,Yf,"f")||(o1e(this,Yf,!0,"f"),super.dispose(),this.setState(Pu.Empty,!0))}_update(){if(H6(this,Yf,"f"))return;this._codeActionOracle.value=void 0,this.setState(Pu.Empty);let e=this._editor.getModel();if(e&&this._registry.has(e)&&!this._editor.getOption(88)){let t=this._registry.all(e).flatMap(n=>{var r;return(r=n.providedCodeActionKinds)!==null&&r!==void 0?r:[]});this._supportedCodeActions.set(t.join(" ")),this._codeActionOracle.value=new z6(this._editor,this._markerService,n=>{var r;if(!n){this.setState(Pu.Empty);return}let o=Kt(s=>l0(this._registry,e,n.selection,n.trigger,wa.None,s));n.trigger.type===1&&((r=this._progressService)===null||r===void 0||r.showWhile(o,250)),this.setState(new Pu.Triggered(n.trigger,n.selection.getStartPosition(),o))},void 0),this._codeActionOracle.value.trigger({type:2,triggerAction:Xn.Default})}else this._supportedCodeActions.reset()}trigger(e){var t;(t=this._codeActionOracle.value)===null||t===void 0||t.trigger(e)}setState(e,t){e!==this._state&&(this._state.type===1&&this._state.cancel(),this._state=e,!t&&!H6(this,Yf,"f")&&this._onDidChangeState.fire(e))}};Yf=new WeakMap});var a1e,oc,Y5,l1e,c1e,X5,Ga,Q5=M(()=>{Bt();At();ow();Ce();ri();xt();Nu();wK();DK();A6();u0();Re();jK();zi();Wn();pt();Et();ob();Gc();gd();j6();a1e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},oc=function(i,e){return function(t,n){e(t,n,i)}},Y5=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},l1e=function(i,e,t,n,r){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?i!==e||!r:!e.has(i))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?r.call(i,t):r?r.value=t:e.set(i,t),t},c1e=function(i,e,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?i!==e||!n:!e.has(i))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(i):n?n.value:e.get(i)},Ga=class WK extends oe{static get(e){return e.getContribution(WK.ID)}constructor(e,t,n,r,o,s,a,l,c,d){super(),this._commandService=a,this._configurationService=l,this._actionWidgetService=c,this._instantiationService=d,this._activeCodeActions=this._register(new Hi),this._showDisabled=!1,X5.set(this,!1),this._editor=e,this._model=this._register(new $5(this._editor,o.codeActionProvider,t,n,s)),this._register(this._model.onDidChangeState(u=>this.update(u))),this._lightBulbWidget=new Xh(()=>{let u=this._editor.getContribution(rc.ID);return u&&this._register(u.onClick(h=>this.showCodeActionList(h.actions,h,{includeDisabledActions:!1,fromLightbulb:!0}))),u}),this._resolver=r.createInstance(c0),this._register(this._editor.onDidLayoutChange(()=>this._actionWidgetService.hide()))}dispose(){l1e(this,X5,!0,"f"),super.dispose()}showCodeActions(e,t,n){return this.showCodeActionList(t,n,{includeDisabledActions:!1,fromLightbulb:!1})}manualTriggerAtCurrentPosition(e,t,n,r){var o;if(!this._editor.hasModel())return;(o=Qn.get(this._editor))===null||o===void 0||o.closeMessage();let s=this._editor.getPosition();this._trigger({type:1,triggerAction:t,filter:n,autoApply:r,context:{notAvailableMessage:e,position:s}})}_trigger(e){return this._model.trigger(e)}_applyCodeAction(e,t,n){return Y5(this,void 0,void 0,function*(){try{yield this._instantiationService.invokeFunction(CK,e,o0.FromCodeActions,{preview:n,editor:this._editor})}finally{t&&this._trigger({type:2,triggerAction:Xn.QuickFix,filter:{}})}})}update(e){var t,n,r,o,s,a,l;return Y5(this,void 0,void 0,function*(){if(e.type!==1){(t=this._lightBulbWidget.rawValue)===null||t===void 0||t.hide();return}let c;try{c=yield e.actions}catch(d){lt(d);return}if(!c1e(this,X5,"f"))if((n=this._lightBulbWidget.value)===null||n===void 0||n.update(c,e.trigger,e.position),e.trigger.type===1){if(!((r=e.trigger.filter)===null||r===void 0)&&r.include){let u=this.tryGetValidActionToApply(e.trigger,c);if(u){try{(o=this._lightBulbWidget.value)===null||o===void 0||o.hide(),yield this._applyCodeAction(u,!1,!1)}finally{c.dispose()}return}if(e.trigger.context){let h=this.getInvalidActionThatWouldHaveBeenApplied(e.trigger,c);if(h&&h.action.disabled){(s=Qn.get(this._editor))===null||s===void 0||s.showMessage(h.action.disabled,e.trigger.context.position),c.dispose();return}}}let d=!!(!((a=e.trigger.filter)===null||a===void 0)&&a.include);if(e.trigger.context&&(!c.allActions.length||!d&&!c.validActions.length)){(l=Qn.get(this._editor))===null||l===void 0||l.showMessage(e.trigger.context.notAvailableMessage,e.trigger.context.position),this._activeCodeActions.value=c,c.dispose();return}this._activeCodeActions.value=c,this.showCodeActionList(c,this.toCoords(e.position),{includeDisabledActions:d,fromLightbulb:!1})}else this._actionWidgetService.isVisible?c.dispose():this._activeCodeActions.value=c})}getInvalidActionThatWouldHaveBeenApplied(e,t){if(t.allActions.length&&(e.autoApply==="first"&&t.validActions.length===0||e.autoApply==="ifSingle"&&t.allActions.length===1))return t.allActions.find(({action:n})=>n.disabled)}tryGetValidActionToApply(e,t){if(t.validActions.length&&(e.autoApply==="first"&&t.validActions.length>0||e.autoApply==="ifSingle"&&t.validActions.length===1))return t.validActions[0]}showCodeActionList(e,t,n){return Y5(this,void 0,void 0,function*(){let r=this._editor.getDomNode();if(!r)return;let o=n.includeDisabledActions&&(this._showDisabled||e.validActions.length===0)?e.allActions:e.validActions;if(!o.length)return;let s=Se.isIPosition(t)?this.toCoords(t):t,a={onSelect:(l,c)=>Y5(this,void 0,void 0,function*(){this._applyCodeAction(l,!0,!!c),this._actionWidgetService.hide()}),onHide:()=>{var l;(l=this._editor)===null||l===void 0||l.focus()}};this._actionWidgetService.show("codeActionWidget",!0,MK(o,this._shouldShowHeaders(),this._resolver.getResolver()),a,s,r,this._getActionBarActions(e,t,n))})}toCoords(e){if(!this._editor.hasModel())return{x:0,y:0};this._editor.revealPosition(e,1),this._editor.render();let t=this._editor.getScrolledVisiblePosition(e),n=wn(this._editor.getDomNode()),r=n.left+t.left,o=n.top+t.top+t.height;return{x:r,y:o}}_shouldShowHeaders(){var e;let t=(e=this._editor)===null||e===void 0?void 0:e.getModel();return this._configurationService.getValue("editor.codeActionWidget.showHeaders",{resource:t==null?void 0:t.uri})}_getActionBarActions(e,t,n){if(n.fromLightbulb)return[];let r=e.documentation.map(o=>{var s;return{id:o.id,label:o.title,tooltip:(s=o.tooltip)!==null&&s!==void 0?s:"",class:void 0,enabled:!0,run:()=>{var a;return this._commandService.executeCommand(o.id,...(a=o.arguments)!==null&&a!==void 0?a:[])}}});return n.includeDisabledActions&&e.validActions.length>0&&e.allActions.length!==e.validActions.length&&r.push(this._showDisabled?{id:"hideMoreActions",label:v("hideMoreActions","Hide Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!1,this.showCodeActionList(e,t,n))}:{id:"showMoreActions",label:v("showMoreActions","Show Disabled"),enabled:!0,tooltip:"",class:void 0,run:()=>(this._showDisabled=!0,this.showCodeActionList(e,t,n))}),r}};X5=new WeakMap;Ga.ID="editor.contrib.codeActionController";Ga=a1e([oc(1,e1),oc(2,Ke),oc(3,Be),oc(4,be),oc(5,El),oc(6,ui),oc(7,Mt),oc(8,vd),oc(9,Be)],Ga)});function f0(i){return ce.regex(U6.keys()[0],new RegExp("(\\s|^)"+vl(i.value)+"\\b"))}function Fu(i,e,t,n,r=Xn.Default){if(i.hasModel()){let o=Ga.get(i);o==null||o.manualTriggerAtCurrentPosition(e,r,t,n)}}var W6,J5,Z5,ey,ty,iy,ny,ry,VK=M(()=>{wi();et();Vt();Nu();Re();pt();gd();Q5();j6();W6={type:"object",defaultSnippets:[{body:{kind:""}}],properties:{kind:{type:"string",description:v("args.schema.kind","Kind of the code action to run.")},apply:{type:"string",description:v("args.schema.apply","Controls when the returned actions are applied."),default:"ifSingle",enum:["first","ifSingle","never"],enumDescriptions:[v("args.schema.apply.first","Always apply the first returned code action."),v("args.schema.apply.ifSingle","Apply the first returned code action if it is the only one."),v("args.schema.apply.never","Do not apply the returned code actions.")]},preferred:{type:"boolean",default:!1,description:v("args.schema.preferred","Controls if only preferred code actions should be returned.")}}};J5=class extends se{constructor(){super({id:Gf,label:v("quickfix.trigger.label","Quick Fix..."),alias:"Quick Fix...",precondition:ce.and(O.writable,O.hasCodeActionsProvider),kbOpts:{kbExpr:O.textInputFocus,primary:2137,weight:100}})}run(e,t){return Fu(t,v("editor.action.quickFix.noneMessage","No code actions available"),void 0,void 0,Xn.QuickFix)}},Z5=class extends xi{constructor(){super({id:z5,precondition:ce.and(O.writable,O.hasCodeActionsProvider),description:{description:"Trigger a code action",args:[{name:"args",schema:W6}]}})}runEditorCommand(e,t,n){let r=md.fromUser(n,{kind:Qe.Empty,apply:"ifSingle"});return Fu(t,typeof(n==null?void 0:n.kind)=="string"?r.preferred?v("editor.action.codeAction.noneMessage.preferred.kind","No preferred code actions for '{0}' available",n.kind):v("editor.action.codeAction.noneMessage.kind","No code actions for '{0}' available",n.kind):r.preferred?v("editor.action.codeAction.noneMessage.preferred","No preferred code actions available"):v("editor.action.codeAction.noneMessage","No code actions available"),{include:r.kind,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply)}},ey=class extends se{constructor(){super({id:j5,label:v("refactor.label","Refactor..."),alias:"Refactor...",precondition:ce.and(O.writable,O.hasCodeActionsProvider),kbOpts:{kbExpr:O.textInputFocus,primary:3120,mac:{primary:1328},weight:100},contextMenuOpts:{group:"1_modification",order:2,when:ce.and(O.writable,f0(Qe.Refactor))},description:{description:"Refactor...",args:[{name:"args",schema:W6}]}})}run(e,t,n){let r=md.fromUser(n,{kind:Qe.Refactor,apply:"never"});return Fu(t,typeof(n==null?void 0:n.kind)=="string"?r.preferred?v("editor.action.refactor.noneMessage.preferred.kind","No preferred refactorings for '{0}' available",n.kind):v("editor.action.refactor.noneMessage.kind","No refactorings for '{0}' available",n.kind):r.preferred?v("editor.action.refactor.noneMessage.preferred","No preferred refactorings available"):v("editor.action.refactor.noneMessage","No refactorings available"),{include:Qe.Refactor.contains(r.kind)?r.kind:Qe.None,onlyIncludePreferredActions:r.preferred},r.apply,Xn.Refactor)}},ty=class extends se{constructor(){super({id:W5,label:v("source.label","Source Action..."),alias:"Source Action...",precondition:ce.and(O.writable,O.hasCodeActionsProvider),contextMenuOpts:{group:"1_modification",order:2.1,when:ce.and(O.writable,f0(Qe.Source))},description:{description:"Source Action...",args:[{name:"args",schema:W6}]}})}run(e,t,n){let r=md.fromUser(n,{kind:Qe.Source,apply:"never"});return Fu(t,typeof(n==null?void 0:n.kind)=="string"?r.preferred?v("editor.action.source.noneMessage.preferred.kind","No preferred source actions for '{0}' available",n.kind):v("editor.action.source.noneMessage.kind","No source actions for '{0}' available",n.kind):r.preferred?v("editor.action.source.noneMessage.preferred","No preferred source actions available"):v("editor.action.source.noneMessage","No source actions available"),{include:Qe.Source.contains(r.kind)?r.kind:Qe.None,includeSourceActions:!0,onlyIncludePreferredActions:r.preferred},r.apply,Xn.SourceAction)}},iy=class extends se{constructor(){super({id:s0,label:v("organizeImports.label","Organize Imports"),alias:"Organize Imports",precondition:ce.and(O.writable,f0(Qe.SourceOrganizeImports)),kbOpts:{kbExpr:O.textInputFocus,primary:1581,weight:100}})}run(e,t){return Fu(t,v("editor.action.organize.noneMessage","No organize imports action available"),{include:Qe.SourceOrganizeImports,includeSourceActions:!0},"ifSingle",Xn.OrganizeImports)}},ny=class extends se{constructor(){super({id:a0,label:v("fixAll.label","Fix All"),alias:"Fix All",precondition:ce.and(O.writable,f0(Qe.SourceFixAll))})}run(e,t){return Fu(t,v("fixAll.noneMessage","No fix all action available"),{include:Qe.SourceFixAll,includeSourceActions:!0},"ifSingle",Xn.FixAll)}},ry=class extends se{constructor(){super({id:U5,label:v("autoFix.label","Auto Fix..."),alias:"Auto Fix...",precondition:ce.and(O.writable,f0(Qe.QuickFix)),kbOpts:{kbExpr:O.textInputFocus,primary:1625,mac:{primary:2649},weight:100}})}run(e,t){return Fu(t,v("editor.action.autoFix.noneMessage","No auto fixes available"),{include:Qe.QuickFix,onlyIncludePreferredActions:!0},"ifSingle",Xn.AutoFix)}}});var V6=M(()=>{et();voe();VK();Q5();A6();Re();YR();Bc();Ae(Ga.ID,Ga,3);Ae(rc.ID,rc,4);X(J5);X(ey);X(ty);X(iy);X(ry);X(ny);Ne(new Z5);Mr.as(L_.Configuration).registerConfiguration(Object.assign(Object.assign({},dP),{properties:{"editor.codeActionWidget.showHeaders":{type:"boolean",scope:5,description:v("showCodeActionHeaders","Enable/disable showing group headers in the Code Action menu."),default:!0}}}))});function K6(i,e,t){return KK(this,void 0,void 0,function*(){let n=i.ordered(e),r=new Map,o=new Xf,s=n.map((a,l)=>KK(this,void 0,void 0,function*(){r.set(a,l);try{let c=yield Promise.resolve(a.provideCodeLenses(e,t));c&&o.add(c,a)}catch(c){Ut(c)}}));return yield Promise.all(s),o.lenses=o.lenses.sort((a,l)=>a.symbol.range.startLineNumberl.symbol.range.startLineNumber?1:r.get(a.provider)r.get(l.provider)?1:a.symbol.range.startColumnl.symbol.range.startColumn?1:0),o})}var KK,Xf,q6=M(()=>{gi();At();Ce();Mi();Sn();ts();zi();xt();KK=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Xf=class{constructor(){this.lenses=[],this._disposables=new re}dispose(){this._disposables.dispose()}get isDisposed(){return this._disposables.isDisposed}add(e,t){this._disposables.add(e);for(let n of e.lenses)this.lenses.push({symbol:n,provider:t})}};St.registerCommand("_executeCodeLensProvider",function(i,...e){let[t,n]=e;Lt(ft.isUri(t)),Lt(typeof n=="number"||!n);let{codeLensProvider:r}=i.get(be),o=i.get(Si).getModel(t);if(!o)throw Io();let s=[],a=new re;return K6(r,o,tt.None).then(l=>{a.add(l);let c=[];for(let d of l.lenses)n==null||d.symbol.command?s.push(d.symbol):n-- >0&&d.provider.resolveCodeLens&&c.push(Promise.resolve(d.provider.resolveCodeLens(o,d.symbol,tt.None)).then(u=>s.push(u||d.symbol)));return Promise.all(c)}).then(()=>s).finally(()=>{setTimeout(()=>a.dispose(),100)})})});var d1e,u1e,$6,oy,G6,qK=M(()=>{Dt();$N();tf();qe();q6();bl();Et();cu();d1e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},u1e=function(i,e){return function(t,n){e(t,n,i)}},$6=rr("ICodeLensCache"),oy=class{constructor(e,t){this.lineCount=e,this.data=t}},G6=class{constructor(e){this._fakeProvider=new class{provideCodeLenses(){throw new Error("not supported")}},this._cache=new fa(20,.75);let t="codelens/cache";hO(()=>e.remove(t,1));let n="codelens/cache2",r=e.get(n,1,"{}");this._deserialize(r),d_(e.onWillSaveState)(o=>{o.reason===ab.SHUTDOWN&&e.store(n,this._serialize(),1,1)})}put(e,t){let n=t.lenses.map(s=>{var a;return{range:s.symbol.range,command:s.symbol.command&&{id:"",title:(a=s.symbol.command)===null||a===void 0?void 0:a.title}}}),r=new Xf;r.add({lenses:n,dispose:()=>{}},this._fakeProvider);let o=new oy(e.getLineCount(),r);this._cache.set(e.uri.toString(),o)}get(e){let t=this._cache.get(e.uri.toString());return t&&t.lineCount===e.getLineCount()?t.data:void 0}delete(e){this._cache.delete(e.uri.toString())}_serialize(){let e=Object.create(null);for(let[t,n]of this._cache){let r=new Set;for(let o of n.data.lenses)r.add(o.symbol.range.startLineNumber);e[t]={lineCount:n.lineCount,lines:[...r.values()]}}return JSON.stringify(e)}_deserialize(e){try{let t=JSON.parse(e);for(let n in t){let r=t[n],o=[];for(let a of r.lines)o.push({range:new P(a,1,a,11)});let s=new Xf;s.add({lenses:o,dispose(){}},this._fakeProvider),this._cache.set(n,new oy(r.lineCount,s))}}catch(t){}}};G6=d1e([u1e(0,$r)],G6);sr($6,G6,1)});var GK=M(()=>{});var $K=M(()=>{GK()});var Y6,sy,Qf,YK,p0,XK=M(()=>{Bt();yoe();$K();qe();qn();Y6=class{constructor(e,t,n){this.afterColumn=1073741824,this.afterLineNumber=e,this.heightInPx=t,this._onHeight=n,this.suppressMouseDown=!0,this.domNode=document.createElement("div")}onComputedHeight(e){this._lastHeight===void 0?this._lastHeight=e:this._lastHeight!==e&&(this._lastHeight=e,this._onHeight())}isVisible(){return this._lastHeight!==0&&this.domNode.hasAttribute("monaco-visible-view-zone")}},sy=class i{constructor(e,t){this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this._commands=new Map,this._isEmpty=!0,this._editor=e,this._id=`codelens.widget-${i._idPool++}`,this.updatePosition(t),this._domNode=document.createElement("span"),this._domNode.className="codelens-decoration"}withCommands(e,t){this._commands.clear();let n=[],r=!1;for(let o=0;o{c.symbol.command&&l.push(c.symbol),n.addDecoration({range:c.symbol.range,options:YK},u=>this._decorationIds[d]=u),a?a=P.plusRange(a,c.symbol.range):a=P.lift(c.symbol.range)}),this._viewZone=new Y6(a.startLineNumber-1,o,s),this._viewZoneId=r.addZone(this._viewZone),l.length>0&&(this._createContentWidgetIfNecessary(),this._contentWidget.withCommands(l,!1))}_createContentWidgetIfNecessary(){this._contentWidget?this._editor.layoutContentWidget(this._contentWidget):(this._contentWidget=new sy(this._editor,this._viewZone.afterLineNumber+1),this._editor.addContentWidget(this._contentWidget))}dispose(e,t){this._decorationIds.forEach(e.removeDecoration,e),this._decorationIds=[],t==null||t.removeZone(this._viewZoneId),this._contentWidget&&(this._editor.removeContentWidget(this._contentWidget),this._contentWidget=void 0),this._isDisposed=!0}isDisposed(){return this._isDisposed}isValid(){return this._decorationIds.some((e,t)=>{let n=this._editor.getModel().getDecorationRange(e),r=this._data[t].symbol;return!!(n&&P.isEmpty(r.range)===n.isEmpty())})}updateCodeLensSymbols(e,t){this._decorationIds.forEach(t.removeDecoration,t),this._decorationIds=[],this._data=e,this._data.forEach((n,r)=>{t.addDecoration({range:n.symbol.range,options:YK},o=>this._decorationIds[r]=o)})}updateHeight(e,t){this._viewZone.heightInPx=e,t.layoutZone(this._viewZoneId),this._contentWidget&&this._editor.layoutContentWidget(this._contentWidget)}computeIfNecessary(e){if(!this._viewZone.isVisible())return null;for(let t=0;t{Dt();At();Ce();sb();et();Xm();Vt();q6();qK();XK();Re();zi();Ro();kl();Rs();xt();h1e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},m0=function(i,e){return function(t,n){e(t,n,i)}},f1e=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Jf=class{constructor(e,t,n,r,o,s){this._editor=e,this._languageFeaturesService=t,this._commandService=r,this._notificationService=o,this._codeLensCache=s,this._disposables=new re,this._localToDispose=new re,this._lenses=[],this._oldCodeLensModels=new re,this._provideCodeLensDebounce=n.for(t.codeLensProvider,"CodeLensProvide",{min:250}),this._resolveCodeLensesDebounce=n.for(t.codeLensProvider,"CodeLensResolve",{min:250,salt:"resolve"}),this._resolveCodeLensesScheduler=new ii(()=>this._resolveCodeLensesInViewport(),this._resolveCodeLensesDebounce.default()),this._disposables.add(this._editor.onDidChangeModel(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>this._onModelChange())),this._disposables.add(this._editor.onDidChangeConfiguration(a=>{(a.hasChanged(48)||a.hasChanged(17)||a.hasChanged(16))&&this._updateLensStyle(),a.hasChanged(15)&&this._onModelChange()})),this._disposables.add(t.codeLensProvider.onDidChange(this._onModelChange,this)),this._onModelChange(),this._updateLensStyle()}dispose(){var e;this._localDispose(),this._disposables.dispose(),this._oldCodeLensModels.dispose(),(e=this._currentCodeLensModel)===null||e===void 0||e.dispose()}_getLayoutInfo(){let e=Math.max(1.3,this._editor.getOption(64)/this._editor.getOption(50)),t=this._editor.getOption(17);return(!t||t<5)&&(t=this._editor.getOption(50)*.9|0),{fontSize:t,codeLensHeight:t*e|0}}_updateLensStyle(){let{codeLensHeight:e,fontSize:t}=this._getLayoutInfo(),n=this._editor.getOption(16),r=this._editor.getOption(48),{style:o}=this._editor.getContainerDomNode();o.setProperty("--vscode-editorCodeLens-lineHeight",`${e}px`),o.setProperty("--vscode-editorCodeLens-fontSize",`${t}px`),o.setProperty("--vscode-editorCodeLens-fontFeatureSettings",r.fontFeatureSettings),n&&(o.setProperty("--vscode-editorCodeLens-fontFamily",n),o.setProperty("--vscode-editorCodeLens-fontFamilyDefault",X_.fontFamily)),this._editor.changeViewZones(s=>{for(let a of this._lenses)a.updateHeight(e,s)})}_localDispose(){var e,t,n;(e=this._getCodeLensModelPromise)===null||e===void 0||e.cancel(),this._getCodeLensModelPromise=void 0,(t=this._resolveCodeLensesPromise)===null||t===void 0||t.cancel(),this._resolveCodeLensesPromise=void 0,this._localToDispose.clear(),this._oldCodeLensModels.clear(),(n=this._currentCodeLensModel)===null||n===void 0||n.dispose()}_onModelChange(){this._localDispose();let e=this._editor.getModel();if(!e||!this._editor.getOption(15))return;let t=this._codeLensCache.get(e);if(t&&this._renderCodeLensSymbols(t),!this._languageFeaturesService.codeLensProvider.has(e)){t&&this._localToDispose.add(wl(()=>{let r=this._codeLensCache.get(e);t===r&&(this._codeLensCache.delete(e),this._onModelChange())},30*1e3));return}for(let r of this._languageFeaturesService.codeLensProvider.all(e))if(typeof r.onDidChange=="function"){let o=r.onDidChange(()=>n.schedule());this._localToDispose.add(o)}let n=new ii(()=>{var r;let o=Date.now();(r=this._getCodeLensModelPromise)===null||r===void 0||r.cancel(),this._getCodeLensModelPromise=Kt(s=>K6(this._languageFeaturesService.codeLensProvider,e,s)),this._getCodeLensModelPromise.then(s=>{this._currentCodeLensModel&&this._oldCodeLensModels.add(this._currentCodeLensModel),this._currentCodeLensModel=s,this._codeLensCache.put(e,s);let a=this._provideCodeLensDebounce.update(e,Date.now()-o);n.delay=a,this._renderCodeLensSymbols(s),this._resolveCodeLensesInViewportSoon()},lt)},this._provideCodeLensDebounce.get(e));this._localToDispose.add(n),this._localToDispose.add(Ft(()=>this._resolveCodeLensesScheduler.cancel())),this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{var r;this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{let a=[],l=-1;this._lenses.forEach(d=>{!d.isValid()||l===d.getLineNumber()?a.push(d):(d.update(s),l=d.getLineNumber())});let c=new Qf;a.forEach(d=>{d.dispose(c,s),this._lenses.splice(this._lenses.indexOf(d),1)}),c.commit(o)})}),n.schedule(),this._resolveCodeLensesScheduler.cancel(),(r=this._resolveCodeLensesPromise)===null||r===void 0||r.cancel(),this._resolveCodeLensesPromise=void 0})),this._localToDispose.add(this._editor.onDidFocusEditorWidget(()=>{n.schedule()})),this._localToDispose.add(this._editor.onDidScrollChange(r=>{r.scrollTopChanged&&this._lenses.length>0&&this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(this._editor.onDidLayoutChange(()=>{this._resolveCodeLensesInViewportSoon()})),this._localToDispose.add(Ft(()=>{if(this._editor.getModel()){let r=xa.capture(this._editor);this._editor.changeDecorations(o=>{this._editor.changeViewZones(s=>{this._disposeAllLenses(o,s)})}),r.restore(this._editor)}else this._disposeAllLenses(void 0,void 0)})),this._localToDispose.add(this._editor.onMouseDown(r=>{if(r.target.type!==9)return;let o=r.target.element;if((o==null?void 0:o.tagName)==="SPAN"&&(o=o.parentElement),(o==null?void 0:o.tagName)==="A")for(let s of this._lenses){let a=s.getCommand(o);if(a){this._commandService.executeCommand(a.id,...a.arguments||[]).catch(l=>this._notificationService.error(l));break}}})),n.schedule()}_disposeAllLenses(e,t){let n=new Qf;for(let r of this._lenses)r.dispose(n,t);e&&n.commit(e),this._lenses.length=0}_renderCodeLensSymbols(e){if(!this._editor.hasModel())return;let t=this._editor.getModel().getLineCount(),n=[],r;for(let a of e.lenses){let l=a.symbol.range.startLineNumber;l<1||l>t||(r&&r[r.length-1].symbol.range.startLineNumber===l?r.push(a):(r=[a],n.push(r)))}if(!n.length&&!this._lenses.length)return;let o=xa.capture(this._editor),s=this._getLayoutInfo();this._editor.changeDecorations(a=>{this._editor.changeViewZones(l=>{let c=new Qf,d=0,u=0;for(;uthis._resolveCodeLensesInViewportSoon())),d++,u++)}for(;dthis._resolveCodeLensesInViewportSoon())),u++;c.commit(a)})}),o.restore(this._editor)}_resolveCodeLensesInViewportSoon(){this._editor.getModel()&&this._resolveCodeLensesScheduler.schedule()}_resolveCodeLensesInViewport(){var e;(e=this._resolveCodeLensesPromise)===null||e===void 0||e.cancel(),this._resolveCodeLensesPromise=void 0;let t=this._editor.getModel();if(!t)return;let n=[],r=[];if(this._lenses.forEach(a=>{let l=a.computeIfNecessary(t);l&&(n.push(l),r.push(a))}),n.length===0)return;let o=Date.now(),s=Kt(a=>{let l=n.map((c,d)=>{let u=new Array(c.length),h=c.map((p,m)=>!p.symbol.command&&typeof p.provider.resolveCodeLens=="function"?Promise.resolve(p.provider.resolveCodeLens(t,p.symbol,a)).then(g=>{u[m]=g},Ut):(u[m]=p.symbol,Promise.resolve(void 0)));return Promise.all(h).then(()=>{!a.isCancellationRequested&&!r[d].isDisposed()&&r[d].updateCommands(u)})});return Promise.all(l)});this._resolveCodeLensesPromise=s,this._resolveCodeLensesPromise.then(()=>{let a=this._resolveCodeLensesDebounce.update(t,Date.now()-o);this._resolveCodeLensesScheduler.delay=a,this._currentCodeLensModel&&this._codeLensCache.put(t,this._currentCodeLensModel),this._oldCodeLensModels.clear(),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)},a=>{lt(a),s===this._resolveCodeLensesPromise&&(this._resolveCodeLensesPromise=void 0)})}getModel(){return this._currentCodeLensModel}};Jf.ID="css.editor.codeLens";Jf=h1e([m0(1,be),m0(2,an),m0(3,ui),m0(4,Ei),m0(5,$6)],Jf);Ae(Jf.ID,Jf,1);X(class extends se{constructor(){super({id:"codelens.showLensesInCurrentLine",precondition:O.hasCodeLensProvider,label:v("showLensOnLine","Show CodeLens Commands For Current Line"),alias:"Show CodeLens Commands For Current Line"})}run(e,t){return f1e(this,void 0,void 0,function*(){if(!t.hasModel())return;let n=e.get(lr),r=e.get(ui),o=e.get(Ei),s=t.getSelection().positionLineNumber,a=t.getContribution(Jf.ID);if(!a)return;let l=a.getModel();if(!l)return;let c=[];for(let u of l.lenses)u.symbol.command&&u.symbol.range.startLineNumber===s&&c.push({label:u.symbol.command.title,command:u.symbol.command});if(c.length===0)return;let d=yield n.pick(c,{canPickMany:!1});if(d){if(l.isDisposed)return yield r.executeCommand(this.id);try{yield r.executeCommand(d.command.id,...d.command.arguments||[])}catch(u){o.error(u)}}})}})});var sc,Q6=M(()=>{Ea();ri();qe();Mn();sc=class i{constructor(e,t,n){this.languageConfigurationService=n,this._selection=e,this._insertSpace=t,this._usedEndToken=null}static _haystackHasNeedleAtOffset(e,t,n){if(n<0)return!1;let r=t.length,o=e.length;if(n+r>o)return!1;for(let s=0;s=65&&a<=90&&a+32===l)&&!(l>=65&&l<=90&&l+32===a))return!1}return!0}_createOperationsForBlockComment(e,t,n,r,o,s){let a=e.startLineNumber,l=e.startColumn,c=e.endLineNumber,d=e.endColumn,u=o.getLineContent(a),h=o.getLineContent(c),p=u.lastIndexOf(t,l-1+t.length),m=h.indexOf(n,d-1-n.length);if(p!==-1&&m!==-1)if(a===c)u.substring(p+t.length,m).indexOf(n)>=0&&(p=-1,m=-1);else{let b=u.substring(p+t.length),S=h.substring(0,m);(b.indexOf(n)>=0||S.indexOf(n)>=0)&&(p=-1,m=-1)}let g;p!==-1&&m!==-1?(r&&p+t.length0&&h.charCodeAt(m-1)===32&&(n=" "+n,m-=1),g=i._createRemoveBlockCommentOperations(new P(a,p+t.length+1,c,m+1),t,n)):(g=i._createAddBlockCommentOperations(e,t,n,this._insertSpace),this._usedEndToken=g.length===1?n:null);for(let b of g)s.addTrackedEditOperation(b.range,b.text)}static _createRemoveBlockCommentOperations(e,t,n){let r=[];return P.isEmpty(e)?r.push(qt.delete(new P(e.startLineNumber,e.startColumn-t.length,e.endLineNumber,e.endColumn+n.length))):(r.push(qt.delete(new P(e.startLineNumber,e.startColumn-t.length,e.startLineNumber,e.startColumn))),r.push(qt.delete(new P(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn+n.length)))),r}static _createAddBlockCommentOperations(e,t,n,r){let o=[];return P.isEmpty(e)?o.push(qt.replace(new P(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),t+" "+n)):(o.push(qt.insert(new Se(e.startLineNumber,e.startColumn),t+(r?" ":""))),o.push(qt.insert(new Se(e.endLineNumber,e.endColumn),(r?" ":"")+n))),o}getEditOperations(e,t){let n=this._selection.startLineNumber,r=this._selection.startColumn;e.tokenization.tokenizeIfCheap(n);let o=e.getLanguageIdAtPosition(n,r),s=this.languageConfigurationService.getLanguageConfiguration(o).comments;!s||!s.blockCommentStartToken||!s.blockCommentEndToken||this._createOperationsForBlockComment(this._selection,s.blockCommentStartToken,s.blockCommentEndToken,this._insertSpace,e,t)}computeCursorState(e,t){let n=t.getInverseEditOperations();if(n.length===2){let r=n[0],o=n[1];return new We(r.range.endLineNumber,r.range.endColumn,o.range.startLineNumber,o.range.startColumn)}else{let r=n[0].range,o=this._usedEndToken?-this._usedEndToken.length-1:0;return new We(r.endLineNumber,r.endColumn+o,r.endLineNumber,r.endColumn+o)}}}});var ay,QK=M(()=>{wi();Ea();ri();qe();Mn();Q6();ay=class i{constructor(e,t,n,r,o,s,a){this.languageConfigurationService=e,this._selection=t,this._tabSize=n,this._type=r,this._insertSpace=o,this._selectionId=null,this._deltaColumn=0,this._moveEndPositionDown=!1,this._ignoreEmptyLines=s,this._ignoreFirstLine=a||!1}static _gatherPreflightCommentStrings(e,t,n,r){e.tokenization.tokenizeIfCheap(t);let o=e.getLanguageIdAtPosition(t,1),s=r.getLanguageConfiguration(o).comments,a=s?s.lineCommentToken:null;if(!a)return null;let l=[];for(let c=0,d=n-t+1;co?t[l].commentStrOffset=s-1:t[l].commentStrOffset=s}}}});var g0,J6,Z6,eE,tE,iE=M(()=>{gl();et();qe();Vt();Kn();Q6();QK();Re();Xi();g0=class extends se{constructor(e,t){super(t),this._type=e}run(e,t){let n=e.get(Tt);if(!t.hasModel())return;let r=t.getModel(),o=[],s=r.getOptions(),a=t.getOption(21),l=t.getSelections().map((d,u)=>({selection:d,index:u,ignoreFirstLine:!1}));l.sort((d,u)=>P.compareRangesUsingStarts(d.selection,u.selection));let c=l[0];for(let d=1;d{Bt();Eoe();Pc();Ce();nr();et();Vt();Re();Xi();pt();Tl();Gn();Wn();cb();p1e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Bu=function(i,e){return function(t,n){e(t,n,i)}},Zf=class JK{static get(e){return e.getContribution(JK.ID)}constructor(e,t,n,r,o,s,a,l){this._contextMenuService=t,this._contextViewService=n,this._contextKeyService=r,this._keybindingService=o,this._menuService=s,this._configurationService=a,this._workspaceContextService=l,this._toDispose=new re,this._contextMenuIsBeingShownCount=0,this._editor=e,this._toDispose.add(this._editor.onContextMenu(c=>this._onContextMenu(c))),this._toDispose.add(this._editor.onMouseWheel(c=>{if(this._contextMenuIsBeingShownCount>0){let d=this._contextViewService.getContextViewElement(),u=c.srcElement;u.shadowRoot&&mR(d)===u.shadowRoot||this._contextViewService.hideContextView()}})),this._toDispose.add(this._editor.onKeyDown(c=>{this._editor.getOption(22)&&c.keyCode===58&&(c.preventDefault(),c.stopPropagation(),this.showContextMenu())}))}_onContextMenu(e){if(!this._editor.hasModel())return;if(!this._editor.getOption(22)){this._editor.focus(),e.target.position&&!this._editor.getSelection().containsPosition(e.target.position)&&this._editor.setPosition(e.target.position);return}if(e.target.type===12||e.target.type===6&&e.target.detail.injectedText)return;if(e.event.preventDefault(),e.event.stopPropagation(),e.target.type===11)return this._showScrollbarContextMenu({x:e.event.posx-1,width:2,y:e.event.posy-1,height:2});if(e.target.type!==6&&e.target.type!==7&&e.target.type!==1)return;if(this._editor.focus(),e.target.position){let n=!1;for(let r of this._editor.getSelections())if(r.containsPosition(e.target.position)){n=!0;break}n||this._editor.setPosition(e.target.position)}let t=null;e.target.type!==1&&(t={x:e.event.posx-1,width:2,y:e.event.posy-1,height:2}),this.showContextMenu(t)}showContextMenu(e){if(!this._editor.getOption(22)||!this._editor.hasModel())return;let t=this._getMenuActions(this._editor.getModel(),this._editor.isSimpleWidget?xe.SimpleEditorContext:xe.EditorContext);t.length>0&&this._doShowContextMenu(t,e)}_getMenuActions(e,t){let n=[],r=this._menuService.createMenu(t,this._contextKeyService),o=r.getActions({arg:e.uri});r.dispose();for(let s of o){let[,a]=s,l=0;for(let c of a)if(c instanceof Mm){let d=this._getMenuActions(e,c.item.submenu);d.length>0&&(n.push(new Am(c.id,c.label,d)),l++)}else n.push(c),l++;l&&n.push(new Is)}return n.length&&n.pop(),n}_doShowContextMenu(e,t=null){if(!this._editor.hasModel())return;let n=this._editor.getOption(58);if(this._editor.updateOptions({hover:{enabled:!1}}),!t){this._editor.revealPosition(this._editor.getPosition(),1),this._editor.render();let o=this._editor.getScrolledVisiblePosition(this._editor.getPosition()),s=wn(this._editor.getDomNode()),a=s.left+o.left,l=s.top+o.top+o.height;t={x:a,y:l}}let r=this._editor.getOption(123)&&!Tm;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:r?this._editor.getDomNode():void 0,getAnchor:()=>t,getActions:()=>e,getActionViewItem:o=>{let s=this._keybindingFor(o);if(s)return new Dw(o,o,{label:!0,keybinding:s.getLabel(),isMenu:!0});let a=o;return typeof a.getActionViewItem=="function"?a.getActionViewItem():new Dw(o,o,{icon:!0,label:!0,isMenu:!0})},getKeyBinding:o=>this._keybindingFor(o),onHide:o=>{this._contextMenuIsBeingShownCount--,this._editor.updateOptions({hover:n})}})}_showScrollbarContextMenu(e){if(!this._editor.hasModel()||NP(this._workspaceContextService.getWorkspace()))return;let t=this._editor.getOption(70),n=0,r=c=>({id:`menu-action-${++n}`,label:c.label,tooltip:"",class:void 0,enabled:typeof c.enabled=="undefined"?!0:c.enabled,checked:c.checked,run:c.run}),o=(c,d)=>new Am(`menu-action-${++n}`,c,d,void 0),s=(c,d,u,h,p)=>{if(!d)return r({label:c,enabled:d,run:()=>{}});let m=b=>()=>{this._configurationService.updateValue(u,b)},g=[];for(let b of p)g.push(r({label:b.label,checked:h===b.value,run:m(b.value)}));return o(c,g)},a=[];a.push(r({label:v("context.minimap.minimap","Minimap"),checked:t.enabled,run:()=>{this._configurationService.updateValue("editor.minimap.enabled",!t.enabled)}})),a.push(new Is),a.push(r({label:v("context.minimap.renderCharacters","Render Characters"),enabled:t.enabled,checked:t.renderCharacters,run:()=>{this._configurationService.updateValue("editor.minimap.renderCharacters",!t.renderCharacters)}})),a.push(s(v("context.minimap.size","Vertical size"),t.enabled,"editor.minimap.size",t.size,[{label:v("context.minimap.size.proportional","Proportional"),value:"proportional"},{label:v("context.minimap.size.fill","Fill"),value:"fill"},{label:v("context.minimap.size.fit","Fit"),value:"fit"}])),a.push(s(v("context.minimap.slider","Slider"),t.enabled,"editor.minimap.showSlider",t.showSlider,[{label:v("context.minimap.slider.mouseover","Mouse Over"),value:"mouseover"},{label:v("context.minimap.slider.always","Always"),value:"always"}]));let l=this._editor.getOption(123)&&!Tm;this._contextMenuIsBeingShownCount++,this._contextMenuService.showContextMenu({domForShadowRoot:l?this._editor.getDomNode():void 0,getAnchor:()=>e,getActions:()=>a,onHide:c=>{this._contextMenuIsBeingShownCount--,this._editor.focus()}})}_keybindingFor(e){return this._keybindingService.lookupKeybinding(e.id)}dispose(){this._contextMenuIsBeingShownCount>0&&this._contextViewService.hideContextView(),this._toDispose.dispose()}};Zf.ID="editor.contrib.contextmenu";Zf=p1e([Bu(1,ls),Bu(2,$c),Bu(3,Ke),Bu(4,Ht),Bu(5,As),Bu(6,Mt),Bu(7,Il)],Zf);nE=class extends se{constructor(){super({id:"editor.action.showContextMenu",label:v("action.showContextMenu.label","Show Editor Context Menu"),alias:"Show Editor Context Menu",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:1092,weight:100}})}run(e,t){var n;(n=Zf.get(t))===null||n===void 0||n.showContextMenu()}};Ae(Zf.ID,Zf,2);X(nE)});var v0,_0,Hu,oE,sE,aE=M(()=>{Ce();et();Vt();Re();v0=class{constructor(e){this.selections=e}equals(e){let t=this.selections.length,n=e.selections.length;if(t!==n)return!1;for(let r=0;r{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeModelContent(t=>{this._undoStack=[],this._redoStack=[]})),this._register(e.onDidChangeCursorSelection(t=>{if(this._isCursorUndoRedo||!t.oldSelections||t.oldModelVersionId!==t.modelVersionId)return;let n=new v0(t.oldSelections);this._undoStack.length>0&&this._undoStack[this._undoStack.length-1].cursorState.equals(n)||(this._undoStack.push(new _0(n,e.getScrollTop(),e.getScrollLeft())),this._redoStack=[],this._undoStack.length>50&&this._undoStack.shift())}))}cursorUndo(){!this._editor.hasModel()||this._undoStack.length===0||(this._redoStack.push(new _0(new v0(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._undoStack.pop()))}cursorRedo(){!this._editor.hasModel()||this._redoStack.length===0||(this._undoStack.push(new _0(new v0(this._editor.getSelections()),this._editor.getScrollTop(),this._editor.getScrollLeft())),this._applyState(this._redoStack.pop()))}_applyState(e){this._isCursorUndoRedo=!0,this._editor.setSelections(e.cursorState.selections),this._editor.setScrollPosition({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft}),this._isCursorUndoRedo=!1}};Hu.ID="editor.contrib.cursorUndoRedoController";oE=class extends se{constructor(){super({id:"cursorUndo",label:v("cursor.undo","Cursor Undo"),alias:"Cursor Undo",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:2099,weight:100}})}run(e,t,n){var r;(r=Hu.get(t))===null||r===void 0||r.cursorUndo()}},sE=class extends se{constructor(){super({id:"cursorRedo",label:v("cursor.redo","Cursor Redo"),alias:"Cursor Redo",precondition:void 0})}run(e,t,n){var r;(r=Hu.get(t))===null||r===void 0||r.cursorRedo()}};Ae(Hu.ID,Hu,0);X(oE);X(sE)});var ZK=M(()=>{});var eq=M(()=>{ZK()});var ly,tq=M(()=>{qe();Mn();ly=class{constructor(e,t,n){this.selection=e,this.targetPosition=t,this.copy=n,this.targetSelection=null}getEditOperations(e,t){let n=e.getValueInRange(this.selection);if(this.copy||t.addEditOperation(this.selection,null),t.addEditOperation(new P(this.targetPosition.lineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.targetPosition.column),n),this.selection.containsPosition(this.targetPosition)&&!(this.copy&&(this.selection.getEndPosition().equals(this.targetPosition)||this.selection.getStartPosition().equals(this.targetPosition)))){this.targetSelection=this.selection;return}if(this.copy){this.targetSelection=new We(this.targetPosition.lineNumber,this.targetPosition.column,this.selection.endLineNumber-this.selection.startLineNumber+this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber>this.selection.endLineNumber){this.targetSelection=new We(this.targetPosition.lineNumber-this.selection.endLineNumber+this.selection.startLineNumber,this.targetPosition.column,this.targetPosition.lineNumber,this.selection.startLineNumber===this.selection.endLineNumber?this.targetPosition.column+this.selection.endColumn-this.selection.startColumn:this.selection.endColumn);return}if(this.targetPosition.lineNumber{Ce();nr();eq();et();ri();qe();Mn();qn();tq();zu=class i extends oe{constructor(e){super(),this._editor=e,this._dndDecorationIds=this._editor.createDecorationsCollection(),this._register(this._editor.onMouseDown(t=>this._onEditorMouseDown(t))),this._register(this._editor.onMouseUp(t=>this._onEditorMouseUp(t))),this._register(this._editor.onMouseDrag(t=>this._onEditorMouseDrag(t))),this._register(this._editor.onMouseDrop(t=>this._onEditorMouseDrop(t))),this._register(this._editor.onMouseDropCanceled(()=>this._onEditorMouseDropCanceled())),this._register(this._editor.onKeyDown(t=>this.onEditorKeyDown(t))),this._register(this._editor.onKeyUp(t=>this.onEditorKeyUp(t))),this._register(this._editor.onDidBlurEditorWidget(()=>this.onEditorBlur())),this._register(this._editor.onDidBlurEditorText(()=>this.onEditorBlur())),this._mouseDown=!1,this._modifierPressed=!1,this._dragSelection=null}onEditorBlur(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1}onEditorKeyDown(e){!this._editor.getOption(33)||this._editor.getOption(20)||(ep(e)&&(this._modifierPressed=!0),this._mouseDown&&ep(e)&&this._editor.updateOptions({mouseStyle:"copy"}))}onEditorKeyUp(e){!this._editor.getOption(33)||this._editor.getOption(20)||(ep(e)&&(this._modifierPressed=!1),this._mouseDown&&e.keyCode===i.TRIGGER_KEY_VALUE&&this._editor.updateOptions({mouseStyle:"default"}))}_onEditorMouseDown(e){this._mouseDown=!0}_onEditorMouseUp(e){this._mouseDown=!1,this._editor.updateOptions({mouseStyle:"text"})}_onEditorMouseDrag(e){let t=e.target;if(this._dragSelection===null){let r=(this._editor.getSelections()||[]).filter(o=>t.position&&o.containsPosition(t.position));if(r.length===1)this._dragSelection=r[0];else return}ep(e.event)?this._editor.updateOptions({mouseStyle:"copy"}):this._editor.updateOptions({mouseStyle:"default"}),t.position&&(this._dragSelection.containsPosition(t.position)?this._removeDecoration():this.showAt(t.position))}_onEditorMouseDropCanceled(){this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}_onEditorMouseDrop(e){if(e.target&&(this._hitContent(e.target)||this._hitMargin(e.target))&&e.target.position){let t=new Se(e.target.position.lineNumber,e.target.position.column);if(this._dragSelection===null){let n=null;if(e.event.shiftKey){let r=this._editor.getSelection();if(r){let{selectionStartLineNumber:o,selectionStartColumn:s}=r;n=[new We(o,s,t.lineNumber,t.column)]}}else n=(this._editor.getSelections()||[]).map(r=>r.containsPosition(t)?new We(t.lineNumber,t.column,t.lineNumber,t.column):r);this._editor.setSelections(n||[],"mouse",3)}else(!this._dragSelection.containsPosition(t)||(ep(e.event)||this._modifierPressed)&&(this._dragSelection.getEndPosition().equals(t)||this._dragSelection.getStartPosition().equals(t)))&&(this._editor.pushUndoStop(),this._editor.executeCommand(i.ID,new ly(this._dragSelection,t,ep(e.event)||this._modifierPressed)),this._editor.pushUndoStop())}this._editor.updateOptions({mouseStyle:"text"}),this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1}showAt(e){this._dndDecorationIds.set([{range:new P(e.lineNumber,e.column,e.lineNumber,e.column),options:i._DECORATION_OPTIONS}]),this._editor.revealPosition(e,1)}_removeDecoration(){this._dndDecorationIds.clear()}_hitContent(e){return e.type===6||e.type===7}_hitMargin(e){return e.type===2||e.type===3||e.type===4}dispose(){this._removeDecoration(),this._dragSelection=null,this._mouseDown=!1,this._modifierPressed=!1,super.dispose()}};zu.ID="editor.contrib.dragAndDrop";zu.TRIGGER_KEY_VALUE=zn?6:5;zu._DECORATION_OPTIONS=dt.register({description:"dnd-target",className:"dnd-target"});Ae(zu.ID,zu,2)});var _d,b0=M(()=>{_d=function(){if(typeof crypto=="object"&&typeof crypto.randomUUID=="function")return crypto.randomUUID.bind(crypto);let i;typeof crypto=="object"&&typeof crypto.getRandomValues=="function"?i=crypto.getRandomValues.bind(crypto):i=function(n){for(let r=0;riq(this,void 0,void 0,function*(){return i}),asFile:()=>{},value:typeof i=="string"?i:void 0}}function nq(i,e,t){let n={id:_d(),name:i,uri:e,data:t};return{asString:()=>iq(this,void 0,void 0,function*(){return""}),asFile:()=>n,value:void 0}}function cy(i){return i.toLowerCase()}function rq(i,e){return oq(cy(i),e.map(cy))}function oq(i,e){if(i==="*/*")return e.length>0;if(e.includes(i))return!0;let t=i.match(/^([a-z]+)\/([a-z]+|\*)$/i);if(!t)return!1;let[n,r,o]=t;return o==="*"?e.some(s=>s.startsWith(r+"/")):!1}var iq,tp,Uu,C0=M(()=>{oi();Em();b0();iq=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};tp=class{constructor(){this._entries=new Map}get size(){let e=0;for(let t of this._entries)e++;return e}has(e){return this._entries.has(this.toKey(e))}matches(e){let t=[...this._entries.keys()];return so.some(this,([n,r])=>r.asFile())&&t.push("files"),oq(cy(e),t)}get(e){var t;return(t=this._entries.get(this.toKey(e)))===null||t===void 0?void 0:t[0]}append(e,t){let n=this._entries.get(e);n?n.push(t):this._entries.set(this.toKey(e),[t])}replace(e,t){this._entries.set(this.toKey(e),[t])}delete(e){this._entries.delete(this.toKey(e))}*[Symbol.iterator](){for(let[e,t]of this._entries)for(let n of t)yield[e,n]}toKey(e){return cy(e)}};Uu=Object.freeze({create:i=>UR(i.map(e=>e.toString())).join(`\r `),split:i=>i.split(`\r -`),parse:i=>eh.split(i).filter(e=>!e.startsWith("#"))})});function aK(i){return cp(this,void 0,void 0,function*(){let e=i.get(gr.uriList);if(!e)return[];let t=yield e.asString(),r=[];for(let n of eh.parse(t))try{r.push({uri:yt.parse(n),originalText:n})}catch(o){}return r})}var gI,W0,cp,bI,V0,Qx,Zx,Jx,e2,t2,vI=N(()=>{mi();j0();ke();Y3();Dm();Lo();Ir();Pt();He();U_();gI=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},W0=function(i,e){return function(t,r){e(t,r,i)}},cp=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bI=b("builtIn","Built-in"),V0=class{provideDocumentPasteEdits(e,t,r,n){return cp(this,void 0,void 0,function*(){let o=yield this.getEdit(r,n);return o?{insertText:o.insertText,label:o.label,detail:o.detail,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}:void 0})}provideDocumentOnDropEdits(e,t,r,n){return cp(this,void 0,void 0,function*(){let o=yield this.getEdit(r,n);return o?{insertText:o.insertText,label:o.label,handledMimeType:o.handledMimeType,yieldTo:o.yieldTo}:void 0})}},Qx=class extends V0{constructor(){super(...arguments),this.id="text",this.dropMimeTypes=[gr.text],this.pasteMimeTypes=[gr.text]}getEdit(e,t){return cp(this,void 0,void 0,function*(){let r=e.get(gr.text);if(!r||e.has(gr.uriList))return;let n=yield r.asString();return{handledMimeType:gr.text,label:b("text.label","Insert Plain Text"),detail:bI,insertText:n}})}},Zx=class extends V0{constructor(){super(...arguments),this.id="uri",this.dropMimeTypes=[gr.uriList],this.pasteMimeTypes=[gr.uriList]}getEdit(e,t){return cp(this,void 0,void 0,function*(){let r=yield aK(e);if(!r.length||t.isCancellationRequested)return;let n=0,o=r.map(({uri:a,originalText:l})=>a.scheme===Eo.file?a.fsPath:(n++,l)).join(" "),s;return n>0?s=r.length>1?b("defaultDropProvider.uriList.uris","Insert Uris"):b("defaultDropProvider.uriList.uri","Insert Uri"):s=r.length>1?b("defaultDropProvider.uriList.paths","Insert Paths"):b("defaultDropProvider.uriList.path","Insert Path"),{handledMimeType:gr.uriList,insertText:o,label:s,detail:bI}})}},Jx=class extends V0{constructor(e){super(),this._workspaceContextService=e,this.id="relativePath",this.dropMimeTypes=[gr.uriList],this.pasteMimeTypes=[gr.uriList]}getEdit(e,t){return cp(this,void 0,void 0,function*(){let r=yield aK(e);if(!r.length||t.isCancellationRequested)return;let n=hn(r.map(({uri:o})=>{let s=this._workspaceContextService.getWorkspaceFolder(o);return s?eO(s.uri,o):void 0}));if(n.length)return{handledMimeType:gr.uriList,insertText:n.join(" "),label:r.length>1?b("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):b("defaultDropProvider.uriList.relativePath","Insert Relative Path"),detail:bI}})}};Jx=gI([W0(0,xl)],Jx);e2=class extends ce{constructor(e,t){super(),this._register(e.documentOnDropEditProvider.register("*",new Qx)),this._register(e.documentOnDropEditProvider.register("*",new Zx)),this._register(e.documentOnDropEditProvider.register("*",new Jx(t)))}};e2=gI([W0(0,Se),W0(1,xl)],e2);t2=class extends ce{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new Qx)),this._register(e.documentPasteEditProvider.register("*",new Zx)),this._register(e.documentPasteEditProvider.register("*",new Jx(t)))}};t2=gI([W0(0,Se),W0(1,xl)],t2)});var yI,_I,bge,dp,wI=N(()=>{dl();yI={EDITORS:"CodeEditors",FILES:"CodeFiles"},_I=class{},bge={DragAndDropContribution:"workbench.contributions.dragAndDrop"};Jr.add(bge.DragAndDropContribution,new _I);dp=class i{constructor(){}static getInstance(){return i.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};dp.INSTANCE=new dp});function xI(i){let e=new lp;for(let t of i.items){let r=t.type;if(t.kind==="string"){let n=new Promise(o=>t.getAsString(o));e.append(r,U0(n))}else if(t.kind==="file"){let n=t.getAsFile();n&&e.append(r,_ge(n))}}return e}function _ge(i){let e=i.path?yt.parse(i.path):void 0;return oK(i.name,e,()=>vge(this,void 0,void 0,function*(){return new Uint8Array(yield i.arrayBuffer())}))}function i2(i,e=!1){let t=xI(i),r=t.get(D_.INTERNAL_URI_LIST);if(r)t.replace(gr.uriList,r);else if(e||!t.has(gr.uriList)){let n=[];for(let o of i.items){let s=o.getAsFile();if(s){let a=s.path;try{a?n.push(yt.file(a).toString()):n.push(yt.parse(s.name,!0).toString())}catch(l){}}}n.length&&t.replace(gr.uriList,U0(eh.create(n)))}for(let n of yge)t.delete(n);return t}var vge,yge,CI=N(()=>{Ore();j0();Y3();Ir();wI();vge=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};yge=Object.freeze([yI.EDITORS,yI.FILES,D_.RESOURCES,D_.INTERNAL_URI_LIST])});var r2,q0,SI=N(()=>{r2=class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){let t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},q0=class{constructor(e){this.identifier=e}}});var kI,lK=N(()=>{hl();Ut();SI();kI=Qr("treeViewsDndService");en(kI,r2,1)});var cK=N(()=>{});var dK=N(()=>{cK()});var wge,xge,Cge,Sge,n2,up,K0=N(()=>{Ht();jt();Zr();ke();Ni();An();dK();et();Ur();Ut();wge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},xge=function(i,e){return function(t,r){e(t,r,i)}},Cge=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Sge=mt.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:Gv,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),n2=class i extends ce{constructor(e,t,r,n,o){super(),this.typeId=e,this.editor=t,this.range=r,this.delegate=o,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(n),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=Ae(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;let t=Ae("span.icon");this.domNode.append(t),t.classList.add(..._t.asClassNameArray(pt.loading),"codicon-modifier-spin");let r=()=>{let n=this.editor.getOption(65);this.domNode.style.height=`${n}px`,this.domNode.style.width=`${Math.ceil(.8*n)}px`};r(),this._register(this.editor.onDidChangeConfiguration(n=>{(n.hasChanged(51)||n.hasChanged(65))&&r()})),this._register(Lt(this.domNode,bi.CLICK,n=>{this.delegate.cancel()}))}getId(){return i.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}};n2.baseId="editor.widget.inlineProgressWidget";up=class extends ce{constructor(e,t,r){super(),this.id=e,this._editor=t,this._instantiationService=r,this._showDelay=500,this._showPromise=this._register(new Wi),this._currentWidget=new Wi,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}showWhile(e,t,r){return Cge(this,void 0,void 0,function*(){let n=this._operationIdPool++;this._currentOperation=n,this.clear(),this._showPromise.value=ml(()=>{let o=B.fromPositions(e);this._currentDecorations.set([{range:o,options:Sge}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(n2,this.id,this._editor,o,t,r))},this._showDelay);try{return yield r}finally{this._currentOperation===n&&(this.clear(),this._currentOperation=void 0)}})}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};up=wge([xge(2,Ke)],up)});function uK(i,e,t){var r,n;return{edits:[...e.map(o=>new E_(i,typeof t.insertText=="string"?{range:o,text:t.insertText,insertAsSnippet:!1}:{range:o,text:t.insertText.snippet,insertAsSnippet:!0})),...(n=(r=t.additionalEdit)===null||r===void 0?void 0:r.edits)!==null&&n!==void 0?n:[]]}}function o2(i){var e;function t(a,l){return"providerId"in a&&a.providerId===l.providerId||"mimeType"in a&&a.mimeType===l.handledMimeType}let r=new Map;for(let a of i)for(let l of(e=a.yieldTo)!==null&&e!==void 0?e:[])for(let c of i)if(c!==a&&t(l,c)){let d=r.get(a);d||(d=[],r.set(a,d)),d.push(c)}if(!r.size)return Array.from(i);let n=new Set,o=[];function s(a){if(!a.length)return[];let l=a[0];if(o.includes(l))return console.warn(`Yield to cycle detected for ${l.providerId}`),a;if(n.has(l))return s(a.slice(1));let c=[],d=r.get(l);return d&&(o.push(l),c=s(d),o.pop()),n.add(l),[...c,l,...s(a.slice(1))]}return s(Array.from(i))}var EI=N(()=>{tg()});var hK=N(()=>{});var fK=N(()=>{hK()});var mK,$0,pK,TI,s2,hp,II=N(()=>{Ht();Ure();Fc();ei();ke();fK();tg();wt();yl();Ut();jr();mK=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},$0=function(i,e){return function(t,r){e(t,r,i)}},pK=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},s2=TI=class extends ce{constructor(e,t,r,n,o,s,a,l,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=n,this.range=o,this.edits=s,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=r.bindTo(c),this.visibleContext.set(!0),this._register(ri(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(ri(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(u=>{o.containsPosition(u.position)||this.dispose()})),this._register(ci.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;let t=(e=this._keybindingService.lookupKeybinding(this.showCommand.id))===null||e===void 0?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=Ae(".post-edit-widget"),this.button=this._register(new AF(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(Lt(this.domNode,bi.CLICK,()=>this.showSelector()))}getId(){return TI.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{let e=Zi(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>tf({id:"",label:e.label,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};s2.baseId="editor.widget.postEditWidget";s2=TI=mK([$0(7,rs),$0(8,it),$0(9,Kt)],s2);hp=class extends ce{constructor(e,t,r,n,o,s){super(),this._id=e,this._editor=t,this._visibleContext=r,this._showCommand=n,this._instantiationService=o,this._bulkEditService=s,this._currentWidget=this._register(new Wi),this._register(ci.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}applyEditAndShowIfNeeded(e,t,r,n){var o,s;return pK(this,void 0,void 0,function*(){let a=this._editor.getModel();if(!a||!e.length)return;let l=t.allEdits[t.activeEditIndex];if(!l)return;let c=[];(typeof l.insertText=="string"?l.insertText==="":l.insertText.snippet==="")?c=[]:c=e.map(w=>new E_(a.uri,typeof l.insertText=="string"?{range:w,text:l.insertText,insertAsSnippet:!1}:{range:w,text:l.insertText.snippet,insertAsSnippet:!0}));let u={edits:[...c,...(s=(o=l.additionalEdit)===null||o===void 0?void 0:o.edits)!==null&&s!==void 0?s:[]]},h=e[0],f=a.deltaDecorations([],[{range:h,options:{description:"paste-line-suffix",stickiness:0}}]),m,g;try{m=yield this._bulkEditService.apply(u,{editor:this._editor,token:n}),g=a.getDecorationRange(f[0])}finally{a.deltaDecorations(f,[])}r&&m.isApplied&&t.allEdits.length>1&&this.show(g!=null?g:h,t,w=>pK(this,void 0,void 0,function*(){let _=this._editor.getModel();_&&(yield _.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:w,allEdits:t.allEdits},r,n))}))})}show(e,t,r){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(s2,this._id,this._editor,this._visibleContext,this._showCommand,e,t,r))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;(e=this._currentWidget.value)===null||e===void 0||e.showSelector()}};hp=mK([$0(4,Ke),$0(5,Kc)],hp)});var kge,a2,G0,AI,LI,DI,MI,th,gK=N(()=>{mi();jt();j0();ke();CI();et();Pt();SI();lK();yu();K0();He();Sr();wt();wI();Ut();EI();II();kge=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},a2=function(i,e){return function(t,r){e(t,r,i)}},G0=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},LI="editor.experimental.dropIntoEditor.defaultProvider",DI="editor.changeDropType",MI=new ht("dropWidgetVisible",!1,b("dropWidgetVisible","Whether the drop widget is showing")),th=AI=class extends ce{static get(e){return e.getContribution(AI.ID)}constructor(e,t,r,n,o){super(),this._configService=r,this._languageFeaturesService=n,this._treeViewsDragAndDropService=o,this.treeItemsTransfer=dp.getInstance(),this._dropProgressManager=this._register(t.createInstance(up,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(hp,"dropIntoEditor",e,MI,{id:DI,label:b("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor(s=>this.onDropIntoEditor(e,s.position,s.event)))}changeDropType(){this._postDropWidgetManager.tryShowSelector()}onDropIntoEditor(e,t,r){var n;return G0(this,void 0,void 0,function*(){if(!r.dataTransfer||!e.hasModel())return;(n=this._currentOperation)===null||n===void 0||n.cancel(),e.focus(),e.setPosition(t);let o=Jt(s=>G0(this,void 0,void 0,function*(){let a=new ga(e,1,void 0,s);try{let l=yield this.extractDataTransferData(r);if(l.size===0||a.token.isCancellationRequested)return;let c=e.getModel();if(!c)return;let d=this._languageFeaturesService.documentOnDropEditProvider.ordered(c).filter(h=>h.dropMimeTypes?h.dropMimeTypes.some(f=>l.matches(f)):!0),u=yield this.getDropEdits(d,c,t,l,a);if(a.token.isCancellationRequested)return;if(u.length){let h=this.getInitialActiveEditIndex(c,u),f=e.getOption(35).showDropSelector==="afterDrop";yield this._postDropWidgetManager.applyEditAndShowIfNeeded([B.fromPositions(t)],{activeEditIndex:h,allEdits:u},f,s)}}finally{a.dispose(),this._currentOperation===o&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,b("dropIntoEditorProgress","Running drop handlers. Click to cancel"),o),this._currentOperation=o})}getDropEdits(e,t,r,n,o){return G0(this,void 0,void 0,function*(){let s=yield Vc(Promise.all(e.map(l=>G0(this,void 0,void 0,function*(){try{let c=yield l.provideDocumentOnDropEdits(t,r,n,o.token);if(c)return Object.assign(Object.assign({},c),{providerId:l.id})}catch(c){console.error(c)}}))),o.token),a=hn(s!=null?s:[]);return o2(a)})}getInitialActiveEditIndex(e,t){let r=this._configService.getValue(LI,{resource:e.uri});for(let[n,o]of Object.entries(r)){let s=t.findIndex(a=>o===a.providerId&&a.handledMimeType&&Xx(n,[a.handledMimeType]));if(s>=0)return s}return 0}extractDataTransferData(e){return G0(this,void 0,void 0,function*(){if(!e.dataTransfer)return new lp;let t=i2(e.dataTransfer);if(this.treeItemsTransfer.hasData(q0.prototype)){let r=this.treeItemsTransfer.getData(q0.prototype);if(Array.isArray(r))for(let n of r){let o=yield this._treeViewsDragAndDropService.removeDragOperationTransfer(n.identifier);if(o)for(let[s,a]of o)t.replace(s,a)}}return t})}};th.ID="editor.contrib.dropIntoEditorController";th=AI=kge([a2(1,Ke),a2(2,Mt),a2(3,Se),a2(4,kI)],th)});var NI=N(()=>{lt();tF();j_();vI();He();X3();dl();gK();Ue(th.ID,th,2);We(new class extends Fi{constructor(){super({id:DI,precondition:MI,kbOpts:{weight:100,primary:2137}})}runEditorCommand(i,e,t){var r;(r=th.get(e))===null||r===void 0||r.changeDropType()}});Yc(e2);Jr.as(af.Configuration).registerConfiguration(Object.assign(Object.assign({},k_),{properties:{[LI]:{type:"object",scope:5,description:b("defaultProviderDescription","Configures the default drop provider to use for content of a given mime type."),default:{},additionalProperties:{type:"string"}}}}))});var ja,bK=N(()=>{et();qc();Ur();tn();rn();ja=class i{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){let e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){let t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){let t=e{if(this._highlightedDecorationId!==null&&(n.changeDecorationOptions(this._highlightedDecorationId,i._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,n.changeDecorationOptions(this._highlightedDecorationId,i._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(n.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let o=this._editor.getModel().getDecorationRange(t);if(o.startLineNumber!==o.endLineNumber&&o.endColumn===1){let s=o.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(s);o=new B(o.startLineNumber,o.startColumn,s,a)}this._rangeHighlightDecorationId=n.addDecoration(o,i._RANGE_HIGHLIGHT_DECORATION)}}),r}set(e,t){this._editor.changeDecorations(r=>{let n=i._FIND_MATCH_DECORATION,o=[];if(e.length>1e3){n=i._FIND_MATCH_NO_OVERVIEW_DECORATION;let a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c)),u=e[0].range.startLineNumber,h=e[0].range.endLineNumber;for(let f=1,m=e.length;f=g.startLineNumber?g.endLineNumber>h&&(h=g.endLineNumber):(o.push({range:new B(u,1,h,1),options:i._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),u=g.startLineNumber,h=g.endLineNumber)}o.push({range:new B(u,1,h,1),options:i._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let s=new Array(e.length);for(let a=0,l=e.length;ar.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>r.addDecoration(a,i._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){let r=this._decorations[t],n=this._editor.getModel().getDecorationRange(r);if(!(!n||n.endLineNumber>e.lineNumber)){if(n.endLineNumbere.column))return n}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,r=this._decorations.length;te.lineNumber)return o;if(!(o.startColumn{et();l2=class{constructor(e,t,r){this._editorSelection=e,this._ranges=t,this._replaceStrings=r,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let r=[];for(let s=0;sB.compareRangesUsingStarts(s.range,a.range));let n=[],o=r[0];for(let s=1;s0?e[0].toUpperCase()+e.substr(1):i[0][0].toUpperCase()!==i[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function _K(i,e,t){return i[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&i[0].split(t).length===e.split(t).length}function yK(i,e,t){let r=e.split(t),n=i[0].split(t),o="";return r.forEach((s,a)=>{o+=RI([n[a]],s)+t}),o.slice(0,-1)}var wK=N(()=>{Ni()});function xK(i){if(!i||i.length===0)return new pp(null);let e=[],t=new OI(i);for(let r=0,n=i.length;r=n)break;let s=i.charCodeAt(r);switch(s){case 92:t.emitUnchanged(r-1),t.emitStatic("\\",r+1);break;case 110:t.emitUnchanged(r-1),t.emitStatic(` -`,r+1);break;case 116:t.emitUnchanged(r-1),t.emitStatic(" ",r+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(r-1),t.emitStatic("",r+1),e.push(String.fromCharCode(s));break}continue}if(o===36){if(r++,r>=n)break;let s=i.charCodeAt(r);if(s===36){t.emitUnchanged(r-1),t.emitStatic("$",r+1);continue}if(s===48||s===38){t.emitUnchanged(r-1),t.emitMatchIndex(0,r+1,e),e.length=0;continue}if(49<=s&&s<=57){let a=s-48;if(r+1{wK();c2=class{constructor(e){this.staticValue=e,this.kind=0}},PI=class{constructor(e){this.pieces=e,this.kind=1}},pp=class i{static fromStaticValue(e){return new i([fp.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new c2(""):e.length===1&&e[0].staticValue!==null?this._state=new c2(e[0].staticValue):this._state=new PI(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?RI(e,this._state.staticValue):this._state.staticValue;let r="";for(let n=0,o=this._state.pieces.length;n0){let l=[],c=s.caseOps.length,d=0;for(let u=0,h=a.length;u=c){l.push(a.slice(u));break}switch(s.caseOps[d]){case"U":l.push(a[u].toUpperCase());break;case"u":l.push(a[u].toUpperCase()),d++;break;case"L":l.push(a[u].toLowerCase());break;case"l":l.push(a[u].toLowerCase()),d++;break;default:l.push(a[u])}}a=l.join("")}r+=a}return r}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let r="";for(;e>0;){if(e{mi();jt();ke();Zv();di();et();Ar();Tre();bK();vK();CK();wt();Va=new ht("findWidgetVisible",!1),dWe=Va.toNegated(),mp=new ht("findInputFocussed",!1),Y0=new ht("replaceInputFocussed",!1),X0={primary:545,mac:{primary:2593}},Q0={primary:565,mac:{primary:2613}},Z0={primary:560,mac:{primary:2608}},J0={primary:554,mac:{primary:2602}},eb={primary:558,mac:{primary:2606}},ni={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",StartFindWithArgs:"editor.actions.findWithArgs",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",GoToMatchFindAction:"editor.action.goToMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},Wa=19999,Ege=240,d2=class i{constructor(e,t){this._toDispose=new le,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new aa,this._decorations=new ja(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new ui(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(r=>{(r.reason===3||r.reason===5||r.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(r=>{this._ignoreModelContentChanged||(r.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(r=>this._onStateChanged(r))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,ji(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){this._isDisposed||this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},Ege)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let r=null;typeof t!="undefined"?t!==null&&(Array.isArray(t)?r=t:r=[t]):r=this._decorations.getFindScopes(),r!==null&&(r=r.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new B(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));let n=this._findMatches(r,!1,Wa);this._decorations.set(n,r);let o=this._editor.getSelection(),s=this._decorations.getCurrentMatchesPosition(o);if(s===0&&n.length>0){let a=e_(n.map(l=>l.range),l=>B.compareRangesUsingStarts(l,o)>=0);s=a>0?a-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),e&&this._editor.getOption(40).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:r,column:n}=e,o=this._editor.getModel();return t||n===1?(r===1?r=o.getLineCount():r--,n=o.getLineMaxColumn(r)):n--,new Ie(r,n)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){let d=this._decorations.matchAfterPosition(e);d&&this._setCurrentFindMatch(d);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0),{lineNumber:r,column:n}=e,o=this._editor.getModel();return t||n===o.getLineMaxColumn(r)?(r===o.getLineCount()?r=1:r++,n=1):n++,new Ie(r,n)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){let r=this._decorations.matchBeforePosition(e);r&&this._setCurrentFindMatch(r);return}if(this._decorations.getCount()i._getSearchRange(this._editor.getModel(),o));return this._editor.getModel().findMatches(this._state.searchString,n,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(128):null,t,r)}replaceAll(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=Wa?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){let t=new HO(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(128):null).parseSearchRequest();if(!t)return;let r=t.regex;if(!r.multiline){let u="mu";r.ignoreCase&&(u+="i"),r.global&&(u+="g"),r=new RegExp(r.source,u)}let n=this._editor.getModel(),o=n.getValue(1),s=n.getFullModelRange(),a=this._getReplacePattern(),l,c=this._state.preserveCase;a.hasReplacementPatterns||c?l=o.replace(r,function(){return a.buildReplaceString(arguments,c)}):l=o.replace(r,a.buildReplaceString(null,c));let d=new Qv(s,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",d)}_regularReplaceAll(e){let t=this._getReplacePattern(),r=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),n=[];for(let s=0,a=r.length;ss.range),n);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),r=this._findMatches(e,!1,1073741824).map(o=>new Qe(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)),n=this._editor.getSelection();for(let o=0,s=r.length;o{});var kK=N(()=>{SK()});var ib,EK=N(()=>{Ht();kK();jre();M_();jt();tb();tn();ib=class i extends _l{constructor(e,t,r){super(),this._hideSoon=this._register(new ui(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=r,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");let n={inputActiveOptionBorder:da(g_),inputActiveOptionForeground:da(b_),inputActiveOptionBackground:da(gl)};this.caseSensitive=this._register(new DF(Object.assign({appendTitle:this._keybindingLabelFor(ni.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase},n))),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new MF(Object.assign({appendTitle:this._keybindingLabelFor(ni.ToggleWholeWordCommand),isChecked:this._state.wholeWord},n))),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new NF(Object.assign({appendTitle:this._keybindingLabelFor(ni.ToggleRegexCommand),isChecked:this._state.isRegex},n))),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(o=>{let s=!1;o.isRegex&&(this.regex.checked=this._state.isRegex,s=!0),o.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,s=!0),o.matchCase&&(this.caseSensitive.checked=this._state.matchCase,s=!0),!this._state.isRevealed&&s&&this._revealTemporarily()})),this._register(Lt(this._domNode,bi.MOUSE_LEAVE,o=>this._onMouseLeave())),this._register(Lt(this._domNode,"mouseover",o=>this._onMouseOver()))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return i.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}};ib.ID="editor.contrib.findOptionsWidget"});function u2(i,e){return i===1?!0:i===2?!1:e}var h2,TK=N(()=>{ei();ke();et();tb();h2=class extends ce{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return u2(this._isRegexOverride,this._isRegex)}get wholeWord(){return u2(this._wholeWordOverride,this._wholeWord)}get matchCase(){return u2(this._matchCaseOverride,this._matchCase)}get preserveCase(){return u2(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new Je),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,r){let n={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},o=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,n.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,n.matchesCount=!0,o=!0),typeof r!="undefined"&&(B.equalsRange(this._currentMatch,r)||(this._currentMatch=r,n.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(n)}change(e,t,r=!0){var n;let o={moveCursor:t,updateHistory:r,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},s=!1,a=this.isRegex,l=this.wholeWord,c=this.matchCase,d=this.preserveCase;typeof e.searchString!="undefined"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,s=!0),typeof e.replaceString!="undefined"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,s=!0),typeof e.isRevealed!="undefined"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,s=!0),typeof e.isReplaceRevealed!="undefined"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,s=!0),typeof e.isRegex!="undefined"&&(this._isRegex=e.isRegex),typeof e.wholeWord!="undefined"&&(this._wholeWord=e.wholeWord),typeof e.matchCase!="undefined"&&(this._matchCase=e.matchCase),typeof e.preserveCase!="undefined"&&(this._preserveCase=e.preserveCase),typeof e.searchScope!="undefined"&&(!((n=e.searchScope)===null||n===void 0)&&n.every(u=>{var h;return(h=this._searchScope)===null||h===void 0?void 0:h.some(f=>!B.equalsRange(f,u))})||(this._searchScope=e.searchScope,o.searchScope=!0,s=!0)),typeof e.loop!="undefined"&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,s=!0),typeof e.isSearching!="undefined"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,s=!0),typeof e.filters!="undefined"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,s=!0),this._isRegexOverride=typeof e.isRegexOverride!="undefined"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride!="undefined"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride!="undefined"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride!="undefined"?e.preserveCaseOverride:0,a!==this.isRegex&&(s=!0,o.isRegex=!0),l!==this.wholeWord&&(s=!0,o.wholeWord=!0),c!==this.matchCase&&(s=!0,o.matchCase=!0),d!==this.preserveCase&&(s=!0,o.preserveCase=!0),s&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=Wa}}});var IK=N(()=>{});var AK=N(()=>{IK()});var Tge,Ige,FI,f2,LK=N(()=>{Ht();LF();Wre();M_();Zr();ei();Vre();He();Tge=b("defaultLabel","input"),Ige=b("label.preserveCaseToggle","Preserve Case"),FI=class extends W_{constructor(e){super({icon:pt.preserveCase,title:Ige+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}},f2=class extends _l{constructor(e,t,r,n){super(),this._showOptionButtons=r,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new Je),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new Je),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new Je),this._onInput=this._register(new Je),this._onKeyUp=this._register(new Je),this._onPreserveCaseKeyDown=this._register(new Je),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=n.placeholder||"",this.validation=n.validation,this.label=n.label||Tge;let o=n.appendPreserveCaseLabel||"",s=n.history||[],a=!!n.flexibleHeight,l=!!n.flexibleWidth,c=n.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new RF(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:s,showHistoryHint:n.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:n.inputBoxStyles})),this.preserveCase=this._register(new FI(Object.assign({appendTitle:o,isChecked:!1},n.toggleStyles))),this._register(this.preserveCase.onChange(h=>{this._onDidOptionChange.fire(h),!h&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(h=>{this._onPreserveCaseKeyDown.fire(h)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let d=[this.preserveCase.domNode];this.onkeydown(this.domNode,h=>{if(h.equals(15)||h.equals(17)||h.equals(9)){let f=d.indexOf(document.activeElement);if(f>=0){let m=-1;h.equals(17)?m=(f+1)%d.length:h.equals(15)&&(f===0?m=d.length-1:m=f-1),h.equals(9)?(d[f].blur(),this.inputBox.focus()):m>=0&&d[m].focus(),cu.stop(h,!0)}}});let u=document.createElement("div");u.className="controls",u.style.display=this._showOptionButtons?"block":"none",u.appendChild(this.preserveCase.domNode),this.domNode.appendChild(u),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,h=>this._onKeyDown.fire(h)),this.onkeyup(this.inputBox.inputElement,h=>this._onKeyUp.fire(h)),this.oninput(this.inputBox.inputElement,h=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,h=>this._onMouseDown.fire(h))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}});function PK(i,e){if(p2.includes(e))throw new Error("Cannot register the same widget multiple times");p2.push(e);let t=new le,r=new ht(zI,!1).bindTo(i),n=new ht(NK,!0).bindTo(i),o=new ht(RK,!0).bindTo(i),s=()=>{r.set(!0),ic=e},a=()=>{r.set(!1),ic===e&&(ic=void 0)};return e.element===document.activeElement&&s(),t.add(e.onDidFocus(()=>s())),t.add(e.onDidBlur(()=>a())),t.add(ri(()=>{p2.splice(p2.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:n,historyNavigationBackwardsEnablement:o,dispose(){t.dispose()}}}var DK,MK,b2,zI,NK,RK,ic,p2,m2,g2,BI=N(()=>{qre();LK();wt();j3();He();ke();DK=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},MK=function(i,e){return function(t,r){e(t,r,i)}},b2=new ht("suggestWidgetVisible",!1,b("suggestWidgetVisible","Whether suggestion are visible")),zI="historyNavigationWidgetFocus",NK="historyNavigationForwardsEnabled",RK="historyNavigationBackwardsEnabled",p2=[];m2=class extends PF{constructor(e,t,r,n){super(e,t,r);let o=this._register(n.createScoped(this.inputBox.element));this._register(PK(o,this.inputBox))}};m2=DK([MK(3,it)],m2);g2=class extends f2{constructor(e,t,r,n,o=!1){super(e,t,o,r);let s=this._register(n.createScoped(this.inputBox.element));this._register(PK(s,this.inputBox))}};g2=DK([MK(3,it)],g2);Ao.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:fe.and(fe.has(zI),fe.equals(RK,!0),fe.not("isComposing"),b2.isEqualTo(!1)),primary:16,secondary:[528],handler:i=>{ic==null||ic.showPreviousValue()}});Ao.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:fe.and(fe.has(zI),fe.equals(NK,!0),fe.not("isComposing"),b2.isEqualTo(!1)),primary:18,secondary:[530],handler:i=>{ic==null||ic.showNextValue()}})});function HI(i){var e,t;return((e=i.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=i.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}var OK=N(()=>{});function jK(i,e,t){let r=!!e.match(/\n/);if(t&&r&&t.selectionStart>0){i.stopPropagation();return}}function WK(i,e,t){let r=!!e.match(/\n/);if(t&&r&&t.selectionEnd{Ht();Io();LF();bk();M_();jt();Zr();qt();ke();Tn();Ni();AK();et();tb();He();BI();OK();tn();Sl();rn();An();ok();zr();O_();Age=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Lge=Pi("find-selection",pt.selection,b("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),FK=Pi("find-collapsed",pt.chevronRight,b("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),zK=Pi("find-expanded",pt.chevronDown,b("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),Dge=Pi("find-replace",pt.replace,b("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),Mge=Pi("find-replace-all",pt.replaceAll,b("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),Nge=Pi("find-previous-match",pt.arrowUp,b("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),Rge=Pi("find-next-match",pt.arrowDown,b("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),Pge=b("label.findDialog","Find / Replace"),Oge=b("label.find","Find"),Fge=b("placeholder.find","Find"),zge=b("label.previousMatchButton","Previous Match"),Bge=b("label.nextMatchButton","Next Match"),Hge=b("label.toggleSelectionFind","Find in Selection"),Uge=b("label.closeButton","Close"),jge=b("label.replace","Replace"),Wge=b("placeholder.replace","Replace"),Vge=b("label.replaceButton","Replace"),qge=b("label.replaceAllButton","Replace All"),Kge=b("label.toggleReplaceButton","Toggle Replace"),$ge=b("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Wa),Gge=b("label.matchesLocation","{0} of {1}"),BK=b("label.noResults","No results"),qa=419,Yge=275,Xge=Yge-54,rb=69,Qge=33,HK="ctrlEnterReplaceAll.windows.donotask",UK=En?256:2048,nb=class{constructor(e){this.afterLineNumber=e,this.heightInPx=Qge,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}};ob=class i extends _l{constructor(e,t,r,n,o,s,a,l,c){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=r,this._contextViewProvider=n,this._keybindingService=o,this._contextKeyService=s,this._storageService=l,this._notificationService=c,this._ctrlEnterReplaceAllWarningPrompted=!!l.getBoolean(HK,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new Do(500),this._register(ri(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(d=>this._onStateChanged(d))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(d=>{if(d.hasChanged(89)&&(this._codeEditor.getOption(89)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),d.hasChanged(142)&&this._tryUpdateWidgetWidth(),d.hasChanged(2)&&this.updateAccessibilitySupport(),d.hasChanged(40)){let u=this._codeEditor.getOption(40).loop;this._state.change({loop:u},!1);let h=this._codeEditor.getOption(40).addExtraSpaceOnTop;h&&!this._viewZone&&(this._viewZone=new nb(0),this._showViewZone()),!h&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>Age(this,void 0,void 0,function*(){if(this._isVisible){let d=yield this._controller.getGlobalBufferTerm();d&&d!==this._state.searchString&&(this._state.change({searchString:d},!1),this._findInput.select())}}))),this._findInputFocused=mp.bindTo(s),this._findFocusTracker=this._register(xs(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=Y0.bindTo(s),this._replaceFocusTracker=this._register(xs(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(40).addExtraSpaceOnTop&&(this._viewZone=new nb(0)),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(d=>{if(d.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return i.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(89)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=Kn(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){let t=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,ft)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=rb+"px",this._state.matchesCount>=Wa?this._matchesCount.title=$ge:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let e;if(this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=Wa&&(t+="+");let r=String(this._state.matchesPosition);r==="0"&&(r="?"),e=nf(Gge,r,t)}else e=BK;this._matchesCount.appendChild(document.createTextNode(e)),ar(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),rb=Math.max(rb,this._matchesCount.clientWidth)}_getAriaLabel(e,t,r){if(e===BK)return r===""?b("ariaSearchNoResultEmpty","{0} found",e):b("ariaSearchNoResult","{0} found for '{1}'",e,r);if(t){let n=b("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,r,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();return o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1?`${o.getLineContent(t.startLineNumber)}, ${n}`:n}return b("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,r)}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,r=this._toggleSelectionFind.checked;this._isVisible&&(r||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let r=!this._codeEditor.getOption(89);this._toggleReplaceBtn.setEnabled(this._isVisible&&r)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;let e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(40).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{let r=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=r;break}default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(40).seedSearchStringFromSelection&&e){let r=this._codeEditor.getDomNode();if(r){let n=Zi(r),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),s=n.left+(o?o.left:0),a=o?o.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);let l=oP(this._domNode).left;s>l&&(t=!1);let c=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());n.left+(c?c.left:0)>l&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(t=>{clearTimeout(t)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(40).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;let r=this._viewZone;this._viewZoneId!==void 0||!r||this._codeEditor.changeViewZones(n=>{r.heightInPx=this._getHeight(),this._viewZoneId=n.addZone(r),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+r.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(40).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new nb(0));let r=this._viewZone;this._codeEditor.changeViewZones(n=>{if(this._viewZoneId!==void 0){let o=this._getHeight();if(o===r.heightInPx)return;let s=o-r.heightInPx;r.heightInPx=o,n.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s);return}else{let o=this._getHeight();if(o-=this._codeEditor.getOption(82).top,o<=0)return;r.heightInPx=o,this._viewZoneId=n.addZone(r),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_tryUpdateWidgetWidth(){if(!this._isVisible||!iP(this._domNode))return;let e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");let r=e.width,n=e.minimap.minimapWidth,o=!1,s=!1,a=!1;if(this._resized&&Kn(this._domNode)>qa){this._domNode.style.maxWidth=`${r-28-n-15}px`,this._replaceInput.width=Kn(this._findInput.domNode);return}if(qa+28+n>=r&&(s=!0),qa+28+n-rb>=r&&(a=!0),qa+28+n-rb>=r+50&&(o=!0),this._domNode.classList.toggle("collapsed-find-widget",o),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",s),!a&&!o&&(this._domNode.style.maxWidth=`${r-28-n-15}px`),this._findInput.layout({collapsedFindWidget:o,narrowFindWidget:a,reducedFindWidget:s}),this._resized){let l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=Kn(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){let e=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===e?!1:(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));let r=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!B.equalsRange(t,r)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(UK|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` -`),e.preventDefault();return}if(e.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return jK(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(e.equals(18))return WK(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(e){if(e.equals(UK|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{Rc&&Pc&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(b("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(HK,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(` -`),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return jK(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(e.equals(18))return WK(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new m2(null,this._contextViewProvider,{width:Xge,label:Oge,placeholder:Fge,appendCaseSensitiveLabel:this._keybindingLabelFor(ni.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor(ni.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor(ni.ToggleRegexCommand),validation:l=>{if(l.length===0||!this._findInput.getRegex())return null;try{return new RegExp(l,"gu"),null}catch(c){return{content:c.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>HI(this._keybindingService),inputBoxStyles:hk,toggleStyles:uk},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(l=>this._onFindInputKeyDown(l))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(l=>{l.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),l.preventDefault())})),this._register(this._findInput.onRegexKeyDown(l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),l.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(l=>{this._tryUpdateHeight()&&this._showViewZone()})),Y9&&this._register(this._findInput.onMouseDown(l=>this._onFindInputMouseDown(l))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new Id({label:zge+this._keybindingLabelFor(ni.PreviousMatchFindAction),icon:Nge,onTrigger:()=>{Nc(this._codeEditor.getAction(ni.PreviousMatchFindAction)).run().then(void 0,ft)}})),this._nextBtn=this._register(new Id({label:Bge+this._keybindingLabelFor(ni.NextMatchFindAction),icon:Rge,onTrigger:()=>{Nc(this._codeEditor.getAction(ni.NextMatchFindAction)).run().then(void 0,ft)}}));let r=document.createElement("div");r.className="find-part",r.appendChild(this._findInput.domNode);let n=document.createElement("div");n.className="find-actions",r.appendChild(n),n.appendChild(this._matchesCount),n.appendChild(this._prevBtn.domNode),n.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new W_({icon:Lge,title:Hge+this._keybindingLabelFor(ni.ToggleSearchScopeCommand),isChecked:!1,inputActiveOptionBackground:da(gl),inputActiveOptionBorder:da(g_),inputActiveOptionForeground:da(b_)})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let l=this._codeEditor.getSelections();l.map(c=>(c.endColumn===1&&c.endLineNumber>c.startLineNumber&&(c=c.setEndPosition(c.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(c.endLineNumber-1))),c.isEmpty()?null:c)).filter(c=>!!c),l.length&&this._state.change({searchScope:l},!0)}}else this._state.change({searchScope:null},!0)})),n.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new Id({label:Uge+this._keybindingLabelFor(ni.CloseFindWidgetCommand),icon:V_,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),l.preventDefault())}})),this._replaceInput=this._register(new g2(null,void 0,{label:jge,placeholder:Wge,appendPreserveCaseLabel:this._keybindingLabelFor(ni.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>HI(this._keybindingService),inputBoxStyles:hk,toggleStyles:uk},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(l=>this._onReplaceInputKeyDown(l))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(l=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(l=>{l.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),l.preventDefault())})),this._replaceBtn=this._register(new Id({label:Vge+this._keybindingLabelFor(ni.ReplaceOneAction),icon:Dge,onTrigger:()=>{this._controller.replace()},onKeyDown:l=>{l.equals(1026)&&(this._closeBtn.focus(),l.preventDefault())}})),this._replaceAllBtn=this._register(new Id({label:qge+this._keybindingLabelFor(ni.ReplaceAllAction),icon:Mge,onTrigger:()=>{this._controller.replaceAll()}}));let o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);let s=document.createElement("div");s.className="replace-actions",o.appendChild(s),s.appendChild(this._replaceBtn.domNode),s.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new Id({label:Kge,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=Kn(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.ariaLabel=Pge,this._domNode.role="dialog",this._domNode.style.width=`${qa}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(r),this._domNode.appendChild(this._closeBtn.domNode),this._domNode.appendChild(o),this._resizeSash=new Cl(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let a=qa;this._register(this._resizeSash.onDidStart(()=>{a=Kn(this._domNode)})),this._register(this._resizeSash.onDidChange(l=>{this._resized=!0;let c=a+l.startX-l.currentX;if(cd||(this._domNode.style.width=`${c}px`,this._isReplaceVisible&&(this._replaceInput.width=Kn(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{let l=Kn(this._domNode);if(l{this._opts.onTrigger(),r.preventDefault()}),this.onkeydown(this._domNode,r=>{var n,o;if(r.equals(10)||r.equals(3)){this._opts.onTrigger(),r.preventDefault();return}(o=(n=this._opts).onKeyDown)===null||o===void 0||o.call(n,r)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(..._t.asClassNameArray(FK)),this._domNode.classList.add(..._t.asClassNameArray(zK))):(this._domNode.classList.remove(..._t.asClassNameArray(zK)),this._domNode.classList.add(..._t.asClassNameArray(FK)))}};bf((i,e)=>{let t=(g,w)=>{w&&e.addRule(`.monaco-editor ${g} { background-color: ${w}; }`)};t(".findMatch",i.getColor(SO)),t(".currentFindMatch",i.getColor(CO)),t(".findScope",i.getColor(kO));let r=i.getColor(bl);t(".find-widget",r);let n=i.getColor(p_);n&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${n}; }`);let o=i.getColor(m_);o&&e.addRule(`.monaco-editor .find-widget { border-left: 1px solid ${o}; border-right: 1px solid ${o}; border-bottom: 1px solid ${o}; }`);let s=i.getColor(TO);s&&e.addRule(`.monaco-editor .findMatch { border: 1px ${_u(i.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);let a=i.getColor(EO);a&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${a}; padding: 1px; box-sizing: border-box; }`);let l=i.getColor(IO);l&&e.addRule(`.monaco-editor .findScope { border: 1px ${_u(i.type)?"dashed":"solid"} ${l}; }`);let c=i.getColor(ts);c&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${c}; }`);let d=i.getColor(yO);d&&e.addRule(`.monaco-editor .find-widget { color: ${d}; }`);let u=i.getColor(dO);u&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${u}; }`);let h=i.getColor(wO);if(h)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${h}; }`);else{let g=i.getColor(vu);g&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${g}; }`)}let f=i.getColor(FO);f&&e.addRule(` +`),parse:i=>Uu.split(i).filter(e=>!e.startsWith("#"))})});function sq(i){return ip(this,void 0,void 0,function*(){let e=i.get(Vn.uriList);if(!e)return[];let t=yield e.asString(),n=[];for(let r of Uu.parse(t))try{n.push({uri:ft.parse(r),originalText:r})}catch(o){}return n})}var cE,S0,ip,dE,w0,dy,uy,hy,fy,py,uE=M(()=>{oi();C0();Ce();vw();Im();ao();Sn();xt();Re();cb();cE=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},S0=function(i,e){return function(t,n){e(t,n,i)}},ip=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},dE=v("builtIn","Built-in"),w0=class{provideDocumentPasteEdits(e,t,n,r){return ip(this,void 0,void 0,function*(){let o=yield this.getEdit(n,r);return o?{id:this.id,insertText:o.insertText,label:o.label,detail:o.detail,priority:o.priority}:void 0})}provideDocumentOnDropEdits(e,t,n,r){return ip(this,void 0,void 0,function*(){let o=yield this.getEdit(n,r);return o?{id:this.id,insertText:o.insertText,label:o.label,priority:o.priority}:void 0})}},dy=class extends w0{constructor(){super(...arguments),this.id="text",this.dropMimeTypes=[Vn.text],this.pasteMimeTypes=[Vn.text]}getEdit(e,t){return ip(this,void 0,void 0,function*(){let n=e.get(Vn.text);if(!n||e.has(Vn.uriList))return;let r=yield n.asString();return{id:this.id,priority:0,label:v("text.label","Insert Plain Text"),detail:dE,insertText:r}})}},uy=class extends w0{constructor(){super(...arguments),this.id="uri",this.dropMimeTypes=[Vn.uriList],this.pasteMimeTypes=[Vn.uriList]}getEdit(e,t){return ip(this,void 0,void 0,function*(){let n=yield sq(e);if(!n.length||t.isCancellationRequested)return;let r=0,o=n.map(({uri:a,originalText:l})=>a.scheme===Ao.file?a.fsPath:(r++,l)).join(" "),s;return r>0?s=n.length>1?v("defaultDropProvider.uriList.uris","Insert Uris"):v("defaultDropProvider.uriList.uri","Insert Uri"):s=n.length>1?v("defaultDropProvider.uriList.paths","Insert Paths"):v("defaultDropProvider.uriList.path","Insert Path"),{id:this.id,priority:0,insertText:o,label:s,detail:dE}})}},hy=class extends w0{constructor(e){super(),this._workspaceContextService=e,this.id="relativePath",this.dropMimeTypes=[Vn.uriList],this.pasteMimeTypes=[Vn.uriList]}getEdit(e,t){return ip(this,void 0,void 0,function*(){let n=yield sq(e);if(!n.length||t.isCancellationRequested)return;let r=vr(n.map(({uri:o})=>{let s=this._workspaceContextService.getWorkspaceFolder(o);return s?uO(s.uri,o):void 0}));if(r.length)return{id:this.id,priority:0,insertText:r.join(" "),label:n.length>1?v("defaultDropProvider.uriList.relativePaths","Insert Relative Paths"):v("defaultDropProvider.uriList.relativePath","Insert Relative Path"),detail:dE}})}};hy=cE([S0(0,Il)],hy);fy=class extends oe{constructor(e,t){super(),this._register(e.documentOnDropEditProvider.register("*",new dy)),this._register(e.documentOnDropEditProvider.register("*",new uy)),this._register(e.documentOnDropEditProvider.register("*",new hy(t)))}};fy=cE([S0(0,be),S0(1,Il)],fy);py=class extends oe{constructor(e,t){super(),this._register(e.documentPasteEditProvider.register("*",new dy)),this._register(e.documentPasteEditProvider.register("*",new uy)),this._register(e.documentPasteEditProvider.register("*",new hy(t)))}};py=cE([S0(0,be),S0(1,Il)],py)});var fE,hE,m1e,np,pE=M(()=>{Bc();fE={EDITORS:"CodeEditors",FILES:"CodeFiles"},hE=class{},m1e={DragAndDropContribution:"workbench.contributions.dragAndDrop"};Mr.add(m1e.DragAndDropContribution,new hE);np=class i{constructor(){}static getInstance(){return i.INSTANCE}hasData(e){return e&&e===this.proto}getData(e){if(this.hasData(e))return this.data}};np.INSTANCE=new np});function mE(i){let e=new tp;for(let t of i.items){let n=t.type;if(t.kind==="string"){let r=new Promise(o=>t.getAsString(o));e.append(n,y0(r))}else if(t.kind==="file"){let r=t.getAsFile();r&&e.append(n,v1e(r))}}return e}function v1e(i){let e=i.path?ft.parse(i.path):void 0;return nq(i.name,e,()=>g1e(this,void 0,void 0,function*(){return new Uint8Array(yield i.arrayBuffer())}))}function my(i,e=!1){let t=mE(i),n=t.get(eb.INTERNAL_URI_LIST);if(n)t.replace(Vn.uriList,n);else if(e||!t.has(Vn.uriList)){let r=[];for(let o of i.items){let s=o.getAsFile();if(s){let a=s.path;try{a?r.push(ft.file(a).toString()):r.push(ft.parse(s.name,!0).toString())}catch(l){}}}r.length&&t.replace(Vn.uriList,y0(Uu.create(r)))}for(let r of _1e)t.delete(r);return t}var g1e,_1e,gE=M(()=>{boe();C0();vw();Sn();pE();g1e=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};_1e=Object.freeze([fE.EDITORS,fE.FILES,eb.RESOURCES,eb.INTERNAL_URI_LIST])});var gy,x0,vE=M(()=>{gy=class{constructor(){this._dragOperations=new Map}removeDragOperationTransfer(e){if(e&&this._dragOperations.has(e)){let t=this._dragOperations.get(e);return this._dragOperations.delete(e),t}}},x0=class{constructor(e){this.identifier=e}}});var _E,aq=M(()=>{bl();Et();vE();_E=rr("treeViewsDndService");sr(_E,gy,1)});var lq=M(()=>{});var cq=M(()=>{lq()});var b1e,y1e,C1e,S1e,vy,rp,E0=M(()=>{Bt();Dt();or();Ce();wi();Kr();cq();qe();qn();Et();b1e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},y1e=function(i,e){return function(t,n){e(t,n,i)}},C1e=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},S1e=dt.register({description:"inline-progress-widget",stickiness:1,showIfCollapsed:!0,after:{content:C_,inlineClassName:"inline-editor-progress-decoration",inlineClassNameAffectsLetterSpacing:!0}}),vy=class i extends oe{constructor(e,t,n,r,o){super(),this.typeId=e,this.editor=t,this.range=n,this.delegate=o,this.allowEditorOverflow=!1,this.suppressMouseDown=!0,this.create(r),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this)}create(e){this.domNode=fe(".inline-progress-widget"),this.domNode.role="button",this.domNode.title=e;let t=fe("span.icon");this.domNode.append(t),t.classList.add(...gt.asClassNameArray(ct.loading),"codicon-modifier-spin");let n=()=>{let r=this.editor.getOption(64);this.domNode.style.height=`${r}px`,this.domNode.style.width=`${Math.ceil(.8*r)}px`};n(),this._register(this.editor.onDidChangeConfiguration(r=>{(r.hasChanged(50)||r.hasChanged(64))&&n()})),this._register(Rt(this.domNode,on.CLICK,r=>{this.delegate.cancel()}))}getId(){return i.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:{lineNumber:this.range.startLineNumber,column:this.range.startColumn},preference:[0]}}dispose(){super.dispose(),this.editor.removeContentWidget(this)}};vy.baseId="editor.widget.inlineProgressWidget";rp=class extends oe{constructor(e,t,n){super(),this.id=e,this._editor=t,this._instantiationService=n,this._showDelay=500,this._showPromise=this._register(new Hi),this._currentWidget=new Hi,this._operationIdPool=0,this._currentDecorations=t.createDecorationsCollection()}showWhile(e,t,n){return C1e(this,void 0,void 0,function*(){let r=this._operationIdPool++;this._currentOperation=r,this.clear(),this._showPromise.value=wl(()=>{let o=P.fromPositions(e);this._currentDecorations.set([{range:o,options:S1e}]).length>0&&(this._currentWidget.value=this._instantiationService.createInstance(vy,this.id,this._editor,o,t,n))},this._showDelay);try{return yield n}finally{this._currentOperation===r&&(this.clear(),this._currentOperation=void 0)}})}clear(){this._showPromise.clear(),this._currentDecorations.clear(),this._currentWidget.clear()}};rp=b1e([y1e(2,Be)],rp)});var dq=M(()=>{});var uq=M(()=>{dq()});var fq,T0,hq,_y,op,bE=M(()=>{Bt();koe();Pc();Gt();Ce();uq();Qm();pt();Tl();Et();Gn();fq=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},T0=function(i,e){return function(t,n){e(t,n,i)}},hq=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},_y=class pq extends oe{constructor(e,t,n,r,o,s,a,l,c,d){super(),this.typeId=e,this.editor=t,this.showCommand=r,this.range=o,this.edits=s,this.onSelectNewEdit=a,this._contextMenuService=l,this._keybindingService=d,this.allowEditorOverflow=!0,this.suppressMouseDown=!0,this.create(),this.visibleContext=n.bindTo(c),this.visibleContext.set(!0),this._register(Ft(()=>this.visibleContext.reset())),this.editor.addContentWidget(this),this.editor.layoutContentWidget(this),this._register(Ft(()=>this.editor.removeContentWidget(this))),this._register(this.editor.onDidChangeCursorPosition(u=>{o.containsPosition(u.position)||this.dispose()})),this._register(li.runAndSubscribe(d.onDidUpdateKeybindings,()=>{this._updateButtonTitle()}))}_updateButtonTitle(){var e;let t=(e=this._keybindingService.lookupKeybinding(this.showCommand.id))===null||e===void 0?void 0:e.getLabel();this.button.element.title=this.showCommand.label+(t?` (${t})`:"")}create(){this.domNode=fe(".post-edit-widget"),this.button=this._register(new RP(this.domNode,{supportIcons:!0})),this.button.label="$(insert)",this._register(Rt(this.domNode,on.CLICK,()=>this.showSelector()))}getId(){return pq.baseId+"."+this.typeId}getDomNode(){return this.domNode}getPosition(){return{position:this.range.getEndPosition(),preference:[2]}}showSelector(){this._contextMenuService.showContextMenu({getAnchor:()=>{let e=wn(this.button.element);return{x:e.left+e.width,y:e.top+e.height}},getActions:()=>this.edits.allEdits.map((e,t)=>Yh({id:"",label:e.label,checked:t===this.edits.activeEditIndex,run:()=>{if(t!==this.edits.activeEditIndex)return this.onSelectNewEdit(t)}}))})}};_y.baseId="editor.widget.postEditWidget";_y=fq([T0(7,ls),T0(8,Ke),T0(9,Ht)],_y);op=class extends oe{constructor(e,t,n,r,o,s){super(),this._id=e,this._editor=t,this._visibleContext=n,this._showCommand=r,this._instantiationService=o,this._bulkEditService=s,this._currentWidget=this._register(new Hi),this._register(li.any(t.onDidChangeModel,t.onDidChangeModelContent)(()=>this.clear()))}applyEditAndShowIfNeeded(e,t,n,r){var o,s;return hq(this,void 0,void 0,function*(){let a=this._editor.getModel();if(!a||!e.length)return;let l=t.allEdits[t.activeEditIndex];if(!l)return;let c={edits:[...e.map(m=>new Q_(a.uri,typeof l.insertText=="string"?{range:m,text:l.insertText,insertAsSnippet:!1}:{range:m,text:l.insertText.snippet,insertAsSnippet:!0})),...(s=(o=l.additionalEdit)===null||o===void 0?void 0:o.edits)!==null&&s!==void 0?s:[]]},d=e[0],u=a.deltaDecorations([],[{range:d,options:{description:"paste-line-suffix",stickiness:0}}]),h,p;try{h=yield this._bulkEditService.apply(c,{editor:this._editor,token:r}),p=a.getDecorationRange(u[0])}finally{a.deltaDecorations(u,[])}n&&h.isApplied&&t.allEdits.length>1&&this.show(p!=null?p:d,t,m=>hq(this,void 0,void 0,function*(){let g=this._editor.getModel();g&&(yield g.undo(),this.applyEditAndShowIfNeeded(e,{activeEditIndex:m,allEdits:t.allEdits},n,r))}))})}show(e,t,n){this.clear(),this._editor.hasModel()&&(this._currentWidget.value=this._instantiationService.createInstance(_y,this._id,this._editor,this._visibleContext,this._showCommand,e,t,n))}clear(){this._currentWidget.clear()}tryShowSelector(){var e;(e=this._currentWidget.value)===null||e===void 0||e.showSelector()}};op=fq([T0(4,Be),T0(5,qc)],op)});var w1e,yE,by,CE,SE,ju,gq=M(()=>{oi();Dt();C0();Ce();gE();qe();xt();vE();aq();lu();E0();Re();pt();pE();Et();bE();w1e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},yE=function(i,e){return function(t,n){e(t,n,i)}},by=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},CE="editor.changeDropType",SE=new rt("dropWidgetVisible",!1,v("dropWidgetVisible","Whether the drop widget is showing")),ju=class mq extends oe{static get(e){return e.getContribution(mq.ID)}constructor(e,t,n,r){super(),this._languageFeaturesService=n,this._treeViewsDragAndDropService=r,this.treeItemsTransfer=np.getInstance(),this._dropProgressManager=this._register(t.createInstance(rp,"dropIntoEditor",e)),this._postDropWidgetManager=this._register(t.createInstance(op,"dropIntoEditor",e,SE,{id:CE,label:v("postDropWidgetTitle","Show drop options...")})),this._register(e.onDropIntoEditor(o=>this.onDropIntoEditor(e,o.position,o.event)))}changeDropType(){this._postDropWidgetManager.tryShowSelector()}onDropIntoEditor(e,t,n){var r;return by(this,void 0,void 0,function*(){if(!n.dataTransfer||!e.hasModel())return;(r=this._currentOperation)===null||r===void 0||r.cancel(),e.focus(),e.setPosition(t);let o=Kt(s=>by(this,void 0,void 0,function*(){let a=new Sa(e,1,void 0,s);try{let l=yield this.extractDataTransferData(n);if(l.size===0||a.token.isCancellationRequested)return;let c=e.getModel();if(!c)return;let d=this._languageFeaturesService.documentOnDropEditProvider.ordered(c).filter(h=>h.dropMimeTypes?h.dropMimeTypes.some(p=>l.matches(p)):!0),u=yield this.getDropEdits(d,c,t,l,a);if(a.token.isCancellationRequested)return;if(u.length){let h=e.getOption(34).showDropSelector==="afterDrop";yield this._postDropWidgetManager.applyEditAndShowIfNeeded([P.fromPositions(t)],{activeEditIndex:0,allEdits:u},h,s)}}finally{a.dispose(),this._currentOperation===o&&(this._currentOperation=void 0)}}));this._dropProgressManager.showWhile(t,v("dropIntoEditorProgress","Running drop handlers. Click to cancel"),o),this._currentOperation=o})}getDropEdits(e,t,n,r,o){return by(this,void 0,void 0,function*(){let s=yield Vc(Promise.all(e.map(l=>l.provideDocumentOnDropEdits(t,n,r,o.token))),o.token),a=vr(s!=null?s:[]);return a.sort((l,c)=>c.priority-l.priority),a})}extractDataTransferData(e){return by(this,void 0,void 0,function*(){if(!e.dataTransfer)return new tp;let t=my(e.dataTransfer);if(this.treeItemsTransfer.hasData(x0.prototype)){let n=this.treeItemsTransfer.getData(x0.prototype);if(Array.isArray(n))for(let r of n){let o=yield this._treeViewsDragAndDropService.removeDragOperationTransfer(r.identifier);if(o)for(let[s,a]of o)t.replace(s,a)}}return t})}};ju.ID="editor.contrib.dropIntoEditorController";ju=w1e([yE(1,Be),yE(2,be),yE(3,_E)],ju)});var wE=M(()=>{et();db();uE();gq();Ae(ju.ID,ju,2);Ne(new class extends xi{constructor(){super({id:CE,precondition:SE,kbOpts:{weight:100,primary:2137}})}runEditorCommand(i,e,t){var n;(n=ju.get(e))===null||n===void 0||n.changeDropType()}});Yc(fy)});var $a,vq=M(()=>{qe();Kc();qn();_r();ar();$a=class i{constructor(e){this._editor=e,this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null,this._startPosition=this._editor.getPosition()}dispose(){this._editor.removeDecorations(this._allDecorations()),this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}reset(){this._decorations=[],this._overviewRulerApproximateDecorations=[],this._findScopeDecorationIds=[],this._rangeHighlightDecorationId=null,this._highlightedDecorationId=null}getCount(){return this._decorations.length}getFindScope(){return this._findScopeDecorationIds[0]?this._editor.getModel().getDecorationRange(this._findScopeDecorationIds[0]):null}getFindScopes(){if(this._findScopeDecorationIds.length){let e=this._findScopeDecorationIds.map(t=>this._editor.getModel().getDecorationRange(t)).filter(t=>!!t);if(e.length)return e}return null}getStartPosition(){return this._startPosition}setStartPosition(e){this._startPosition=e,this.setCurrentFindMatch(null)}_getDecorationIndex(e){let t=this._decorations.indexOf(e);return t>=0?t+1:1}getDecorationRangeAt(e){let t=e{if(this._highlightedDecorationId!==null&&(r.changeDecorationOptions(this._highlightedDecorationId,i._FIND_MATCH_DECORATION),this._highlightedDecorationId=null),t!==null&&(this._highlightedDecorationId=t,r.changeDecorationOptions(this._highlightedDecorationId,i._CURRENT_FIND_MATCH_DECORATION)),this._rangeHighlightDecorationId!==null&&(r.removeDecoration(this._rangeHighlightDecorationId),this._rangeHighlightDecorationId=null),t!==null){let o=this._editor.getModel().getDecorationRange(t);if(o.startLineNumber!==o.endLineNumber&&o.endColumn===1){let s=o.endLineNumber-1,a=this._editor.getModel().getLineMaxColumn(s);o=new P(o.startLineNumber,o.startColumn,s,a)}this._rangeHighlightDecorationId=r.addDecoration(o,i._RANGE_HIGHLIGHT_DECORATION)}}),n}set(e,t){this._editor.changeDecorations(n=>{let r=i._FIND_MATCH_DECORATION,o=[];if(e.length>1e3){r=i._FIND_MATCH_NO_OVERVIEW_DECORATION;let a=this._editor.getModel().getLineCount(),c=this._editor.getLayoutInfo().height/a,d=Math.max(2,Math.ceil(3/c)),u=e[0].range.startLineNumber,h=e[0].range.endLineNumber;for(let p=1,m=e.length;p=g.startLineNumber?g.endLineNumber>h&&(h=g.endLineNumber):(o.push({range:new P(u,1,h,1),options:i._FIND_MATCH_ONLY_OVERVIEW_DECORATION}),u=g.startLineNumber,h=g.endLineNumber)}o.push({range:new P(u,1,h,1),options:i._FIND_MATCH_ONLY_OVERVIEW_DECORATION})}let s=new Array(e.length);for(let a=0,l=e.length;an.removeDecoration(a)),this._findScopeDecorationIds=[]),t!=null&&t.length&&(this._findScopeDecorationIds=t.map(a=>n.addDecoration(a,i._FIND_SCOPE_DECORATION)))})}matchBeforePosition(e){if(this._decorations.length===0)return null;for(let t=this._decorations.length-1;t>=0;t--){let n=this._decorations[t],r=this._editor.getModel().getDecorationRange(n);if(!(!r||r.endLineNumber>e.lineNumber)){if(r.endLineNumbere.column))return r}}return this._editor.getModel().getDecorationRange(this._decorations[this._decorations.length-1])}matchAfterPosition(e){if(this._decorations.length===0)return null;for(let t=0,n=this._decorations.length;te.lineNumber)return o;if(!(o.startColumn{qe();yy=class{constructor(e,t,n){this._editorSelection=e,this._ranges=t,this._replaceStrings=n,this._trackedEditorSelectionId=null}getEditOperations(e,t){if(this._ranges.length>0){let n=[];for(let s=0;sP.compareRangesUsingStarts(s.range,a.range));let r=[],o=n[0];for(let s=1;s0?e[0].toUpperCase()+e.substr(1):i[0][0].toUpperCase()!==i[0][0]&&e.length>0?e[0].toLowerCase()+e.substr(1):e}else return e}function bq(i,e,t){return i[0].indexOf(t)!==-1&&e.indexOf(t)!==-1&&i[0].split(t).length===e.split(t).length}function yq(i,e,t){let n=e.split(t),r=i[0].split(t),o="";return n.forEach((s,a)=>{o+=xE([r[a]],s)+t}),o.slice(0,-1)}var Cq=M(()=>{wi()});function Sq(i){if(!i||i.length===0)return new ap(null);let e=[],t=new TE(i);for(let n=0,r=i.length;n=r)break;let s=i.charCodeAt(n);switch(s){case 92:t.emitUnchanged(n-1),t.emitStatic("\\",n+1);break;case 110:t.emitUnchanged(n-1),t.emitStatic(` +`,n+1);break;case 116:t.emitUnchanged(n-1),t.emitStatic(" ",n+1);break;case 117:case 85:case 108:case 76:t.emitUnchanged(n-1),t.emitStatic("",n+1),e.push(String.fromCharCode(s));break}continue}if(o===36){if(n++,n>=r)break;let s=i.charCodeAt(n);if(s===36){t.emitUnchanged(n-1),t.emitStatic("$",n+1);continue}if(s===48||s===38){t.emitUnchanged(n-1),t.emitMatchIndex(0,n+1,e),e.length=0;continue}if(49<=s&&s<=57){let a=s-48;if(n+1{Cq();Cy=class{constructor(e){this.staticValue=e,this.kind=0}},EE=class{constructor(e){this.pieces=e,this.kind=1}},ap=class i{static fromStaticValue(e){return new i([sp.staticValue(e)])}get hasReplacementPatterns(){return this._state.kind===1}constructor(e){!e||e.length===0?this._state=new Cy(""):e.length===1&&e[0].staticValue!==null?this._state=new Cy(e[0].staticValue):this._state=new EE(e)}buildReplaceString(e,t){if(this._state.kind===0)return t?xE(e,this._state.staticValue):this._state.staticValue;let n="";for(let r=0,o=this._state.pieces.length;r0){let l=[],c=s.caseOps.length,d=0;for(let u=0,h=a.length;u=c){l.push(a.slice(u));break}switch(s.caseOps[d]){case"U":l.push(a[u].toUpperCase());break;case"u":l.push(a[u].toUpperCase()),d++;break;case"L":l.push(a[u].toLowerCase());break;case"l":l.push(a[u].toLowerCase()),d++;break;default:l.push(a[u])}}a=l.join("")}n+=a}return n}static _substitute(e,t){if(t===null)return"";if(e===0)return t[0];let n="";for(;e>0;){if(e{oi();Dt();Ce();E_();ri();qe();Mn();doe();vq();_q();wq();pt();Xa=new rt("findWidgetVisible",!1),LPe=Xa.toNegated(),lp=new rt("findInputFocussed",!1),k0=new rt("replaceInputFocussed",!1),I0={primary:545,mac:{primary:2593}},A0={primary:565,mac:{primary:2613}},L0={primary:560,mac:{primary:2608}},M0={primary:554,mac:{primary:2602}},D0={primary:558,mac:{primary:2606}},$t={StartFindAction:"actions.find",StartFindWithSelection:"actions.findWithSelection",StartFindWithArgs:"editor.actions.findWithArgs",NextMatchFindAction:"editor.action.nextMatchFindAction",PreviousMatchFindAction:"editor.action.previousMatchFindAction",GoToMatchFindAction:"editor.action.goToMatchFindAction",NextSelectionMatchFindAction:"editor.action.nextSelectionMatchFindAction",PreviousSelectionMatchFindAction:"editor.action.previousSelectionMatchFindAction",StartFindReplaceAction:"editor.action.startFindReplaceAction",CloseFindWidgetCommand:"closeFindWidget",ToggleCaseSensitiveCommand:"toggleFindCaseSensitive",ToggleWholeWordCommand:"toggleFindWholeWord",ToggleRegexCommand:"toggleFindRegex",ToggleSearchScopeCommand:"toggleFindInSelection",TogglePreserveCaseCommand:"togglePreserveCase",ReplaceOneAction:"editor.action.replaceOne",ReplaceAllAction:"editor.action.replaceAll",SelectAllMatchesAction:"editor.action.selectAllMatches"},Ya=19999,x1e=240,Sy=class i{constructor(e,t){this._toDispose=new re,this._editor=e,this._state=t,this._isDisposed=!1,this._startSearchingTimer=new ss,this._decorations=new $a(e),this._toDispose.add(this._decorations),this._updateDecorationsScheduler=new ii(()=>this.research(!1),100),this._toDispose.add(this._updateDecorationsScheduler),this._toDispose.add(this._editor.onDidChangeCursorPosition(n=>{(n.reason===3||n.reason===5||n.reason===6)&&this._decorations.setStartPosition(this._editor.getPosition())})),this._ignoreModelContentChanged=!1,this._toDispose.add(this._editor.onDidChangeModelContent(n=>{this._ignoreModelContentChanged||(n.isFlush&&this._decorations.reset(),this._decorations.setStartPosition(this._editor.getPosition()),this._updateDecorationsScheduler.schedule())})),this._toDispose.add(this._state.onFindReplaceStateChange(n=>this._onStateChanged(n))),this.research(!1,this._state.searchScope)}dispose(){this._isDisposed=!0,Vi(this._startSearchingTimer),this._toDispose.dispose()}_onStateChanged(e){this._isDisposed||this._editor.hasModel()&&(e.searchString||e.isReplaceRevealed||e.isRegex||e.wholeWord||e.matchCase||e.searchScope)&&(this._editor.getModel().isTooLargeForSyncing()?(this._startSearchingTimer.cancel(),this._startSearchingTimer.setIfNotSet(()=>{e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor)},x1e)):e.searchScope?this.research(e.moveCursor,this._state.searchScope):this.research(e.moveCursor))}static _getSearchRange(e,t){return t||e.getFullModelRange()}research(e,t){let n=null;typeof t!="undefined"?t!==null&&(Array.isArray(t)?n=t:n=[t]):n=this._decorations.getFindScopes(),n!==null&&(n=n.map(a=>{if(a.startLineNumber!==a.endLineNumber){let l=a.endLineNumber;return a.endColumn===1&&(l=l-1),new P(a.startLineNumber,1,l,this._editor.getModel().getLineMaxColumn(l))}return a}));let r=this._findMatches(n,!1,Ya);this._decorations.set(r,n);let o=this._editor.getSelection(),s=this._decorations.getCurrentMatchesPosition(o);if(s===0&&r.length>0){let a=k_(r.map(l=>l.range),l=>P.compareRangesUsingStarts(l,o)>=0);s=a>0?a-1+1:s}this._state.changeMatchInfo(s,this._decorations.getCount(),void 0),e&&this._editor.getOption(39).cursorMoveOnType&&this._moveToNextMatch(this._decorations.getStartPosition())}_hasMatches(){return this._state.matchesCount>0}_cannotFind(){if(!this._hasMatches()){let e=this._decorations.getFindScope();return e&&this._editor.revealRangeInCenterIfOutsideViewport(e,0),!0}return!1}_setCurrentFindMatch(e){let t=this._decorations.setCurrentFindMatch(e);this._state.changeMatchInfo(t,this._decorations.getCount(),e),this._editor.setSelection(e),this._editor.revealRangeInCenterIfOutsideViewport(e,0)}_prevSearchPosition(e){let t=this._state.isRegex&&(this._state.searchString.indexOf("^")>=0||this._state.searchString.indexOf("$")>=0),{lineNumber:n,column:r}=e,o=this._editor.getModel();return t||r===1?(n===1?n=o.getLineCount():n--,r=o.getLineMaxColumn(n)):r--,new Se(n,r)}_moveToPrevMatch(e,t=!1){if(!this._state.canNavigateBack()){let d=this._decorations.matchAfterPosition(e);d&&this._setCurrentFindMatch(d);return}if(this._decorations.getCount()=0||this._state.searchString.indexOf("$")>=0),{lineNumber:n,column:r}=e,o=this._editor.getModel();return t||r===o.getLineMaxColumn(n)?(n===o.getLineCount()?n=1:n++,r=1):r++,new Se(n,r)}_moveToNextMatch(e){if(!this._state.canNavigateForward()){let n=this._decorations.matchBeforePosition(e);n&&this._setCurrentFindMatch(n);return}if(this._decorations.getCount()i._getSearchRange(this._editor.getModel(),o));return this._editor.getModel().findMatches(this._state.searchString,r,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(126):null,t,n)}replaceAll(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes();e===null&&this._state.matchesCount>=Ya?this._largeReplaceAll():this._regularReplaceAll(e),this.research(!1)}_largeReplaceAll(){let t=new JO(this._state.searchString,this._state.isRegex,this._state.matchCase,this._state.wholeWord?this._editor.getOption(126):null).parseSearchRequest();if(!t)return;let n=t.regex;if(!n.multiline){let u="mu";n.ignoreCase&&(u+="i"),n.global&&(u+="g"),n=new RegExp(n.source,u)}let r=this._editor.getModel(),o=r.getValue(1),s=r.getFullModelRange(),a=this._getReplacePattern(),l,c=this._state.preserveCase;a.hasReplacementPatterns||c?l=o.replace(n,function(){return a.buildReplaceString(arguments,c)}):l=o.replace(n,a.buildReplaceString(null,c));let d=new x_(s,l,this._editor.getSelection());this._executeEditorCommand("replaceAll",d)}_regularReplaceAll(e){let t=this._getReplacePattern(),n=this._findMatches(e,t.hasReplacementPatterns||this._state.preserveCase,1073741824),r=[];for(let s=0,a=n.length;ss.range),r);this._executeEditorCommand("replaceAll",o)}selectAllMatches(){if(!this._hasMatches())return;let e=this._decorations.getFindScopes(),n=this._findMatches(e,!1,1073741824).map(o=>new We(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)),r=this._editor.getSelection();for(let o=0,s=n.length;o{});var Eq=M(()=>{xq()});var R0,Tq=M(()=>{Bt();Eq();Ioe();Zm();Dt();N0();_r();R0=class i extends Ns{constructor(e,t,n){super(),this._hideSoon=this._register(new ii(()=>this._hide(),2e3)),this._isVisible=!1,this._editor=e,this._state=t,this._keybindingService=n,this._domNode=document.createElement("div"),this._domNode.className="findOptionsWidget",this._domNode.style.display="none",this._domNode.style.top="10px",this._domNode.style.zIndex="12",this._domNode.setAttribute("role","presentation"),this._domNode.setAttribute("aria-hidden","true");let r={inputActiveOptionBorder:ga(U_),inputActiveOptionForeground:ga(W_),inputActiveOptionBackground:ga(j_)};this.caseSensitive=this._register(new PP(Object.assign({appendTitle:this._keybindingLabelFor($t.ToggleCaseSensitiveCommand),isChecked:this._state.matchCase},r))),this._domNode.appendChild(this.caseSensitive.domNode),this._register(this.caseSensitive.onChange(()=>{this._state.change({matchCase:this.caseSensitive.checked},!1)})),this.wholeWords=this._register(new FP(Object.assign({appendTitle:this._keybindingLabelFor($t.ToggleWholeWordCommand),isChecked:this._state.wholeWord},r))),this._domNode.appendChild(this.wholeWords.domNode),this._register(this.wholeWords.onChange(()=>{this._state.change({wholeWord:this.wholeWords.checked},!1)})),this.regex=this._register(new BP(Object.assign({appendTitle:this._keybindingLabelFor($t.ToggleRegexCommand),isChecked:this._state.isRegex},r))),this._domNode.appendChild(this.regex.domNode),this._register(this.regex.onChange(()=>{this._state.change({isRegex:this.regex.checked},!1)})),this._editor.addOverlayWidget(this),this._register(this._state.onFindReplaceStateChange(o=>{let s=!1;o.isRegex&&(this.regex.checked=this._state.isRegex,s=!0),o.wholeWord&&(this.wholeWords.checked=this._state.wholeWord,s=!0),o.matchCase&&(this.caseSensitive.checked=this._state.matchCase,s=!0),!this._state.isRevealed&&s&&this._revealTemporarily()})),this._register(Rt(this._domNode,on.MOUSE_LEAVE,o=>this._onMouseLeave())),this._register(Rt(this._domNode,"mouseover",o=>this._onMouseOver()))}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return i.ID}getDomNode(){return this._domNode}getPosition(){return{preference:0}}highlightFindOptions(){this._revealTemporarily()}_revealTemporarily(){this._show(),this._hideSoon.schedule()}_onMouseLeave(){this._hideSoon.schedule()}_onMouseOver(){this._hideSoon.cancel()}_show(){this._isVisible||(this._isVisible=!0,this._domNode.style.display="block")}_hide(){this._isVisible&&(this._isVisible=!1,this._domNode.style.display="none")}};R0.ID="editor.contrib.findOptionsWidget"});function wy(i,e){return i===1?!0:i===2?!1:e}var xy,kq=M(()=>{Gt();Ce();qe();N0();xy=class extends oe{get searchString(){return this._searchString}get replaceString(){return this._replaceString}get isRevealed(){return this._isRevealed}get isReplaceRevealed(){return this._isReplaceRevealed}get isRegex(){return wy(this._isRegexOverride,this._isRegex)}get wholeWord(){return wy(this._wholeWordOverride,this._wholeWord)}get matchCase(){return wy(this._matchCaseOverride,this._matchCase)}get preserveCase(){return wy(this._preserveCaseOverride,this._preserveCase)}get actualIsRegex(){return this._isRegex}get actualWholeWord(){return this._wholeWord}get actualMatchCase(){return this._matchCase}get actualPreserveCase(){return this._preserveCase}get searchScope(){return this._searchScope}get matchesPosition(){return this._matchesPosition}get matchesCount(){return this._matchesCount}get currentMatch(){return this._currentMatch}constructor(){super(),this._onFindReplaceStateChange=this._register(new $e),this.onFindReplaceStateChange=this._onFindReplaceStateChange.event,this._searchString="",this._replaceString="",this._isRevealed=!1,this._isReplaceRevealed=!1,this._isRegex=!1,this._isRegexOverride=0,this._wholeWord=!1,this._wholeWordOverride=0,this._matchCase=!1,this._matchCaseOverride=0,this._preserveCase=!1,this._preserveCaseOverride=0,this._searchScope=null,this._matchesPosition=0,this._matchesCount=0,this._currentMatch=null,this._loop=!0,this._isSearching=!1,this._filters=null}changeMatchInfo(e,t,n){let r={moveCursor:!1,updateHistory:!1,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},o=!1;t===0&&(e=0),e>t&&(e=t),this._matchesPosition!==e&&(this._matchesPosition=e,r.matchesPosition=!0,o=!0),this._matchesCount!==t&&(this._matchesCount=t,r.matchesCount=!0,o=!0),typeof n!="undefined"&&(P.equalsRange(this._currentMatch,n)||(this._currentMatch=n,r.currentMatch=!0,o=!0)),o&&this._onFindReplaceStateChange.fire(r)}change(e,t,n=!0){var r;let o={moveCursor:t,updateHistory:n,searchString:!1,replaceString:!1,isRevealed:!1,isReplaceRevealed:!1,isRegex:!1,wholeWord:!1,matchCase:!1,preserveCase:!1,searchScope:!1,matchesPosition:!1,matchesCount:!1,currentMatch:!1,loop:!1,isSearching:!1,filters:!1},s=!1,a=this.isRegex,l=this.wholeWord,c=this.matchCase,d=this.preserveCase;typeof e.searchString!="undefined"&&this._searchString!==e.searchString&&(this._searchString=e.searchString,o.searchString=!0,s=!0),typeof e.replaceString!="undefined"&&this._replaceString!==e.replaceString&&(this._replaceString=e.replaceString,o.replaceString=!0,s=!0),typeof e.isRevealed!="undefined"&&this._isRevealed!==e.isRevealed&&(this._isRevealed=e.isRevealed,o.isRevealed=!0,s=!0),typeof e.isReplaceRevealed!="undefined"&&this._isReplaceRevealed!==e.isReplaceRevealed&&(this._isReplaceRevealed=e.isReplaceRevealed,o.isReplaceRevealed=!0,s=!0),typeof e.isRegex!="undefined"&&(this._isRegex=e.isRegex),typeof e.wholeWord!="undefined"&&(this._wholeWord=e.wholeWord),typeof e.matchCase!="undefined"&&(this._matchCase=e.matchCase),typeof e.preserveCase!="undefined"&&(this._preserveCase=e.preserveCase),typeof e.searchScope!="undefined"&&(!((r=e.searchScope)===null||r===void 0)&&r.every(u=>{var h;return(h=this._searchScope)===null||h===void 0?void 0:h.some(p=>!P.equalsRange(p,u))})||(this._searchScope=e.searchScope,o.searchScope=!0,s=!0)),typeof e.loop!="undefined"&&this._loop!==e.loop&&(this._loop=e.loop,o.loop=!0,s=!0),typeof e.isSearching!="undefined"&&this._isSearching!==e.isSearching&&(this._isSearching=e.isSearching,o.isSearching=!0,s=!0),typeof e.filters!="undefined"&&(this._filters?this._filters.update(e.filters):this._filters=e.filters,o.filters=!0,s=!0),this._isRegexOverride=typeof e.isRegexOverride!="undefined"?e.isRegexOverride:0,this._wholeWordOverride=typeof e.wholeWordOverride!="undefined"?e.wholeWordOverride:0,this._matchCaseOverride=typeof e.matchCaseOverride!="undefined"?e.matchCaseOverride:0,this._preserveCaseOverride=typeof e.preserveCaseOverride!="undefined"?e.preserveCaseOverride:0,a!==this.isRegex&&(s=!0,o.isRegex=!0),l!==this.wholeWord&&(s=!0,o.wholeWord=!0),c!==this.matchCase&&(s=!0,o.matchCase=!0),d!==this.preserveCase&&(s=!0,o.preserveCase=!0),s&&this._onFindReplaceStateChange.fire(o)}canNavigateBack(){return this.canNavigateInLoop()||this.matchesPosition!==1}canNavigateForward(){return this.canNavigateInLoop()||this.matchesPosition=Ya}}});var Iq=M(()=>{});var Aq=M(()=>{Iq()});var E1e,T1e,kE,Ey,Lq=M(()=>{Bt();OP();Aoe();Zm();or();Gt();Loe();Re();E1e=v("defaultLabel","input"),T1e=v("label.preserveCaseToggle","Preserve Case"),kE=class extends ub{constructor(e){super({icon:ct.preserveCase,title:T1e+e.appendTitle,isChecked:e.isChecked,inputActiveOptionBorder:e.inputActiveOptionBorder,inputActiveOptionForeground:e.inputActiveOptionForeground,inputActiveOptionBackground:e.inputActiveOptionBackground})}},Ey=class extends Ns{constructor(e,t,n,r){super(),this._showOptionButtons=n,this.fixFocusOnOptionClickEnabled=!0,this.cachedOptionsWidth=0,this._onDidOptionChange=this._register(new $e),this.onDidOptionChange=this._onDidOptionChange.event,this._onKeyDown=this._register(new $e),this.onKeyDown=this._onKeyDown.event,this._onMouseDown=this._register(new $e),this._onInput=this._register(new $e),this._onKeyUp=this._register(new $e),this._onPreserveCaseKeyDown=this._register(new $e),this.onPreserveCaseKeyDown=this._onPreserveCaseKeyDown.event,this.contextViewProvider=t,this.placeholder=r.placeholder||"",this.validation=r.validation,this.label=r.label||E1e;let o=r.appendPreserveCaseLabel||"",s=r.history||[],a=!!r.flexibleHeight,l=!!r.flexibleWidth,c=r.flexibleMaxHeight;this.domNode=document.createElement("div"),this.domNode.classList.add("monaco-findInput"),this.inputBox=this._register(new HP(this.domNode,this.contextViewProvider,{ariaLabel:this.label||"",placeholder:this.placeholder||"",validationOptions:{validation:this.validation},history:s,showHistoryHint:r.showHistoryHint,flexibleHeight:a,flexibleWidth:l,flexibleMaxHeight:c,inputBoxStyles:r.inputBoxStyles})),this.preserveCase=this._register(new kE(Object.assign({appendTitle:o,isChecked:!1},r.toggleStyles))),this._register(this.preserveCase.onChange(h=>{this._onDidOptionChange.fire(h),!h&&this.fixFocusOnOptionClickEnabled&&this.inputBox.focus(),this.validate()})),this._register(this.preserveCase.onKeyDown(h=>{this._onPreserveCaseKeyDown.fire(h)})),this._showOptionButtons?this.cachedOptionsWidth=this.preserveCase.width():this.cachedOptionsWidth=0;let d=[this.preserveCase.domNode];this.onkeydown(this.domNode,h=>{if(h.equals(15)||h.equals(17)||h.equals(9)){let p=d.indexOf(document.activeElement);if(p>=0){let m=-1;h.equals(17)?m=(p+1)%d.length:h.equals(15)&&(p===0?m=d.length-1:m=p-1),h.equals(9)?(d[p].blur(),this.inputBox.focus()):m>=0&&d[m].focus(),Jd.stop(h,!0)}}});let u=document.createElement("div");u.className="controls",u.style.display=this._showOptionButtons?"block":"none",u.appendChild(this.preserveCase.domNode),this.domNode.appendChild(u),e==null||e.appendChild(this.domNode),this.onkeydown(this.inputBox.inputElement,h=>this._onKeyDown.fire(h)),this.onkeyup(this.inputBox.inputElement,h=>this._onKeyUp.fire(h)),this.oninput(this.inputBox.inputElement,h=>this._onInput.fire()),this.onmousedown(this.inputBox.inputElement,h=>this._onMouseDown.fire(h))}enable(){this.domNode.classList.remove("disabled"),this.inputBox.enable(),this.preserveCase.enable()}disable(){this.domNode.classList.add("disabled"),this.inputBox.disable(),this.preserveCase.disable()}setEnabled(e){e?this.enable():this.disable()}select(){this.inputBox.select()}focus(){this.inputBox.focus()}getPreserveCase(){return this.preserveCase.checked}setPreserveCase(e){this.preserveCase.checked=e}focusOnPreserve(){this.preserveCase.focus()}validate(){var e;(e=this.inputBox)===null||e===void 0||e.validate()}set width(e){this.inputBox.paddingRight=this.cachedOptionsWidth,this.domNode.style.width=e+"px"}dispose(){super.dispose()}}});function Oq(i,e){if(Ty.includes(e))throw new Error("Cannot register the same widget multiple times");Ty.push(e);let t=new re,n=new rt(IE,!1).bindTo(i),r=new rt(Nq,!0).bindTo(i),o=new rt(Rq,!0).bindTo(i),s=()=>{n.set(!0),ac=e},a=()=>{n.set(!1),ac===e&&(ac=void 0)};return e.element===document.activeElement&&s(),t.add(e.onDidFocus(()=>s())),t.add(e.onDidBlur(()=>a())),t.add(Ft(()=>{Ty.splice(Ty.indexOf(e),1),a()})),{historyNavigationForwardsEnablement:r,historyNavigationBackwardsEnablement:o,dispose(){t.dispose()}}}var Mq,Dq,Ay,IE,Nq,Rq,ac,Ty,ky,Iy,AE=M(()=>{Moe();Lq();pt();dw();Re();Ce();Mq=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Dq=function(i,e){return function(t,n){e(t,n,i)}},Ay=new rt("suggestWidgetVisible",!1,v("suggestWidgetVisible","Whether suggestion are visible")),IE="historyNavigationWidgetFocus",Nq="historyNavigationForwardsEnabled",Rq="historyNavigationBackwardsEnabled",Ty=[];ky=class extends zP{constructor(e,t,n,r){super(e,t,n);let o=this._register(r.createScoped(this.inputBox.element));this._register(Oq(o,this.inputBox))}};ky=Mq([Dq(3,Ke)],ky);Iy=class extends Ey{constructor(e,t,n,r,o=!1){super(e,t,o,n);let s=this._register(r.createScoped(this.inputBox.element));this._register(Oq(s,this.inputBox))}};Iy=Mq([Dq(3,Ke)],Iy);Do.registerCommandAndKeybindingRule({id:"history.showPrevious",weight:200,when:ce.and(ce.has(IE),ce.equals(Rq,!0),Ay.isEqualTo(!1)),primary:16,secondary:[528],handler:i=>{ac==null||ac.showPreviousValue()}});Do.registerCommandAndKeybindingRule({id:"history.showNext",weight:200,when:ce.and(ce.has(IE),ce.equals(Nq,!0),Ay.isEqualTo(!1)),primary:18,secondary:[530],handler:i=>{ac==null||ac.showNextValue()}})});function LE(i){var e,t;return((e=i.lookupKeybinding("history.showPrevious"))===null||e===void 0?void 0:e.getElectronAccelerator())==="Up"&&((t=i.lookupKeybinding("history.showNext"))===null||t===void 0?void 0:t.getElectronAccelerator())==="Down"}var Pq=M(()=>{});function jq(i,e,t){let n=!!e.match(/\n/);if(t&&n&&t.selectionStart>0){i.stopPropagation();return}}function Wq(i,e,t){let n=!!e.match(/\n/);if(t&&n&&t.selectionEnd{Bt();Lo();OP();Hw();Zm();Dt();or();At();Ce();nr();wi();Aq();qe();N0();Re();AE();Pq();_r();Ll();ar();Kr();Tw();Mi();rb();k1e=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},I1e=Ti("find-selection",ct.selection,v("findSelectionIcon","Icon for 'Find in Selection' in the editor find widget.")),Fq=Ti("find-collapsed",ct.chevronRight,v("findCollapsedIcon","Icon to indicate that the editor find widget is collapsed.")),Bq=Ti("find-expanded",ct.chevronDown,v("findExpandedIcon","Icon to indicate that the editor find widget is expanded.")),A1e=Ti("find-replace",ct.replace,v("findReplaceIcon","Icon for 'Replace' in the editor find widget.")),L1e=Ti("find-replace-all",ct.replaceAll,v("findReplaceAllIcon","Icon for 'Replace All' in the editor find widget.")),M1e=Ti("find-previous-match",ct.arrowUp,v("findPreviousMatchIcon","Icon for 'Find Previous' in the editor find widget.")),D1e=Ti("find-next-match",ct.arrowDown,v("findNextMatchIcon","Icon for 'Find Next' in the editor find widget.")),N1e=v("label.find","Find"),R1e=v("placeholder.find","Find"),O1e=v("label.previousMatchButton","Previous Match"),P1e=v("label.nextMatchButton","Next Match"),F1e=v("label.toggleSelectionFind","Find in Selection"),B1e=v("label.closeButton","Close"),H1e=v("label.replace","Replace"),z1e=v("placeholder.replace","Replace"),U1e=v("label.replaceButton","Replace"),j1e=v("label.replaceAllButton","Replace All"),W1e=v("label.toggleReplaceButton","Toggle Replace"),V1e=v("title.matchesCountLimit","Only the first {0} results are highlighted, but all find operations work on the entire text.",Ya),K1e=v("label.matchesLocation","{0} of {1}"),Hq=v("label.noResults","No results"),Qa=419,q1e=275,G1e=q1e-54,O0=69,$1e=33,zq="ctrlEnterReplaceAll.windows.donotask",Uq=zn?256:2048,P0=class{constructor(e){this.afterLineNumber=e,this.heightInPx=$1e,this.suppressMouseDown=!1,this.domNode=document.createElement("div"),this.domNode.className="dock-find-viewzone"}};F0=class i extends Ns{constructor(e,t,n,r,o,s,a,l,c){super(),this._cachedHeight=null,this._revealTimeouts=[],this._codeEditor=e,this._controller=t,this._state=n,this._contextViewProvider=r,this._keybindingService=o,this._contextKeyService=s,this._storageService=l,this._notificationService=c,this._ctrlEnterReplaceAllWarningPrompted=!!l.getBoolean(zq,0),this._isVisible=!1,this._isReplaceVisible=!1,this._ignoreChangeEvent=!1,this._updateHistoryDelayer=new No(500),this._register(Ft(()=>this._updateHistoryDelayer.cancel())),this._register(this._state.onFindReplaceStateChange(d=>this._onStateChanged(d))),this._buildDomNode(),this._updateButtons(),this._tryUpdateWidgetWidth(),this._findInput.inputBox.layout(),this._register(this._codeEditor.onDidChangeConfiguration(d=>{if(d.hasChanged(88)&&(this._codeEditor.getOption(88)&&this._state.change({isReplaceRevealed:!1},!1),this._updateButtons()),d.hasChanged(140)&&this._tryUpdateWidgetWidth(),d.hasChanged(2)&&this.updateAccessibilitySupport(),d.hasChanged(39)){let u=this._codeEditor.getOption(39).loop;this._state.change({loop:u},!1);let h=this._codeEditor.getOption(39).addExtraSpaceOnTop;h&&!this._viewZone&&(this._viewZone=new P0(0),this._showViewZone()),!h&&this._viewZone&&this._removeViewZone()}})),this.updateAccessibilitySupport(),this._register(this._codeEditor.onDidChangeCursorSelection(()=>{this._isVisible&&this._updateToggleSelectionFindButton()})),this._register(this._codeEditor.onDidFocusEditorWidget(()=>k1e(this,void 0,void 0,function*(){if(this._isVisible){let d=yield this._controller.getGlobalBufferTerm();d&&d!==this._state.searchString&&(this._state.change({searchString:d},!1),this._findInput.select())}}))),this._findInputFocused=lp.bindTo(s),this._findFocusTracker=this._register(ks(this._findInput.inputBox.inputElement)),this._register(this._findFocusTracker.onDidFocus(()=>{this._findInputFocused.set(!0),this._updateSearchScope()})),this._register(this._findFocusTracker.onDidBlur(()=>{this._findInputFocused.set(!1)})),this._replaceInputFocused=k0.bindTo(s),this._replaceFocusTracker=this._register(ks(this._replaceInput.inputBox.inputElement)),this._register(this._replaceFocusTracker.onDidFocus(()=>{this._replaceInputFocused.set(!0),this._updateSearchScope()})),this._register(this._replaceFocusTracker.onDidBlur(()=>{this._replaceInputFocused.set(!1)})),this._codeEditor.addOverlayWidget(this),this._codeEditor.getOption(39).addExtraSpaceOnTop&&(this._viewZone=new P0(0)),this._register(this._codeEditor.onDidChangeModel(()=>{this._isVisible&&(this._viewZoneId=void 0)})),this._register(this._codeEditor.onDidScrollChange(d=>{if(d.scrollTopChanged){this._layoutViewZone();return}setTimeout(()=>{this._layoutViewZone()},0)}))}getId(){return i.ID}getDomNode(){return this._domNode}getPosition(){return this._isVisible?{preference:0}:null}_onStateChanged(e){if(e.searchString){try{this._ignoreChangeEvent=!0,this._findInput.setValue(this._state.searchString)}finally{this._ignoreChangeEvent=!1}this._updateButtons()}if(e.replaceString&&(this._replaceInput.inputBox.value=this._state.replaceString),e.isRevealed&&(this._state.isRevealed?this._reveal():this._hide(!0)),e.isReplaceRevealed&&(this._state.isReplaceRevealed?!this._codeEditor.getOption(88)&&!this._isReplaceVisible&&(this._isReplaceVisible=!0,this._replaceInput.width=la(this._findInput.domNode),this._updateButtons(),this._replaceInput.inputBox.layout()):this._isReplaceVisible&&(this._isReplaceVisible=!1,this._updateButtons())),(e.isRevealed||e.isReplaceRevealed)&&(this._state.isRevealed||this._state.isReplaceRevealed)&&this._tryUpdateHeight()&&this._showViewZone(),e.isRegex&&this._findInput.setRegex(this._state.isRegex),e.wholeWord&&this._findInput.setWholeWords(this._state.wholeWord),e.matchCase&&this._findInput.setCaseSensitive(this._state.matchCase),e.preserveCase&&this._replaceInput.setPreserveCase(this._state.preserveCase),e.searchScope&&(this._state.searchScope?this._toggleSelectionFind.checked=!0:this._toggleSelectionFind.checked=!1,this._updateToggleSelectionFindButton()),e.searchString||e.matchesCount||e.matchesPosition){let t=this._state.searchString.length>0&&this._state.matchesCount===0;this._domNode.classList.toggle("no-results",t),this._updateMatchesCount(),this._updateButtons()}(e.searchString||e.currentMatch)&&this._layoutViewZone(),e.updateHistory&&this._delayedUpdateHistory(),e.loop&&this._updateButtons()}_delayedUpdateHistory(){this._updateHistoryDelayer.trigger(this._updateHistory.bind(this)).then(void 0,lt)}_updateHistory(){this._state.searchString&&this._findInput.inputBox.addToHistory(),this._state.replaceString&&this._replaceInput.inputBox.addToHistory()}_updateMatchesCount(){this._matchesCount.style.minWidth=O0+"px",this._state.matchesCount>=Ya?this._matchesCount.title=V1e:this._matchesCount.title="",this._matchesCount.firstChild&&this._matchesCount.removeChild(this._matchesCount.firstChild);let e;if(this._state.matchesCount>0){let t=String(this._state.matchesCount);this._state.matchesCount>=Ya&&(t+="+");let n=String(this._state.matchesPosition);n==="0"&&(n="?"),e=Mo(K1e,n,t)}else e=Hq;this._matchesCount.appendChild(document.createTextNode(e)),Ni(this._getAriaLabel(e,this._state.currentMatch,this._state.searchString)),O0=Math.max(O0,this._matchesCount.clientWidth)}_getAriaLabel(e,t,n){if(e===Hq)return n===""?v("ariaSearchNoResultEmpty","{0} found",e):v("ariaSearchNoResult","{0} found for '{1}'",e,n);if(t){let r=v("ariaSearchNoResultWithLineNum","{0} found for '{1}', at {2}",e,n,t.startLineNumber+":"+t.startColumn),o=this._codeEditor.getModel();return o&&t.startLineNumber<=o.getLineCount()&&t.startLineNumber>=1?`${o.getLineContent(t.startLineNumber)}, ${r}`:r}return v("ariaSearchNoResultWithLineNumNoCurrentMatch","{0} found for '{1}'",e,n)}_updateToggleSelectionFindButton(){let e=this._codeEditor.getSelection(),t=e?e.startLineNumber!==e.endLineNumber||e.startColumn!==e.endColumn:!1,n=this._toggleSelectionFind.checked;this._isVisible&&(n||t)?this._toggleSelectionFind.enable():this._toggleSelectionFind.disable()}_updateButtons(){this._findInput.setEnabled(this._isVisible),this._replaceInput.setEnabled(this._isVisible&&this._isReplaceVisible),this._updateToggleSelectionFindButton(),this._closeBtn.setEnabled(this._isVisible);let e=this._state.searchString.length>0,t=!!this._state.matchesCount;this._prevBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateBack()),this._nextBtn.setEnabled(this._isVisible&&e&&t&&this._state.canNavigateForward()),this._replaceBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._replaceAllBtn.setEnabled(this._isVisible&&this._isReplaceVisible&&e),this._domNode.classList.toggle("replaceToggled",this._isReplaceVisible),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible);let n=!this._codeEditor.getOption(88);this._toggleReplaceBtn.setEnabled(this._isVisible&&n)}_reveal(){if(this._revealTimeouts.forEach(e=>{clearTimeout(e)}),this._revealTimeouts=[],!this._isVisible){this._isVisible=!0;let e=this._codeEditor.getSelection();switch(this._codeEditor.getOption(39).autoFindInSelection){case"always":this._toggleSelectionFind.checked=!0;break;case"never":this._toggleSelectionFind.checked=!1;break;case"multiline":{let n=!!e&&e.startLineNumber!==e.endLineNumber;this._toggleSelectionFind.checked=n;break}default:break}this._tryUpdateWidgetWidth(),this._updateButtons(),this._revealTimeouts.push(setTimeout(()=>{this._domNode.classList.add("visible"),this._domNode.setAttribute("aria-hidden","false")},0)),this._revealTimeouts.push(setTimeout(()=>{this._findInput.validate()},200)),this._codeEditor.layoutOverlayWidget(this);let t=!0;if(this._codeEditor.getOption(39).seedSearchStringFromSelection&&e){let n=this._codeEditor.getDomNode();if(n){let r=wn(n),o=this._codeEditor.getScrolledVisiblePosition(e.getStartPosition()),s=r.left+(o?o.left:0),a=o?o.top:0;if(this._viewZone&&ae.startLineNumber&&(t=!1);let l=fR(this._domNode).left;s>l&&(t=!1);let c=this._codeEditor.getScrolledVisiblePosition(e.getEndPosition());r.left+(c?c.left:0)>l&&(t=!1)}}}this._showViewZone(t)}}_hide(e){this._revealTimeouts.forEach(t=>{clearTimeout(t)}),this._revealTimeouts=[],this._isVisible&&(this._isVisible=!1,this._updateButtons(),this._domNode.classList.remove("visible"),this._domNode.setAttribute("aria-hidden","true"),this._findInput.clearMessage(),e&&this._codeEditor.focus(),this._codeEditor.layoutOverlayWidget(this),this._removeViewZone())}_layoutViewZone(e){if(!this._codeEditor.getOption(39).addExtraSpaceOnTop){this._removeViewZone();return}if(!this._isVisible)return;let n=this._viewZone;this._viewZoneId!==void 0||!n||this._codeEditor.changeViewZones(r=>{n.heightInPx=this._getHeight(),this._viewZoneId=r.addZone(n),this._codeEditor.setScrollTop(e||this._codeEditor.getScrollTop()+n.heightInPx)})}_showViewZone(e=!0){if(!this._isVisible||!this._codeEditor.getOption(39).addExtraSpaceOnTop)return;this._viewZone===void 0&&(this._viewZone=new P0(0));let n=this._viewZone;this._codeEditor.changeViewZones(r=>{if(this._viewZoneId!==void 0){let o=this._getHeight();if(o===n.heightInPx)return;let s=o-n.heightInPx;n.heightInPx=o,r.layoutZone(this._viewZoneId),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+s);return}else{let o=this._getHeight();if(o-=this._codeEditor.getOption(81).top,o<=0)return;n.heightInPx=o,this._viewZoneId=r.addZone(n),e&&this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()+o)}})}_removeViewZone(){this._codeEditor.changeViewZones(e=>{this._viewZoneId!==void 0&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0,this._viewZone&&(this._codeEditor.setScrollTop(this._codeEditor.getScrollTop()-this._viewZone.heightInPx),this._viewZone=void 0))})}_tryUpdateWidgetWidth(){if(!this._isVisible||!dR(this._domNode))return;let e=this._codeEditor.getLayoutInfo();if(e.contentWidth<=0){this._domNode.classList.add("hiddenEditor");return}else this._domNode.classList.contains("hiddenEditor")&&this._domNode.classList.remove("hiddenEditor");let n=e.width,r=e.minimap.minimapWidth,o=!1,s=!1,a=!1;if(this._resized&&la(this._domNode)>Qa){this._domNode.style.maxWidth=`${n-28-r-15}px`,this._replaceInput.width=la(this._findInput.domNode);return}if(Qa+28+r>=n&&(s=!0),Qa+28+r-O0>=n&&(a=!0),Qa+28+r-O0>=n+50&&(o=!0),this._domNode.classList.toggle("collapsed-find-widget",o),this._domNode.classList.toggle("narrow-find-widget",a),this._domNode.classList.toggle("reduced-find-widget",s),!a&&!o&&(this._domNode.style.maxWidth=`${n-28-r-15}px`),this._findInput.layout({collapsedFindWidget:o,narrowFindWidget:a,reducedFindWidget:s}),this._resized){let l=this._findInput.inputBox.element.clientWidth;l>0&&(this._replaceInput.width=l)}else this._isReplaceVisible&&(this._replaceInput.width=la(this._findInput.domNode))}_getHeight(){let e=0;return e+=4,e+=this._findInput.inputBox.height+2,this._isReplaceVisible&&(e+=4,e+=this._replaceInput.inputBox.height+2),e+=4,e}_tryUpdateHeight(){let e=this._getHeight();return this._cachedHeight!==null&&this._cachedHeight===e?!1:(this._cachedHeight=e,this._domNode.style.height=`${e}px`,!0)}focusFindInput(){this._findInput.select(),this._findInput.focus()}focusReplaceInput(){this._replaceInput.select(),this._replaceInput.focus()}highlightFindOptions(){this._findInput.highlightFindOptions()}_updateSearchScope(){if(this._codeEditor.hasModel()&&this._toggleSelectionFind.checked){let e=this._codeEditor.getSelections();e.map(t=>{t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(t.endLineNumber-1)));let n=this._state.currentMatch;return t.startLineNumber!==t.endLineNumber&&!P.equalsRange(t,n)?t:null}).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}_onFindInputMouseDown(e){e.middleButton&&e.stopPropagation()}_onFindInputKeyDown(e){if(e.equals(Uq|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{this._findInput.inputBox.insertAtCursor(` +`),e.preventDefault();return}if(e.equals(2)){this._isReplaceVisible?this._replaceInput.focus():this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return jq(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"));if(e.equals(18))return Wq(e,this._findInput.getValue(),this._findInput.domNode.querySelector("textarea"))}_onReplaceInputKeyDown(e){if(e.equals(Uq|3))if(this._keybindingService.dispatchEvent(e,e.target)){e.preventDefault();return}else{Nc&&Rc&&!this._ctrlEnterReplaceAllWarningPrompted&&(this._notificationService.info(v("ctrlEnter.keybindingChanged","Ctrl+Enter now inserts line break instead of replacing all. You can modify the keybinding for editor.action.replaceAll to override this behavior.")),this._ctrlEnterReplaceAllWarningPrompted=!0,this._storageService.store(zq,!0,0,0)),this._replaceInput.inputBox.insertAtCursor(` +`),e.preventDefault();return}if(e.equals(2)){this._findInput.focusOnCaseSensitive(),e.preventDefault();return}if(e.equals(1026)){this._findInput.focus(),e.preventDefault();return}if(e.equals(2066)){this._codeEditor.focus(),e.preventDefault();return}if(e.equals(16))return jq(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"));if(e.equals(18))return Wq(e,this._replaceInput.inputBox.value,this._replaceInput.inputBox.element.querySelector("textarea"))}getVerticalSashLeft(e){return 0}_keybindingLabelFor(e){let t=this._keybindingService.lookupKeybinding(e);return t?` (${t.getLabel()})`:""}_buildDomNode(){this._findInput=this._register(new ky(null,this._contextViewProvider,{width:G1e,label:N1e,placeholder:R1e,appendCaseSensitiveLabel:this._keybindingLabelFor($t.ToggleCaseSensitiveCommand),appendWholeWordsLabel:this._keybindingLabelFor($t.ToggleWholeWordCommand),appendRegexLabel:this._keybindingLabelFor($t.ToggleRegexCommand),validation:l=>{if(l.length===0||!this._findInput.getRegex())return null;try{return new RegExp(l,"gu"),null}catch(c){return{content:c.message}}},flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showCommonFindToggles:!0,showHistoryHint:()=>LE(this._keybindingService),inputBoxStyles:Rw,toggleStyles:Nw},this._contextKeyService)),this._findInput.setRegex(!!this._state.isRegex),this._findInput.setCaseSensitive(!!this._state.matchCase),this._findInput.setWholeWords(!!this._state.wholeWord),this._register(this._findInput.onKeyDown(l=>this._onFindInputKeyDown(l))),this._register(this._findInput.inputBox.onDidChange(()=>{this._ignoreChangeEvent||this._state.change({searchString:this._findInput.getValue()},!0)})),this._register(this._findInput.onDidOptionChange(()=>{this._state.change({isRegex:this._findInput.getRegex(),wholeWord:this._findInput.getWholeWords(),matchCase:this._findInput.getCaseSensitive()},!0)})),this._register(this._findInput.onCaseSensitiveKeyDown(l=>{l.equals(1026)&&this._isReplaceVisible&&(this._replaceInput.focus(),l.preventDefault())})),this._register(this._findInput.onRegexKeyDown(l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceInput.focusOnPreserve(),l.preventDefault())})),this._register(this._findInput.inputBox.onDidHeightChange(l=>{this._tryUpdateHeight()&&this._showViewZone()})),QN&&this._register(this._findInput.onMouseDown(l=>this._onFindInputMouseDown(l))),this._matchesCount=document.createElement("div"),this._matchesCount.className="matchesCount",this._updateMatchesCount(),this._prevBtn=this._register(new bd({label:O1e+this._keybindingLabelFor($t.PreviousMatchFindAction),icon:M1e,onTrigger:()=>{Oc(this._codeEditor.getAction($t.PreviousMatchFindAction)).run().then(void 0,lt)}})),this._nextBtn=this._register(new bd({label:P1e+this._keybindingLabelFor($t.NextMatchFindAction),icon:D1e,onTrigger:()=>{Oc(this._codeEditor.getAction($t.NextMatchFindAction)).run().then(void 0,lt)}}));let n=document.createElement("div");n.className="find-part",n.appendChild(this._findInput.domNode);let r=document.createElement("div");r.className="find-actions",n.appendChild(r),r.appendChild(this._matchesCount),r.appendChild(this._prevBtn.domNode),r.appendChild(this._nextBtn.domNode),this._toggleSelectionFind=this._register(new ub({icon:I1e,title:F1e+this._keybindingLabelFor($t.ToggleSearchScopeCommand),isChecked:!1,inputActiveOptionBackground:ga(j_),inputActiveOptionBorder:ga(U_),inputActiveOptionForeground:ga(W_)})),this._register(this._toggleSelectionFind.onChange(()=>{if(this._toggleSelectionFind.checked){if(this._codeEditor.hasModel()){let l=this._codeEditor.getSelections();l.map(c=>(c.endColumn===1&&c.endLineNumber>c.startLineNumber&&(c=c.setEndPosition(c.endLineNumber-1,this._codeEditor.getModel().getLineMaxColumn(c.endLineNumber-1))),c.isEmpty()?null:c)).filter(c=>!!c),l.length&&this._state.change({searchScope:l},!0)}}else this._state.change({searchScope:null},!0)})),r.appendChild(this._toggleSelectionFind.domNode),this._closeBtn=this._register(new bd({label:B1e+this._keybindingLabelFor($t.CloseFindWidgetCommand),icon:hb,onTrigger:()=>{this._state.change({isRevealed:!1,searchScope:null},!1)},onKeyDown:l=>{l.equals(2)&&this._isReplaceVisible&&(this._replaceBtn.isEnabled()?this._replaceBtn.focus():this._codeEditor.focus(),l.preventDefault())}})),r.appendChild(this._closeBtn.domNode),this._replaceInput=this._register(new Iy(null,void 0,{label:H1e,placeholder:z1e,appendPreserveCaseLabel:this._keybindingLabelFor($t.TogglePreserveCaseCommand),history:[],flexibleHeight:!0,flexibleWidth:!0,flexibleMaxHeight:118,showHistoryHint:()=>LE(this._keybindingService),inputBoxStyles:Rw,toggleStyles:Nw},this._contextKeyService,!0)),this._replaceInput.setPreserveCase(!!this._state.preserveCase),this._register(this._replaceInput.onKeyDown(l=>this._onReplaceInputKeyDown(l))),this._register(this._replaceInput.inputBox.onDidChange(()=>{this._state.change({replaceString:this._replaceInput.inputBox.value},!1)})),this._register(this._replaceInput.inputBox.onDidHeightChange(l=>{this._isReplaceVisible&&this._tryUpdateHeight()&&this._showViewZone()})),this._register(this._replaceInput.onDidOptionChange(()=>{this._state.change({preserveCase:this._replaceInput.getPreserveCase()},!0)})),this._register(this._replaceInput.onPreserveCaseKeyDown(l=>{l.equals(2)&&(this._prevBtn.isEnabled()?this._prevBtn.focus():this._nextBtn.isEnabled()?this._nextBtn.focus():this._toggleSelectionFind.enabled?this._toggleSelectionFind.focus():this._closeBtn.isEnabled()&&this._closeBtn.focus(),l.preventDefault())})),this._replaceBtn=this._register(new bd({label:U1e+this._keybindingLabelFor($t.ReplaceOneAction),icon:A1e,onTrigger:()=>{this._controller.replace()},onKeyDown:l=>{l.equals(1026)&&(this._closeBtn.focus(),l.preventDefault())}})),this._replaceAllBtn=this._register(new bd({label:j1e+this._keybindingLabelFor($t.ReplaceAllAction),icon:L1e,onTrigger:()=>{this._controller.replaceAll()}}));let o=document.createElement("div");o.className="replace-part",o.appendChild(this._replaceInput.domNode);let s=document.createElement("div");s.className="replace-actions",o.appendChild(s),s.appendChild(this._replaceBtn.domNode),s.appendChild(this._replaceAllBtn.domNode),this._toggleReplaceBtn=this._register(new bd({label:W1e,className:"codicon toggle left",onTrigger:()=>{this._state.change({isReplaceRevealed:!this._isReplaceVisible},!1),this._isReplaceVisible&&(this._replaceInput.width=la(this._findInput.domNode),this._replaceInput.inputBox.layout()),this._showViewZone()}})),this._toggleReplaceBtn.setExpanded(this._isReplaceVisible),this._domNode=document.createElement("div"),this._domNode.className="editor-widget find-widget",this._domNode.setAttribute("aria-hidden","true"),this._domNode.style.width=`${Qa}px`,this._domNode.appendChild(this._toggleReplaceBtn.domNode),this._domNode.appendChild(n),this._domNode.appendChild(o),this._resizeSash=new Al(this._domNode,this,{orientation:0,size:2}),this._resized=!1;let a=Qa;this._register(this._resizeSash.onDidStart(()=>{a=la(this._domNode)})),this._register(this._resizeSash.onDidChange(l=>{this._resized=!0;let c=a+l.startX-l.currentX;if(cd||(this._domNode.style.width=`${c}px`,this._isReplaceVisible&&(this._replaceInput.width=la(this._findInput.domNode)),this._findInput.inputBox.layout(),this._tryUpdateHeight())})),this._register(this._resizeSash.onDidReset(()=>{let l=la(this._domNode);if(l{this._opts.onTrigger(),n.preventDefault()}),this.onkeydown(this._domNode,n=>{var r,o;if(n.equals(10)||n.equals(3)){this._opts.onTrigger(),n.preventDefault();return}(o=(r=this._opts).onKeyDown)===null||o===void 0||o.call(r,n)})}get domNode(){return this._domNode}isEnabled(){return this._domNode.tabIndex>=0}focus(){this._domNode.focus()}setEnabled(e){this._domNode.classList.toggle("disabled",!e),this._domNode.setAttribute("aria-disabled",String(!e)),this._domNode.tabIndex=e?0:-1}setExpanded(e){this._domNode.setAttribute("aria-expanded",String(!!e)),e?(this._domNode.classList.remove(...gt.asClassNameArray(Fq)),this._domNode.classList.add(...gt.asClassNameArray(Bq))):(this._domNode.classList.remove(...gt.asClassNameArray(Bq)),this._domNode.classList.add(...gt.asClassNameArray(Fq)))}};df((i,e)=>{let t=(g,b)=>{b&&e.addRule(`.monaco-editor ${g} { background-color: ${b}; }`)};t(".findMatch",i.getColor(PO)),t(".currentFindMatch",i.getColor(OO)),t(".findScope",i.getColor(FO));let n=i.getColor(xl);t(".find-widget",n);let r=i.getColor(H_);r&&e.addRule(`.monaco-editor .find-widget { box-shadow: 0 0 8px 2px ${r}; }`);let o=i.getColor(z_);o&&e.addRule(`.monaco-editor .find-widget { border-left: 1px solid ${o}; border-right: 1px solid ${o}; border-bottom: 1px solid ${o}; }`);let s=i.getColor(HO);s&&e.addRule(`.monaco-editor .findMatch { border: 1px ${au(i.type)?"dotted":"solid"} ${s}; box-sizing: border-box; }`);let a=i.getColor(BO);a&&e.addRule(`.monaco-editor .currentFindMatch { border: 2px solid ${a}; padding: 1px; box-sizing: border-box; }`);let l=i.getColor(zO);l&&e.addRule(`.monaco-editor .findScope { border: 1px ${au(i.type)?"dashed":"solid"} ${l}; }`);let c=i.getColor(as);c&&e.addRule(`.monaco-editor .find-widget { border: 1px solid ${c}; }`);let d=i.getColor(DO);d&&e.addRule(`.monaco-editor .find-widget { color: ${d}; }`);let u=i.getColor(SO);u&&e.addRule(`.monaco-editor .find-widget.no-results .matchesCount { color: ${u}; }`);let h=i.getColor(NO);if(h)e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${h}; }`);else{let g=i.getColor(su);g&&e.addRule(`.monaco-editor .find-widget .monaco-sash { background-color: ${g}; }`)}let p=i.getColor(YO);p&&e.addRule(` .monaco-editor .find-widget .button:not(.disabled):hover, .monaco-editor .find-widget .codicon-find-selection:hover { - background-color: ${f} !important; + background-color: ${p} !important; } - `);let m=i.getColor(uO);m&&e.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${m}; }`)})});function jI(i,e="single",t=!1){if(!i.hasModel())return null;let r=i.getSelection();if(e==="single"&&r.startLineNumber===r.endLineNumber||e==="multiple"){if(r.isEmpty()){let n=i.getConfiguredWordAtPosition(r.getStartPosition());if(n&&t===!1)return n.word}else if(i.getModel().getValueLengthInRange(r){jt();ke();Ni();lt();zO();ti();qc();tb();EK();TK();VK();He();Ji();Zm();wt();yl();jr();Mo();wl();wu();rn();qK=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ka=function(i,e){return function(t,r){e(t,r,i)}},ih=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Zge=524288;ln=UI=class extends ce{get editor(){return this._editor}static get(e){return e.getContribution(UI.ID)}constructor(e,t,r,n){super(),this._editor=e,this._findWidgetVisible=Va.bindTo(t),this._contextKeyService=t,this._storageService=r,this._clipboardService=n,this._updateHistoryDelayer=new Do(500),this._state=this._register(new h2),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(o=>this._onStateChanged(o))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let o=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),o&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(40).loop})}))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!mp.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e.map(t=>(t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._editor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()?null:t)).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=cl(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}_start(e,t){return ih(this,void 0,void 0,function*(){if(this.disposeModel(),!this._editor.hasModel())return;let r=Object.assign(Object.assign({},t),{isRevealed:!0});if(e.seedSearchStringFromSelection==="single"){let n=jI(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);n&&(this._state.isRegex?r.searchString=cl(n):r.searchString=n)}else if(e.seedSearchStringFromSelection==="multiple"&&!e.updateSearchScope){let n=jI(this._editor,e.seedSearchStringFromSelection);n&&(r.searchString=n)}if(!r.searchString&&e.seedSearchStringFromGlobalClipboard){let n=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;n&&(r.searchString=n)}if(e.forceRevealReplace||r.isReplaceRevealed?r.isReplaceRevealed=!0:this._findWidgetVisible.get()||(r.isReplaceRevealed=!1),e.updateSearchScope){let n=this._editor.getSelections();n.some(o=>!o.isEmpty())&&(r.searchScope=n)}r.loop=e.loop,this._state.change(r,!1),this._model||(this._model=new d2(this._editor,this._state))})}start(e,t){return this._start(e,t)}moveToNextMatch(){return this._model?(this._model.moveToNextMatch(),!0):!1}moveToPrevMatch(){return this._model?(this._model.moveToPrevMatch(),!0):!1}goToMatch(e){return this._model?(this._model.moveToMatch(e),!0):!1}replace(){return this._model?(this._model.replace(),!0):!1}replaceAll(){return this._model?(this._model.replaceAll(),!0):!1}selectAllMatches(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1}getGlobalBufferTerm(){return ih(this,void 0,void 0,function*(){return this._editor.getOption(40).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""})}setGlobalBufferTerm(e){this._editor.getOption(40).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};ln.ID="editor.contrib.findController";ln=UI=qK([Ka(1,it),Ka(2,Yn),Ka(3,As)],ln);WI=class extends ln{constructor(e,t,r,n,o,s,a,l){super(e,r,a,l),this._contextViewService=t,this._keybindingService=n,this._themeService=o,this._notificationService=s,this._widget=null,this._findOptionsWidget=null}_start(e,t){let r=Object.create(null,{_start:{get:()=>super._start}});return ih(this,void 0,void 0,function*(){this._widget||this._createFindWidget();let n=this._editor.getSelection(),o=!1;switch(this._editor.getOption(40).autoFindInSelection){case"always":o=!0;break;case"never":o=!1;break;case"multiline":{o=!!n&&n.startLineNumber!==n.endLineNumber;break}default:break}e.updateSearchScope=e.updateSearchScope||o,yield r._start.call(this,e,t),this._widget&&(e.shouldFocus===2?this._widget.focusReplaceInput():e.shouldFocus===1&&this._widget.focusFindInput())})}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new ob(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new ib(this._editor,this._state,this._keybindingService))}};WI=qK([Ka(1,Gc),Ka(2,it),Ka(3,Kt),Ka(4,br),Ka(5,Ri),Ka(6,Yn),Ka(7,As)],WI);Jge=V3(new W3({id:ni.StartFindAction,label:b("startFindAction","Find"),alias:"Find",precondition:fe.or(F.focus,fe.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:Me.MenubarEditMenu,group:"3_find",title:b({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));Jge.addImplementation(0,(i,e,t)=>{let r=ln.get(e);return r?r.start({forceRevealReplace:!1,seedSearchStringFromSelection:e.getOption(40).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(40).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(40).loop}):!1});e0e={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},regex:{type:"boolean"},regexOverride:{type:"number",description:b("actions.find.isRegexOverride",`Overrides "Use Regular Expression" flag. + `);let m=i.getColor(wO);m&&e.addRule(`.monaco-editor .find-widget .monaco-inputbox.synthetic-focus { outline-color: ${m}; }`)})});function ME(i,e="single",t=!1){if(!i.hasModel())return null;let n=i.getSelection();if(e==="single"&&n.startLineNumber===n.endLineNumber||e==="multiple"){if(n.isEmpty()){let r=i.getConfiguredWordAtPosition(n.getStartPosition());if(r&&t===!1)return r.word}else if(i.getModel().getValueLengthInRange(n){Dt();Ce();wi();et();XO();Vt();Kc();N0();Tq();kq();Vq();Re();Xi();$m();pt();Tl();Gn();Ro();kl();cu();ar();Kq=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Ja=function(i,e){return function(t,n){e(t,n,i)}},Wu=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Y1e=524288;dr=class qq extends oe{get editor(){return this._editor}static get(e){return e.getContribution(qq.ID)}constructor(e,t,n,r){super(),this._editor=e,this._findWidgetVisible=Xa.bindTo(t),this._contextKeyService=t,this._storageService=n,this._clipboardService=r,this._updateHistoryDelayer=new No(500),this._state=this._register(new xy),this.loadQueryState(),this._register(this._state.onFindReplaceStateChange(o=>this._onStateChanged(o))),this._model=null,this._register(this._editor.onDidChangeModel(()=>{let o=this._editor.getModel()&&this._state.isRevealed;this.disposeModel(),this._state.change({searchScope:null,matchCase:this._storageService.getBoolean("editor.matchCase",1,!1),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,!1),isRegex:this._storageService.getBoolean("editor.isRegex",1,!1),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,!1)},!1),o&&this._start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!1,updateSearchScope:!1,loop:this._editor.getOption(39).loop})}))}dispose(){this.disposeModel(),super.dispose()}disposeModel(){this._model&&(this._model.dispose(),this._model=null)}_onStateChanged(e){this.saveQueryState(e),e.isRevealed&&(this._state.isRevealed?this._findWidgetVisible.set(!0):(this._findWidgetVisible.reset(),this.disposeModel())),e.searchString&&this.setGlobalBufferTerm(this._state.searchString)}saveQueryState(e){e.isRegex&&this._storageService.store("editor.isRegex",this._state.actualIsRegex,1,1),e.wholeWord&&this._storageService.store("editor.wholeWord",this._state.actualWholeWord,1,1),e.matchCase&&this._storageService.store("editor.matchCase",this._state.actualMatchCase,1,1),e.preserveCase&&this._storageService.store("editor.preserveCase",this._state.actualPreserveCase,1,1)}loadQueryState(){this._state.change({matchCase:this._storageService.getBoolean("editor.matchCase",1,this._state.matchCase),wholeWord:this._storageService.getBoolean("editor.wholeWord",1,this._state.wholeWord),isRegex:this._storageService.getBoolean("editor.isRegex",1,this._state.isRegex),preserveCase:this._storageService.getBoolean("editor.preserveCase",1,this._state.preserveCase)},!1)}isFindInputFocused(){return!!lp.getValue(this._contextKeyService)}getState(){return this._state}closeFindWidget(){this._state.change({isRevealed:!1,searchScope:null},!1),this._editor.focus()}toggleCaseSensitive(){this._state.change({matchCase:!this._state.matchCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleWholeWords(){this._state.change({wholeWord:!this._state.wholeWord},!1),this._state.isRevealed||this.highlightFindOptions()}toggleRegex(){this._state.change({isRegex:!this._state.isRegex},!1),this._state.isRevealed||this.highlightFindOptions()}togglePreserveCase(){this._state.change({preserveCase:!this._state.preserveCase},!1),this._state.isRevealed||this.highlightFindOptions()}toggleSearchScope(){if(this._state.searchScope)this._state.change({searchScope:null},!0);else if(this._editor.hasModel()){let e=this._editor.getSelections();e.map(t=>(t.endColumn===1&&t.endLineNumber>t.startLineNumber&&(t=t.setEndPosition(t.endLineNumber-1,this._editor.getModel().getLineMaxColumn(t.endLineNumber-1))),t.isEmpty()?null:t)).filter(t=>!!t),e.length&&this._state.change({searchScope:e},!0)}}setSearchString(e){this._state.isRegex&&(e=vl(e)),this._state.change({searchString:e},!1)}highlightFindOptions(e=!1){}_start(e,t){return Wu(this,void 0,void 0,function*(){if(this.disposeModel(),!this._editor.hasModel())return;let n=Object.assign(Object.assign({},t),{isRevealed:!0});if(e.seedSearchStringFromSelection==="single"){let r=ME(this._editor,e.seedSearchStringFromSelection,e.seedSearchStringFromNonEmptySelection);r&&(this._state.isRegex?n.searchString=vl(r):n.searchString=r)}else if(e.seedSearchStringFromSelection==="multiple"&&!e.updateSearchScope){let r=ME(this._editor,e.seedSearchStringFromSelection);r&&(n.searchString=r)}if(!n.searchString&&e.seedSearchStringFromGlobalClipboard){let r=yield this.getGlobalBufferTerm();if(!this._editor.hasModel())return;r&&(n.searchString=r)}if(e.forceRevealReplace||n.isReplaceRevealed?n.isReplaceRevealed=!0:this._findWidgetVisible.get()||(n.isReplaceRevealed=!1),e.updateSearchScope){let r=this._editor.getSelections();r.some(o=>!o.isEmpty())&&(n.searchScope=r)}n.loop=e.loop,this._state.change(n,!1),this._model||(this._model=new Sy(this._editor,this._state))})}start(e,t){return this._start(e,t)}moveToNextMatch(){return this._model?(this._model.moveToNextMatch(),!0):!1}moveToPrevMatch(){return this._model?(this._model.moveToPrevMatch(),!0):!1}goToMatch(e){return this._model?(this._model.moveToMatch(e),!0):!1}replace(){return this._model?(this._model.replace(),!0):!1}replaceAll(){return this._model?(this._model.replaceAll(),!0):!1}selectAllMatches(){return this._model?(this._model.selectAllMatches(),this._editor.focus(),!0):!1}getGlobalBufferTerm(){return Wu(this,void 0,void 0,function*(){return this._editor.getOption(39).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()?this._clipboardService.readFindText():""})}setGlobalBufferTerm(e){this._editor.getOption(39).globalFindClipboard&&this._editor.hasModel()&&!this._editor.getModel().isTooLargeForSyncing()&&this._clipboardService.writeFindText(e)}};dr.ID="editor.contrib.findController";dr=Kq([Ja(1,Ke),Ja(2,$r),Ja(3,Ds)],dr);DE=class extends dr{constructor(e,t,n,r,o,s,a,l){super(e,n,a,l),this._contextViewService=t,this._keybindingService=r,this._themeService=o,this._notificationService=s,this._widget=null,this._findOptionsWidget=null}_start(e,t){let n=Object.create(null,{_start:{get:()=>super._start}});return Wu(this,void 0,void 0,function*(){this._widget||this._createFindWidget();let r=this._editor.getSelection(),o=!1;switch(this._editor.getOption(39).autoFindInSelection){case"always":o=!0;break;case"never":o=!1;break;case"multiline":{o=!!r&&r.startLineNumber!==r.endLineNumber;break}default:break}e.updateSearchScope=e.updateSearchScope||o,yield n._start.call(this,e,t),this._widget&&(e.shouldFocus===2?this._widget.focusReplaceInput():e.shouldFocus===1&&this._widget.focusFindInput())})}highlightFindOptions(e=!1){this._widget||this._createFindWidget(),this._state.isRevealed&&!e?this._widget.highlightFindOptions():this._findOptionsWidget.highlightFindOptions()}_createFindWidget(){this._widget=this._register(new F0(this._editor,this,this._state,this._contextViewService,this._keybindingService,this._contextKeyService,this._themeService,this._storageService,this._notificationService)),this._findOptionsWidget=this._register(new R0(this._editor,this._state,this._keybindingService))}};DE=Kq([Ja(1,$c),Ja(2,Ke),Ja(3,Ht),Ja(4,pn),Ja(5,Ei),Ja(6,$r),Ja(7,Ds)],DE);X1e=hw(new uw({id:$t.StartFindAction,label:v("startFindAction","Find"),alias:"Find",precondition:ce.or(O.focus,ce.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2084,weight:100},menuOpts:{menuId:xe.MenubarEditMenu,group:"3_find",title:v({key:"miFind",comment:["&& denotes a mnemonic"]},"&&Find"),order:1}}));X1e.addImplementation(0,(i,e,t)=>{let n=dr.get(e);return n?n.start({forceRevealReplace:!1,seedSearchStringFromSelection:e.getOption(39).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(39).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(39).globalFindClipboard,shouldFocus:1,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(39).loop}):!1});Q1e={description:"Open a new In-Editor Find Widget.",args:[{name:"Open a new In-Editor Find Widget args",schema:{properties:{searchString:{type:"string"},replaceString:{type:"string"},regex:{type:"boolean"},regexOverride:{type:"number",description:v("actions.find.isRegexOverride",`Overrides "Use Regular Expression" flag. The flag will not be saved for the future. 0: Do Nothing 1: True -2: False`)},wholeWord:{type:"boolean"},wholeWordOverride:{type:"number",description:b("actions.find.wholeWordOverride",`Overrides "Match Whole Word" flag. +2: False`)},wholeWord:{type:"boolean"},wholeWordOverride:{type:"number",description:v("actions.find.wholeWordOverride",`Overrides "Match Whole Word" flag. The flag will not be saved for the future. 0: Do Nothing 1: True -2: False`)},matchCase:{type:"boolean"},matchCaseOverride:{type:"number",description:b("actions.find.matchCaseOverride",`Overrides "Math Case" flag. +2: False`)},matchCase:{type:"boolean"},matchCaseOverride:{type:"number",description:v("actions.find.matchCaseOverride",`Overrides "Math Case" flag. The flag will not be saved for the future. 0: Do Nothing 1: True -2: False`)},preserveCase:{type:"boolean"},preserveCaseOverride:{type:"number",description:b("actions.find.preserveCaseOverride",`Overrides "Preserve Case" flag. +2: False`)},preserveCase:{type:"boolean"},preserveCaseOverride:{type:"number",description:v("actions.find.preserveCaseOverride",`Overrides "Preserve Case" flag. The flag will not be saved for the future. 0: Do Nothing 1: True -2: False`)},findInSelection:{type:"boolean"}}}}]},VI=class extends de{constructor(){super({id:ni.StartFindWithArgs,label:b("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:e0e})}run(e,t,r){return ih(this,void 0,void 0,function*(){let n=ln.get(t);if(n){let o=r?{searchString:r.searchString,replaceString:r.replaceString,isReplaceRevealed:r.replaceString!==void 0,isRegex:r.isRegex,wholeWord:r.matchWholeWord,matchCase:r.isCaseSensitive,preserveCase:r.preserveCase}:{};yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:n.getState().searchString.length===0&&t.getOption(40).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(r==null?void 0:r.findInSelection)||!1,loop:t.getOption(40).loop},o),n.setGlobalBufferTerm(n.getState().searchString)}})}},qI=class extends de{constructor(){super({id:ni.StartFindWithSelection,label:b("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return ih(this,void 0,void 0,function*(){let r=ln.get(t);r&&(yield r.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(40).loop}),r.setGlobalBufferTerm(r.getState().searchString))})}},v2=class extends de{run(e,t){return ih(this,void 0,void 0,function*(){let r=ln.get(t);r&&!this._run(r)&&(yield r.start({forceRevealReplace:!1,seedSearchStringFromSelection:r.getState().searchString.length===0&&t.getOption(40).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(40).loop}),this._run(r))})}},KI=class extends v2{constructor(){super({id:ni.NextMatchFindAction,label:b("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:F.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:fe.and(F.focus,mp),primary:3,weight:100}]})}_run(e){return e.moveToNextMatch()?(e.editor.pushUndoStop(),!0):!1}},$I=class extends v2{constructor(){super({id:ni.PreviousMatchFindAction,label:b("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:F.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:fe.and(F.focus,mp),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}},GI=class extends de{constructor(){super({id:ni.GoToMatchFindAction,label:b("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:Va}),this._highlightDecorations=[]}run(e,t,r){let n=ln.get(t);if(!n)return;let o=n.getState().matchesCount;if(o<1){e.get(Ri).notify({severity:wf.Warning,message:b("findMatchAction.noResults","No matches. Try searching for something else.")});return}let a=e.get(nn).createInputBox();a.placeholder=b("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",o);let l=d=>{let u=parseInt(d);if(isNaN(u))return;let h=n.getState().matchesCount;if(u>0&&u<=h)return u-1;if(u<0&&u>=-h)return h+u},c=d=>{let u=l(d);if(typeof u=="number"){a.validationMessage=void 0,n.goToMatch(u);let h=n.getState().currentMatch;h&&this.addDecorations(t,h)}else a.validationMessage=b("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount),this.clearDecorations(t)};a.onDidChangeValue(d=>{c(d)}),a.onDidAccept(()=>{let d=l(a.value);typeof d=="number"?(n.goToMatch(d),a.hide()):a.validationMessage=b("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",n.getState().matchesCount)}),a.onDidHide(()=>{this.clearDecorations(t),a.dispose()}),a.show()}clearDecorations(e){e.changeDecorations(t=>{this._highlightDecorations=t.deltaDecorations(this._highlightDecorations,[])})}addDecorations(e,t){e.changeDecorations(r=>{this._highlightDecorations=r.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:Ei(y_),position:Gn.Full}}}])})}},_2=class extends de{run(e,t){return ih(this,void 0,void 0,function*(){let r=ln.get(t);if(!r)return;let n=jI(t,"single",!1);n&&r.setSearchString(n),this._run(r)||(yield r.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(40).loop}),this._run(r))})}},YI=class extends _2{constructor(){super({id:ni.NextSelectionMatchFindAction,label:b("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}},XI=class extends _2{constructor(){super({id:ni.PreviousSelectionMatchFindAction,label:b("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}},t0e=V3(new W3({id:ni.StartFindReplaceAction,label:b("startReplace","Replace"),alias:"Replace",precondition:fe.or(F.focus,fe.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:Me.MenubarEditMenu,group:"3_find",title:b({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));t0e.addImplementation(0,(i,e,t)=>{if(!e.hasModel()||e.getOption(89))return!1;let r=ln.get(e);if(!r)return!1;let n=e.getSelection(),o=r.isFindInputFocused(),s=!n.isEmpty()&&n.startLineNumber===n.endLineNumber&&e.getOption(40).seedSearchStringFromSelection!=="never"&&!o,a=o||s?2:1;return r.start({forceRevealReplace:!0,seedSearchStringFromSelection:s?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(40).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(40).seedSearchStringFromSelection!=="never",shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(40).loop})});Ue(ln.ID,WI,0);ee(VI);ee(qI);ee(KI);ee($I);ee(GI);ee(YI);ee(XI);Ws=Fi.bindToContribution(ln.get);We(new Ws({id:ni.CloseFindWidgetCommand,precondition:Va,handler:i=>i.closeFindWidget(),kbOpts:{weight:100+5,kbExpr:fe.and(F.focus,fe.not("isComposing")),primary:9,secondary:[1033]}}));We(new Ws({id:ni.ToggleCaseSensitiveCommand,precondition:void 0,handler:i=>i.toggleCaseSensitive(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:X0.primary,mac:X0.mac,win:X0.win,linux:X0.linux}}));We(new Ws({id:ni.ToggleWholeWordCommand,precondition:void 0,handler:i=>i.toggleWholeWords(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:Q0.primary,mac:Q0.mac,win:Q0.win,linux:Q0.linux}}));We(new Ws({id:ni.ToggleRegexCommand,precondition:void 0,handler:i=>i.toggleRegex(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:Z0.primary,mac:Z0.mac,win:Z0.win,linux:Z0.linux}}));We(new Ws({id:ni.ToggleSearchScopeCommand,precondition:void 0,handler:i=>i.toggleSearchScope(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:J0.primary,mac:J0.mac,win:J0.win,linux:J0.linux}}));We(new Ws({id:ni.TogglePreserveCaseCommand,precondition:void 0,handler:i=>i.togglePreserveCase(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:eb.primary,mac:eb.mac,win:eb.win,linux:eb.linux}}));We(new Ws({id:ni.ReplaceOneAction,precondition:Va,handler:i=>i.replace(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:3094}}));We(new Ws({id:ni.ReplaceOneAction,precondition:Va,handler:i=>i.replace(),kbOpts:{weight:100+5,kbExpr:fe.and(F.focus,Y0),primary:3}}));We(new Ws({id:ni.ReplaceAllAction,precondition:Va,handler:i=>i.replaceAll(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:2563}}));We(new Ws({id:ni.ReplaceAllAction,precondition:Va,handler:i=>i.replaceAll(),kbOpts:{weight:100+5,kbExpr:fe.and(F.focus,Y0),primary:void 0,mac:{primary:2051}}}));We(new Ws({id:ni.SelectAllMatchesAction,precondition:Va,handler:i=>i.selectAllMatches(),kbOpts:{weight:100+5,kbExpr:F.focus,primary:515}}))});var KK=N(()=>{});var $K=N(()=>{KK()});var i0e,GK,Ho,YK,sb,cn,QI,ab=N(()=>{i0e={0:" ",1:"u",2:"r"},GK=65535,Ho=16777215,YK=4278190080,sb=class{constructor(e){let t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){let t=e/32|0,r=e%32;return(this._states[t]&1<GK)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new sb(e.length),this._userDefinedStates=new sb(e.length),this._recoveredStates=new sb(e.length),this._types=r,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let e=[],t=(r,n)=>{let o=e[e.length-1];return this.getStartLineNumber(o)<=r&&this.getEndLineNumber(o)>=n};for(let r=0,n=this._startIndexes.length;rHo||s>Ho)throw new Error("startLineNumber or endLineNumber must not exceed "+Ho);for(;e.length>0&&!t(o,s);)e.pop();let a=e.length>0?e[e.length-1]:-1;e.push(r),this._startIndexes[r]=o+((a&255)<<24),this._endIndexes[r]=s+((a&65280)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&Ho}getEndLineNumber(e){return this._endIndexes[e]&Ho}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){t===1?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):t===2?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let r=!1;if(this._types)for(let n=0;n>>24)+((this._endIndexes[e]&YK)>>>16);return t===GK?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,r=this._startIndexes.length;if(r===0)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);t!==-1;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){let e=[];for(let t=0;tArray.isArray(g)?_=>__=d.startLineNumber))c&&c.startLineNumber===d.startLineNumber?(d.source===1?g=d:(g=c,g.isCollapsed=d.isCollapsed&&c.endLineNumber===d.endLineNumber,g.source=0),c=o(++a)):(g=d,d.isCollapsed&&d.source===0&&(g.source=2)),d=s(++l);else{let w=l,_=d;for(;;){if(!_||_.startLineNumber>c.endLineNumber){g=c;break}if(_.source===1&&_.endLineNumber>c.endLineNumber)break;_=s(++w)}c=o(++a)}if(g){for(;h&&h.endLineNumberg.startLineNumber&&g.startLineNumber>f&&g.endLineNumber<=r&&(!h||h.endLineNumber>=g.endLineNumber)&&(m.push(g),f=g.startLineNumber,h&&u.push(h),h=g)}}return m}},QI=class{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}});function x2(i,e,t){let r=[];for(let n of t){let o=i.getRegionAtLine(n);if(o){let s=!o.isCollapsed;if(r.push(o),e>1){let a=i.getRegionsInside(o,(l,c)=>l.isCollapsed!==s&&c0)for(let o of r){let s=i.getRegionAtLine(o);if(s&&(s.isCollapsed!==e&&n.push(s),t>1)){let a=i.getRegionsInside(s,(l,c)=>l.isCollapsed!==e&&cs.isCollapsed!==e&&aa.isCollapsed!==e&&l<=t);n.push(...s)}i.toggleCollapseState(n)}function XK(i,e,t){let r=[];for(let n of t){let o=i.getAllRegionsAtLine(n,s=>s.isCollapsed!==e);o.length>0&&r.push(o[0])}i.toggleCollapseState(r)}function QK(i,e,t,r){let n=(s,a)=>a===e&&s.isCollapsed!==t&&!r.some(l=>s.containsLine(l)),o=i.getRegionsInside(null,n);i.toggleCollapseState(o)}function JI(i,e,t){let r=[];for(let s of t){let a=i.getAllRegionsAtLine(s,void 0);a.length>0&&r.push(a[0])}let n=s=>r.every(a=>!a.containedBy(s)&&!s.containedBy(a))&&s.isCollapsed!==e,o=i.getRegionsInside(null,n);i.toggleCollapseState(o)}function C2(i,e,t){let r=i.textModel,n=i.regions,o=[];for(let s=n.length-1;s>=0;s--)if(t!==n.isCollapsed(s)){let a=n.getStartLineNumber(s);e.test(r.getLineContent(a))&&o.push(n.toRegion(s))}i.toggleCollapseState(o)}function S2(i,e,t){let r=i.regions,n=[];for(let o=r.length-1;o>=0;o--)t!==r.isCollapsed(o)&&e===r.getType(o)&&n.push(r.toRegion(o));i.toggleCollapseState(n)}function ZK(i,e){let t=null,r=e.getRegionAtLine(i);if(r!==null&&(t=r.startLineNumber,i===t)){let n=r.parentIndex;n!==-1?t=e.regions.getStartLineNumber(n):t=null}return t}function JK(i,e){let t=e.getRegionAtLine(i);if(t!==null&&t.startLineNumber===i){if(i!==t.startLineNumber)return t.startLineNumber;{let r=t.parentIndex,n=0;for(r!==-1&&(n=e.regions.getStartLineNumber(t.parentIndex));t!==null;)if(t.regionIndex>0){if(t=e.regions.toRegion(t.regionIndex-1),t.startLineNumber<=n)return null;if(t.parentIndex===r)return t.startLineNumber}else return null}}else if(e.regions.length>0)for(t=e.regions.toRegion(e.regions.length-1);t!==null;){if(t.startLineNumber0?t=e.regions.toRegion(t.regionIndex-1):t=null}return null}function e$(i,e){let t=e.getRegionAtLine(i);if(t!==null&&t.startLineNumber===i){let r=t.parentIndex,n=0;if(r!==-1)n=e.regions.getEndLineNumber(t.parentIndex);else{if(e.regions.length===0)return null;n=e.regions.getEndLineNumber(e.regions.length-1)}for(;t!==null;)if(t.regionIndex=n)return null;if(t.parentIndex===r)return t.startLineNumber}else return null}else if(e.regions.length>0)for(t=e.regions.toRegion(0);t!==null;){if(t.startLineNumber>i)return t.startLineNumber;t.regionIndex{ei();ab();CF();w2=class{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new Je,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new cn(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort((r,n)=>r.regionIndex-n.regionIndex);let t={};this._decorationProvider.changeDecorations(r=>{let n=0,o=-1,s=-1,a=l=>{for(;ns&&(s=c),n++}};for(let l of e){let c=l.regionIndex,d=this._editorDecorationIds[c];if(d&&!t[d]){t[d]=!0,a(c);let u=!this._regions.isCollapsed(c);this._regions.setCollapsed(c,u),o=Math.max(o,this._regions.getEndLineNumber(c))}}a(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){let t=new Array,r=n=>{for(let o of e)if(!(o.startLineNumber>n.endLineNumber||n.startLineNumber>o.endLineNumber))return!0;return!1};for(let n=0;nr&&(r=a)}this._decorationProvider.changeDecorations(n=>this._editorDecorationIds=n.deltaDecorations(this._editorDecorationIds,t)),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e=[]){let t=(n,o)=>{for(let s of e)if(n=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>r)continue;let a=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);t.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,isCollapsed:s.isCollapsed,source:s.source,checksum:a})}return t.length>0?t:void 0}applyMemento(e){var t,r;if(!Array.isArray(e))return;let n=[],o=this._textModel.getLineCount();for(let a of e){if(a.startLineNumber>=a.endLineNumber||a.startLineNumber<1||a.endLineNumber>o)continue;let l=this._getLinesChecksum(a.startLineNumber+1,a.endLineNumber);(!a.checksum||l===a.checksum)&&n.push({startLineNumber:a.startLineNumber,endLineNumber:a.endLineNumber,type:void 0,isCollapsed:(t=a.isCollapsed)!==null&&t!==void 0?t:!0,source:(r=a.source)!==null&&r!==void 0?r:0})}let s=cn.sanitizeAndMerge(this._regions,n,o);this.updatePost(cn.fromFoldRanges(s))}_getLinesChecksum(e,t){return H_(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){let r=[];if(this._regions){let n=this._regions.findRange(e),o=1;for(;n>=0;){let s=this._regions.toRegion(n);(!t||t(s,o))&&r.push(s),o++,n=s.parentIndex}}return r}getRegionAtLine(e){if(this._regions){let t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){let r=[],n=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&t.length===2){let s=[];for(let a=n,l=this._regions.length;a0&&!c.containedBy(s[s.length-1]);)s.pop();s.push(c),t(c,s.length)&&r.push(c)}else break}}else for(let s=n,a=this._regions.length;s=e.startLineNumber&&i<=e.endLineNumber}function t$(i,e){let t=e_(i,r=>e=0&&i[t].endLineNumber>=e?i[t]:null}var k2,i$=N(()=>{mi();ei();et();yre();k2=class{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new Je,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange(t=>this.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some(t=>t.range.endLineNumber!==t.range.startLineNumber||nO(t.text)[0]!==0))}updateHiddenRanges(){let e=!1,t=[],r=0,n=0,o=Number.MAX_VALUE,s=-1,a=this._foldingModel.regions;for(;r0}isHidden(e){return t$(this._hiddenRanges,e)!==null}adjustSelections(e){let t=!1,r=this._foldingModel.textModel,n=null,o=s=>((!n||!r0e(s,n))&&(n=t$(this._hiddenRanges,s)),n?n.startLineNumber-1:null);for(let s=0,a=e.length;s0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}});function a0e(i,e,t,r=s0e){let n=i.getOptions().tabSize,o=new tA(r),s;t&&(s=new RegExp(`(${t.start.source})|(?:${t.end.source})`));let a=[],l=i.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(let c=i.getLineCount();c>0;c--){let d=i.getLineContent(c),u=Ym(d,n),h=a[a.length-1];if(u===-1){e&&(h.endAbove=c);continue}let f;if(s&&(f=d.match(s)))if(f[1]){let m=a.length-1;for(;m>0&&a[m].indent!==-2;)m--;if(m>0){a.length=m+1,h=a[m],o.insertFirst(c,h.line,u),h.line=c,h.indent=u,h.endAbove=c;continue}}else{a.push({indent:-2,endAbove:c,line:c});continue}if(h.indent>u){do a.pop(),h=a[a.length-1];while(h.indent>u);let m=h.endAbove-1;m-c>=1&&o.insertFirst(c,m,u)}h.indent===u?h.endAbove=c:a.push({indent:u,endAbove:c,line:c})}return o.toIndentRanges(i)}var n0e,o0e,nh,tA,s0e,iA=N(()=>{BO();ab();n0e=5e3,o0e="indent",nh=class{constructor(e,t,r){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=r,this.id=o0e}dispose(){}compute(e){let t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,r=t&&!!t.offSide,n=t&&t.markers;return Promise.resolve(a0e(this.editorModel,r,n,this.foldingRangesLimit))}},tA=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,r){if(e>Ho||t>Ho)return;let n=this._length;this._startIndexes[n]=e,this._endIndexes[n]=t,this._length++,r<1e3&&(this._indentOccurrences[r]=(this._indentOccurrences[r]||0)+1)}toIndentRanges(e){let t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);let r=new Uint32Array(this._length),n=new Uint32Array(this._length);for(let o=this._length-1,s=0;o>=0;o--,s++)r[s]=this._startIndexes[o],n[s]=this._endIndexes[o];return new cn(r,n)}else{this._foldingRangesLimit.update(this._length,t);let r=0,n=this._indentOccurrences.length;for(let l=0;lt){n=l;break}r+=c}}let o=e.getOptions().tabSize,s=new Uint32Array(t),a=new Uint32Array(t);for(let l=this._length-1,c=0;l>=0;l--){let d=this._startIndexes[l],u=e.getLineContent(d),h=Ym(u,o);(h{}}});var l0e,lb,cb,r$,n$,rA,Bn,nA=N(()=>{Zr();qc();Ur();He();tn();Sl();rn();An();l0e=je("editor.foldBackground",{light:Nn(tk,.3),dark:Nn(tk,.3),hcDark:null,hcLight:null},b("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);je("editorGutter.foldingControlForeground",{dark:Um,light:Um,hcDark:Um,hcLight:Um},b("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));lb=Pi("folding-expanded",pt.chevronDown,b("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),cb=Pi("folding-collapsed",pt.chevronRight,b("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),r$=Pi("folding-manual-collapsed",cb,b("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),n$=Pi("folding-manual-expanded",lb,b("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),rA={color:Ei(l0e),position:la.Inline},Bn=class i{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,r){return t?i.HIDDEN_RANGE_DECORATION:this.showFoldingControls==="never"?e?this.showFoldingHighlights?i.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:i.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:i.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?r?this.showFoldingHighlights?i.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:i.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?i.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:i.COLLAPSED_VISUAL_DECORATION:this.showFoldingControls==="mouseover"?r?i.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:r?i.MANUALLY_EXPANDED_VISUAL_DECORATION:i.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}};Bn.COLLAPSED_VISUAL_DECORATION=mt.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(cb)});Bn.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=mt.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:rA,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(cb)});Bn.MANUALLY_COLLAPSED_VISUAL_DECORATION=mt.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(r$)});Bn.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=mt.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:rA,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(r$)});Bn.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=mt.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0});Bn.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=mt.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:rA,isWholeLine:!0});Bn.EXPANDED_VISUAL_DECORATION=mt.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+_t.asClassName(lb)});Bn.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=mt.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(lb)});Bn.MANUALLY_EXPANDED_VISUAL_DECORATION=mt.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+_t.asClassName(n$)});Bn.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=mt.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:_t.asClassName(n$)});Bn.NO_CONTROLS_EXPANDED_RANGE_DECORATION=mt.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0});Bn.HIDDEN_RANGE_DECORATION=mt.register({description:"folding-hidden-range-decoration",stickiness:1})});function u0e(i,e,t){let r=null,n=i.map((o,s)=>Promise.resolve(o.provideFoldingRanges(e,c0e,t)).then(a=>{if(!t.isCancellationRequested&&Array.isArray(a)){Array.isArray(r)||(r=[]);let l=e.getLineCount();for(let c of a)c.start>0&&c.end>c.start&&c.end<=l&&r.push({start:c.start,end:c.end,rank:s,kind:c.kind})}},Xt));return Promise.all(n).then(o=>r)}function h0e(i,e){let t=i.sort((s,a)=>{let l=s.start-a.start;return l===0&&(l=s.rank-a.rank),l}),r=new oA(e),n,o=[];for(let s of t)if(!n)n=s,r.add(s.start,s.end,s.kind&&s.kind.value,o.length);else if(s.start>n.start)if(s.end<=n.end)o.push(n),n=s,r.add(s.start,s.end,s.kind&&s.kind.value,o.length);else{if(s.start>n.end){do n=o.pop();while(n&&s.start>n.end);n&&o.push(n),n=s}r.add(s.start,s.end,s.kind&&s.kind.value,o.length)}return r.toIndentRanges()}var c0e,d0e,oh,oA,sA=N(()=>{qt();ke();ab();c0e={},d0e="syntax",oh=class{constructor(e,t,r,n,o){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=r,this.foldingRangesLimit=n,this.fallbackRangeProvider=o,this.id=d0e,this.disposables=new le,o&&this.disposables.add(o);for(let s of t)typeof s.onDidChange=="function"&&this.disposables.add(s.onDidChange(r))}compute(e){return u0e(this.providers,this.editorModel,e).then(t=>{var r,n;return t?h0e(t,this.foldingRangesLimit):(n=(r=this.fallbackRangeProvider)===null||r===void 0?void 0:r.compute(e))!==null&&n!==void 0?n:null})}dispose(){this.disposables.dispose()}};oA=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,r,n){if(e>Ho||t>Ho)return;let o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=n,this._types[o]=r,this._length++,n<30&&(this._nestingLevelCounts[n]=(this._nestingLevelCounts[n]||0)+1)}toIndentRanges(){let e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);let t=new Uint32Array(this._length),r=new Uint32Array(this._length);for(let n=0;ne){r=a;break}t+=l}}let n=new Uint32Array(e),o=new Uint32Array(e),s=[];for(let a=0,l=0;a{jt();ki();qt();ll();ke();Ni();zr();$K();z_();lt();ti();fn();Hr();eA();i$();iA();He();wt();nA();ab();sA();Mo();Ds();al();Pt();ei();Vi();Ir();Xo();Sr();p0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},db=function(i,e){return function(t,r){e(t,r,i)}},m0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Kr=new ht("foldingEnabled",!1),fs=gp=class extends ce{static get(e){return e.getContribution(gp.ID)}static getFoldingRangeProviders(e,t){var r,n;let o=e.foldingRangeProvider.ordered(t);return(n=(r=gp._foldingRangeSelector)===null||r===void 0?void 0:r.call(gp,o,t))!==null&&n!==void 0?n:o}constructor(e,t,r,n,o,s){super(),this.contextKeyService=t,this.languageConfigurationService=r,this.languageFeaturesService=s,this.localToDispose=this._register(new le),this.editor=e,this._foldingLimitReporter=new ub(e);let a=this.editor.getOptions();this._isEnabled=a.get(42),this._useFoldingProviders=a.get(43)!=="indentation",this._unfoldOnClickAfterEndOfLine=a.get(47),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=a.get(45),this.updateDebounceInfo=o.for(s.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new Bn(e),this.foldingDecorationProvider.showFoldingControls=a.get(108),this.foldingDecorationProvider.showFoldingHighlights=a.get(44),this.foldingEnabled=Kr.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(l=>{if(l.hasChanged(42)&&(this._isEnabled=this.editor.getOptions().get(42),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),l.hasChanged(46)&&this.onModelChanged(),l.hasChanged(108)||l.hasChanged(44)){let c=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=c.get(108),this.foldingDecorationProvider.showFoldingHighlights=c.get(44),this.triggerFoldingModelChanged()}l.hasChanged(43)&&(this._useFoldingProviders=this.editor.getOptions().get(43)!=="indentation",this.onFoldingStrategyChanged()),l.hasChanged(47)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(47)),l.hasChanged(45)&&(this._foldingImportsByDefault=this.editor.getOptions().get(45))})),this.onModelChanged()}saveViewState(){let e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){let t=this.foldingModel.getMemento(),r=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:r,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){let t=this.editor.getModel();if(!(!t||!this._isEnabled||t.isTooLargeForTokenization()||!this.hiddenRangeModel)&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();let e=this.editor.getModel();!this._isEnabled||!e||e.isTooLargeForTokenization()||(this._currentModelHasFoldedImports=!1,this.foldingModel=new w2(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new k2(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(t=>this.onHiddenRangesChanges(t))),this.updateScheduler=new Do(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new ui(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(t=>this.onDidChangeModelContent(t))),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(t=>this.onEditorMouseDown(t))),this.localToDispose.add(this.editor.onMouseUp(t=>this.onEditorMouseUp(t))),this.localToDispose.add({dispose:()=>{var t,r;this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),(t=this.updateScheduler)===null||t===void 0||t.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,(r=this.rangeProvider)===null||r===void 0||r.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){var e;(e=this.rangeProvider)===null||e===void 0||e.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;let t=new nh(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){let r=gp.getFoldingRangeProviders(this.languageFeaturesService,e);r.length>0&&(this.rangeProvider=new oh(e,r,()=>this.triggerFoldingModelChanged(),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;(t=this.hiddenRangeModel)===null||t===void 0||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{let e=this.foldingModel;if(!e)return null;let t=new mr,r=this.getRangeProvider(e.textModel),n=this.foldingRegionPromise=Jt(o=>r.compute(o));return n.then(o=>{if(o&&n===this.foldingRegionPromise){let s;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){let d=o.setCollapsedAllOfType(vf.Imports.value,!0);d&&(s=va.capture(this.editor),this._currentModelHasFoldedImports=d)}let a=this.editor.getSelections(),l=a?a.map(d=>d.startLineNumber):[];e.update(o,l),s==null||s.restore(this.editor);let c=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=c)}return e})}).then(void 0,e=>(ft(e),null)))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){let t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){let e=this.getFoldingModel();e&&e.then(t=>{if(t){let r=this.editor.getSelections();if(r&&r.length>0){let n=[];for(let o of r){let s=o.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(s)&&n.push(...t.getAllRegionsAtLine(s,a=>a.isCollapsed&&s>a.startLineNumber))}n.length&&(t.toggleCollapseState(n),this.reveal(r[0].getPosition()))}}}).then(void 0,ft)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range||!e.event.leftButton&&!e.event.middleButton)return;let t=e.target.range,r=!1;switch(e.target.type){case 4:{let n=e.target.detail,o=e.target.element.offsetLeft;if(n.offsetX-o<4)return;r=!0;break}case 7:{if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return}case 6:{if(this.hiddenRangeModel.hasRanges()){let n=this.editor.getModel();if(n&&t.startColumn===n.getLineMaxColumn(t.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:r}}onEditorMouseUp(e){let t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;let r=this.mouseDownInfo.lineNumber,n=this.mouseDownInfo.iconClicked,o=e.target.range;if(!o||o.startLineNumber!==r)return;if(n){if(e.target.type!==4)return}else{let a=this.editor.getModel();if(!a||o.startColumn!==a.getLineMaxColumn(r))return}let s=t.getRegionAtLine(r);if(s&&s.startLineNumber===r){let a=s.isCollapsed;if(n||a){let l=e.event.altKey,c=[];if(l){let d=h=>!h.containedBy(s)&&!s.containedBy(h),u=t.getRegionsInside(null,d);for(let h of u)h.isCollapsed&&c.push(h);c.length===0&&(c=u)}else{let d=e.event.middleButton||e.event.shiftKey;if(d)for(let u of t.getRegionsInside(s))u.isCollapsed===a&&c.push(u);(a||!d||c.length===0)&&c.push(s)}t.toggleCollapseState(c),this.reveal({lineNumber:r,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};fs.ID="editor.contrib.folding";fs=gp=p0e([db(1,it),db(2,Ot),db(3,Ri),db(4,lr),db(5,Se)],fs);ub=class{constructor(e){this.editor=e,this._onDidChange=new Je,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(46)}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}},Nr=class extends de{runEditorCommand(e,t,r){let n=e.get(Ot),o=fs.get(t);if(!o)return;let s=o.getFoldingModel();if(s)return this.reportTelemetry(e,t),s.then(a=>{if(a){this.invoke(o,a,t,r,n);let l=t.getSelection();l&&o.reveal(l.getStartPosition())}})}getSelectedLines(e){let t=e.getSelections();return t?t.map(r=>r.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(r=>r+1):this.getSelectedLines(t)}run(e,t){}};aA=class extends Nr{constructor(){super({id:"editor.unfold",label:b("unfoldAction.label","Unfold"),alias:"Unfold",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument: +2: False`)},findInSelection:{type:"boolean"}}}}]},NE=class extends se{constructor(){super({id:$t.StartFindWithArgs,label:v("startFindWithArgsAction","Find With Arguments"),alias:"Find With Arguments",precondition:void 0,kbOpts:{kbExpr:null,primary:0,weight:100},description:Q1e})}run(e,t,n){return Wu(this,void 0,void 0,function*(){let r=dr.get(t);if(r){let o=n?{searchString:n.searchString,replaceString:n.replaceString,isReplaceRevealed:n.replaceString!==void 0,isRegex:n.isRegex,wholeWord:n.matchWholeWord,matchCase:n.isCaseSensitive,preserveCase:n.preserveCase}:{};yield r.start({forceRevealReplace:!1,seedSearchStringFromSelection:r.getState().searchString.length===0&&t.getOption(39).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(39).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:1,shouldAnimate:!0,updateSearchScope:(n==null?void 0:n.findInSelection)||!1,loop:t.getOption(39).loop},o),r.setGlobalBufferTerm(r.getState().searchString)}})}},RE=class extends se{constructor(){super({id:$t.StartFindWithSelection,label:v("startFindWithSelectionAction","Find With Selection"),alias:"Find With Selection",precondition:void 0,kbOpts:{kbExpr:null,primary:0,mac:{primary:2083},weight:100}})}run(e,t){return Wu(this,void 0,void 0,function*(){let n=dr.get(t);n&&(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"multiple",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(39).loop}),n.setGlobalBufferTerm(n.getState().searchString))})}},Ly=class extends se{run(e,t){return Wu(this,void 0,void 0,function*(){let n=dr.get(t);n&&!this._run(n)&&(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:n.getState().searchString.length===0&&t.getOption(39).seedSearchStringFromSelection!=="never"?"single":"none",seedSearchStringFromNonEmptySelection:t.getOption(39).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:!0,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(39).loop}),this._run(n))})}},OE=class extends Ly{constructor(){super({id:$t.NextMatchFindAction,label:v("findNextMatchAction","Find Next"),alias:"Find Next",precondition:void 0,kbOpts:[{kbExpr:O.focus,primary:61,mac:{primary:2085,secondary:[61]},weight:100},{kbExpr:ce.and(O.focus,lp),primary:3,weight:100}]})}_run(e){return e.moveToNextMatch()?(e.editor.pushUndoStop(),!0):!1}},PE=class extends Ly{constructor(){super({id:$t.PreviousMatchFindAction,label:v("findPreviousMatchAction","Find Previous"),alias:"Find Previous",precondition:void 0,kbOpts:[{kbExpr:O.focus,primary:1085,mac:{primary:3109,secondary:[1085]},weight:100},{kbExpr:ce.and(O.focus,lp),primary:1027,weight:100}]})}_run(e){return e.moveToPrevMatch()}},FE=class extends se{constructor(){super({id:$t.GoToMatchFindAction,label:v("findMatchAction.goToMatch","Go to Match..."),alias:"Go to Match...",precondition:Xa}),this._highlightDecorations=[]}run(e,t,n){let r=dr.get(t);if(!r)return;let o=r.getState().matchesCount;if(o<1){e.get(Ei).notify({severity:pf.Warning,message:v("findMatchAction.noResults","No matches. Try searching for something else.")});return}let a=e.get(lr).createInputBox();a.placeholder=v("findMatchAction.inputPlaceHolder","Type a number to go to a specific match (between 1 and {0})",o);let l=d=>{let u=parseInt(d);if(isNaN(u))return;let h=r.getState().matchesCount;if(u>0&&u<=h)return u-1;if(u<0&&u>=-h)return h+u},c=d=>{let u=l(d);if(typeof u=="number"){a.validationMessage=void 0,r.goToMatch(u);let h=r.getState().currentMatch;h&&this.addDecorations(t,h)}else a.validationMessage=v("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",r.getState().matchesCount),this.clearDecorations(t)};a.onDidChangeValue(d=>{c(d)}),a.onDidAccept(()=>{let d=l(a.value);typeof d=="number"?(r.goToMatch(d),a.hide()):a.validationMessage=v("findMatchAction.inputValidationMessage","Please type a number between 1 and {0}",r.getState().matchesCount)}),a.onDidHide(()=>{this.clearDecorations(t),a.dispose()}),a.show()}clearDecorations(e){e.changeDecorations(t=>{this._highlightDecorations=t.deltaDecorations(this._highlightDecorations,[])})}addDecorations(e,t){e.changeDecorations(n=>{this._highlightDecorations=n.deltaDecorations(this._highlightDecorations,[{range:t,options:{description:"find-match-quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"find-match-quick-access-range-highlight-overview",overviewRuler:{color:vi(q_),position:Gr.Full}}}])})}},My=class extends se{run(e,t){return Wu(this,void 0,void 0,function*(){let n=dr.get(t);if(!n)return;let r=ME(t,"single",!1);r&&n.setSearchString(r),this._run(n)||(yield n.start({forceRevealReplace:!1,seedSearchStringFromSelection:"none",seedSearchStringFromNonEmptySelection:!1,seedSearchStringFromGlobalClipboard:!1,shouldFocus:0,shouldAnimate:!0,updateSearchScope:!1,loop:t.getOption(39).loop}),this._run(n))})}},BE=class extends My{constructor(){super({id:$t.NextSelectionMatchFindAction,label:v("nextSelectionMatchFindAction","Find Next Selection"),alias:"Find Next Selection",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:2109,weight:100}})}_run(e){return e.moveToNextMatch()}},HE=class extends My{constructor(){super({id:$t.PreviousSelectionMatchFindAction,label:v("previousSelectionMatchFindAction","Find Previous Selection"),alias:"Find Previous Selection",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:3133,weight:100}})}_run(e){return e.moveToPrevMatch()}},J1e=hw(new uw({id:$t.StartFindReplaceAction,label:v("startReplace","Replace"),alias:"Replace",precondition:ce.or(O.focus,ce.has("editorIsOpen")),kbOpts:{kbExpr:null,primary:2086,mac:{primary:2596},weight:100},menuOpts:{menuId:xe.MenubarEditMenu,group:"3_find",title:v({key:"miReplace",comment:["&& denotes a mnemonic"]},"&&Replace"),order:2}}));J1e.addImplementation(0,(i,e,t)=>{if(!e.hasModel()||e.getOption(88))return!1;let n=dr.get(e);if(!n)return!1;let r=e.getSelection(),o=n.isFindInputFocused(),s=!r.isEmpty()&&r.startLineNumber===r.endLineNumber&&e.getOption(39).seedSearchStringFromSelection!=="never"&&!o,a=o||s?2:1;return n.start({forceRevealReplace:!0,seedSearchStringFromSelection:s?"single":"none",seedSearchStringFromNonEmptySelection:e.getOption(39).seedSearchStringFromSelection==="selection",seedSearchStringFromGlobalClipboard:e.getOption(39).seedSearchStringFromSelection!=="never",shouldFocus:a,shouldAnimate:!0,updateSearchScope:!1,loop:e.getOption(39).loop})});Ae(dr.ID,DE,0);X(NE);X(RE);X(OE);X(PE);X(FE);X(BE);X(HE);qs=xi.bindToContribution(dr.get);Ne(new qs({id:$t.CloseFindWidgetCommand,precondition:Xa,handler:i=>i.closeFindWidget(),kbOpts:{weight:100+5,kbExpr:ce.and(O.focus,ce.not("isComposing")),primary:9,secondary:[1033]}}));Ne(new qs({id:$t.ToggleCaseSensitiveCommand,precondition:void 0,handler:i=>i.toggleCaseSensitive(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:I0.primary,mac:I0.mac,win:I0.win,linux:I0.linux}}));Ne(new qs({id:$t.ToggleWholeWordCommand,precondition:void 0,handler:i=>i.toggleWholeWords(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:A0.primary,mac:A0.mac,win:A0.win,linux:A0.linux}}));Ne(new qs({id:$t.ToggleRegexCommand,precondition:void 0,handler:i=>i.toggleRegex(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:L0.primary,mac:L0.mac,win:L0.win,linux:L0.linux}}));Ne(new qs({id:$t.ToggleSearchScopeCommand,precondition:void 0,handler:i=>i.toggleSearchScope(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:M0.primary,mac:M0.mac,win:M0.win,linux:M0.linux}}));Ne(new qs({id:$t.TogglePreserveCaseCommand,precondition:void 0,handler:i=>i.togglePreserveCase(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:D0.primary,mac:D0.mac,win:D0.win,linux:D0.linux}}));Ne(new qs({id:$t.ReplaceOneAction,precondition:Xa,handler:i=>i.replace(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:3094}}));Ne(new qs({id:$t.ReplaceOneAction,precondition:Xa,handler:i=>i.replace(),kbOpts:{weight:100+5,kbExpr:ce.and(O.focus,k0),primary:3}}));Ne(new qs({id:$t.ReplaceAllAction,precondition:Xa,handler:i=>i.replaceAll(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:2563}}));Ne(new qs({id:$t.ReplaceAllAction,precondition:Xa,handler:i=>i.replaceAll(),kbOpts:{weight:100+5,kbExpr:ce.and(O.focus,k0),primary:void 0,mac:{primary:2051}}}));Ne(new qs({id:$t.SelectAllMatchesAction,precondition:Xa,handler:i=>i.selectAllMatches(),kbOpts:{weight:100+5,kbExpr:O.focus,primary:515}}))});var Gq=M(()=>{});var $q=M(()=>{Gq()});var Z1e,Yq,Uo,Xq,B0,ur,zE,H0=M(()=>{Z1e={0:" ",1:"u",2:"r"},Yq=65535,Uo=16777215,Xq=4278190080,B0=class{constructor(e){let t=Math.ceil(e/32);this._states=new Uint32Array(t)}get(e){let t=e/32|0,n=e%32;return(this._states[t]&1<Yq)throw new Error("invalid startIndexes or endIndexes size");this._startIndexes=e,this._endIndexes=t,this._collapseStates=new B0(e.length),this._userDefinedStates=new B0(e.length),this._recoveredStates=new B0(e.length),this._types=n,this._parentsComputed=!1}ensureParentIndices(){if(!this._parentsComputed){this._parentsComputed=!0;let e=[],t=(n,r)=>{let o=e[e.length-1];return this.getStartLineNumber(o)<=n&&this.getEndLineNumber(o)>=r};for(let n=0,r=this._startIndexes.length;nUo||s>Uo)throw new Error("startLineNumber or endLineNumber must not exceed "+Uo);for(;e.length>0&&!t(o,s);)e.pop();let a=e.length>0?e[e.length-1]:-1;e.push(n),this._startIndexes[n]=o+((a&255)<<24),this._endIndexes[n]=s+((a&65280)<<16)}}}get length(){return this._startIndexes.length}getStartLineNumber(e){return this._startIndexes[e]&Uo}getEndLineNumber(e){return this._endIndexes[e]&Uo}getType(e){return this._types?this._types[e]:void 0}hasTypes(){return!!this._types}isCollapsed(e){return this._collapseStates.get(e)}setCollapsed(e,t){this._collapseStates.set(e,t)}isUserDefined(e){return this._userDefinedStates.get(e)}setUserDefined(e,t){return this._userDefinedStates.set(e,t)}isRecovered(e){return this._recoveredStates.get(e)}setRecovered(e,t){return this._recoveredStates.set(e,t)}getSource(e){return this.isUserDefined(e)?1:this.isRecovered(e)?2:0}setSource(e,t){t===1?(this.setUserDefined(e,!0),this.setRecovered(e,!1)):t===2?(this.setUserDefined(e,!1),this.setRecovered(e,!0)):(this.setUserDefined(e,!1),this.setRecovered(e,!1))}setCollapsedAllOfType(e,t){let n=!1;if(this._types)for(let r=0;r>>24)+((this._endIndexes[e]&Xq)>>>16);return t===Yq?-1:t}contains(e,t){return this.getStartLineNumber(e)<=t&&this.getEndLineNumber(e)>=t}findIndex(e){let t=0,n=this._startIndexes.length;if(n===0)return-1;for(;t=0){if(this.getEndLineNumber(t)>=e)return t;for(t=this.getParentIndex(t);t!==-1;){if(this.contains(t,e))return t;t=this.getParentIndex(t)}}return-1}toString(){let e=[];for(let t=0;tArray.isArray(g)?S=>SS=d.startLineNumber))c&&c.startLineNumber===d.startLineNumber?(d.source===1?g=d:(g=c,g.isCollapsed=d.isCollapsed&&c.endLineNumber===d.endLineNumber,g.source=0),c=o(++a)):(g=d,d.isCollapsed&&d.source===0&&(g.source=2)),d=s(++l);else{let b=l,S=d;for(;;){if(!S||S.startLineNumber>c.endLineNumber){g=c;break}if(S.source===1&&S.endLineNumber>c.endLineNumber)break;S=s(++b)}c=o(++a)}if(g){for(;h&&h.endLineNumberg.startLineNumber&&g.startLineNumber>p&&g.endLineNumber<=n&&(!h||h.endLineNumber>=g.endLineNumber)&&(m.push(g),p=g.startLineNumber,h&&u.push(h),h=g)}}return m}},zE=class{constructor(e,t){this.ranges=e,this.index=t}get startLineNumber(){return this.ranges.getStartLineNumber(this.index)}get endLineNumber(){return this.ranges.getEndLineNumber(this.index)}get regionIndex(){return this.index}get parentIndex(){return this.ranges.getParentIndex(this.index)}get isCollapsed(){return this.ranges.isCollapsed(this.index)}containedBy(e){return e.startLineNumber<=this.startLineNumber&&e.endLineNumber>=this.endLineNumber}containsLine(e){return this.startLineNumber<=e&&e<=this.endLineNumber}}});function Qq(i,e,t){let n=[];for(let r of t){let o=i.getRegionAtLine(r);if(o){let s=!o.isCollapsed;if(n.push(o),e>1){let a=i.getRegionsInside(o,(l,c)=>l.isCollapsed!==s&&c0)for(let o of n){let s=i.getRegionAtLine(o);if(s&&(s.isCollapsed!==e&&r.push(s),t>1)){let a=i.getRegionsInside(s,(l,c)=>l.isCollapsed!==e&&cs.isCollapsed!==e&&aa.isCollapsed!==e&&l<=t);r.push(...s)}i.toggleCollapseState(r)}function Jq(i,e,t){let n=[];for(let r of t){let o=i.getAllRegionsAtLine(r,s=>s.isCollapsed!==e);o.length>0&&n.push(o[0])}i.toggleCollapseState(n)}function Zq(i,e,t,n){let r=(s,a)=>a===e&&s.isCollapsed!==t&&!n.some(l=>s.containsLine(l)),o=i.getRegionsInside(null,r);i.toggleCollapseState(o)}function jE(i,e,t){let n=[];for(let s of t){let a=i.getAllRegionsAtLine(s,void 0);a.length>0&&n.push(a[0])}let r=s=>n.every(a=>!a.containedBy(s)&&!s.containedBy(a))&&s.isCollapsed!==e,o=i.getRegionsInside(null,r);i.toggleCollapseState(o)}function Ry(i,e,t){let n=i.textModel,r=i.regions,o=[];for(let s=r.length-1;s>=0;s--)if(t!==r.isCollapsed(s)){let a=r.getStartLineNumber(s);e.test(n.getLineContent(a))&&o.push(r.toRegion(s))}i.toggleCollapseState(o)}function Oy(i,e,t){let n=i.regions,r=[];for(let o=n.length-1;o>=0;o--)t!==n.isCollapsed(o)&&e===n.getType(o)&&r.push(n.toRegion(o));i.toggleCollapseState(r)}function eG(i,e){let t=null,n=e.getRegionAtLine(i);if(n!==null&&(t=n.startLineNumber,i===t)){let r=n.parentIndex;r!==-1?t=e.regions.getStartLineNumber(r):t=null}return t}function tG(i,e){let t=e.getRegionAtLine(i);if(t!==null&&t.startLineNumber===i){if(i!==t.startLineNumber)return t.startLineNumber;{let n=t.parentIndex,r=0;for(n!==-1&&(r=e.regions.getStartLineNumber(t.parentIndex));t!==null;)if(t.regionIndex>0){if(t=e.regions.toRegion(t.regionIndex-1),t.startLineNumber<=r)return null;if(t.parentIndex===n)return t.startLineNumber}else return null}}else if(e.regions.length>0)for(t=e.regions.toRegion(e.regions.length-1);t!==null;){if(t.startLineNumber0?t=e.regions.toRegion(t.regionIndex-1):t=null}return null}function iG(i,e){let t=e.getRegionAtLine(i);if(t!==null&&t.startLineNumber===i){let n=t.parentIndex,r=0;if(n!==-1)r=e.regions.getEndLineNumber(t.parentIndex);else{if(e.regions.length===0)return null;r=e.regions.getEndLineNumber(e.regions.length-1)}for(;t!==null;)if(t.regionIndex=r)return null;if(t.parentIndex===n)return t.startLineNumber}else return null}else if(e.regions.length>0)for(t=e.regions.toRegion(0);t!==null;){if(t.startLineNumber>i)return t.startLineNumber;t.regionIndex{Gt();H0();AP();Ny=class{get regions(){return this._regions}get textModel(){return this._textModel}constructor(e,t){this._updateEventEmitter=new $e,this.onDidChange=this._updateEventEmitter.event,this._textModel=e,this._decorationProvider=t,this._regions=new ur(new Uint32Array(0),new Uint32Array(0)),this._editorDecorationIds=[]}toggleCollapseState(e){if(!e.length)return;e=e.sort((n,r)=>n.regionIndex-r.regionIndex);let t={};this._decorationProvider.changeDecorations(n=>{let r=0,o=-1,s=-1,a=l=>{for(;rs&&(s=c),r++}};for(let l of e){let c=l.regionIndex,d=this._editorDecorationIds[c];if(d&&!t[d]){t[d]=!0,a(c);let u=!this._regions.isCollapsed(c);this._regions.setCollapsed(c,u),o=Math.max(o,this._regions.getEndLineNumber(c))}}a(this._regions.length)}),this._updateEventEmitter.fire({model:this,collapseStateChanged:e})}removeManualRanges(e){let t=new Array,n=r=>{for(let o of e)if(!(o.startLineNumber>r.endLineNumber||r.startLineNumber>o.endLineNumber))return!0;return!1};for(let r=0;rn&&(n=a)}this._decorationProvider.changeDecorations(r=>this._editorDecorationIds=r.deltaDecorations(this._editorDecorationIds,t)),this._regions=e,this._updateEventEmitter.fire({model:this})}_currentFoldedOrManualRanges(e=[]){let t=(r,o)=>{for(let s of e)if(r=s.endLineNumber||s.startLineNumber<1||s.endLineNumber>n)continue;let a=this._getLinesChecksum(s.startLineNumber+1,s.endLineNumber);t.push({startLineNumber:s.startLineNumber,endLineNumber:s.endLineNumber,isCollapsed:s.isCollapsed,source:s.source,checksum:a})}return t.length>0?t:void 0}applyMemento(e){var t,n;if(!Array.isArray(e))return;let r=[],o=this._textModel.getLineCount();for(let a of e){if(a.startLineNumber>=a.endLineNumber||a.startLineNumber<1||a.endLineNumber>o)continue;let l=this._getLinesChecksum(a.startLineNumber+1,a.endLineNumber);(!a.checksum||l===a.checksum)&&r.push({startLineNumber:a.startLineNumber,endLineNumber:a.endLineNumber,type:void 0,isCollapsed:(t=a.isCollapsed)!==null&&t!==void 0?t:!0,source:(n=a.source)!==null&&n!==void 0?n:0})}let s=ur.sanitizeAndMerge(this._regions,r,o);this.updatePost(ur.fromFoldRanges(s))}_getLinesChecksum(e,t){return lb(this._textModel.getLineContent(e)+this._textModel.getLineContent(t))%1e6}dispose(){this._decorationProvider.removeDecorations(this._editorDecorationIds)}getAllRegionsAtLine(e,t){let n=[];if(this._regions){let r=this._regions.findRange(e),o=1;for(;r>=0;){let s=this._regions.toRegion(r);(!t||t(s,o))&&n.push(s),o++,r=s.parentIndex}}return n}getRegionAtLine(e){if(this._regions){let t=this._regions.findRange(e);if(t>=0)return this._regions.toRegion(t)}return null}getRegionsInside(e,t){let n=[],r=e?e.regionIndex+1:0,o=e?e.endLineNumber:Number.MAX_VALUE;if(t&&t.length===2){let s=[];for(let a=r,l=this._regions.length;a0&&!c.containedBy(s[s.length-1]);)s.pop();s.push(c),t(c,s.length)&&n.push(c)}else break}}else for(let s=r,a=this._regions.length;s=e.startLineNumber&&i<=e.endLineNumber}function rG(i,e){let t=k_(i,n=>e=0&&i[t].endLineNumber>=e?i[t]:null}var Py,oG=M(()=>{oi();Gt();qe();noe();Py=class{get onDidChange(){return this._updateEventEmitter.event}get hiddenRanges(){return this._hiddenRanges}constructor(e){this._updateEventEmitter=new $e,this._hasLineChanges=!1,this._foldingModel=e,this._foldingModelListener=e.onDidChange(t=>this.updateHiddenRanges()),this._hiddenRanges=[],e.regions.length&&this.updateHiddenRanges()}notifyChangeModelContent(e){this._hiddenRanges.length&&!this._hasLineChanges&&(this._hasLineChanges=e.changes.some(t=>t.range.endLineNumber!==t.range.startLineNumber||gO(t.text)[0]!==0))}updateHiddenRanges(){let e=!1,t=[],n=0,r=0,o=Number.MAX_VALUE,s=-1,a=this._foldingModel.regions;for(;n0}isHidden(e){return rG(this._hiddenRanges,e)!==null}adjustSelections(e){let t=!1,n=this._foldingModel.textModel,r=null,o=s=>((!r||!e0e(s,r))&&(r=rG(this._hiddenRanges,s)),r?r.startLineNumber-1:null);for(let s=0,a=e.length;s0&&(this._hiddenRanges=[],this._updateEventEmitter.fire(this._hiddenRanges)),this._foldingModelListener&&(this._foldingModelListener.dispose(),this._foldingModelListener=null)}}});function r0e(i,e,t,n=n0e){let r=i.getOptions().tabSize,o=new WE(n),s;t&&(s=new RegExp(`(${t.start.source})|(?:${t.end.source})`));let a=[],l=i.getLineCount()+1;a.push({indent:-1,endAbove:l,line:l});for(let c=i.getLineCount();c>0;c--){let d=i.getLineContent(c),u=Km(d,r),h=a[a.length-1];if(u===-1){e&&(h.endAbove=c);continue}let p;if(s&&(p=d.match(s)))if(p[1]){let m=a.length-1;for(;m>0&&a[m].indent!==-2;)m--;if(m>0){a.length=m+1,h=a[m],o.insertFirst(c,h.line,u),h.line=c,h.indent=u,h.endAbove=c;continue}}else{a.push({indent:-2,endAbove:c,line:c});continue}if(h.indent>u){do a.pop(),h=a[a.length-1];while(h.indent>u);let m=h.endAbove-1;m-c>=1&&o.insertFirst(c,m,u)}h.indent===u?h.endAbove=c:a.push({indent:u,endAbove:c,line:c})}return o.toIndentRanges(i)}var t0e,i0e,Ku,WE,n0e,VE=M(()=>{QO();H0();t0e=5e3,i0e="indent",Ku=class{constructor(e,t,n){this.editorModel=e,this.languageConfigurationService=t,this.foldingRangesLimit=n,this.id=i0e}dispose(){}compute(e){let t=this.languageConfigurationService.getLanguageConfiguration(this.editorModel.getLanguageId()).foldingRules,n=t&&!!t.offSide,r=t&&t.markers;return Promise.resolve(r0e(this.editorModel,n,r,this.foldingRangesLimit))}},WE=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._indentOccurrences=[],this._length=0,this._foldingRangesLimit=e}insertFirst(e,t,n){if(e>Uo||t>Uo)return;let r=this._length;this._startIndexes[r]=e,this._endIndexes[r]=t,this._length++,n<1e3&&(this._indentOccurrences[n]=(this._indentOccurrences[n]||0)+1)}toIndentRanges(e){let t=this._foldingRangesLimit.limit;if(this._length<=t){this._foldingRangesLimit.update(this._length,!1);let n=new Uint32Array(this._length),r=new Uint32Array(this._length);for(let o=this._length-1,s=0;o>=0;o--,s++)n[s]=this._startIndexes[o],r[s]=this._endIndexes[o];return new ur(n,r)}else{this._foldingRangesLimit.update(this._length,t);let n=0,r=this._indentOccurrences.length;for(let l=0;lt){r=l;break}n+=c}}let o=e.getOptions().tabSize,s=new Uint32Array(t),a=new Uint32Array(t);for(let l=this._length-1,c=0;l>=0;l--){let d=this._startIndexes[l],u=e.getLineContent(d),h=Km(u,o);(h{}}});var o0e,KE,qE,sG,aG,GE,zr,lG=M(()=>{or();Kc();qn();Re();_r();Ll();ar();Kr();o0e=Oe("editor.foldBackground",{light:Or(Sw,.3),dark:Or(Sw,.3),hcDark:null,hcLight:null},v("foldBackgroundBackground","Background color behind folded ranges. The color must not be opaque so as not to hide underlying decorations."),!0);Oe("editorGutter.foldingControlForeground",{dark:Fm,light:Fm,hcDark:Fm,hcLight:Fm},v("editorGutter.foldingControlForeground","Color of the folding control in the editor gutter."));KE=Ti("folding-expanded",ct.chevronDown,v("foldingExpandedIcon","Icon for expanded ranges in the editor glyph margin.")),qE=Ti("folding-collapsed",ct.chevronRight,v("foldingCollapsedIcon","Icon for collapsed ranges in the editor glyph margin.")),sG=Ti("folding-manual-collapsed",qE,v("foldingManualCollapedIcon","Icon for manually collapsed ranges in the editor glyph margin.")),aG=Ti("folding-manual-expanded",KE,v("foldingManualExpandedIcon","Icon for manually expanded ranges in the editor glyph margin.")),GE={color:vi(o0e),position:pa.Inline},zr=class i{constructor(e){this.editor=e,this.showFoldingControls="mouseover",this.showFoldingHighlights=!0}getDecorationOption(e,t,n){return t?i.HIDDEN_RANGE_DECORATION:this.showFoldingControls==="never"?e?this.showFoldingHighlights?i.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION:i.NO_CONTROLS_COLLAPSED_RANGE_DECORATION:i.NO_CONTROLS_EXPANDED_RANGE_DECORATION:e?n?this.showFoldingHighlights?i.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:i.MANUALLY_COLLAPSED_VISUAL_DECORATION:this.showFoldingHighlights?i.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION:i.COLLAPSED_VISUAL_DECORATION:this.showFoldingControls==="mouseover"?n?i.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION:i.EXPANDED_AUTO_HIDE_VISUAL_DECORATION:n?i.MANUALLY_EXPANDED_VISUAL_DECORATION:i.EXPANDED_VISUAL_DECORATION}changeDecorations(e){return this.editor.changeDecorations(e)}removeDecorations(e){this.editor.removeDecorations(e)}};zr.COLLAPSED_VISUAL_DECORATION=dt.register({description:"folding-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:gt.asClassName(qE)});zr.COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=dt.register({description:"folding-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:GE,isWholeLine:!0,firstLineDecorationClassName:gt.asClassName(qE)});zr.MANUALLY_COLLAPSED_VISUAL_DECORATION=dt.register({description:"folding-manually-collapsed-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0,firstLineDecorationClassName:gt.asClassName(sG)});zr.MANUALLY_COLLAPSED_HIGHLIGHTED_VISUAL_DECORATION=dt.register({description:"folding-manually-collapsed-highlighted-visual-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:GE,isWholeLine:!0,firstLineDecorationClassName:gt.asClassName(sG)});zr.NO_CONTROLS_COLLAPSED_RANGE_DECORATION=dt.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",isWholeLine:!0});zr.NO_CONTROLS_COLLAPSED_HIGHLIGHTED_RANGE_DECORATION=dt.register({description:"folding-no-controls-range-decoration",stickiness:0,afterContentClassName:"inline-folded",className:"folded-background",minimap:GE,isWholeLine:!0});zr.EXPANDED_VISUAL_DECORATION=dt.register({description:"folding-expanded-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+gt.asClassName(KE)});zr.EXPANDED_AUTO_HIDE_VISUAL_DECORATION=dt.register({description:"folding-expanded-auto-hide-visual-decoration",stickiness:1,isWholeLine:!0,firstLineDecorationClassName:gt.asClassName(KE)});zr.MANUALLY_EXPANDED_VISUAL_DECORATION=dt.register({description:"folding-manually-expanded-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:"alwaysShowFoldIcons "+gt.asClassName(aG)});zr.MANUALLY_EXPANDED_AUTO_HIDE_VISUAL_DECORATION=dt.register({description:"folding-manually-expanded-auto-hide-visual-decoration",stickiness:0,isWholeLine:!0,firstLineDecorationClassName:gt.asClassName(aG)});zr.NO_CONTROLS_EXPANDED_RANGE_DECORATION=dt.register({description:"folding-no-controls-range-decoration",stickiness:0,isWholeLine:!0});zr.HIDDEN_RANGE_DECORATION=dt.register({description:"folding-hidden-range-decoration",stickiness:1})});function l0e(i,e,t){let n=null,r=i.map((o,s)=>Promise.resolve(o.provideFoldingRanges(e,s0e,t)).then(a=>{if(!t.isCancellationRequested&&Array.isArray(a)){Array.isArray(n)||(n=[]);let l=e.getLineCount();for(let c of a)c.start>0&&c.end>c.start&&c.end<=l&&n.push({start:c.start,end:c.end,rank:s,kind:c.kind})}},Ut));return Promise.all(r).then(o=>n)}function c0e(i,e){let t=i.sort((s,a)=>{let l=s.start-a.start;return l===0&&(l=s.rank-a.rank),l}),n=new $E(e),r,o=[];for(let s of t)if(!r)r=s,n.add(s.start,s.end,s.kind&&s.kind.value,o.length);else if(s.start>r.start)if(s.end<=r.end)o.push(r),r=s,n.add(s.start,s.end,s.kind&&s.kind.value,o.length);else{if(s.start>r.end){do r=o.pop();while(r&&s.start>r.end);r&&o.push(r),r=s}n.add(s.start,s.end,s.kind&&s.kind.value,o.length)}return n.toIndentRanges()}var s0e,a0e,qu,$E,YE=M(()=>{At();Ce();H0();s0e={},a0e="syntax",qu=class{constructor(e,t,n,r,o){this.editorModel=e,this.providers=t,this.handleFoldingRangesChange=n,this.foldingRangesLimit=r,this.fallbackRangeProvider=o,this.id=a0e,this.disposables=new re,o&&this.disposables.add(o);for(let s of t)typeof s.onDidChange=="function"&&this.disposables.add(s.onDidChange(n))}compute(e){return l0e(this.providers,this.editorModel,e).then(t=>{var n,r;return t?c0e(t,this.foldingRangesLimit):(r=(n=this.fallbackRangeProvider)===null||n===void 0?void 0:n.compute(e))!==null&&r!==void 0?r:null})}dispose(){this.disposables.dispose()}};$E=class{constructor(e){this._startIndexes=[],this._endIndexes=[],this._nestingLevels=[],this._nestingLevelCounts=[],this._types=[],this._length=0,this._foldingRangesLimit=e}add(e,t,n,r){if(e>Uo||t>Uo)return;let o=this._length;this._startIndexes[o]=e,this._endIndexes[o]=t,this._nestingLevels[o]=r,this._types[o]=n,this._length++,r<30&&(this._nestingLevelCounts[r]=(this._nestingLevelCounts[r]||0)+1)}toIndentRanges(){let e=this._foldingRangesLimit.limit;if(this._length<=e){this._foldingRangesLimit.update(this._length,!1);let t=new Uint32Array(this._length),n=new Uint32Array(this._length);for(let r=0;re){n=a;break}t+=l}}let r=new Uint32Array(e),o=new Uint32Array(e),s=[];for(let a=0,l=0;a{Dt();gi();At();gl();Ce();wi();Mi();$q();sb();et();Vt();br();Kn();nG();oG();VE();Re();pt();lG();H0();YE();Ro();Rs();ml();xt();Gt();zi();Sn();ts();Wn();u0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},z0=function(i,e){return function(t,n){e(t,n,i)}},h0e=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Jn=new rt("foldingEnabled",!1),Za=class U0 extends oe{static get(e){return e.getContribution(U0.ID)}static getFoldingRangeProviders(e,t){var n,r;let o=e.foldingRangeProvider.ordered(t);return(r=(n=U0._foldingRangeSelector)===null||n===void 0?void 0:n.call(U0,o,t))!==null&&r!==void 0?r:o}constructor(e,t,n,r,o,s){super(),this.contextKeyService=t,this.languageConfigurationService=n,this.languageFeaturesService=s,this.localToDispose=this._register(new re),this.editor=e,this._foldingLimitReporter=new j0(e);let a=this.editor.getOptions();this._isEnabled=a.get(41),this._useFoldingProviders=a.get(42)!=="indentation",this._unfoldOnClickAfterEndOfLine=a.get(46),this._restoringViewState=!1,this._currentModelHasFoldedImports=!1,this._foldingImportsByDefault=a.get(44),this.updateDebounceInfo=o.for(s.foldingRangeProvider,"Folding",{min:200}),this.foldingModel=null,this.hiddenRangeModel=null,this.rangeProvider=null,this.foldingRegionPromise=null,this.foldingModelPromise=null,this.updateScheduler=null,this.cursorChangedScheduler=null,this.mouseDownInfo=null,this.foldingDecorationProvider=new zr(e),this.foldingDecorationProvider.showFoldingControls=a.get(106),this.foldingDecorationProvider.showFoldingHighlights=a.get(43),this.foldingEnabled=Jn.bindTo(this.contextKeyService),this.foldingEnabled.set(this._isEnabled),this._register(this.editor.onDidChangeModel(()=>this.onModelChanged())),this._register(this.editor.onDidChangeConfiguration(l=>{if(l.hasChanged(41)&&(this._isEnabled=this.editor.getOptions().get(41),this.foldingEnabled.set(this._isEnabled),this.onModelChanged()),l.hasChanged(45)&&this.onModelChanged(),l.hasChanged(106)||l.hasChanged(43)){let c=this.editor.getOptions();this.foldingDecorationProvider.showFoldingControls=c.get(106),this.foldingDecorationProvider.showFoldingHighlights=c.get(43),this.triggerFoldingModelChanged()}l.hasChanged(42)&&(this._useFoldingProviders=this.editor.getOptions().get(42)!=="indentation",this.onFoldingStrategyChanged()),l.hasChanged(46)&&(this._unfoldOnClickAfterEndOfLine=this.editor.getOptions().get(46)),l.hasChanged(44)&&(this._foldingImportsByDefault=this.editor.getOptions().get(44))})),this.onModelChanged()}saveViewState(){let e=this.editor.getModel();if(!e||!this._isEnabled||e.isTooLargeForTokenization())return{};if(this.foldingModel){let t=this.foldingModel.getMemento(),n=this.rangeProvider?this.rangeProvider.id:void 0;return{collapsedRegions:t,lineCount:e.getLineCount(),provider:n,foldedImports:this._currentModelHasFoldedImports}}}restoreViewState(e){let t=this.editor.getModel();if(!(!t||!this._isEnabled||t.isTooLargeForTokenization()||!this.hiddenRangeModel)&&e&&(this._currentModelHasFoldedImports=!!e.foldedImports,e.collapsedRegions&&e.collapsedRegions.length>0&&this.foldingModel)){this._restoringViewState=!0;try{this.foldingModel.applyMemento(e.collapsedRegions)}finally{this._restoringViewState=!1}}}onModelChanged(){this.localToDispose.clear();let e=this.editor.getModel();!this._isEnabled||!e||e.isTooLargeForTokenization()||(this._currentModelHasFoldedImports=!1,this.foldingModel=new Ny(e,this.foldingDecorationProvider),this.localToDispose.add(this.foldingModel),this.hiddenRangeModel=new Py(this.foldingModel),this.localToDispose.add(this.hiddenRangeModel),this.localToDispose.add(this.hiddenRangeModel.onDidChange(t=>this.onHiddenRangesChanges(t))),this.updateScheduler=new No(this.updateDebounceInfo.get(e)),this.cursorChangedScheduler=new ii(()=>this.revealCursor(),200),this.localToDispose.add(this.cursorChangedScheduler),this.localToDispose.add(this.languageFeaturesService.foldingRangeProvider.onDidChange(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelLanguageConfiguration(()=>this.onFoldingStrategyChanged())),this.localToDispose.add(this.editor.onDidChangeModelContent(t=>this.onDidChangeModelContent(t))),this.localToDispose.add(this.editor.onDidChangeCursorPosition(()=>this.onCursorPositionChanged())),this.localToDispose.add(this.editor.onMouseDown(t=>this.onEditorMouseDown(t))),this.localToDispose.add(this.editor.onMouseUp(t=>this.onEditorMouseUp(t))),this.localToDispose.add({dispose:()=>{var t,n;this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),(t=this.updateScheduler)===null||t===void 0||t.cancel(),this.updateScheduler=null,this.foldingModel=null,this.foldingModelPromise=null,this.hiddenRangeModel=null,this.cursorChangedScheduler=null,(n=this.rangeProvider)===null||n===void 0||n.dispose(),this.rangeProvider=null}}),this.triggerFoldingModelChanged())}onFoldingStrategyChanged(){var e;(e=this.rangeProvider)===null||e===void 0||e.dispose(),this.rangeProvider=null,this.triggerFoldingModelChanged()}getRangeProvider(e){if(this.rangeProvider)return this.rangeProvider;let t=new Ku(e,this.languageConfigurationService,this._foldingLimitReporter);if(this.rangeProvider=t,this._useFoldingProviders&&this.foldingModel){let n=U0.getFoldingRangeProviders(this.languageFeaturesService,e);n.length>0&&(this.rangeProvider=new qu(e,n,()=>this.triggerFoldingModelChanged(),this._foldingLimitReporter,t))}return this.rangeProvider}getFoldingModel(){return this.foldingModelPromise}onDidChangeModelContent(e){var t;(t=this.hiddenRangeModel)===null||t===void 0||t.notifyChangeModelContent(e),this.triggerFoldingModelChanged()}triggerFoldingModelChanged(){this.updateScheduler&&(this.foldingRegionPromise&&(this.foldingRegionPromise.cancel(),this.foldingRegionPromise=null),this.foldingModelPromise=this.updateScheduler.trigger(()=>{let e=this.foldingModel;if(!e)return null;let t=new Ln(!0),n=this.getRangeProvider(e.textModel),r=this.foldingRegionPromise=Kt(o=>n.compute(o));return r.then(o=>{if(o&&r===this.foldingRegionPromise){let s;if(this._foldingImportsByDefault&&!this._currentModelHasFoldedImports){let d=o.setCollapsedAllOfType(uf.Imports.value,!0);d&&(s=xa.capture(this.editor),this._currentModelHasFoldedImports=d)}let a=this.editor.getSelections(),l=a?a.map(d=>d.startLineNumber):[];e.update(o,l),s==null||s.restore(this.editor);let c=this.updateDebounceInfo.update(e.textModel,t.elapsed());this.updateScheduler&&(this.updateScheduler.defaultDelay=c)}return e})}).then(void 0,e=>(lt(e),null)))}onHiddenRangesChanges(e){if(this.hiddenRangeModel&&e.length&&!this._restoringViewState){let t=this.editor.getSelections();t&&this.hiddenRangeModel.adjustSelections(t)&&this.editor.setSelections(t)}this.editor.setHiddenAreas(e,this)}onCursorPositionChanged(){this.hiddenRangeModel&&this.hiddenRangeModel.hasRanges()&&this.cursorChangedScheduler.schedule()}revealCursor(){let e=this.getFoldingModel();e&&e.then(t=>{if(t){let n=this.editor.getSelections();if(n&&n.length>0){let r=[];for(let o of n){let s=o.selectionStartLineNumber;this.hiddenRangeModel&&this.hiddenRangeModel.isHidden(s)&&r.push(...t.getAllRegionsAtLine(s,a=>a.isCollapsed&&s>a.startLineNumber))}r.length&&(t.toggleCollapseState(r),this.reveal(n[0].getPosition()))}}}).then(void 0,lt)}onEditorMouseDown(e){if(this.mouseDownInfo=null,!this.hiddenRangeModel||!e.target||!e.target.range||!e.event.leftButton&&!e.event.middleButton)return;let t=e.target.range,n=!1;switch(e.target.type){case 4:{let r=e.target.detail,o=e.target.element.offsetLeft;if(r.offsetX-o<5)return;n=!0;break}case 7:{if(this._unfoldOnClickAfterEndOfLine&&this.hiddenRangeModel.hasRanges()&&!e.target.detail.isAfterLines)break;return}case 6:{if(this.hiddenRangeModel.hasRanges()){let r=this.editor.getModel();if(r&&t.startColumn===r.getLineMaxColumn(t.startLineNumber))break}return}default:return}this.mouseDownInfo={lineNumber:t.startLineNumber,iconClicked:n}}onEditorMouseUp(e){let t=this.foldingModel;if(!t||!this.mouseDownInfo||!e.target)return;let n=this.mouseDownInfo.lineNumber,r=this.mouseDownInfo.iconClicked,o=e.target.range;if(!o||o.startLineNumber!==n)return;if(r){if(e.target.type!==4)return}else{let a=this.editor.getModel();if(!a||o.startColumn!==a.getLineMaxColumn(n))return}let s=t.getRegionAtLine(n);if(s&&s.startLineNumber===n){let a=s.isCollapsed;if(r||a){let l=e.event.altKey,c=[];if(l){let d=h=>!h.containedBy(s)&&!s.containedBy(h),u=t.getRegionsInside(null,d);for(let h of u)h.isCollapsed&&c.push(h);c.length===0&&(c=u)}else{let d=e.event.middleButton||e.event.shiftKey;if(d)for(let u of t.getRegionsInside(s))u.isCollapsed===a&&c.push(u);(a||!d||c.length===0)&&c.push(s)}t.toggleCollapseState(c),this.reveal({lineNumber:n,column:1})}}}reveal(e){this.editor.revealPositionInCenterIfOutsideViewport(e,0)}};Za.ID="editor.contrib.folding";Za=u0e([z0(1,Ke),z0(2,Tt),z0(3,Ei),z0(4,an),z0(5,be)],Za);j0=class{constructor(e){this.editor=e,this._onDidChange=new $e,this._computed=0,this._limited=!1}get limit(){return this.editor.getOptions().get(45)}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}},Rn=class extends se{runEditorCommand(e,t,n){let r=e.get(Tt),o=Za.get(t);if(!o)return;let s=o.getFoldingModel();if(s)return this.reportTelemetry(e,t),s.then(a=>{if(a){this.invoke(o,a,t,n,r);let l=t.getSelection();l&&o.reveal(l.getStartPosition())}})}getSelectedLines(e){let t=e.getSelections();return t?t.map(n=>n.startLineNumber):[]}getLineNumbers(e,t){return e&&e.selectionLines?e.selectionLines.map(n=>n+1):this.getSelectedLines(t)}run(e,t){}};XE=class extends Rn{constructor(){super({id:"editor.unfold",label:v("unfoldAction.label","Unfold"),alias:"Unfold",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:3166,mac:{primary:2654},weight:100},description:{description:"Unfold the content in the editor",args:[{name:"Unfold editor argument",description:`Property-value pairs that can be passed through this argument: * 'levels': Number of levels to unfold. If not set, defaults to 1. * 'direction': If 'up', unfold given number of levels up otherwise unfolds down. * 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the unfold action to. If not set, the active selection(s) will be used. - `,constraint:o$,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,r,n){let o=n&&n.levels||1,s=this.getLineNumbers(n,r);n&&n.direction==="up"?ZI(t,!1,o,s):rh(t,!1,o,s)}},lA=class extends Nr{constructor(){super({id:"editor.unfoldRecursively",label:b("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2142),weight:100}})}invoke(e,t,r,n){rh(t,!1,Number.MAX_VALUE,this.getSelectedLines(r))}},cA=class extends Nr{constructor(){super({id:"editor.fold",label:b("foldAction.label","Fold"),alias:"Fold",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument: + `,constraint:cG,schema:{type:"object",properties:{levels:{type:"number",default:1},direction:{type:"string",enum:["up","down"],default:"down"},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,n,r){let o=r&&r.levels||1,s=this.getLineNumbers(r,n);r&&r.direction==="up"?UE(t,!1,o,s):Vu(t,!1,o,s)}},QE=class extends Rn{constructor(){super({id:"editor.unfoldRecursively",label:v("unFoldRecursivelyAction.label","Unfold Recursively"),alias:"Unfold Recursively",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2142),weight:100}})}invoke(e,t,n,r){Vu(t,!1,Number.MAX_VALUE,this.getSelectedLines(n))}},JE=class extends Rn{constructor(){super({id:"editor.fold",label:v("foldAction.label","Fold"),alias:"Fold",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:3164,mac:{primary:2652},weight:100},description:{description:"Fold the content in the editor",args:[{name:"Fold editor argument",description:`Property-value pairs that can be passed through this argument: * 'levels': Number of levels to fold. * 'direction': If 'up', folds given number of levels up otherwise folds down. * 'selectionLines': Array of the start lines (0-based) of the editor selections to apply the fold action to. If not set, the active selection(s) will be used. If no levels or direction is set, folds the region at the locations or if already collapsed, the first uncollapsed parent instead. - `,constraint:o$,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,r,n){let o=this.getLineNumbers(n,r),s=n&&n.levels,a=n&&n.direction;typeof s!="number"&&typeof a!="string"?XK(t,!0,o):a==="up"?ZI(t,!0,s||1,o):rh(t,!0,s||1,o)}},dA=class extends Nr{constructor(){super({id:"editor.toggleFold",label:b("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2090),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);x2(t,1,n)}},uA=class extends Nr{constructor(){super({id:"editor.foldRecursively",label:b("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2140),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);rh(t,!0,Number.MAX_VALUE,n)}},hA=class extends Nr{constructor(){super({id:"editor.foldAllBlockComments",label:b("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2138),weight:100}})}invoke(e,t,r,n,o){if(t.regions.hasTypes())S2(t,vf.Comment.value,!0);else{let s=r.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).comments;if(a&&a.blockCommentStartToken){let l=new RegExp("^\\s*"+cl(a.blockCommentStartToken));C2(t,l,!0)}}}},fA=class extends Nr{constructor(){super({id:"editor.foldAllMarkerRegions",label:b("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2077),weight:100}})}invoke(e,t,r,n,o){if(t.regions.hasTypes())S2(t,vf.Region.value,!0);else{let s=r.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start){let l=new RegExp(a.markers.start);C2(t,l,!0)}}}},pA=class extends Nr{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:b("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2078),weight:100}})}invoke(e,t,r,n,o){if(t.regions.hasTypes())S2(t,vf.Region.value,!1);else{let s=r.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start){let l=new RegExp(a.markers.start);C2(t,l,!1)}}}},mA=class extends Nr{constructor(){super({id:"editor.foldAllExcept",label:b("foldAllExcept.label","Fold All Except Selected"),alias:"Fold All Except Selected",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2136),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);JI(t,!0,n)}},gA=class extends Nr{constructor(){super({id:"editor.unfoldAllExcept",label:b("unfoldAllExcept.label","Unfold All Except Selected"),alias:"Unfold All Except Selected",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2134),weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);JI(t,!1,n)}},bA=class extends Nr{constructor(){super({id:"editor.foldAll",label:b("foldAllAction.label","Fold All"),alias:"Fold All",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2069),weight:100}})}invoke(e,t,r){rh(t,!0)}},vA=class extends Nr{constructor(){super({id:"editor.unfoldAll",label:b("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2088),weight:100}})}invoke(e,t,r){rh(t,!1)}},sh=class i extends Nr{getFoldingLevel(){return parseInt(this.id.substr(i.ID_PREFIX.length))}invoke(e,t,r){QK(t,this.getFoldingLevel(),!0,this.getSelectedLines(r))}};sh.ID_PREFIX="editor.foldLevel";sh.ID=i=>sh.ID_PREFIX+i;_A=class extends Nr{constructor(){super({id:"editor.gotoParentFold",label:b("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);if(n.length>0){let o=ZK(n[0],t);o!==null&&r.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},yA=class extends Nr{constructor(){super({id:"editor.gotoPreviousFold",label:b("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);if(n.length>0){let o=JK(n[0],t);o!==null&&r.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},wA=class extends Nr{constructor(){super({id:"editor.gotoNextFold",label:b("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,weight:100}})}invoke(e,t,r){let n=this.getSelectedLines(r);if(n.length>0){let o=e$(n[0],t);o!==null&&r.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},xA=class extends Nr{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:b("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2135),weight:100}})}invoke(e,t,r){var n;let o=[],s=r.getSelections();if(s){for(let a of s){let l=a.endLineNumber;a.endColumn===1&&--l,l>a.startLineNumber&&(o.push({startLineNumber:a.startLineNumber,endLineNumber:l,type:void 0,isCollapsed:!0,source:1}),r.setSelection({startLineNumber:a.startLineNumber,startColumn:1,endLineNumber:a.startLineNumber,endColumn:1}))}if(o.length>0){o.sort((l,c)=>l.startLineNumber-c.startLineNumber);let a=cn.sanitizeAndMerge(t.regions,o,(n=r.getModel())===null||n===void 0?void 0:n.getLineCount());t.updatePost(cn.fromFoldRanges(a))}}}},CA=class extends Nr{constructor(){super({id:"editor.removeManualFoldingRanges",label:b("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2137),weight:100}})}invoke(e,t,r){let n=r.getSelections();if(n){let o=[];for(let s of n){let{startLineNumber:a,endLineNumber:l}=s;o.push(l>=a?{startLineNumber:a,endLineNumber:l}:{endLineNumber:l,startLineNumber:a})}t.removeManualRanges(o),e.triggerFoldingModelChanged()}}};Ue(fs.ID,fs,0);ee(aA);ee(lA);ee(cA);ee(uA);ee(bA);ee(vA);ee(hA);ee(fA);ee(pA);ee(mA);ee(gA);ee(dA);ee(_A);ee(yA);ee(wA);ee(xA);ee(CA);for(let i=1;i<=7;i++)CP(new sh({id:sh.ID(i),label:b("foldLevelAction.label","Fold Level {0}",i),alias:`Fold Level ${i}`,precondition:Kr,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2048|21+i),weight:100}}));Dt.registerCommand("_executeFoldingRangeProvider",function(i,...e){return m0e(this,void 0,void 0,function*(){let[t]=e;if(!(t instanceof yt))throw ko();let r=i.get(Se),n=i.get(Di).getModel(t);if(!n)throw ko();let o=i.get(Mt);if(!o.getValue("editor.folding",{resource:t}))return[];let s=i.get(Ot),a=o.getValue("editor.foldingStrategy",{resource:t}),l={get limit(){return o.getValue("editor.foldingMaximumRegions",{resource:t})},update:(f,m)=>{}},c=new nh(n,s,l),d=c;if(a!=="indentation"){let f=fs.getFoldingRangeProviders(r,n);f.length&&(d=new oh(n,f,()=>{},l,c))}let u=yield d.compute(st.None),h=[];try{if(u)for(let f=0;f{lt();Kre();He();SA=class extends de{constructor(){super({id:"editor.action.fontZoomIn",label:b("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){Sf.setZoomLevel(Sf.getZoomLevel()+1)}},kA=class extends de{constructor(){super({id:"editor.action.fontZoomOut",label:b("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){Sf.setZoomLevel(Sf.getZoomLevel()-1)}},EA=class extends de{constructor(){super({id:"editor.action.fontZoomReset",label:b("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){Sf.setZoomLevel(0)}};ee(SA);ee(kA);ee(EA)});var DA=Qi(ah=>{mi();ki();qt();ll();ke();lt();In();K3();et();ti();q_();Pt();Gre();$re();He();Vi();wt();Ut();$c();var s$=ah&&ah.__decorate||function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},E2=ah&&ah.__param||function(i,e){return function(t,r){e(t,r,i)}},LA=ah&&ah.__awaiter||function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},fb=class{constructor(e,t,r){this._editor=e,this._languageFeaturesService=t,this._workerService=r,this._disposables=new le,this._sessionDisposables=new le,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(n=>{n.hasChanged(55)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(55)||!this._editor.hasModel())return;let e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;let r=new fu;for(let n of t.autoFormatTriggerCharacters)r.add(n.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(n=>{let o=n.charCodeAt(n.length-1);r.has(o)&&this._trigger(String.fromCharCode(o))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;let t=this._editor.getModel(),r=this._editor.getPosition(),n=new zi,o=this._editor.onDidChangeModelContent(s=>{if(s.isFlush){n.cancel(),o.dispose();return}for(let a=0,l=s.changes.length;a{n.token.isCancellationRequested||Ki(s)&&(FF.execute(this._editor,s,!0),zF(s))}).finally(()=>{o.dispose()})}};fb.ID="editor.contrib.autoFormat";fb=s$([E2(1,Se),E2(2,kl)],fb);var pb=class{constructor(e,t,r){this.editor=e,this._languageFeaturesService=t,this._instantiationService=r,this._callOnDispose=new le,this._callOnModel=new le,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(54)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e)))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(yk,this.editor,e,2,ba.None,st.None).catch(ft))}};pb.ID="editor.contrib.formatOnPaste";pb=s$([E2(1,Se),E2(2,Ke)],pb);var IA=class extends de{constructor(){super({id:"editor.action.formatDocument",label:b("formatDocument.label","Format Document"),alias:"Format Document",precondition:fe.and(F.notInCompositeEditor,F.writable,F.hasDocumentFormattingProvider),kbOpts:{kbExpr:F.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return LA(this,void 0,void 0,function*(){if(t.hasModel()){let r=e.get(Ke);yield e.get(vl).showWhile(r.invokeFunction(BF,t,1,ba.None,st.None),250)}})}},AA=class extends de{constructor(){super({id:"editor.action.formatSelection",label:b("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:fe.and(F.writable,F.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2084),weight:100},contextMenuOpts:{when:F.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return LA(this,void 0,void 0,function*(){if(!t.hasModel())return;let r=e.get(Ke),n=t.getModel(),o=t.getSelections().map(a=>a.isEmpty()?new B(a.startLineNumber,1,a.startLineNumber,n.getLineMaxColumn(a.startLineNumber)):a);yield e.get(vl).showWhile(r.invokeFunction(yk,t,o,1,ba.None,st.None),250)})}};Ue(fb.ID,fb,2);Ue(pb.ID,pb,2);ee(IA);ee(AA);Dt.registerCommand("editor.action.format",i=>LA(void 0,void 0,void 0,function*(){let e=i.get(ai).getFocusedCodeEditor();if(!e||!e.hasModel())return;let t=i.get(_i);e.getSelection().isEmpty()?yield t.executeCommand("editor.action.formatDocument"):yield t.executeCommand("editor.action.formatSelection")}))});var bp,Ad,Uo,rc=N(()=>{bp=class{constructor(e,t,r,n){this.priority=e,this.range=t,this.initialMousePosX=r,this.initialMousePosY=n,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}},Ad=class{constructor(e,t,r,n,o,s){this.priority=e,this.owner=t,this.range=r,this.initialMousePosX=n,this.initialMousePosY=o,this.supportsMarkerHover=s,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}},Uo=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}});var T2,I2,A2,L2=N(()=>{T2="editor.action.inlineSuggest.commit",I2="editor.action.inlineSuggest.showPrevious",A2="editor.action.inlineSuggest.showNext"});var _r,D2=N(()=>{wa();Ni();lre();wt();ke();He();_r=class i extends ce{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=i.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=i.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=i.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=i.suppressSuggestions.bindTo(this.contextKeyService),this._register(pn(r=>{let n=this.model.read(r),o=n==null?void 0:n.state.read(r),s=!!(o!=null&&o.inlineCompletion)&&(o==null?void 0:o.ghostText)!==void 0&&!(o!=null&&o.ghostText.isEmpty());this.inlineCompletionVisible.set(s),o!=null&&o.ghostText&&(o!=null&&o.inlineCompletion)&&this.suppressSuggestions.set(o.inlineCompletion.inlineCompletion.source.inlineCompletions.suppressSuggestions)})),this._register(pn(r=>{let n=this.model.read(r),o=!1,s=!0,a=n==null?void 0:n.ghostText.read(r);if(n!=null&&n.selectedSuggestItem&&a&&a.parts.length>0){let{column:l,lines:c}=a.parts[0],d=c[0],u=n.textModel.getLineIndentColumn(a.lineNumber);if(l<=u){let f=Rm(d);f===-1&&(f=d.length-1),o=f>0;let m=n.textModel.getOptions().tabSize;s=SP.visibleColumnFromColumn(d,f+1,m){});var l$=N(()=>{a$()});function c$(i,e){let t=new MA(i),r=e.map(n=>{let o=B.lift(n.range);return{startOffset:t.getOffset(o.getStartPosition()),endOffset:t.getOffset(o.getEndPosition()),text:n.text}});r.sort((n,o)=>o.startOffset-n.startOffset);for(let n of r)i=i.substring(0,n.startOffset)+n.text+i.substring(n.endOffset);return i}function d$(){return g0e}function u$(i,e){let t=new le,r=i.createDecorationsCollection();return t.add(jF({debugName:()=>`Apply decorations from ${e.debugName}`},n=>{let o=e.read(n);r.set(o)})),t.add({dispose:()=>{r.clear()}}),t}function mb(i,e){return new Ie(i.lineNumber+e.lineNumber-1,e.lineNumber===1?i.column+e.column-1:e.column)}function gb(i){let e=1,t=1;for(let r of i)r===` -`?(e++,t=1):t++;return new Ie(e,t)}var MA,g0e,M2,vp=N(()=>{qt();ke();wa();di();et();MA=class{constructor(e){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;tt)throw new Im(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new B(e,this.startColumn,e,this.endColumnExclusive)}equals(e){return this.startColumn===e.startColumn&&this.endColumnExclusive===e.endColumnExclusive}}});function NA(i,e){return i===e?!0:!i||!e?!1:i instanceof Ld&&e instanceof Ld||i instanceof yp&&e instanceof yp?i.equals(e):!1}var Ld,_p,yp,N2=N(()=>{vp();Ld=class{constructor(e,t){this.lineNumber=e,this.parts=t}equals(e){return this.lineNumber===e.lineNumber&&this.parts.length===e.parts.length&&this.parts.every((t,r)=>t.equals(e.parts[r]))}renderForScreenReader(e){if(this.parts.length===0)return"";let t=this.parts[this.parts.length-1],r=e.substr(0,t.column-1);return c$(r,this.parts.map(o=>({range:{startLineNumber:1,endLineNumber:1,startColumn:o.column,endColumn:o.column},text:o.lines.join(` -`)}))).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(e=>e.lines.length===0)}get lineCount(){return 1+this.parts.reduce((e,t)=>e+t.lines.length-1,0)}},_p=class{constructor(e,t,r){this.column=e,this.lines=t,this.preview=r}equals(e){return this.column===e.column&&this.lines.length===e.lines.length&&this.lines.every((t,r)=>t===e.lines[r])}},yp=class{constructor(e,t,r,n=0){this.lineNumber=e,this.columnRange=t,this.newLines=r,this.additionalReservedLineCount=n,this.parts=[new _p(this.columnRange.endColumnExclusive,this.newLines,!1)]}renderForScreenReader(e){return this.newLines.join(` -`)}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every(e=>e.lines.length===0)}equals(e){return this.lineNumber===e.lineNumber&&this.columnRange.equals(e.columnRange)&&this.newLines.length===e.newLines.length&&this.newLines.every((t,r)=>t===e.newLines[r])&&this.additionalReservedLineCount===e.additionalReservedLineCount}}});function _0e(i,e,t,r,n){let o=r.get(32),s=r.get(115),a="none",l=r.get(92),c=r.get(50),d=r.get(49),u=r.get(65),h=new i_(1e4);h.appendString('
');for(let g=0,w=t.length;g');let L=$v(E),A=_P(E),O=YO.createEmpty(E,n);Y_(new G_(d.isMonospace&&!o,d.canUseHalfwidthRightwardsArrow,E,!1,L,A,0,O,_.decorations,e,0,d.spaceWidth,d.middotWidth,d.wsmiddotWidth,s,a,l,c!==eF.OFF,null),h),h.appendString("
")}h.appendString("
"),L_(i,d);let f=h.build(),m=h$?h$.createHTML(f):f;i.innerHTML=m}var b0e,v0e,R2,RA,h$,f$=N(()=>{ck();ei();ke();wa();Ni();l$();uF();eg();di();et();zP();es();qc();Lre();$F();GF();N2();vp();b0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},v0e=function(i,e){return function(t,r){e(t,r,i)}},R2=class extends ce{constructor(e,t,r){super(),this.editor=e,this.model=t,this.languageService=r,this.isDisposed=ya("isDisposed",!1),this.currentTextModel=El(this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=No(n=>{if(this.isDisposed.read(n))return;let o=this.currentTextModel.read(n);if(o!==this.model.targetTextModel.read(n))return;let s=this.model.ghostText.read(n);if(!s)return;let a=s instanceof yp?s.columnRange:void 0,l=[],c=[];function d(g,w){if(c.length>0){let _=c[c.length-1];w&&_.decorations.push(new ag(_.content.length+1,_.content.length+1+g[0].length,w,0)),_.content+=g[0],g=g.slice(1)}for(let _ of g)c.push({content:_,decorations:w?[new ag(1,_.length+1,w,0)]:[]})}let u=o.getLineContent(s.lineNumber),h,f=0;for(let g of s.parts){let w=g.lines;h===void 0?(l.push({column:g.column,text:w[0],preview:g.preview}),w=w.slice(1)):d([u.substring(f,g.column-1)],void 0),w.length>0&&(d(w,"ghost-text"),h===void 0&&g.column<=u.length&&(h=g.column)),f=g.column-1}h!==void 0&&d([u.substring(f)],void 0);let m=h!==void 0?new M2(h,u.length+1):void 0;return{replacedRange:a,inlineTexts:l,additionalLines:c,hiddenRange:m,lineNumber:s.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(n),targetTextModel:o}}),this.decorations=No(n=>{let o=this.uiState.read(n);if(!o)return[];let s=[];o.replacedRange&&s.push({range:o.replacedRange.toRange(o.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),o.hiddenRange&&s.push({range:o.hiddenRange.toRange(o.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(let a of o.inlineTexts)s.push({range:B.fromPositions(new Ie(o.lineNumber,a.column)),options:{description:"ghost-text",after:{content:a.text,inlineClassName:a.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:bu.Left},showIfCollapsed:!0}});return s}),this.additionalLinesWidget=this._register(new RA(this.editor,this.languageService.languageIdCodec,No(n=>{let o=this.uiState.read(n);return o?{lineNumber:o.lineNumber,additionalLines:o.additionalLines,minReservedLineCount:o.additionalReservedLineCount,targetTextModel:o.targetTextModel}:void 0}))),this._register(ri(()=>{this.isDisposed.set(!0,void 0)})),this._register(u$(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};R2=b0e([v0e(2,er)],R2);RA=class extends ce{get viewZoneId(){return this._viewZoneId}constructor(e,t,r){super(),this.editor=e,this.languageIdCodec=t,this.lines=r,this._viewZoneId=void 0,this.editorOptionsChanged=VF("editorOptionChanged",ci.filter(this.editor.onDidChangeConfiguration,n=>n.hasChanged(32)||n.hasChanged(115)||n.hasChanged(97)||n.hasChanged(92)||n.hasChanged(50)||n.hasChanged(49)||n.hasChanged(65))),this._register(pn(n=>{let o=this.lines.read(n);this.editorOptionsChanged.read(n),o?this.updateLines(o.lineNumber,o.additionalLines,o.minReservedLineCount):this.clear()}))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones(e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,r){let n=this.editor.getModel();if(!n)return;let{tabSize:o}=n.getOptions();this.editor.changeViewZones(s=>{this._viewZoneId&&(s.removeZone(this._viewZoneId),this._viewZoneId=void 0);let a=Math.max(t.length,r);if(a>0){let l=document.createElement("div");_0e(l,o,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=s.addZone({afterLineNumber:e,heightInLines:a,domNode:l,afterColumnAffinity:1})}})}};h$=xf("editorGhostText",{createHTML:i=>i})});var p$=N(()=>{});var m$=N(()=>{p$()});var g$=N(()=>{});var b$=N(()=>{g$()});var y0e,P2,bb,v$=N(()=>{ng();Yre();Fc();Zr();An();ei();ke();b$();He();y0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},P2=class extends ce{constructor(e,t,r={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new W9),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=this._register(new le),this.options=r,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new bb(()=>{var n;return(n=this.toggleMenuActionViewItem)===null||n===void 0?void 0:n.show()},r.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new Ls(this.element,{orientation:r.orientation,ariaLabel:r.ariaLabel,actionRunner:r.actionRunner,allowContextMenu:r.allowContextMenu,highlightToggledItems:r.highlightToggledItems,actionViewItemProvider:(n,o)=>{var s;if(n.id===bb.ID)return this.toggleMenuActionViewItem=new Ck(n,n.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:_t.asClassNameArray((s=r.moreIcon)!==null&&s!==void 0?s:pt.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(r.actionViewItemProvider){let a=r.actionViewItemProvider(n,o);if(a)return a}if(n instanceof Nm){let a=new Ck(n,n.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:n.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement,skipTelemetry:this.options.skipTelemetry});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();let r=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),r.push(this.toggleMenuAction)),r.forEach(n=>{this.actionBar.push(n,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(n)})})}getKeybindingLabel(e){var t,r,n;let o=this.lookupKeybindings?(r=(t=this.options).getKeyBinding)===null||r===void 0?void 0:r.call(t,e):void 0;return(n=o==null?void 0:o.getLabel())!==null&&n!==void 0?n:void 0}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}},bb=class i extends Qo{constructor(e,t){t=t||b("moreActions","More Actions..."),super(i.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return y0e(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}};bb.ID="toolbar.toggle.more"});var w0e,vb,O2,_$=N(()=>{Ht();J9();v$();Fc();mi();ke();He();Ji();wt();yl();jr();Bc();w0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},vb=function(i,e){return function(t,r){e(t,r,i)}},O2=class extends P2{constructor(e,t,r,n,o,s,a){super(e,o,Object.assign(Object.assign({getKeyBinding:c=>{var d;return(d=s.lookupKeybinding(c.id))!==null&&d!==void 0?d:void 0}},t),{allowContextMenu:!0,skipTelemetry:typeof(t==null?void 0:t.telemetrySource)=="string"})),this._options=t,this._menuService=r,this._contextKeyService=n,this._contextMenuService=o,this._sessionDisposables=this._store.add(new le);let l=t==null?void 0:t.telemetrySource;l&&this._store.add(this.actionBar.onDidRun(c=>a.publicLog2("workbenchActionExecuted",{id:c.action.id,from:l})))}setActions(e,t=[],r){var n,o,s;this._sessionDisposables.clear();let a=e.slice(),l=t.slice(),c=[],d=0,u=[],h=!1;if(((n=this._options)===null||n===void 0?void 0:n.hiddenItemStrategy)!==-1)for(let f=0;f=this._options.maxNumberOfItems&&(a[m]=void 0,u[m]=g)}}G3(a),G3(u),super.setActions(a,Cs.join(u,l)),c.length>0&&this._sessionDisposables.add(Lt(this.getElement(),"contextmenu",f=>{var m,g,w,_,E;let L=new Vv(f),A=this.getItemAction(L.target);if(!A)return;L.preventDefault(),L.stopPropagation();let O=!1;if(d===1&&((m=this._options)===null||m===void 0?void 0:m.hiddenItemStrategy)===0){O=!0;for(let oe=0;oethis._menuService.resetHiddenStates(r)}))),this._contextMenuService.showContextMenu({getAnchor:()=>L,getActions:()=>Y,menuId:(w=this._options)===null||w===void 0?void 0:w.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(_=this._options)===null||_===void 0?void 0:_.menuOptions),skipTelemetry:typeof((E=this._options)===null||E===void 0?void 0:E.telemetrySource)=="string",contextKeyService:this._contextKeyService})}))}};O2=w0e([vb(2,Ss),vb(3,it),vb(4,rs),vb(5,Kt),vb(6,Ln)],O2)});var zA,Vs,F2,z2,x0e,C0e,qs,PA,OA,FA,B2=N(()=>{Ht();gF();vF();Fc();mi();jt();Zr();ke();wa();Tn();An();m$();di();fn();L2();He();J_();_$();Ji();Vi();wt();yl();Ut();jr();Bc();Sl();zA=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vs=function(i,e){return function(t,r){e(t,r,i)}},z2=class extends ce{constructor(e,t,r){super(),this.editor=e,this.model=t,this.instantiationService=r,this.alwaysShowToolbar=El(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(61).showToolbar==="always"),this.sessionPosition=void 0,this.position=No(n=>{var o,s,a;let l=(o=this.model.read(n))===null||o===void 0?void 0:o.ghostText.read(n);if(!this.alwaysShowToolbar.read(n)||!l||l.parts.length===0)return this.sessionPosition=void 0,null;let c=l.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==l.lineNumber&&(this.sessionPosition=void 0);let d=new Ie(l.lineNumber,Math.min(c,(a=(s=this.sessionPosition)===null||s===void 0?void 0:s.column)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER));return this.sessionPosition=d,d}),this._register(WF((n,o)=>{let s=this.model.read(n);if(!s||!this.alwaysShowToolbar.read(n))return;let a=o.add(this.instantiationService.createInstance(qs,this.editor,!0,this.position,s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.selectedInlineCompletion.map(l=>{var c;return(c=l==null?void 0:l.inlineCompletion.source.inlineCompletions.commands)!==null&&c!==void 0?c:[]})));e.addContentWidget(a),o.add(ri(()=>e.removeContentWidget(a))),o.add(pn(l=>{this.position.read(l)&&s.lastTriggerKind.read(l)!==pa.Explicit&&s.triggerExplicitly()}))}))}};z2=zA([Vs(2,Ke)],z2);x0e=Pi("inline-suggestion-hints-next",pt.chevronRight,b("parameterHintsNextIcon","Icon for show next parameter hint.")),C0e=Pi("inline-suggestion-hints-previous",pt.chevronLeft,b("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),qs=F2=class extends ce{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,r){let n=new Qo(e,t,r,!0,()=>this._commandService.executeCommand(e)),o=this.keybindingService.lookupKeybinding(e,this._contextKeyService),s=t;return o&&(s=b({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,o.getLabel())),n.tooltip=s,n}constructor(e,t,r,n,o,s,a,l,c,d,u){super(),this.editor=e,this.withBorder=t,this._position=r,this._currentSuggestionIdx=n,this._suggestionCount=o,this._extraCommands=s,this._commandService=a,this.keybindingService=c,this._contextKeyService=d,this._menuService=u,this.id=`InlineSuggestionHintsContentWidget${F2.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=Kv("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[Kv("div@toolBar")]),this.previousAction=this.createCommandAction(I2,b("previous","Previous"),_t.asClassName(C0e)),this.availableSuggestionCountAction=new Qo("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(A2,b("next","Next"),_t.asClassName(x0e)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(Me.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new ui(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new ui(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.lastCommands=[],this.toolBar=this._register(l.createInstance(FA,this.nodes.toolBar,Me.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:h=>h.startsWith("primary")},actionViewItemProvider:(h,f)=>{if(h instanceof na)return l.createInstance(OA,h,void 0);if(h===this.availableSuggestionCountAction){let m=new PA(void 0,h,{label:!0,icon:!1});return m.setClass("availableSuggestionCount"),m}},telemetrySource:"InlineSuggestionToolbar"})),this.toolBar.setPrependedPrimaryActions([this.previousAction,this.availableSuggestionCountAction,this.nextAction]),this._register(this.toolBar.onDidChangeDropdownVisibility(h=>{F2._dropDownVisible=h})),this._register(pn(h=>{this._position.read(h),this.editor.layoutContentWidget(this)})),this._register(pn(h=>{let f=this._suggestionCount.read(h),m=this._currentSuggestionIdx.read(h);f!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${m+1}/${f}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),f!==void 0&&f>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(pn(h=>{let f=this._extraCommands.read(h);if(ks(this.lastCommands,f))return;this.lastCommands=f;let m=f.map(g=>({class:void 0,id:g.id,enabled:!0,tooltip:g.tooltip||"",label:g.title,run:w=>this._commandService.executeCommand(g.id)}));for(let[g,w]of this.inlineCompletionsActionsMenus.getActions())for(let _ of w)_ instanceof na&&m.push(_);m.length>0&&m.unshift(new Cs),this.toolBar.setAdditionalSecondaryActions(m)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};qs._dropDownVisible=!1;qs.id=0;qs=F2=zA([Vs(6,_i),Vs(7,Ke),Vs(8,Kt),Vs(9,it),Vs(10,Ss)],qs);PA=class extends rg{constructor(){super(...arguments),this._className=void 0}setClass(e){this._className=e}render(e){super.render(e),this._className&&e.classList.add(this._className)}},OA=class extends Z_{updateLabel(){let e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){let t=Kv("div.keybinding").root;new P_(t,jv,Object.assign({disableTitle:!0},bF)).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},FA=class extends O2{constructor(e,t,r,n,o,s,a,l){super(e,Object.assign({resetMenu:t},r),n,o,s,a,l),this.menuId=t,this.options2=r,this.menuService=n,this.contextKeyService=o,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this.prependedPrimaryActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,r,n,o,s,a;let l=[],c=[];Q_(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(r=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||r===void 0?void 0:r.primaryGroup,(o=(n=this.options2)===null||n===void 0?void 0:n.toolbarOptions)===null||o===void 0?void 0:o.shouldInlineSubmenu,(a=(s=this.options2)===null||s===void 0?void 0:s.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),l.unshift(...this.prependedPrimaryActions),this.setActions(l,c)}setPrependedPrimaryActions(e){ks(this.prependedPrimaryActions,e,(t,r)=>t===r)||(this.prependedPrimaryActions=e,this.updateToolbar())}setAdditionalSecondaryActions(e){ks(this.additionalActions,e,(t,r)=>t===r)||(this.additionalActions=e,this.updateToolbar())}};FA=zA([Vs(3,Ss),Vs(4,it),Vs(5,rs),Vs(6,Kt),Vs(7,Ln)],FA)});function y$(i,e){let t=new sO,r=new lO(t,c=>e.getLanguageConfiguration(c)),n=new aO(new BA([i]),r),o=cO(n,[],void 0,!0),s="",a=i.getLineContent();function l(c,d){if(c.kind===2)if(l(c.openingBracket,d),d=pf(d,c.openingBracket.length),c.child&&(l(c.child,d),d=pf(d,c.child.length)),c.closingBracket)l(c.closingBracket,d),d=pf(d,c.closingBracket.length);else{let h=r.getSingleLanguageBracketTokens(c.openingBracket.languageId).findClosingTokenText(c.openingBracket.bracketIds);s+=h}else if(c.kind!==3){if(c.kind===0||c.kind===1)s+=a.substring(d,pf(d,c.length));else if(c.kind===4)for(let u of c.children)l(u,d),d=pf(d,u.length)}}return l(o,oO),s}var BA,w$=N(()=>{kre();wre();Ere();xre();Sre();BA=class{constructor(e){this.lines=e,this.tokenization={getLineTokens:t=>this.lines[t-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}});function x$(i,e){let t=[...i];for(;t.length>0;){let r=t.shift();if(!e(r))break;t.unshift(...r.children)}}var H2,Dd,Rr,U2,vo,lh,HA,Ks,_b,wp,jo,ch=N(()=>{H2=class i{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e=this.pos,t=0,r=this.value.charCodeAt(e),n;if(n=i._table[r],typeof n=="number")return this.pos+=1,{type:n,pos:e,len:1};if(i.isDigitCharacter(r)){n=8;do t+=1,r=this.value.charCodeAt(e+t);while(i.isDigitCharacter(r));return this.pos+=t,{type:n,pos:e,len:t}}if(i.isVariableCharacter(r)){n=9;do r=this.value.charCodeAt(e+ ++t);while(i.isVariableCharacter(r)||i.isDigitCharacter(r));return this.pos+=t,{type:n,pos:e,len:t}}n=10;do t+=1,r=this.value.charCodeAt(e+t);while(!isNaN(r)&&typeof i._table[r]=="undefined"&&!i.isDigitCharacter(r)&&!i.isVariableCharacter(r));return this.pos+=t,{type:n,pos:e,len:t}}};H2._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};Dd=class{constructor(){this._children=[]}appendChild(e){return e instanceof Rr&&this._children[this._children.length-1]instanceof Rr?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){let{parent:r}=e,n=r.children.indexOf(e),o=r.children.slice(0);o.splice(n,1,...t),r._children=o,function s(a,l){for(let c of a)c.parent=l,s(c.children,c)}(t,r)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof wp)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}},Rr=class i extends Dd{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new i(this.value)}},U2=class extends Dd{},vo=class i extends U2{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof lh?this._children[0]:void 0}clone(){let e=new i(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}},lh=class i extends Dd{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof Rr&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new i;return this.options.forEach(e.appendChild,e),e}},HA=class i extends Dd{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){let t=this,r=!1,n=e.replace(this.regexp,function(){return r=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!r&&this._children.some(o=>o instanceof Ks&&!!o.elseValue)&&(n=this._replace([])),n}_replace(e){let t="";for(let r of this._children)if(r instanceof Ks){let n=e[r.index]||"";n=r.resolve(n),t+=n}else t+=r.toString();return t}toString(){return""}clone(){let e=new i;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}},Ks=class i extends Dd{constructor(e,t,r,n){super(),this.index=e,this.shorthandName=t,this.ifValue=r,this.elseValue=n}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){let t=e.match(/[a-z0-9]+/gi);return t?t.map(r=>r.charAt(0).toUpperCase()+r.substr(1)).join(""):e}_toCamelCase(e){let t=e.match(/[a-z0-9]+/gi);return t?t.map((r,n)=>n===0?r.charAt(0).toLowerCase()+r.substr(1):r.charAt(0).toUpperCase()+r.substr(1)).join(""):e}clone(){return new i(this.index,this.shorthandName,this.ifValue,this.elseValue)}},_b=class i extends U2{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new Rr(t)],!0):!1}clone(){let e=new i(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}};wp=class i extends Dd{get placeholderInfo(){if(!this._placeholders){let e=[],t;this.walk(function(r){return r instanceof vo&&(e.push(r),t=!t||t.indexn===e?(r=!0,!1):(t+=n.len(),!0)),r?t:-1}fullLen(e){let t=0;return x$([e],r=>(t+=r.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:r}=e;for(;r;)r instanceof vo&&t.push(r),r=r.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof _b&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){let e=new i;return this._children=this.children.map(t=>t.clone()),e}walk(e){x$(this.children,e)}},jo=class{constructor(){this._scanner=new H2,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,r){let n=new wp;return this.parseFragment(e,n),this.ensureFinalTabstop(n,r!=null?r:!1,t!=null?t:!1),n}parseFragment(e,t){let r=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););let n=new Map,o=[];t.walk(l=>(l instanceof vo&&(l.isFinalTabstop?n.set(0,void 0):!n.has(l.index)&&l.children.length>0?n.set(l.index,l.children):o.push(l)),!0));let s=(l,c)=>{let d=n.get(l.index);if(!d)return;let u=new vo(l.index);u.transform=l.transform;for(let h of d){let f=h.clone();u.appendChild(f),f instanceof vo&&n.has(f.index)&&!c.has(f.index)&&(c.add(f.index),s(f,c),c.delete(f.index))}t.replace(l,[u])},a=new Set;for(let l of o)s(l,a);return t.children.slice(r)}ensureFinalTabstop(e,t,r){(t||r&&e.placeholders.length>0)&&(e.placeholders.find(o=>o.index===0)||e.appendChild(new vo(0)))}_accept(e,t){if(e===void 0||this._token.type===e){let r=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),r}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){let t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){let n=this._scanner.next();if(n.type!==0&&n.type!==4&&n.type!==5)return!1}this._token=this._scanner.next()}let r=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),r}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new Rr(t)),!0):!1}_parseTabstopOrVariableName(e){let t,r=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new vo(Number(t)):new _b(t)),!0):this._backTo(r)}_parseComplexPlaceholder(e){let t,r=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(r);let o=new vo(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Rr("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){let s=new lh;for(;;){if(this._parseChoiceElement(s)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(s),this._accept(4)))return e.appendChild(o),!0}return this._backTo(r),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(r),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(r)}_parseChoiceElement(e){let t=this._token,r=[];for(;!(this._token.type===2||this._token.type===7);){let n;if((n=this._accept(5,!0))?n=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||n:n=this._accept(void 0,!0),!n)return this._backTo(t),!1;r.push(n)}return r.length===0?(this._backTo(t),!1):(e.appendChild(new Rr(r.join(""))),!0)}_parseComplexVariable(e){let t,r=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(r);let o=new _b(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new Rr("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(r),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(r)}_parseTransform(e){let t=new HA,r="",n="";for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(6,!0)||o,r+=o;continue}if(this._token.type!==14){r+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new Rr(o));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(r,n)}catch(o){return!1}return e.transform=t,!0}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let r=!1;this._accept(3)&&(r=!0);let n=this._accept(8,!0);if(n)if(r){if(this._accept(4))return e.appendChild(new Ks(Number(n))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Ks(Number(n))),!0;else return this._backTo(t),!1;if(this._accept(6)){let o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Ks(Number(n),o)),!0)}else if(this._accept(11)){let o=this._until(4);if(o)return e.appendChild(new Ks(Number(n),void 0,o,void 0)),!0}else if(this._accept(12)){let o=this._until(4);if(o)return e.appendChild(new Ks(Number(n),void 0,void 0,o)),!0}else if(this._accept(13)){let o=this._until(1);if(o){let s=this._until(4);if(s)return e.appendChild(new Ks(Number(n),void 0,o,s)),!0}}else{let o=this._until(4);if(o)return e.appendChild(new Ks(Number(n),void 0,void 0,o)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new Rr(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}});function S$(i,e,t,r,n=st.None,o){return UA(this,void 0,void 0,function*(){let s=S0e(e,t),a=i.all(t),l=new XF;for(let _ of a)_.groupId&&l.add(_.groupId,_);function c(_){if(!_.yieldsToGroupIds)return[];let E=[];for(let L of _.yieldsToGroupIds||[]){let A=l.get(L);for(let O of A)E.push(O)}return E}let d=new Map,u=new Set;function h(_,E){if(E=[...E,_],u.has(_))return E;u.add(_);try{let L=c(_);for(let A of L){let O=h(A,E);if(O)return O}}finally{u.delete(_)}}function f(_){let E=d.get(_);if(E)return E;let L=h(_,[]);L&&Xt(new Error(`Inline completions: cyclic yield-to dependency detected. Path: ${L.map(O=>O.toString?O.toString():""+O).join(" -> ")}`));let A=new f_;return d.set(_,A.p),(()=>UA(this,void 0,void 0,function*(){if(!L){let O=c(_);for(let U of O){let Y=yield f(U);if(Y&&Y.items.length>0)return}}try{return yield _.provideInlineCompletions(t,e,r,n)}catch(O){Xt(O);return}}))().then(O=>A.complete(O),O=>A.error(O)),A.p}let m=yield Promise.all(a.map(_=>UA(this,void 0,void 0,function*(){return{provider:_,completions:yield f(_)}}))),g=new Map,w=[];for(let _ of m){let E=_.completions;if(!E)continue;let L=new WA(E,_.provider);w.push(L);for(let A of E.items){let O=VA.from(A,L,s,t,o);g.set(O.hash(),O)}}return new jA(Array.from(g.values()),new Set(g.keys()),w)})}function S0e(i,e){let t=e.getWordAtPosition(i),r=e.getLineMaxColumn(i.lineNumber);return t?new B(i.lineNumber,t.startColumn,i.lineNumber,r):B.fromPositions(i,i.with(void 0,r))}function C$(i,e,t,r){let o=t.getLineContent(e.lineNumber).substring(0,e.column-1)+i,s=t.tokenization.tokenizeLineWithEdit(e,o.length-(e.column-1),i),a=s==null?void 0:s.sliceAndInflate(e.column-1,o.length,0);return a?y$(a,r):i}var UA,jA,WA,VA,k$=N(()=>{are();jt();ki();Xre();qt();et();w$();vp();ch();UA=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};jA=class{constructor(e,t,r){this.completions=e,this.hashs=t,this.providerResults=r}has(e){return this.hashs.has(e.hash())}dispose(){for(let e of this.providerResults)e.removeRef()}},WA=class{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,this.refCount===0&&this.provider.freeInlineCompletions(this.inlineCompletions)}},VA=class i{static from(e,t,r,n,o){let s,a,l=e.range?B.lift(e.range):r;if(typeof e.insertText=="string"){if(s=e.insertText,o&&e.completeBracketPairs){s=C$(s,l.getStartPosition(),n,o);let c=s.length-e.insertText.length;c!==0&&(l=new B(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+c))}a=void 0}else if("snippet"in e.insertText){let c=e.insertText.snippet.length;if(o&&e.completeBracketPairs){e.insertText.snippet=C$(e.insertText.snippet,l.getStartPosition(),n,o);let u=e.insertText.snippet.length-c;u!==0&&(l=new B(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+u))}let d=new jo().parse(e.insertText.snippet);d.children.length===1&&d.children[0]instanceof Rr?(s=d.children[0].value,a=void 0):(s=d.toString(),a={snippet:e.insertText.snippet,range:l})}else wP(e.insertText);return new i(s,e.command,l,s,a,e.additionalTextEdits||d$(),e,t)}constructor(e,t,r,n,o,s,a,l){this.filterText=e,this.command=t,this.range=r,this.insertText=n,this.snippetInfo=o,this.additionalTextEdits=s,this.sourceInlineCompletion=a,this.source=l,e=e.replace(/\r\n|\r/g,` -`),n=e.replace(/\r\n|\r/g,` -`)}withRange(e){return new i(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}});function k0e(i,e){return e.getStartPosition().equals(i.getStartPosition())&&e.getEndPosition().isBeforeOrEqual(i.getEndPosition())}function E0e(i,e){if(($a==null?void 0:$a.originalValue)===i&&($a==null?void 0:$a.newValue)===e)return $a==null?void 0:$a.changes;{let t=T$(i,e,!0);if(t){let r=E$(t);if(r>0){let n=T$(i,e,!1);n&&E$(n)5e3||e.length>5e3)return;function r(c){let d=0;for(let u=0,h=c.length;ud&&(d=f)}return d}let n=Math.max(r(i),r(e));function o(c){if(c<0)throw new Error("unexpected");return n+c+1}function s(c){let d=0,u=0,h=new Int32Array(c.length);for(let f=0,m=c.length;fa},{getElements:()=>l}).ComputeDiff(!1).changes}var dh,$a,qA=N(()=>{Qre();Ni();et();N2();vp();dh=class i{constructor(e,t){this.range=e,this.text=t}removeCommonPrefix(e,t){let r=t?this.range.intersectRanges(t):this.range;if(!r)return this;let n=e.getValueInRange(r,1),o=zc(n,this.text),s=mb(this.range.getStartPosition(),gb(n.substring(0,o))),a=this.text.substring(o),l=B.fromPositions(s,this.range.getEndPosition());return new i(l,a)}augments(e){return this.text.startsWith(e.text)&&k0e(this.range,e.range)}computeGhostText(e,t,r,n=0){let o=this.removeCommonPrefix(e);if(o.range.endLineNumber!==o.range.startLineNumber)return;let s=e.getLineContent(o.range.startLineNumber),a=qi(s).length;if(o.range.startColumn-1<=a){let m=qi(o.text).length,g=s.substring(o.range.startColumn-1,a),[w,_]=[o.range.getStartPosition(),o.range.getEndPosition()],E=w.column+g.length<=_.column?w.delta(0,g.length):_,L=B.fromPositions(E,_),A=o.text.startsWith(g)?o.text.substring(g.length):o.text.substring(m);o=new i(L,A)}let c=e.getValueInRange(o.range),d=E0e(c,o.text);if(!d)return;let u=o.range.startLineNumber,h=new Array;if(t==="prefix"){let m=d.filter(g=>g.originalLength===0);if(m.length>1||m.length===1&&m[0].originalStart!==c.length)return}let f=o.text.length-n;for(let m of d){let g=o.range.startColumn+m.originalStart+m.originalLength;if(t==="subwordSmart"&&r&&r.lineNumber===o.range.startLineNumber&&g0)return;if(m.modifiedLength===0)continue;let w=m.modifiedStart+m.modifiedLength,_=Math.max(m.modifiedStart,Math.min(w,f)),E=o.text.substring(m.modifiedStart,_),L=o.text.substring(_,Math.max(m.modifiedStart,w));if(E.length>0){let A=hu(E);h.push(new _p(g,A,!1))}if(L.length>0){let A=hu(L);h.push(new _p(g,A,!0))}}return new Ld(u,h)}}});function A0e(i,e){return new Promise(t=>{let r,n=setTimeout(()=>{r&&r.dispose(),t()},i);e&&(r=e.onCancellationRequested(()=>{clearTimeout(n),r&&r.dispose(),t()}))})}function L0e(i,e,t){return!i||!e?i===e:t(i,e)}function A$(i){return i.startLineNumber===i.endLineNumber?new Ie(1,1+i.endColumn-i.startColumn):new Ie(1+i.endLineNumber-i.startLineNumber,i.endColumn)}var T0e,I$,I0e,j2,KA,$A,GA,W2,L$=N(()=>{ki();pl();ke();wa();di();fn();Hr();Pt();k$();qA();T0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},I$=function(i,e){return function(t,r){e(t,r,i)}},I0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},j2=class extends ce{constructor(e,t,r,n,o){super(),this.textModel=e,this.versionId=t,this._debounceValue=r,this.languageFeaturesService=n,this.languageConfigurationService=o,this._updateOperation=this._register(new Wi),this.inlineCompletions=sg("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=sg("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent(()=>{this._updateOperation.clear()}))}fetch(e,t,r){var n,o;let s=new KA(e,t,this.textModel.getVersionId()),a=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(!((n=this._updateOperation.value)===null||n===void 0)&&n.request.satisfies(s))return this._updateOperation.value.promise;if(!((o=a.get())===null||o===void 0)&&o.request.satisfies(s))return Promise.resolve(!0);let l=!!this._updateOperation.value;this._updateOperation.clear();let c=new zi,d=(()=>I0e(this,void 0,void 0,function*(){if((l||t.triggerKind===pa.Automatic)&&(yield A0e(this._debounceValue.get(this.textModel))),c.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;let f=new Date,m=yield S$(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,c.token,this.languageConfigurationService);if(c.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;let g=new Date;this._debounceValue.update(this.textModel,g.getTime()-f.getTime());let w=new GA(m,s,this.textModel,this.versionId);if(r){let _=r.toInlineCompletion(void 0);r.canBeReused(this.textModel,e)&&!m.has(_)&&w.prepend(r.inlineCompletion,_.range,!0)}return this._updateOperation.clear(),on(_=>{a.set(w,_)}),!0}))(),u=new $A(s,c,d);return this._updateOperation.value=u,d}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){var t;!((t=this._updateOperation.value)===null||t===void 0)&&t.request.context.selectedSuggestionInfo&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};j2=T0e([I$(3,Se),I$(4,Ot)],j2);KA=class{constructor(e,t,r){this.position=e,this.context=t,this.versionId=r}satisfies(e){return this.position.equals(e.position)&&L0e(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,(t,r)=>t.equals(r))&&(e.context.triggerKind===pa.Automatic||this.context.triggerKind===pa.Explicit)&&this.versionId===e.versionId}};$A=class{constructor(e,t,r){this.request=e,this.cancellationTokenSource=t,this.promise=r}dispose(){this.cancellationTokenSource.cancel()}},GA=class{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,r,n){this.inlineCompletionProviderResult=e,this.request=t,this.textModel=r,this.versionId=n,this._refCount=1,this._prependedInlineCompletionItems=[],this._rangeVersionIdValue=0,this._rangeVersionId=No(s=>{this.versionId.read(s);let a=!1;for(let l of this._inlineCompletions)a=a||l._updateRange(this.textModel);return a&&this._rangeVersionIdValue++,this._rangeVersionIdValue});let o=r.deltaDecorations([],e.completions.map(s=>({range:s.range,options:{description:"inline-completion-tracking-range"}})));this._inlineCompletions=e.completions.map((s,a)=>new W2(s,o[a],this._rangeVersionId))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,this._refCount===0){setTimeout(()=>{this.textModel.isDisposed()||this.textModel.deltaDecorations(this._inlineCompletions.map(e=>e.decorationId),[])},0),this.inlineCompletionProviderResult.dispose();for(let e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,r){r&&e.source.addRef();let n=this.textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new W2(e,n,this._rangeVersionId,t)),this._prependedInlineCompletionItems.push(e)}},W2=class{get forwardStable(){var e;return(e=this.inlineCompletion.source.inlineCompletions.enableForwardStability)!==null&&e!==void 0?e:!1}constructor(e,t,r,n){this.inlineCompletion=e,this.decorationId=t,this.rangeVersion=r,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._isValid=!0,this._updatedRange=n!=null?n:e.range}toInlineCompletion(e){return this.inlineCompletion.withRange(this._getUpdatedRange(e))}toSingleTextEdit(e){return new dh(this._getUpdatedRange(e),this.inlineCompletion.insertText)}isVisible(e,t,r){let n=this._toFilterTextReplacement(r).removeCommonPrefix(e);if(!this._isValid||!this.inlineCompletion.range.getStartPosition().equals(this._getUpdatedRange(r).getStartPosition())||t.lineNumber!==n.range.startLineNumber)return!1;let o=e.getValueInRange(n.range,1).toLowerCase(),s=n.text.toLowerCase(),a=Math.max(0,t.column-n.range.startColumn),l=s.substring(0,a),c=s.substring(a),d=o.substring(0,a),u=o.substring(a),h=e.getLineIndentColumn(n.range.startLineNumber);return n.range.startColumn<=h&&(d=d.trimStart(),d.length===0&&(u=u.trimStart()),l=l.trimStart(),l.length===0&&(c=c.trimStart())),l.startsWith(d)&&!!VP(u,c)}canBeReused(e,t){return this._isValid&&this._getUpdatedRange(void 0).containsPosition(t)&&this.isVisible(e,t,void 0)&&!this._isSmallerThanOriginal(void 0)}_toFilterTextReplacement(e){return new dh(this._getUpdatedRange(e),this.inlineCompletion.filterText)}_isSmallerThanOriginal(e){return A$(this._getUpdatedRange(e)).isBefore(A$(this.inlineCompletion.range))}_getUpdatedRange(e){return this.rangeVersion.read(e),this._updatedRange}_updateRange(e){let t=e.getDecorationRange(this.decorationId);return t?this._updatedRange.equalsRange(t)?!1:(this._updatedRange=t,!0):(this._isValid=!1,!0)}}});function D$(){return xp}function wb(i,e,t,r=nc.default,n={triggerKind:0},o=st.None){return yb(this,void 0,void 0,function*(){let s=new mr;t=t.clone();let a=e.getWordAtPosition(t),l=a?new B(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):B.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],u=new le,h=[],f=!1,m=(w,_,E)=>{var L,A,O;let U=!1;if(!_)return U;for(let Y of _.suggestions)if(!r.kindFilter.has(Y.kind)){if(!r.showDeprecated&&(!((L=Y==null?void 0:Y.tags)===null||L===void 0)&&L.includes(1)))continue;Y.range||(Y.range=c),Y.sortText||(Y.sortText=typeof Y.label=="string"?Y.label:Y.label.label),!f&&Y.insertTextRules&&Y.insertTextRules&4&&(f=jo.guessNeedsClipboard(Y.insertText)),d.push(new YA(t,Y,_,w)),U=!0}return Fv(_)&&u.add(_),h.push({providerName:(A=w._debugDisplayName)!==null&&A!==void 0?A:"unknown_provider",elapsedProvider:(O=_.duration)!==null&&O!==void 0?O:-1,elapsedOverall:E.elapsed()}),U},g=(()=>yb(this,void 0,void 0,function*(){if(!xp||r.kindFilter.has(27))return;let w=r.providerItemsToReuse.get(xp);if(w){w.forEach(L=>d.push(L));return}if(r.providerFilter.size>0&&!r.providerFilter.has(xp))return;let _=new mr,E=yield xp.provideCompletionItems(e,t,n,o);m(xp,E,_)}))();for(let w of i.orderedGroups(e)){let _=!1;if(yield Promise.all(w.map(E=>yb(this,void 0,void 0,function*(){if(r.providerItemsToReuse.has(E)){let L=r.providerItemsToReuse.get(E);L.forEach(A=>d.push(A)),_=_||L.length>0;return}if(!(r.providerFilter.size>0&&!r.providerFilter.has(E)))try{let L=new mr,A=yield E.provideCompletionItems(e,t,n,o);_=m(E,A,L)||_}catch(L){Xt(L)}}))),_||o.isCancellationRequested)break}return yield g,o.isCancellationRequested?(u.dispose(),Promise.reject(new Pv)):new XA(d.sort(N0e(r.snippetSortOrder)),f,{entries:h,elapsed:s.elapsed()},u)})}function QA(i,e){if(i.sortTextLow&&e.sortTextLow){if(i.sortTextLowe.sortTextLow)return 1}return i.textLabele.textLabel?1:i.completion.kind-e.completion.kind}function D0e(i,e){if(i.completion.kind!==e.completion.kind){if(i.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return QA(i,e)}function M0e(i,e){if(i.completion.kind!==e.completion.kind){if(i.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return QA(i,e)}function N0e(i){return V2.get(i)}function M$(i,e){var t;(t=i.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}var yb,ct,Ya,YA,nc,xp,XA,V2,Ga,uh=N(()=>{ki();qt();pl();ke();al();zr();Ir();di();et();ra();ch();He();Ji();Vi();wt();Pt();BI();yb=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},ct={Visible:b2,HasFocusedSuggestion:new ht("suggestWidgetHasFocusedSuggestion",!1,b("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new ht("suggestWidgetDetailsVisible",!1,b("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new ht("suggestWidgetMultipleSuggestions",!1,b("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new ht("suggestionMakesTextEdit",!0,b("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new ht("acceptSuggestionOnEnter",!0,b("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new ht("suggestionHasInsertAndReplaceRange",!1,b("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new ht("suggestionInsertMode",void 0,{type:"string",description:b("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new ht("suggestionCanResolve",!1,b("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},Ya=new Me("suggestWidgetStatusBar"),YA=class{constructor(e,t,r,n){var o;this.position=e,this.completion=t,this.container=r,this.provider=n,this.isInvalid=!1,this.score=fl.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:(o=t.label)===null||o===void 0?void 0:o.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,B.isIRange(t.range)?(this.editStart=new Ie(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new Ie(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new Ie(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||B.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new Ie(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new Ie(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new Ie(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||B.spansMultipleLines(t.range.insert)||B.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof n.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._resolveDuration=0)}get isResolved(){return this._resolveDuration!==void 0}get resolveDuration(){return this._resolveDuration!==void 0?this._resolveDuration:-1}resolve(e){return yb(this,void 0,void 0,function*(){if(!this._resolveCache){let t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._resolveDuration=void 0}),r=new mr(!0);this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(n=>{Object.assign(this.completion,n),this._resolveDuration=r.elapsed(),t.dispose()},n=>{Yo(n)&&(this._resolveCache=void 0,this._resolveDuration=void 0)})}return this._resolveCache})}},nc=class{constructor(e=2,t=new Set,r=new Set,n=new Map,o=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=r,this.providerItemsToReuse=n,this.showDeprecated=o}};nc.default=new nc;XA=class{constructor(e,t,r,n){this.items=e,this.needsClipboard=t,this.durations=r,this.disposable=n}};V2=new Map;V2.set(0,D0e);V2.set(2,M0e);V2.set(1,QA);Dt.registerCommand("_executeCompletionItemProvider",(i,...e)=>yb(void 0,void 0,void 0,function*(){let[t,r,n,o]=e;Bt(yt.isUri(t)),Bt(Ie.isIPosition(r)),Bt(typeof n=="string"||!n),Bt(typeof o=="number"||!o);let{completionProvider:s}=i.get(Se),a=yield i.get(Cr).createModelReference(t);try{let l={incomplete:!1,suggestions:[]},c=[],d=a.object.textEditorModel.validatePosition(r),u=yield wb(s,a.object.textEditorModel,d,void 0,{triggerCharacter:n!=null?n:void 0,triggerKind:n?1:0});for(let h of u.items)c.length<(o!=null?o:0)&&c.push(h.resolve(st.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>u.disposable.dispose(),100)}}finally{a.dispose()}}));Ga=class{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}});var N$=N(()=>{});var R$=N(()=>{N$()});function ZA(i,e=Rc){return YP(i,e)?i.charAt(0).toUpperCase()+i.slice(1):i}var P$=N(()=>{_re();Tn()});var R0e,P0e,mYe,xb,Cb,Sb,kb,Eb,oc,Tb,Ib,O$=N(()=>{P$();tP();Lo();Ni();H0();Hr();ch();He();U_();R0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},P0e=function(i,e){return function(t,r){e(t,r,i)}},mYe=Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0}),xb=class{constructor(e){this._delegates=e}resolve(e){for(let t of this._delegates){let r=t.resolve(e);if(r!==void 0)return r}}},Cb=class{constructor(e,t,r,n){this._model=e,this._selection=t,this._selectionIdx=r,this._overtypingCapturer=n}resolve(e){let{name:t}=e;if(t==="SELECTION"||t==="TM_SELECTED_TEXT"){let r=this._model.getValueInRange(this._selection)||void 0,n=this._selection.startLineNumber!==this._selection.endLineNumber;if(!r&&this._overtypingCapturer){let o=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);o&&(r=o.value,n=o.multiline)}if(r&&n&&e.snippet){let o=this._model.getLineContent(this._selection.startLineNumber),s=qi(o,0,this._selection.startColumn-1),a=s;e.snippet.walk(c=>c===e?!1:(c instanceof Rr&&(a=qi(hu(c.value).pop())),!0));let l=zc(a,s);r=r.replace(/(\r\n|\r|\n)(.*)/g,(c,d,u)=>`${d}${a.substr(l)}${u}`)}return r}else{if(t==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(t==="TM_CURRENT_WORD"){let r=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return r&&r.word||void 0}else{if(t==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(t==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber);if(t==="CURSOR_INDEX")return String(this._selectionIdx);if(t==="CURSOR_NUMBER")return String(this._selectionIdx+1)}}}},Sb=class{constructor(e,t){this._labelService=e,this._model=t}resolve(e){let{name:t}=e;if(t==="TM_FILENAME")return ef(this._model.uri.fsPath);if(t==="TM_FILENAME_BASE"){let r=ef(this._model.uri.fsPath),n=r.lastIndexOf(".");return n<=0?r:r.slice(0,n)}else{if(t==="TM_DIRECTORY")return eP(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(uf(this._model.uri));if(t==="TM_FILEPATH")return this._labelService.getUriLabel(this._model.uri);if(t==="RELATIVE_FILEPATH")return this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0})}}},kb=class{constructor(e,t,r,n){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=r,this._spread=n}resolve(e){if(e.name!=="CLIPBOARD")return;let t=this._readClipboardText();if(t){if(this._spread){let r=t.split(/\r\n|\n|\r/).filter(n=>!hP(n));if(r.length===this._selectionCount)return r[this._selectionIdx]}return t}}},Eb=class{constructor(e,t,r){this._model=e,this._selection=t,this._languageConfigurationService=r}resolve(e){let{name:t}=e,r=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),n=this._languageConfigurationService.getLanguageConfiguration(r).comments;if(n){if(t==="LINE_COMMENT")return n.lineCommentToken||void 0;if(t==="BLOCK_COMMENT_START")return n.blockCommentStartToken||void 0;if(t==="BLOCK_COMMENT_END")return n.blockCommentEndToken||void 0}}};Eb=R0e([P0e(2,Ot)],Eb);oc=class i{constructor(){this._date=new Date}resolve(e){let{name:t}=e;if(t==="CURRENT_YEAR")return String(this._date.getFullYear());if(t==="CURRENT_YEAR_SHORT")return String(this._date.getFullYear()).slice(-2);if(t==="CURRENT_MONTH")return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if(t==="CURRENT_DATE")return String(this._date.getDate().valueOf()).padStart(2,"0");if(t==="CURRENT_HOUR")return String(this._date.getHours().valueOf()).padStart(2,"0");if(t==="CURRENT_MINUTE")return String(this._date.getMinutes().valueOf()).padStart(2,"0");if(t==="CURRENT_SECOND")return String(this._date.getSeconds().valueOf()).padStart(2,"0");if(t==="CURRENT_DAY_NAME")return i.dayNames[this._date.getDay()];if(t==="CURRENT_DAY_NAME_SHORT")return i.dayNamesShort[this._date.getDay()];if(t==="CURRENT_MONTH_NAME")return i.monthNames[this._date.getMonth()];if(t==="CURRENT_MONTH_NAME_SHORT")return i.monthNamesShort[this._date.getMonth()];if(t==="CURRENT_SECONDS_UNIX")return String(Math.floor(this._date.getTime()/1e3));if(t==="CURRENT_TIMEZONE_OFFSET"){let r=this._date.getTimezoneOffset(),n=r>0?"-":"+",o=Math.trunc(Math.abs(r/60)),s=o<10?"0"+o:o,a=Math.abs(r)-o*60,l=a<10?"0"+a:a;return n+s+":"+l}}};oc.dayNames=[b("Sunday","Sunday"),b("Monday","Monday"),b("Tuesday","Tuesday"),b("Wednesday","Wednesday"),b("Thursday","Thursday"),b("Friday","Friday"),b("Saturday","Saturday")];oc.dayNamesShort=[b("SundayShort","Sun"),b("MondayShort","Mon"),b("TuesdayShort","Tue"),b("WednesdayShort","Wed"),b("ThursdayShort","Thu"),b("FridayShort","Fri"),b("SaturdayShort","Sat")];oc.monthNames=[b("January","January"),b("February","February"),b("March","March"),b("April","April"),b("May","May"),b("June","June"),b("July","July"),b("August","August"),b("September","September"),b("October","October"),b("November","November"),b("December","December")];oc.monthNamesShort=[b("JanuaryShort","Jan"),b("FebruaryShort","Feb"),b("MarchShort","Mar"),b("AprilShort","Apr"),b("MayShort","May"),b("JuneShort","Jun"),b("JulyShort","Jul"),b("AugustShort","Aug"),b("SeptemberShort","Sep"),b("OctoberShort","Oct"),b("NovemberShort","Nov"),b("DecemberShort","Dec")];Tb=class{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;let t=TF(this._workspaceService.getWorkspace());if(!EF(t)){if(e.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(t);if(e.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(t)}}_resolveWorkspaceName(e){if(pk(e))return ef(e.uri.path);let t=ef(e.configPath.path);return t.endsWith(mk)&&(t=t.substr(0,t.length-mk.length-1)),t}_resoveWorkspacePath(e){if(pk(e))return ZA(e.uri.fsPath);let t=ef(e.configPath.path),r=e.configPath.fsPath;return r.endsWith(t)&&(r=r.substr(0,r.length-t.length-1)),r?ZA(r):"/"}},Ib=class{resolve(e){let{name:t}=e;if(t==="RANDOM")return Math.random().toString().slice(-6);if(t==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(t==="UUID")return Td()}}});var O0e,F0e,$s,Ab,F$,Cp,JA=N(()=>{mi();ke();Ni();R$();_a();et();Ar();Hr();Ur();ey();U_();ch();O$();O0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},F0e=function(i,e){return function(t,r){e(t,r,i)}},Ab=class i{constructor(e,t,r){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=r,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=$3(t.placeholders,vo.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(this._offset===-1)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;let e=this._editor.getModel();this._editor.changeDecorations(t=>{for(let r of this._snippet.placeholders){let n=this._snippet.offset(r),o=this._snippet.fullLen(r),s=B.fromPositions(e.getPositionAt(this._offset+n),e.getPositionAt(this._offset+n+o)),a=r.isFinalTabstop?i._decor.inactiveFinal:i._decor.inactive,l=t.addDecoration(s,a);this._placeholderDecorations.set(r,l)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){let n=[];for(let o of this._placeholderGroups[this._placeholderGroupsIdx])if(o.transform){let s=this._placeholderDecorations.get(o),a=this._editor.getModel().getDecorationRange(s),l=this._editor.getModel().getValueInRange(a),c=o.transform.resolve(l).split(/\r\n|\r|\n/);for(let d=1;d0&&this._editor.executeEdits("snippet.placeholderTransform",n)}let t=!1;e===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,t=!0);let r=this._editor.getModel().changeDecorations(n=>{let o=new Set,s=[];for(let a of this._placeholderGroups[this._placeholderGroupsIdx]){let l=this._placeholderDecorations.get(a),c=this._editor.getModel().getDecorationRange(l);s.push(new Qe(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(a),n.changeDecorationOptions(l,a.isFinalTabstop?i._decor.activeFinal:i._decor.active),o.add(a);for(let d of this._snippet.enclosingPlaceholders(a)){let u=this._placeholderDecorations.get(d);n.changeDecorationOptions(u,d.isFinalTabstop?i._decor.activeFinal:i._decor.active),o.add(d)}}for(let[a,l]of this._placeholderDecorations)o.has(a)||n.changeDecorationOptions(l,a.isFinalTabstop?i._decor.inactiveFinal:i._decor.inactive);return s});return t?this.move(e):r!=null?r:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof vo){let r=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(r).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(this._snippet.placeholders.length===0)return!0;if(this._snippet.placeholders.length===1){let[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){let e=new Map;for(let t of this._placeholderGroups){let r;for(let n of t){if(n.isFinalTabstop)break;r||(r=[],e.set(n.index,r));let o=this._placeholderDecorations.get(n),s=this._editor.getModel().getDecorationRange(o);if(!s){e.delete(n.index);break}r.push(s)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;let e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(e!=null&&e.choice))return;let t=this._placeholderDecorations.get(e);if(!t)return;let r=this._editor.getModel().getDecorationRange(t);if(r)return{range:r,choice:e.choice}}get hasChoice(){let e=!1;return this._snippet.walk(t=>(e=t instanceof lh,!e)),e}merge(e){let t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(r=>{for(let n of this._placeholderGroups[this._placeholderGroupsIdx]){let o=e.shift();console.assert(o._offset!==-1),console.assert(!o._placeholderDecorations);let s=o._snippet.placeholderInfo.last.index;for(let l of o._snippet.placeholderInfo.all)l.isFinalTabstop?l.index=n.index+(s+1)/this._nestingLevel:l.index=n.index+l.index/this._nestingLevel;this._snippet.replace(n,o._snippet.children);let a=this._placeholderDecorations.get(n);r.removeDecoration(a),this._placeholderDecorations.delete(n);for(let l of o._snippet.placeholders){let c=o._snippet.offset(l),d=o._snippet.fullLen(l),u=B.fromPositions(t.getPositionAt(o._offset+c),t.getPositionAt(o._offset+c+d)),h=r.addDecoration(u,i._decor.inactive);this._placeholderDecorations.set(l,h)}}this._placeholderGroups=$3(this._snippet.placeholders,vo.compareByIndex)})}};Ab._decor={active:mt.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:mt.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:mt.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:mt.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};F$={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},Cp=$s=class{static adjustWhitespace(e,t,r,n,o){let s=e.getLineContent(t.lineNumber),a=qi(s,0,t.column-1),l;return n.walk(c=>{if(!(c instanceof Rr)||c.parent instanceof lh||o&&!o.has(c))return!0;let d=c.value.split(/\r\n|\r|\n/);if(r){let h=n.offset(c);if(h===0)d[0]=e.normalizeIndentation(d[0]);else{l=l!=null?l:n.toString();let f=l.charCodeAt(h-1);(f===10||f===13)&&(d[0]=e.normalizeIndentation(a+d[0]))}for(let f=1;fA.get(xl)),m=e.invokeWithinContext(A=>new Sb(A.get(Tl),h)),g=()=>a,w=h.getValueInRange($s.adjustSelection(h,e.getSelection(),r,0)),_=h.getValueInRange($s.adjustSelection(h,e.getSelection(),0,n)),E=h.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),L=e.getSelections().map((A,O)=>({selection:A,idx:O})).sort((A,O)=>B.compareRangesUsingStarts(A.selection,O.selection));for(let{selection:A,idx:O}of L){let U=$s.adjustSelection(h,A,r,0),Y=$s.adjustSelection(h,A,0,n);w!==h.getValueInRange(U)&&(U=A),_!==h.getValueInRange(Y)&&(Y=A);let oe=A.setStartPosition(U.startLineNumber,U.startColumn).setEndPosition(Y.endLineNumber,Y.endColumn),te=new jo().parse(t,!0,o),Z=oe.getStartPosition(),ve=$s.adjustWhitespace(h,Z,s||O>0&&E!==h.getLineFirstNonWhitespaceColumn(A.positionLineNumber),te);te.resolveVariables(new xb([m,new kb(g,O,L.length,e.getOption(77)==="spread"),new Cb(h,A,O,l),new Eb(h,A,c),new oc,new Tb(f),new Ib])),d[O]=ii.replace(oe,te.toString()),d[O].identifier={major:O,minor:0},d[O]._isTracked=!0,u[O]=new Ab(e,te,ve)}return{edits:d,snippets:u}}static createEditsAndSnippetsFromEdits(e,t,r,n,o,s,a){if(!e.hasModel()||t.length===0)return{edits:[],snippets:[]};let l=[],c=e.getModel(),d=new jo,u=new wp,h=new xb([e.invokeWithinContext(m=>new Sb(m.get(Tl),c)),new kb(()=>o,0,e.getSelections().length,e.getOption(77)==="spread"),new Cb(c,e.getSelection(),0,s),new Eb(c,e.getSelection(),a),new oc,new Tb(e.invokeWithinContext(m=>m.get(xl))),new Ib]);t=t.sort((m,g)=>B.compareRangesUsingStarts(m.range,g.range));let f=0;for(let m=0;m0){let O=t[m-1].range,U=B.fromPositions(O.getEndPosition(),g.getStartPosition()),Y=new Rr(c.getValueInRange(U));u.appendChild(Y),f+=Y.value.length}let _=d.parseFragment(w,u);$s.adjustWhitespace(c,g.getStartPosition(),!0,u,new Set(_)),u.resolveVariables(h);let E=u.toString(),L=E.slice(f);f=E.length;let A=ii.replace(g,L);A.identifier={major:m,minor:0},A._isTracked=!0,l.push(A)}return d.ensureFinalTabstop(u,r,!0),{edits:l,snippets:[new Ab(e,u,"")]}}constructor(e,t,r=F$,n){this._editor=e,this._template=t,this._options=r,this._languageConfigurationService=n,this._templateMerges=[],this._snippets=[]}dispose(){ji(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;let{edits:e,snippets:t}=typeof this._template=="string"?$s.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):$s.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,r=>{let n=r.filter(o=>!!o.identifier);for(let o=0;oQe.fromPositions(o.range.getEndPosition()))}),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=F$){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);let{edits:r,snippets:n}=$s.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",r,o=>{let s=o.filter(l=>!!l.identifier);for(let l=0;lQe.fromPositions(l.range.getEndPosition()))})}next(){let e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){let e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){let t=[];for(let r of this._snippets){let n=r.move(e);t.push(...n)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;let e=this._editor.getSelections();if(e.length{o.push(...n.get(s))})}e.sort(B.compareRangesUsingStarts);for(let[r,n]of t){if(n.length!==e.length){t.delete(r);continue}n.sort(B.compareRangesUsingStarts);for(let o=0;o0}};Cp=$s=O0e([F0e(3,Ot)],Cp)});var z0e,q2,Sp,z$,nr,K2,kp=N(()=>{ke();zr();lt();di();ti();Hr();Pt();uh();He();wt();Yv();JA();z0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},q2=function(i,e){return function(t,r){e(t,r,i)}},z$={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},nr=Sp=class{static get(e){return e.getContribution(Sp.ID)}constructor(e,t,r,n,o){this._editor=e,this._logService=t,this._languageFeaturesService=r,this._languageConfigurationService=o,this._snippetListener=new le,this._modelVersionId=-1,this._inSnippet=Sp.InSnippetMode.bindTo(n),this._hasNextTabstop=Sp.HasNextTabstop.bindTo(n),this._hasPrevTabstop=Sp.HasPrevTabstop.bindTo(n)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),(e=this._session)===null||e===void 0||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,typeof t=="undefined"?z$:Object.assign(Object.assign({},z$),t))}catch(r){this.cancel(),this._logService.error(r),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}_doInsert(e,t){var r;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&typeof e!="string"&&this.cancel(),this._session?(Bt(typeof e=="string"),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new Cp(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),!((r=this._session)===null||r===void 0)&&r.hasChoice){let n={_debugDisplayName:"snippetChoiceCompletions",provideCompletionItems:(d,u)=>{if(!this._session||d!==this._editor.getModel()||!Ie.equals(this._editor.getPosition(),u))return;let{activeChoice:h}=this._session;if(!h||h.choice.options.length===0)return;let f=d.getValueInRange(h.range),m=!!h.choice.options.find(w=>w.value===f),g=[];for(let w=0;w{s==null||s.dispose(),a=!1},c=()=>{a||(s=this._languageFeaturesService.completionProvider.register({language:o.getLanguageId(),pattern:o.uri.fsPath,scheme:o.uri.scheme,exclusive:!0},n),this._snippetListener.add(s),a=!0)};this._choiceCompletions={provider:n,enable:c,disable:l}}this._updateState(),this._snippetListener.add(this._editor.onDidChangeModelContent(n=>n.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState()))}}_updateState(){if(!(!this._session||!this._editor.hasModel())){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){var e;if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}let{activeChoice:t}=this._session;if(!t||!this._choiceCompletions){(e=this._choiceCompletions)===null||e===void 0||e.disable(),this._currentChoice=void 0;return}this._currentChoice!==t.choice&&(this._currentChoice=t.choice,this._choiceCompletions.enable(),queueMicrotask(()=>{M$(this._editor,this._choiceCompletions.provider)}))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,(t=this._session)===null||t===void 0||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){var e;(e=this._session)===null||e===void 0||e.prev(),this._updateState()}next(){var e;(e=this._session)===null||e===void 0||e.next(),this._updateState()}isInSnippet(){return!!this._inSnippet.get()}};nr.ID="snippetController2";nr.InSnippetMode=new ht("inSnippetMode",!1,b("inSnippetMode","Whether the editor in current in snippet mode"));nr.HasNextTabstop=new ht("hasNextTabstop",!1,b("hasNextTabstop","Whether there is a next tab stop when in snippet mode"));nr.HasPrevTabstop=new ht("hasPrevTabstop",!1,b("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"));nr=Sp=z0e([q2(1,Hc),q2(2,Se),q2(3,it),q2(4,Ot)],nr);Ue(nr.ID,nr,4);K2=Fi.bindToContribution(nr.get);We(new K2({id:"jumpToNextSnippetPlaceholder",precondition:fe.and(nr.InSnippetMode,nr.HasNextTabstop),handler:i=>i.next(),kbOpts:{weight:100+30,kbExpr:F.editorTextFocus,primary:2}}));We(new K2({id:"jumpToPrevSnippetPlaceholder",precondition:fe.and(nr.InSnippetMode,nr.HasPrevTabstop),handler:i=>i.prev(),kbOpts:{weight:100+30,kbExpr:F.editorTextFocus,primary:1026}}));We(new K2({id:"leaveSnippet",precondition:nr.InSnippetMode,handler:i=>i.cancel(!0),kbOpts:{weight:100+30,kbExpr:F.editorTextFocus,primary:9,secondary:[1033]}}));We(new K2({id:"acceptSnippet",precondition:nr.InSnippetMode,handler:i=>i.finish()}))});var B0e,eL,sc,io,$2,B$=N(()=>{mi();qt();ke();wa();zr();_a();di();et();fn();Hr();N2();L$();vp();kp();Vi();Ut();B0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},eL=function(i,e){return function(t,r){e(t,r,i)}},sc=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i[i.Undo=0]="Undo",i[i.Redo=1]="Redo",i[i.AcceptWord=2]="AcceptWord",i[i.Other=3]="Other"})(io||(io={}));$2=class extends ce{get isAcceptingPartially(){return this._isAcceptingPartially}constructor(e,t,r,n,o,s,a,l,c,d,u,h){super(),this.textModel=e,this.selectedSuggestItem=t,this.cursorPosition=r,this.textModelVersionId=n,this._debounceValue=o,this._suggestPreviewEnabled=s,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=c,this._instantiationService=d,this._commandService=u,this._languageConfigurationService=h,this._source=this._register(this._instantiationService.createInstance(j2,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=ya("isActive",!1),this._forceUpdate=qF("forceUpdate"),this._selectedInlineCompletionId=ya("selectedInlineCompletionId",void 0),this._isAcceptingPartially=!1,this._preserveCurrentCompletionReasons=new Set([io.Redo,io.Undo,io.AcceptWord]),this._fetchInlineCompletions=UF("fetch inline completions",{createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:pa.Automatic}),handleChange:(m,g)=>(m.didChange(this.textModelVersionId)&&this._preserveCurrentCompletionReasons.has(m.change)?g.preserveCurrentCompletion=!0:m.didChange(this._forceUpdate)&&(g.inlineCompletionTriggerKind=m.change),!0)},(m,g)=>{if(this._forceUpdate.read(m),!(this._enabled.read(m)&&this.selectedSuggestItem.read(m)||this._isActive.read(m))){this._source.cancelUpdate();return}this.textModelVersionId.read(m);let _=this.selectedInlineCompletion.get(),E=g.preserveCurrentCompletion||_!=null&&_.forwardStable?_:void 0,L=this._source.suggestWidgetInlineCompletions.get(),A=this.selectedSuggestItem.read(m);if(L&&!A){let Y=this._source.inlineCompletions.get();on(oe=>{Y&&L.request.versionId>Y.request.versionId&&this._source.inlineCompletions.set(L.clone(),oe),this._source.clearSuggestWidgetInlineCompletions(oe)})}let O=this.cursorPosition.read(m),U={triggerKind:g.inlineCompletionTriggerKind,selectedSuggestionInfo:A==null?void 0:A.toSelectedSuggestionInfo()};return this._source.fetch(O,U,E)}),this._filteredInlineCompletionItems=No(m=>{let g=this._source.inlineCompletions.read(m);if(!g)return[];let w=this.cursorPosition.read(m);return g.inlineCompletions.filter(E=>E.isVisible(this.textModel,w,m))}),this.selectedInlineCompletionIndex=No(m=>{let g=this._selectedInlineCompletionId.read(m),w=this._filteredInlineCompletionItems.read(m),_=this._selectedInlineCompletionId===void 0?-1:w.findIndex(E=>E.semanticId===g);return _===-1?(this._selectedInlineCompletionId.set(void 0,void 0),0):_}),this.selectedInlineCompletion=No(m=>{let g=this._filteredInlineCompletionItems.read(m),w=this.selectedInlineCompletionIndex.read(m);return g[w]}),this.lastTriggerKind=this._source.inlineCompletions.map(m=>m==null?void 0:m.request.context.triggerKind),this.inlineCompletionsCount=No(m=>{if(this.lastTriggerKind.read(m)===pa.Explicit)return this._filteredInlineCompletionItems.read(m).length}),this.state=xk({equalityComparer:(m,g)=>!m||!g?m===g:NA(m.ghostText,g.ghostText)&&m.inlineCompletion===g.inlineCompletion&&m.suggestItem===g.suggestItem},m=>{var g;let w=this.textModel,_=this.selectedSuggestItem.read(m);if(_){let E=_.toSingleTextEdit().removeCommonPrefix(w),L=this._computeAugmentedCompletion(E,m);if(!this._suggestPreviewEnabled.read(m)&&!L)return;let O=(g=L==null?void 0:L.edit)!==null&&g!==void 0?g:E,U=L?L.edit.text.length-E.text.length:0,Y=this._suggestPreviewMode.read(m),oe=this.cursorPosition.read(m),te=O.computeGhostText(w,Y,oe,U);return{ghostText:te!=null?te:new Ld(O.range.endLineNumber,[]),inlineCompletion:L==null?void 0:L.completion,suggestItem:_}}else{if(!this._isActive.read(m))return;let E=this.selectedInlineCompletion.read(m);if(!E)return;let L=E.toSingleTextEdit(m),A=this._inlineSuggestMode.read(m),O=this.cursorPosition.read(m),U=L.computeGhostText(w,A,O);return U?{ghostText:U,inlineCompletion:E,suggestItem:void 0}:void 0}}),this.ghostText=xk({equalityComparer:NA},m=>{let g=this.state.read(m);if(g)return g.ghostText}),this._register(KF(this._fetchInlineCompletions,!0));let f;this._register(pn(m=>{var g,w;let _=this.state.read(m),E=_==null?void 0:_.inlineCompletion;if((E==null?void 0:E.semanticId)!==(f==null?void 0:f.semanticId)&&(f=E,E)){let L=E.inlineCompletion,A=L.source;(w=(g=A.provider).handleItemDidShow)===null||w===void 0||w.call(g,A.inlineCompletions,L.sourceInlineCompletion,L.insertText)}}))}trigger(e){return sc(this,void 0,void 0,function*(){this._isActive.set(!0,e),yield this._fetchInlineCompletions.get()})}triggerExplicitly(e){return sc(this,void 0,void 0,function*(){wk(e,t=>{this._isActive.set(!0,t),this._forceUpdate.trigger(t,pa.Explicit)}),yield this._fetchInlineCompletions.get()})}stop(e){wk(e,t=>{this._isActive.set(!1,t),this._source.clear(t)})}_computeAugmentedCompletion(e,t){let r=this.textModel,n=this._source.suggestWidgetInlineCompletions.read(t),o=n?n.inlineCompletions:[this.selectedInlineCompletion.read(t)].filter($9);return NP(o,a=>{let l=a.toSingleTextEdit(t);return l=l.removeCommonPrefix(r,B.fromPositions(l.range.getStartPosition(),e.range.getEndPosition())),l.augments(e)?{edit:l,completion:a}:void 0})}_deltaSelectedInlineCompletionIndex(e){return sc(this,void 0,void 0,function*(){yield this.triggerExplicitly();let t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){let r=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[r].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)})}next(){return sc(this,void 0,void 0,function*(){yield this._deltaSelectedInlineCompletionIndex(1)})}previous(){return sc(this,void 0,void 0,function*(){yield this._deltaSelectedInlineCompletionIndex(-1)})}accept(e){var t;return sc(this,void 0,void 0,function*(){if(e.getModel()!==this.textModel)throw new Im;let r=this.state.get();if(!r||r.ghostText.isEmpty()||!r.inlineCompletion)return;let n=r.inlineCompletion.toInlineCompletion(void 0);e.pushUndoStop(),n.snippetInfo?(e.executeEdits("inlineSuggestion.accept",[ii.replaceMove(n.range,""),...n.additionalTextEdits]),e.setPosition(n.snippetInfo.range.getStartPosition()),(t=nr.get(e))===null||t===void 0||t.insert(n.snippetInfo.snippet,{undoStopBefore:!1})):e.executeEdits("inlineSuggestion.accept",[ii.replaceMove(n.range,n.insertText),...n.additionalTextEdits]),n.command&&n.source.addRef(),on(o=>{this._source.clear(o),this._isActive.set(!1,o)}),n.command&&(yield this._commandService.executeCommand(n.command.id,...n.command.arguments||[]).then(void 0,Xt),n.source.removeRef())})}acceptNextWord(e){return sc(this,void 0,void 0,function*(){yield this._acceptNext(e,(t,r)=>{let n=this.textModel.getLanguageIdAtPosition(t.lineNumber,t.column),o=this._languageConfigurationService.getLanguageConfiguration(n),s=new RegExp(o.wordDefinition.source,o.wordDefinition.flags.replace("g","")),a=r.match(s),l=0;a&&a.index!==void 0?a.index===0?l=a[0].length:l=a.index:l=r.length;let d=/\s+/g.exec(r);return d&&d.index!==void 0&&d.index+d[0].length{let n=r.match(/\n/);return n&&n.index!==void 0?n.index+1:r.length})})}_acceptNext(e,t){return sc(this,void 0,void 0,function*(){if(e.getModel()!==this.textModel)throw new Im;let r=this.state.get();if(!r||r.ghostText.isEmpty()||!r.inlineCompletion)return;let n=r.ghostText,o=r.inlineCompletion.toInlineCompletion(void 0);if(o.snippetInfo||o.filterText!==o.insertText){yield this.accept(e);return}let s=n.parts[0],a=new Ie(n.lineNumber,s.column),l=s.lines.join(` -`),c=t(a,l);if(c===l.length&&n.parts.length===1){this.accept(e);return}let d=l.substring(0,c);this._isAcceptingPartially=!0;try{e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[ii.replace(B.fromPositions(a),d)]);let u=gb(d);e.setPosition(mb(a,u))}finally{this._isAcceptingPartially=!1}if(o.source.provider.handlePartialAccept){let u=B.fromPositions(o.range.getStartPosition(),mb(a,gb(d))),h=e.getModel().getValueInRange(u,1);o.source.provider.handlePartialAccept(o.source.inlineCompletions,o.sourceInlineCompletion,h.length)}})}handleSuggestAccepted(e){var t,r;let n=e.toSingleTextEdit().removeCommonPrefix(this.textModel),o=this._computeAugmentedCompletion(n,void 0);if(!o)return;let s=o.completion.inlineCompletion;(r=(t=s.source.provider).handlePartialAccept)===null||r===void 0||r.call(t,s.source.inlineCompletions,s.sourceInlineCompletion,n.text.length)}};$2=B0e([eL(9,Ke),eL(10,_i),eL(11,Ot)],$2)});var H0e,H$,Lb,Db,G2,tL,iL,Mb,Ep,rL=N(()=>{jt();ke();df();Hre();fn();Sr();hl();Ut();wu();H0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},H$=function(i,e){return function(t,r){e(t,r,i)}},Db=class{constructor(e){this.name=e}select(e,t,r){if(r.length===0)return 0;let n=r[0].score[0];for(let o=0;ol&&u.type===r[c].completion.kind&&u.insertText===r[c].completion.insertText&&(l=u.touch,a=c),r[c].completion.preselect&&s===-1)return s=c}return a!==-1?a:s!==-1?s:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();let t=0;for(let[r,n]of e)n.touch=t,n.type=typeof n.type=="number"?n.type:Xm.fromString(n.type),this._cache.set(r,n);this._seq=this._cache.size}},iL=class extends Db{constructor(){super("recentlyUsedByPrefix"),this._trie=kF.forStrings(),this._seq=0}memorize(e,t,r){let{word:n}=e.getWordUntilPosition(t),o=`${e.getLanguageId()}/${n}`;this._trie.set(o,{type:r.completion.kind,insertText:r.completion.insertText,touch:this._seq++})}select(e,t,r){let{word:n}=e.getWordUntilPosition(t);if(!n)return super.select(e,t,r);let o=`${e.getLanguageId()}/${n}`,s=this._trie.get(o);if(s||(s=this._trie.findSubstr(o)),s)for(let a=0;ae.push([r,t])),e.sort((t,r)=>-(t[1].touch-r[1].touch)).forEach((t,r)=>t[1].touch=r),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(let[t,r]of e)r.type=typeof r.type=="number"?r.type:Xm.fromString(r.type),this._trie.set(t,r)}}},Mb=Lb=class{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new le,this._persistSoon=new ui(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(r=>{r.reason===B_.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,r){this._withStrategy(e,t).memorize(e,t,r),this._persistSoon.schedule()}select(e,t,r){return this._withStrategy(e,t).select(e,t,r)}_withStrategy(e,t){var r;let n=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(((r=this._strategy)===null||r===void 0?void 0:r.name)!==n){this._saveState();let o=Lb._strategyCtors.get(n)||G2;this._strategy=new o;try{let a=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,l=this._storageService.get(`${Lb._storagePrefix}/${n}`,a);l&&this._strategy.fromJSON(JSON.parse(l))}catch(s){}}return this._strategy}_saveState(){if(this._strategy){let t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,r=JSON.stringify(this._strategy);this._storageService.store(`${Lb._storagePrefix}/${this._strategy.name}`,r,t,1)}}};Mb._strategyCtors=new Map([["recentlyUsedByPrefix",iL],["recentlyUsed",tL],["first",G2]]);Mb._storagePrefix="suggest/memories";Mb=Lb=H0e([H$(0,Yn),H$(1,Mt)],Mb);Ep=Qr("ISuggestMemories");en(Ep,Mb,1)});var U0e,j0e,nL,Tp,U$=N(()=>{wt();U0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},j0e=function(i,e){return function(t,r){e(t,r,i)}},Tp=nL=class{constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=nL.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration(r=>r.hasChanged(121)&&this._update()),this._update()}dispose(){var e;this._configListener.dispose(),(e=this._selectionListener)===null||e===void 0||e.dispose(),this._ckAtEnd.reset()}_update(){let e=this._editor.getOption(121)==="on";if(this._enabled!==e)if(this._enabled=e,this._enabled){let t=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}let r=this._editor.getModel(),n=this._editor.getSelection(),o=r.getWordAtPosition(n.getStartPosition());if(!o){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(o.endColumn===n.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(t),t()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};Tp.AtEnd=new ht("atEndOfWord",!1);Tp=nL=U0e([j0e(1,it)],Tp)});var W0e,V0e,Nb,Md,j$=N(()=>{wt();W0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},V0e=function(i,e){return function(t,r){e(t,r,i)}},Md=Nb=class{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=Nb.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),(e=this._listener)===null||e===void 0||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},r){if(e.items.length===0){this.reset();return}if(Nb._moveIndex(!0,e,t)===t){this.reset();return}this._acceptNext=r,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(e,t,r){let n=r;for(let o=t.items.length;o>0&&(n=(n+t.items.length+(e?1:-1))%t.items.length,!(n===r||!t.items[n].completion.additionalTextEdits));o--);return n}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=Nb._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};Md.OtherSuggestions=new ht("hasOtherSuggestions",!1);Md=Nb=W0e([V0e(1,it)],Md)});var Y2,W$=N(()=>{mi();ke();K3();Y2=class{constructor(e,t,r,n){this._disposables=new le,this._disposables.add(r.onDidSuggest(o=>{o.completionModel.items.length===0&&this.reset()})),this._disposables.add(r.onDidCancel(o=>{this.reset()})),this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(o=>{if(this._active&&!t.isFrozen()&&r.state!==0){let s=o.charCodeAt(o.length-1);this._active.acceptCharacters.has(s)&&e.getOption(0)&&n(this._active.item)}}))}_onItem(e){if(!e||!Ki(e.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===e.item)return;let t=new fu;for(let r of e.item.completion.commitCharacters)r.length>0&&t.add(r.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}});var q0e,Nd,oL=N(()=>{j9();di();et();q0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Nd=class i{provideSelectionRanges(e,t){return q0e(this,void 0,void 0,function*(){let r=[];for(let n of t){let o=[];r.push(o);let s=new Map;yield new Promise(a=>i._bracketsRightYield(a,0,e,n,s)),yield new Promise(a=>i._bracketsLeftYield(a,0,e,n,s,o))}return r})}static _bracketsRightYield(e,t,r,n,o){let s=new Map,a=Date.now();for(;;){if(t>=i._maxRounds){e();break}if(!n){e();break}let l=r.bracketPairs.findNextBracket(n);if(!l){e();break}if(Date.now()-a>i._maxDuration){setTimeout(()=>i._bracketsRightYield(e,t+1,r,n,o));break}if(l.bracketInfo.isOpeningBracket){let d=l.bracketInfo.bracketText,u=s.has(d)?s.get(d):0;s.set(d,u+1)}else{let d=l.bracketInfo.getOpeningBrackets()[0].bracketText,u=s.has(d)?s.get(d):0;if(u-=1,s.set(d,Math.max(0,u)),u<0){let h=o.get(d);h||(h=new zv,o.set(d,h)),h.push(l.range)}}n=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,r,n,o,s){let a=new Map,l=Date.now();for(;;){if(t>=i._maxRounds&&o.size===0){e();break}if(!n){e();break}let c=r.bracketPairs.findPrevBracket(n);if(!c){e();break}if(Date.now()-l>i._maxDuration){setTimeout(()=>i._bracketsLeftYield(e,t+1,r,n,o,s));break}if(c.bracketInfo.isOpeningBracket){let u=c.bracketInfo.bracketText,h=a.has(u)?a.get(u):0;if(h-=1,a.set(u,Math.max(0,h)),h<0){let f=o.get(u);if(f){let m=f.shift();f.size===0&&o.delete(u);let g=B.fromPositions(c.range.getEndPosition(),m.getStartPosition()),w=B.fromPositions(c.range.getStartPosition(),m.getEndPosition());s.push({range:g}),s.push({range:w}),i._addBracketLeading(r,w,s)}}}else{let u=c.bracketInfo.getOpeningBrackets()[0].bracketText,h=a.has(u)?a.get(u):0;a.set(u,h+1)}n=c.range.getStartPosition()}}static _addBracketLeading(e,t,r){if(t.startLineNumber===t.endLineNumber)return;let n=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(n);o!==0&&o!==t.startColumn&&(r.push({range:B.fromPositions(new Ie(n,o),t.getEndPosition())}),r.push({range:B.fromPositions(new Ie(n,1),t.getEndPosition())}));let s=n-1;if(s>0){let a=e.getLineFirstNonWhitespaceColumn(s);a===t.startColumn&&a!==e.getLineLastNonWhitespaceColumn(s)&&(r.push({range:B.fromPositions(new Ie(s,a),t.getEndPosition())}),r.push({range:B.fromPositions(new Ie(s,1),t.getEndPosition())}))}}};Nd._maxDuration=30;Nd._maxRounds=2});var K0e,Rd,sL=N(()=>{mi();et();oL();K0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Rd=class i{static create(e,t){return K0e(this,void 0,void 0,function*(){if(!t.getOption(116).localityBonus||!t.hasModel())return i.None;let r=t.getModel(),n=t.getPosition();if(!e.canComputeWordRanges(r.uri))return i.None;let[o]=yield new Nd().provideSelectionRanges(r,[n]);if(o.length===0)return i.None;let s=yield e.computeWordRanges(r.uri,o[0].range);if(!s)return i.None;let a=r.getWordUntilPosition(n);return delete s[a.word],new class extends i{distance(l,c){if(!n.equals(t.getPosition()))return 0;if(c.kind===17)return 2<<20;let d=typeof c.label=="string"?c.label:c.label.label,u=s[d];if(LP(u))return 2<<20;let h=pu(u,B.fromPositions(l),B.compareRangesUsingStarts),f=h>=0?u[h]:u[Math.max(0,~h-1)],m=o.length;for(let g of o){if(!B.containsRange(g.range,f))break;m-=1}return m}}})}};Rd.None=new class extends Rd{distance(){return 0}}});var Rb,Ip,aL=N(()=>{mi();pl();Ni();Rb=class{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}},Ip=class i{constructor(e,t,r,n,o,s,a=a_.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=i._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=n,this._options=o,this._refilterKind=1,this._lineContext=r,this._fuzzyScoreOptions=a,s==="top"?this._snippetCompareFn=i._compareCompletionItemsSnippetsUp:s==="bottom"&&(this._snippetCompareFn=i._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){(this._lineContext.leadingLineContent!==e.leadingLineContent||this._lineContext.characterCountDelta!==e.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta0&&r[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){this._refilterKind!==0&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;let e=[],{leadingLineContent:t,characterCountDelta:r}=this._lineContext,n="",o="",s=this._refilterKind===1?this._items:this._filteredItems,a=[],l=!this._options.filterGraceful||s.length>2e3?l_:$P;for(let c=0;c=f)d.score=fl.Default;else if(typeof d.completion.filterText=="string"){let g=l(n,o,m,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!g)continue;mP(d.completion.filterText,d.textLabel)===0?d.score=g:(d.score=KP(n,o,m,d.textLabel,d.labelLow,0),d.score[0]=g[0])}else{let g=l(n,o,m,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!g)continue;d.score=g}}d.idx=c,d.distance=this._wordDistance.distance(d.position,d.completion),a.push(d),e.push(d.textLabel.length)}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?AP(e.length-.85,e,(c,d)=>c-d):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]t.distance?1:e.idxt.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return 1;if(t.completion.kind===27)return-1}return i._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return-1;if(t.completion.kind===27)return 1}return i._compareCompletionItems(e,t)}}});function Y0e(i,e,t){if(!e.getContextKeyValue(_r.inlineSuggestionVisible.key))return!0;let r=e.getContextKeyValue(_r.suppressSuggestions.key);return r!==void 0?!r:!i.getOption(61).suppressSuggestions}function X0e(i,e,t){if(!e.getContextKeyValue("inlineSuggestionVisible"))return!0;let r=e.getContextKeyValue(_r.suppressSuggestions.key);return r!==void 0?!r:!i.getOption(61).suppressSuggestions}var $0e,Pd,G0e,lL,ac,X2,V$=N(()=>{jt();ki();qt();ei();ke();Ni();Ar();q_();sL();Zm();Sr();wt();Yv();Bc();aL();uh();Pt();pl();zr();D2();kp();Bre();$0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Pd=function(i,e){return function(t,r){e(t,r,i)}},G0e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},ac=class{static shouldAutoTrigger(e){if(!e.hasModel())return!1;let t=e.getModel(),r=e.getPosition();t.tokenization.tokenizeIfCheap(r.lineNumber);let n=t.getWordAtPosition(r);return!(!n||n.endColumn!==r.column&&n.startColumn+1!==r.column||!isNaN(Number(n.word)))}constructor(e,t,r){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=r}};X2=lL=class{constructor(e,t,r,n,o,s,a,l,c){this._editor=e,this._editorWorkerService=t,this._clipboardService=r,this._telemetryService=n,this._logService=o,this._contextKeyService=s,this._configurationService=a,this._languageFeaturesService=l,this._envService=c,this._toDispose=new le,this._triggerCharacterListener=new le,this._triggerQuickSuggest=new aa,this._triggerState=void 0,this._completionDisposables=new le,this._onDidCancel=new Je,this._onDidTrigger=new Je,this._onDidSuggest=new Je,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new Qe(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let d=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{d=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{d=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(u=>{d||this._onCursorChange(u)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{!d&&this._triggerState!==void 0&&this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){ji(this._triggerCharacterListener),ji([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(89)||!this._editor.hasModel()||!this._editor.getOption(119))return;let e=new Map;for(let r of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(let n of r.triggerCharacters||[]){let o=e.get(n);o||(o=new Set,o.add(D$()),e.set(n,o)),o.add(r)}let t=r=>{var n;if(!X0e(this._editor,this._contextKeyService,this._configurationService)||ac.shouldAutoTrigger(this._editor))return;if(!r){let a=this._editor.getPosition();r=this._editor.getModel().getLineContent(a.lineNumber).substr(0,a.column-1)}let o="";vP(r.charCodeAt(r.length-1))?bP(r.charCodeAt(r.length-2))&&(o=r.substr(r.length-2)):o=r.charAt(r.length-1);let s=e.get(o);if(s){let a=new Map;if(this._completionModel)for(let[l,c]of this._completionModel.getItemsByProvider())s.has(l)||a.set(l,c);this.trigger({auto:!0,triggerKind:1,triggerCharacter:o,retrigger:!!this._completionModel,clipboardText:(n=this._completionModel)===null||n===void 0?void 0:n.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:a}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(()=>t()))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){var t;this._triggerState!==void 0&&(this._triggerQuickSuggest.cancel(),(t=this._requestToken)===null||t===void 0||t.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){this._triggerState!==void 0&&(!this._editor.hasModel()||!this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._triggerState.auto,retrigger:!0}))}_onCursorChange(e){if(!this._editor.hasModel())return;let t=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||e.reason!==0&&e.reason!==3||e.source!=="keyboard"&&e.source!=="deleteLeft"){this.cancel();return}this._triggerState===void 0&&e.reason===0?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():this._triggerState!==void 0&&e.reason===3&&this._refilterCompletionItems()}_onCompositionEnd(){this._triggerState===void 0?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;Ga.isAllOff(this._editor.getOption(87))||this._editor.getOption(116).snippetsPreventQuickSuggestions&&(!((e=nr.get(this._editor))===null||e===void 0)&&e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._triggerState!==void 0||!ac.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;let t=this._editor.getModel(),r=this._editor.getPosition(),n=this._editor.getOption(87);if(!Ga.isAllOff(n)){if(!Ga.isAllOn(n)){t.tokenization.tokenizeIfCheap(r.lineNumber);let o=t.tokenization.getLineTokens(r.lineNumber),s=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(r.column-1-1,0)));if(Ga.valueFor(n,s)!=="on")return}Y0e(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(t)&&this.trigger({auto:!0})}},this._editor.getOption(88)))}_refilterCompletionItems(){Bt(this._editor.hasModel()),Bt(this._triggerState!==void 0);let e=this._editor.getModel(),t=this._editor.getPosition(),r=new ac(e,t,Object.assign(Object.assign({},this._triggerState),{refilter:!0}));this._onNewContext(r)}trigger(e){var t,r,n,o,s,a;if(!this._editor.hasModel())return;let l=this._editor.getModel(),c=new ac(l,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:(t=e.shy)!==null&&t!==void 0?t:!1,position:this._editor.getPosition()}),this._context=c;let d={triggerKind:(r=e.triggerKind)!==null&&r!==void 0?r:0};e.triggerCharacter&&(d={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new zi;let u=this._editor.getOption(110),h=1;switch(u){case"top":h=0;break;case"bottom":h=2;break}let{itemKind:f,showDeprecated:m}=lL._createSuggestFilter(this._editor),g=new nc(h,(o=(n=e.completionOptions)===null||n===void 0?void 0:n.kindFilter)!==null&&o!==void 0?o:f,(s=e.completionOptions)===null||s===void 0?void 0:s.providerFilter,(a=e.completionOptions)===null||a===void 0?void 0:a.providerItemsToReuse,m),w=Rd.create(this._editorWorkerService,this._editor),_=wb(this._languageFeaturesService.completionProvider,l,this._editor.getPosition(),g,d,this._requestToken.token);Promise.all([_,w]).then(([E,L])=>G0e(this,void 0,void 0,function*(){var A;if((A=this._requestToken)===null||A===void 0||A.dispose(),!this._editor.hasModel())return;let O=e==null?void 0:e.clipboardText;if(!O&&E.needsClipboard&&(O=yield this._clipboardService.readText()),this._triggerState===void 0)return;let U=this._editor.getModel(),Y=new ac(U,this._editor.getPosition(),e),oe=Object.assign(Object.assign({},a_.default),{firstMatchCanBeWeak:!this._editor.getOption(116).matchOnWordStartOnly});if(this._completionModel=new Ip(E.items,this._context.column,{leadingLineContent:Y.leadingLineContent,characterCountDelta:Y.column-this._context.column},L,this._editor.getOption(116),this._editor.getOption(110),oe,O),this._completionDisposables.add(E.disposable),this._onNewContext(Y),this._reportDurationsTelemetry(E.durations),!this._envService.isBuilt||this._envService.isExtensionDevelopment)for(let te of E.items)te.isInvalid&&this._logService.warn(`[suggest] did IGNORE invalid completion item from ${te.provider._debugDisplayName}`,te.completion)})).catch(ft)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)})}static _createSuggestFilter(e){let t=new Set;e.getOption(110)==="none"&&t.add(27);let n=e.getOption(116);return n.showMethods||t.add(0),n.showFunctions||t.add(1),n.showConstructors||t.add(2),n.showFields||t.add(3),n.showVariables||t.add(4),n.showClasses||t.add(5),n.showStructs||t.add(6),n.showInterfaces||t.add(7),n.showModules||t.add(8),n.showProperties||t.add(9),n.showEvents||t.add(10),n.showOperators||t.add(11),n.showUnits||t.add(12),n.showValues||t.add(13),n.showConstants||t.add(14),n.showEnums||t.add(15),n.showEnumMembers||t.add(16),n.showKeywords||t.add(17),n.showWords||t.add(18),n.showColors||t.add(19),n.showFiles||t.add(20),n.showReferences||t.add(21),n.showColors||t.add(22),n.showFolders||t.add(23),n.showTypeParameters||t.add(24),n.showSnippets||t.add(27),n.showUsers||t.add(25),n.showIssues||t.add(26),{itemKind:t,showDeprecated:n.showDeprecated}}_onNewContext(e){if(this._context){if(e.lineNumber!==this._context.lineNumber){this.cancel();return}if(qi(e.leadingLineContent)!==qi(this._context.leadingLineContent)){this.cancel();return}if(e.columnthis._context.leadingWord.startColumn){if(ac.shouldAutoTrigger(this._editor)&&this._context){let r=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:r}})}return}if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&e.leadingWord.word.length!==0){let t=new Map,r=new Set;for(let[n,o]of this._completionModel.getItemsByProvider())o.length>0&&o[0].container.incomplete?r.add(n):t.set(n,o);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:r,providerItemsToReuse:t}})}else{let t=this._completionModel.lineContext,r=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},this._completionModel.items.length===0){let n=ac.shouldAutoTrigger(this._editor);if(!this._context){this.cancel();return}if(n&&this._context.leadingWord.endColumn0,r&&e.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:r})}}}}};X2=lL=$0e([Pd(1,kl),Pd(2,As),Pd(3,Ln),Pd(4,Hc),Pd(5,it),Pd(6,Mt),Pd(7,Se),Pd(8,SF)],X2)});var Pb,q$=N(()=>{ke();Pb=class i{constructor(e,t){this._disposables=new le,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType(()=>{if(this._locked||!e.hasModel())return;let r=e.getSelections(),n=r.length,o=!1;for(let a=0;ai._maxSelectionLength)return;this._lastOvertyped[a]={value:s.getValueInRange(l),multiline:l.startLineNumber!==l.endLineNumber}}})),this._disposables.add(t.onDidTrigger(r=>{this._locked=!0})),this._disposables.add(t.onDidCancel(r=>{this._locked=!1}))}getLastOvertypedInfo(e){if(e>=0&&e{});var $$=N(()=>{K$()});var Q0e,lc,Wo,Ap=N(()=>{ek();In();iz();Vi();wt();Ut();Mo();rn();X_();Hr();Pt();Q0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},lc=function(i,e){return function(t,r){e(t,r,i)}},Wo=class extends tz{constructor(e,t,r,n,o,s,a,l,c,d,u,h,f){super(e,Object.assign(Object.assign({},n.getRawOptions()),{overflowWidgetsDomNode:n.getOverflowWidgetsDomNode()}),r,o,s,a,l,c,d,u,h,f),this._parentEditor=n,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(n.onDidChangeConfiguration(m=>this._onParentConfigurationChanged(m)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){ff(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Wo=Q0e([lc(4,Ke),lc(5,ai),lc(6,_i),lc(7,it),lc(8,br),lc(9,Ri),lc(10,kf),lc(11,Ot),lc(12,Se)],Wo)});var Z0e,cL,dL,Q2,Y$=N(()=>{Ht();ng();ke();He();J_();Ji();wt();Ut();Z0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cL=function(i,e){return function(t,r){e(t,r,i)}},dL=class i extends Z_{updateLabel(){let e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=b({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,i.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return(t=e.getLabel())===null||t===void 0?void 0:t.replace(/\benter\b/gi,"\u23CE")}},Q2=class{constructor(e,t,r,n,o){this._menuId=t,this._menuService=n,this._contextKeyService=o,this._menuDisposables=new le,this.element=Te(e,Ae(".suggest-status-bar"));let s=a=>a instanceof na?r.createInstance(dL,a,void 0):void 0;this._leftActions=new Ls(this.element,{actionViewItemProvider:s}),this._rightActions=new Ls(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){let e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{let r=[],n=[];for(let[o,s]of e.getActions())o==="left"?r.push(...s):n.push(...s);this._leftActions.clear(),this._leftActions.push(r),this._rightActions.clear(),this._rightActions.push(n)};this._menuDisposables.add(e.onDidChange(()=>t())),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};Q2=Z0e([cL(2,Ke),cL(3,Ss),cL(4,it)],Q2)});var Od,Z2=N(()=>{Ht();bk();ei();ke();Od=class{constructor(){this._onDidWillResize=new Je,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new Je,this.onDidResize=this._onDidResize.event,this._sashListener=new le,this._size=new Qt(0,0),this._minSize=new Qt(0,0),this._maxSize=new Qt(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new Cl(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new Cl(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new Cl(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:gk.North}),this._southSash=new Cl(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:gk.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,r=0;this._sashListener.add(ci.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,r=0)})),this._sashListener.add(ci.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,r=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(n=>{e&&(r=n.currentX-n.startX,this.layout(e.height+t,e.width+r),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(n=>{e&&(r=-(n.currentX-n.startX),this.layout(e.height+t,e.width+r),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(n=>{e&&(t=-(n.currentY-n.startY),this.layout(e.height+t,e.width+r),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(n=>{e&&(t=n.currentY-n.startY,this.layout(e.height+t,e.width+r),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(ci.any(this._eastSash.onDidReset,this._westSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(ci.any(this._northSash.onDidReset,this._southSash.onDidReset)(n=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,r,n){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=r?3:0,this._westSash.state=n?3:0}layout(e=this.size.height,t=this.size.width){let{height:r,width:n}=this._minSize,{height:o,width:s}=this._maxSize;e=Math.max(r,Math.min(o,e)),t=Math.max(n,Math.min(s,t));let a=new Qt(t,e);Qt.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}});function Ob(i){return!!i&&!!(i.completion.documentation||i.completion.detail&&i.completion.detail!==i.completion.label)}var J0e,ebe,J2,eC,uL=N(()=>{Ht();N_();Zr();An();ei();Es();ke();kd();Z2();He();Ut();J0e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ebe=function(i,e){return function(t,r){e(t,r,i)}};J2=class{constructor(e,t){this._editor=e,this._onDidClose=new Je,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new Je,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new le,this._renderDisposeable=new le,this._borderWidth=1,this._size=new Qt(330,0),this.domNode=Ae(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(to,{editor:e}),this._body=Ae(".body"),this._scrollbar=new Cf(this._body,{alwaysConsumeMouseWheel:!0}),Te(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=Te(this._body,Ae(".header")),this._close=Te(this._header,Ae("span"+_t.asCSSSelector(pt.close))),this._close.title=b("details.close","Close"),this._type=Te(this._header,Ae("p.type")),this._docs=Te(this._body,Ae("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(49)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){let e=this._editor.getOptions(),t=e.get(49),r=t.getMassagedFontFamily(),n=e.get(117)||t.fontSize,o=e.get(118)||t.lineHeight,s=t.fontWeight,a=`${n}px`,l=`${o}px`;this.domNode.style.fontSize=a,this.domNode.style.lineHeight=`${o/n}`,this.domNode.style.fontWeight=s,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=r,this._close.style.height=l,this._close.style.width=l}getLayoutInfo(){let e=this._editor.getOption(118)||this._editor.getOption(49).lineHeight,t=this._borderWidth,r=t*2;return{lineHeight:e,borderWidth:t,borderHeight:r,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=b("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,this.getLayoutInfo().lineHeight*2),this._onDidChangeContents.fire(this)}renderItem(e,t){var r,n;this._renderDisposeable.clear();let{detail:o,documentation:s}=e.completion;if(t){let a="";a+=`score: ${e.score[0]} -`,a+=`prefix: ${(r=e.word)!==null&&r!==void 0?r:"(no prefix)"} + `,constraint:cG,schema:{type:"object",properties:{levels:{type:"number"},direction:{type:"string",enum:["up","down"]},selectionLines:{type:"array",items:{type:"number"}}}}}]}})}invoke(e,t,n,r){let o=this.getLineNumbers(r,n),s=r&&r.levels,a=r&&r.direction;typeof s!="number"&&typeof a!="string"?Jq(t,!0,o):a==="up"?UE(t,!0,s||1,o):Vu(t,!0,s||1,o)}},ZE=class extends Rn{constructor(){super({id:"editor.toggleFold",label:v("toggleFoldAction.label","Toggle Fold"),alias:"Toggle Fold",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2090),weight:100}})}invoke(e,t,n){let r=this.getSelectedLines(n);Qq(t,1,r)}},e7=class extends Rn{constructor(){super({id:"editor.foldRecursively",label:v("foldRecursivelyAction.label","Fold Recursively"),alias:"Fold Recursively",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2140),weight:100}})}invoke(e,t,n){let r=this.getSelectedLines(n);Vu(t,!0,Number.MAX_VALUE,r)}},t7=class extends Rn{constructor(){super({id:"editor.foldAllBlockComments",label:v("foldAllBlockComments.label","Fold All Block Comments"),alias:"Fold All Block Comments",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2138),weight:100}})}invoke(e,t,n,r,o){if(t.regions.hasTypes())Oy(t,uf.Comment.value,!0);else{let s=n.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).comments;if(a&&a.blockCommentStartToken){let l=new RegExp("^\\s*"+vl(a.blockCommentStartToken));Ry(t,l,!0)}}}},i7=class extends Rn{constructor(){super({id:"editor.foldAllMarkerRegions",label:v("foldAllMarkerRegions.label","Fold All Regions"),alias:"Fold All Regions",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2077),weight:100}})}invoke(e,t,n,r,o){if(t.regions.hasTypes())Oy(t,uf.Region.value,!0);else{let s=n.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start){let l=new RegExp(a.markers.start);Ry(t,l,!0)}}}},n7=class extends Rn{constructor(){super({id:"editor.unfoldAllMarkerRegions",label:v("unfoldAllMarkerRegions.label","Unfold All Regions"),alias:"Unfold All Regions",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2078),weight:100}})}invoke(e,t,n,r,o){if(t.regions.hasTypes())Oy(t,uf.Region.value,!1);else{let s=n.getModel();if(!s)return;let a=o.getLanguageConfiguration(s.getLanguageId()).foldingRules;if(a&&a.markers&&a.markers.start){let l=new RegExp(a.markers.start);Ry(t,l,!1)}}}},r7=class extends Rn{constructor(){super({id:"editor.foldAllExcept",label:v("foldAllExcept.label","Fold All Regions Except Selected"),alias:"Fold All Regions Except Selected",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2136),weight:100}})}invoke(e,t,n){let r=this.getSelectedLines(n);jE(t,!0,r)}},o7=class extends Rn{constructor(){super({id:"editor.unfoldAllExcept",label:v("unfoldAllExcept.label","Unfold All Regions Except Selected"),alias:"Unfold All Regions Except Selected",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2134),weight:100}})}invoke(e,t,n){let r=this.getSelectedLines(n);jE(t,!1,r)}},s7=class extends Rn{constructor(){super({id:"editor.foldAll",label:v("foldAllAction.label","Fold All"),alias:"Fold All",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2069),weight:100}})}invoke(e,t,n){Vu(t,!0)}},a7=class extends Rn{constructor(){super({id:"editor.unfoldAll",label:v("unfoldAllAction.label","Unfold All"),alias:"Unfold All",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2088),weight:100}})}invoke(e,t,n){Vu(t,!1)}},Gu=class i extends Rn{getFoldingLevel(){return parseInt(this.id.substr(i.ID_PREFIX.length))}invoke(e,t,n){Zq(t,this.getFoldingLevel(),!0,this.getSelectedLines(n))}};Gu.ID_PREFIX="editor.foldLevel";Gu.ID=i=>Gu.ID_PREFIX+i;l7=class extends Rn{constructor(){super({id:"editor.gotoParentFold",label:v("gotoParentFold.label","Go to Parent Fold"),alias:"Go to Parent Fold",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,weight:100}})}invoke(e,t,n){let r=this.getSelectedLines(n);if(r.length>0){let o=eG(r[0],t);o!==null&&n.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},c7=class extends Rn{constructor(){super({id:"editor.gotoPreviousFold",label:v("gotoPreviousFold.label","Go to Previous Folding Range"),alias:"Go to Previous Folding Range",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,weight:100}})}invoke(e,t,n){let r=this.getSelectedLines(n);if(r.length>0){let o=tG(r[0],t);o!==null&&n.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},d7=class extends Rn{constructor(){super({id:"editor.gotoNextFold",label:v("gotoNextFold.label","Go to Next Folding Range"),alias:"Go to Next Folding Range",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,weight:100}})}invoke(e,t,n){let r=this.getSelectedLines(n);if(r.length>0){let o=iG(r[0],t);o!==null&&n.setSelection({startLineNumber:o,startColumn:1,endLineNumber:o,endColumn:1})}}},u7=class extends Rn{constructor(){super({id:"editor.createFoldingRangeFromSelection",label:v("createManualFoldRange.label","Create Folding Range from Selection"),alias:"Create Folding Range from Selection",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2135),weight:100}})}invoke(e,t,n){var r;let o=[],s=n.getSelections();if(s){for(let a of s){let l=a.endLineNumber;a.endColumn===1&&--l,l>a.startLineNumber&&(o.push({startLineNumber:a.startLineNumber,endLineNumber:l,type:void 0,isCollapsed:!0,source:1}),n.setSelection({startLineNumber:a.startLineNumber,startColumn:1,endLineNumber:a.startLineNumber,endColumn:1}))}if(o.length>0){o.sort((l,c)=>l.startLineNumber-c.startLineNumber);let a=ur.sanitizeAndMerge(t.regions,o,(r=n.getModel())===null||r===void 0?void 0:r.getLineCount());t.updatePost(ur.fromFoldRanges(a))}}}},h7=class extends Rn{constructor(){super({id:"editor.removeManualFoldingRanges",label:v("removeManualFoldingRanges.label","Remove Manual Folding Ranges"),alias:"Remove Manual Folding Ranges",precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2137),weight:100}})}invoke(e,t,n){let r=n.getSelections();if(r){let o=[];for(let s of r){let{startLineNumber:a,endLineNumber:l}=s;o.push(l>=a?{startLineNumber:a,endLineNumber:l}:{endLineNumber:l,startLineNumber:a})}t.removeManualRanges(o),e.triggerFoldingModelChanged()}}};Ae(Za.ID,Za,0);X(XE);X(QE);X(JE);X(e7);X(s7);X(a7);X(t7);X(i7);X(n7);X(r7);X(o7);X(ZE);X(l7);X(c7);X(d7);X(u7);X(h7);for(let i=1;i<=7;i++)NR(new Gu({id:Gu.ID(i),label:v("foldLevelAction.label","Fold Level {0}",i),alias:`Fold Level ${i}`,precondition:Jn,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2048|21+i),weight:100}}));St.registerCommand("_executeFoldingRangeProvider",function(i,...e){return h0e(this,void 0,void 0,function*(){let[t]=e;if(!(t instanceof ft))throw Io();let n=i.get(be),r=i.get(Si).getModel(t);if(!r)throw Io();let o=i.get(Mt);if(!o.getValue("editor.folding",{resource:t}))return[];let s=i.get(Tt),a=o.getValue("editor.foldingStrategy",{resource:t}),l={get limit(){return o.getValue("editor.foldingMaximumRegions",{resource:t})},update:(p,m)=>{}},c=new Ku(r,s,l),d=c;if(a!=="indentation"){let p=Za.getFoldingRangeProviders(n,r);p.length&&(d=new qu(r,p,()=>{},l,c))}let u=yield d.compute(tt.None),h=[];try{if(u)for(let p=0;p{et();Doe();Re();f7=class extends se{constructor(){super({id:"editor.action.fontZoomIn",label:v("EditorFontZoomIn.label","Editor Font Zoom In"),alias:"Editor Font Zoom In",precondition:void 0})}run(e,t){vf.setZoomLevel(vf.getZoomLevel()+1)}},p7=class extends se{constructor(){super({id:"editor.action.fontZoomOut",label:v("EditorFontZoomOut.label","Editor Font Zoom Out"),alias:"Editor Font Zoom Out",precondition:void 0})}run(e,t){vf.setZoomLevel(vf.getZoomLevel()-1)}},m7=class extends se{constructor(){super({id:"editor.action.fontZoomReset",label:v("EditorFontZoomReset.label","Editor Font Zoom Reset"),alias:"Editor Font Zoom Reset",precondition:void 0})}run(e,t){vf.setZoomLevel(0)}};X(f7);X(p7);X(m7)});var y7=Ze($u=>{oi();gi();At();gl();Ce();et();Lr();pw();qe();Vt();fb();xt();Roe();Noe();Re();zi();pt();Et();Gc();var dG=$u&&$u.__decorate||function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},By=$u&&$u.__param||function(i,e){return function(t,n){e(t,n,i)}},b7=$u&&$u.__awaiter||function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},W0=class{constructor(e,t,n){this._editor=e,this._languageFeaturesService=t,this._workerService=n,this._disposables=new re,this._sessionDisposables=new re,this._disposables.add(t.onTypeFormattingEditProvider.onDidChange(this._update,this)),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(r=>{r.hasChanged(54)&&this._update()})),this._update()}dispose(){this._disposables.dispose(),this._sessionDisposables.dispose()}_update(){if(this._sessionDisposables.clear(),!this._editor.getOption(54)||!this._editor.hasModel())return;let e=this._editor.getModel(),[t]=this._languageFeaturesService.onTypeFormattingEditProvider.ordered(e);if(!t||!t.autoFormatTriggerCharacters)return;let n=new tu;for(let r of t.autoFormatTriggerCharacters)n.add(r.charCodeAt(0));this._sessionDisposables.add(this._editor.onDidType(r=>{let o=r.charCodeAt(r.length-1);n.has(o)&&this._trigger(String.fromCharCode(o))}))}_trigger(e){if(!this._editor.hasModel()||this._editor.getSelections().length>1||!this._editor.getSelection().isEmpty())return;let t=this._editor.getModel(),n=this._editor.getPosition(),r=new Ri,o=this._editor.onDidChangeModelContent(s=>{if(s.isFlush){r.cancel(),o.dispose();return}for(let a=0,l=s.changes.length;a{r.token.isCancellationRequested||ji(s)&&(jP.execute(this._editor,s,!0),WP(s))}).finally(()=>{o.dispose()})}};W0.ID="editor.contrib.autoFormat";W0=dG([By(1,be),By(2,Ml)],W0);var V0=class{constructor(e,t,n){this.editor=e,this._languageFeaturesService=t,this._instantiationService=n,this._callOnDispose=new re,this._callOnModel=new re,this._callOnDispose.add(e.onDidChangeConfiguration(()=>this._update())),this._callOnDispose.add(e.onDidChangeModel(()=>this._update())),this._callOnDispose.add(e.onDidChangeModelLanguage(()=>this._update())),this._callOnDispose.add(t.documentRangeFormattingEditProvider.onDidChange(this._update,this))}dispose(){this._callOnDispose.dispose(),this._callOnModel.dispose()}_update(){this._callOnModel.clear(),this.editor.getOption(53)&&this.editor.hasModel()&&this._languageFeaturesService.documentRangeFormattingEditProvider.has(this.editor.getModel())&&this._callOnModel.add(this.editor.onDidPaste(({range:e})=>this._trigger(e)))}_trigger(e){this.editor.hasModel()&&(this.editor.getSelections().length>1||this._instantiationService.invokeFunction(jw,this.editor,e,2,wa.None,tt.None).catch(lt))}};V0.ID="editor.contrib.formatOnPaste";V0=dG([By(1,be),By(2,Be)],V0);var v7=class extends se{constructor(){super({id:"editor.action.formatDocument",label:v("formatDocument.label","Format Document"),alias:"Format Document",precondition:ce.and(O.notInCompositeEditor,O.writable,O.hasDocumentFormattingProvider),kbOpts:{kbExpr:O.editorTextFocus,primary:1572,linux:{primary:3111},weight:100},contextMenuOpts:{group:"1_modification",order:1.3}})}run(e,t){return b7(this,void 0,void 0,function*(){if(t.hasModel()){let n=e.get(Be);yield e.get(El).showWhile(n.invokeFunction(VP,t,1,wa.None,tt.None),250)}})}},_7=class extends se{constructor(){super({id:"editor.action.formatSelection",label:v("formatSelection.label","Format Selection"),alias:"Format Selection",precondition:ce.and(O.writable,O.hasDocumentSelectionFormattingProvider),kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2084),weight:100},contextMenuOpts:{when:O.hasNonEmptySelection,group:"1_modification",order:1.31}})}run(e,t){return b7(this,void 0,void 0,function*(){if(!t.hasModel())return;let n=e.get(Be),r=t.getModel(),o=t.getSelections().map(a=>a.isEmpty()?new P(a.startLineNumber,1,a.startLineNumber,r.getLineMaxColumn(a.startLineNumber)):a);yield e.get(El).showWhile(n.invokeFunction(jw,t,o,1,wa.None,tt.None),250)})}};Ae(W0.ID,W0,2);Ae(V0.ID,V0,2);X(v7);X(_7);St.registerCommand("editor.action.format",i=>b7(void 0,void 0,void 0,function*(){let e=i.get(ei).getFocusedCodeEditor();if(!e||!e.hasModel())return;let t=i.get(ui);e.getSelection().isEmpty()?yield t.executeCommand("editor.action.formatDocument"):yield t.executeCommand("editor.action.formatSelection")}))});var cp,yd,jo,lc=M(()=>{cp=class{constructor(e,t,n,r){this.priority=e,this.range=t,this.initialMousePosX=n,this.initialMousePosY=r,this.type=1}equals(e){return e.type===1&&this.range.equalsRange(e.range)}canAdoptVisibleHover(e,t){return e.type===1&&t.lineNumber===this.range.startLineNumber}},yd=class{constructor(e,t,n,r,o,s){this.priority=e,this.owner=t,this.range=n,this.initialMousePosX=r,this.initialMousePosY=o,this.supportsMarkerHover=s,this.type=2}equals(e){return e.type===2&&this.owner===e.owner}canAdoptVisibleHover(e,t){return e.type===2&&this.owner===e.owner}},jo=new class{constructor(){this._participants=[]}register(e){this._participants.push(e)}getAll(){return this._participants}}});function hG(i){uG=i}function Cs(){return uG}function f0e(i){let e=new Array,n={},r="";function o(a){if("length"in a)for(let l of a)l&&o(l);else"text"in a?(r+=`%c${a.text}`,e.push(a.style),a.data&&Object.assign(n,a.data)):"data"in a&&Object.assign(n,a.data)}o(i);let s=[r,...e];return Object.keys(n).length>0&&s.push(n),s}function Hy(i){return el(i,{color:"black"})}function K0(i){return el(v0e(`${i}: `,10),{color:"black",bold:!0})}function el(i,e={color:"black"}){function t(r){return Object.entries(r).reduce((o,[s,a])=>`${o}${s}:${a};`,"")}let n={color:e.color};return e.strikeThrough&&(n["text-decoration"]="line-through"),e.bold&&(n["font-weight"]="bold"),{text:i,style:t(n)}}function Uy(i,e){switch(typeof i){case"number":return""+i;case"string":return i.length+2<=e?`"${i}"`:`"${i.substr(0,e-7)}"+...`;case"boolean":return i?"true":"false";case"undefined":return"undefined";case"object":return i===null?"null":Array.isArray(i)?p0e(i,e):m0e(i,e);case"symbol":return i.toString();case"function":return`[[Function${i.name?" "+i.name:""}]]`;default:return""+i}}function p0e(i,e){let t="[ ",n=!0;for(let r of i){if(n||(t+=", "),t.length-5>e){t+="...";break}n=!1,t+=`${Uy(r,e-t.length)}`}return t+=" ]",t}function m0e(i,e){let t="{ ",n=!0;for(let[r,o]of Object.entries(i)){if(n||(t+=", "),t.length-5>e){t+="...";break}n=!1,t+=`${r}: ${Uy(o,e-t.length)}`}return t+=" }",t}function g0e(i,e){let t="";for(let n=1;n<=e;n++)t+=i;return t}function v0e(i,e){for(;i.length{zy=class{constructor(){this.indentation=0,this.changedObservablesSets=new WeakMap}textToConsoleArgs(e){return f0e([Hy(g0e("| ",this.indentation)),e])}formatInfo(e){return e.didChange?[Hy(" "),el(Uy(e.oldValue,70),{color:"red",strikeThrough:!0}),Hy(" "),el(Uy(e.newValue,60),{color:"green"})]:[Hy(" (unchanged)")]}handleObservableChanged(e,t){console.log(...this.textToConsoleArgs([K0("observable value changed"),el(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}formatChanges(e){if(e.size!==0)return el(" (changed deps: "+[...e].map(t=>t.debugName).join(", ")+")",{color:"gray"})}handleDerivedCreated(e){let t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(n,r)=>(this.changedObservablesSets.get(e).add(n),t.apply(e,[n,r]))}handleDerivedRecomputed(e,t){let n=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([K0("derived recomputed"),el(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t),this.formatChanges(n)])),n.clear()}handleFromEventObservableTriggered(e,t){console.log(...this.textToConsoleArgs([K0("observable from event triggered"),el(e.debugName,{color:"BlueViolet"}),...this.formatInfo(t)]))}handleAutorunCreated(e){let t=e.handleChange;this.changedObservablesSets.set(e,new Set),e.handleChange=(n,r)=>(this.changedObservablesSets.get(e).add(n),t.apply(e,[n,r]))}handleAutorunTriggered(e){let t=this.changedObservablesSets.get(e);console.log(...this.textToConsoleArgs([K0("autorun"),el(e.debugName,{color:"BlueViolet"}),this.formatChanges(t)])),t.clear()}handleBeginTransaction(e){let t=e.getDebugName();t===void 0&&(t=""),console.log(...this.textToConsoleArgs([K0("transaction"),el(t,{color:"BlueViolet"})])),this.indentation++}handleEndTransaction(){this.indentation--}}});function pG(i){fG=i}function dn(i,e){var t,n;let r=new jy(i,e);try{(t=Cs())===null||t===void 0||t.handleBeginTransaction(r),i(r)}finally{r.finish(),(n=Cs())===null||n===void 0||n.handleEndTransaction()}}function S7(i,e,t){i?e(i):dn(e,t)}function Vy(i){let e=i.toString(),n=/\/\*\*\s*@description\s*([^*]*)\*\//.exec(e),r=n?n[1]:void 0;return r==null?void 0:r.trim()}function Gs(i,e){return new Wy(i,e)}function G0(i,e){return new C7(i,e)}var fG,q0,cc,jy,Wy,C7,Yu=M(()=>{dp();q0=class{get TChange(){return null}reportChanges(){this.get()}read(e){return e?e.readObservable(this):this.get()}map(e){return fG(()=>{let t=Vy(e);return t!==void 0?t:`${this.debugName} (mapped)`},t=>e(this.read(t),t))}},cc=class extends q0{constructor(){super(...arguments),this.observers=new Set}addObserver(e){let t=this.observers.size;this.observers.add(e),t===0&&this.onFirstObserverAdded()}removeObserver(e){this.observers.delete(e)&&this.observers.size===0&&this.onLastObserverRemoved()}onFirstObserverAdded(){}onLastObserverRemoved(){}};jy=class{constructor(e,t){this.fn=e,this._getDebugName=t,this.updatingObservers=[]}getDebugName(){return this._getDebugName?this._getDebugName():Vy(this.fn)}updateObserver(e,t){this.updatingObservers.push({observer:e,observable:t}),e.beginUpdate(t)}finish(){let e=this.updatingObservers;this.updatingObservers=null;for(let{observer:t,observable:n}of e)t.endUpdate(n)}};Wy=class extends cc{constructor(e,t){super(),this.debugName=e,this._value=t}get(){return this._value}set(e,t,n){var r;if(this._value===e)return;let o;t||(t=o=new jy(()=>{},()=>`Setting ${this.debugName}`));try{let s=this._value;this._setValue(e),(r=Cs())===null||r===void 0||r.handleObservableChanged(this,{oldValue:s,newValue:e,change:n,didChange:!0});for(let a of this.observers)t.updateObserver(a,this),a.handleChange(this,n)}finally{o&&o.finish()}}toString(){return`${this.debugName}: ${this._value}`}_setValue(e){this._value=e}};C7=class extends Wy{_setValue(e){this._value!==e&&(this._value&&this._value.dispose(),this._value=e)}dispose(){var e;(e=this._value)===null||e===void 0||e.dispose()}}});function xr(i,e){return new Ky(i,e,void 0,void 0)}function mG(i,e,t){return new Ky(i,t,e.createEmptyChangeSummary,e.handleChange)}var Ky,w7=M(()=>{At();Yu();dp();pG(xr);Ky=class extends cc{get debugName(){return typeof this._debugName=="function"?this._debugName():this._debugName}constructor(e,t,n,r){var o,s;super(),this._debugName=e,this.computeFn=t,this.createChangeSummary=n,this._handleChange=r,this.state=0,this.value=void 0,this.updateCount=0,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=void 0,this.changeSummary=(o=this.createChangeSummary)===null||o===void 0?void 0:o.call(this),(s=Cs())===null||s===void 0||s.handleDerivedCreated(this)}onLastObserverRemoved(){this.state=0,this.value=void 0;for(let e of this.dependencies)e.removeObserver(this);this.dependencies.clear()}get(){var e;if(this.observers.size===0){let t=this.computeFn(this,(e=this.createChangeSummary)===null||e===void 0?void 0:e.call(this));return this.onLastObserverRemoved(),t}else{do{if(this.state===1){this.state=3;for(let t of this.dependencies)if(t.reportChanges(),this.state===2)break}this._recomputeIfNeeded()}while(this.state!==3);return this.value}}_recomputeIfNeeded(){var e,t;if(this.state===3)return;let n=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=n;let r=this.state!==0,o=this.value;this.state=3;let s=this.changeSummary;this.changeSummary=(e=this.createChangeSummary)===null||e===void 0?void 0:e.call(this);try{this.value=this.computeFn(this,s)}finally{for(let l of this.dependenciesToBeRemoved)l.removeObserver(this);this.dependenciesToBeRemoved.clear()}let a=r&&o!==this.value;if((t=Cs())===null||t===void 0||t.handleDerivedRecomputed(this,{oldValue:o,newValue:this.value,change:void 0,didChange:a}),a)for(let l of this.observers)l.handleChange(this,void 0)}toString(){return`LazyDerived<${this.debugName}>`}beginUpdate(e){this.updateCount++;let t=this.updateCount===1;if(this.state===3&&(this.state=1,!t))for(let n of this.observers)n.handlePossibleChange(this);if(t)for(let n of this.observers)n.beginUpdate(this)}endUpdate(e){if(this.updateCount--,this.updateCount===0){let t=[...this.observers];for(let n of t)n.endUpdate(this)}if(this.updateCount<0)throw new Qd}handlePossibleChange(e){if(this.state===3&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){this.state=1;for(let t of this.observers)t.handlePossibleChange(this)}}handleChange(e,t){if(this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)){let n=this._handleChange?this._handleChange({changedObservable:e,change:t,didChange:o=>o===e},this.changeSummary):!0,r=this.state===3;if(n&&(this.state===1||r)&&(this.state=2,r))for(let o of this.observers)o.handlePossibleChange(this)}}readObservable(e){e.addObserver(this);let t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}addObserver(e){let t=!this.observers.has(e)&&this.updateCount>0;super.addObserver(e),t&&e.beginUpdate(this)}removeObserver(e){let t=this.observers.has(e)&&this.updateCount>0;super.removeObserver(e),t&&e.endUpdate(this)}}});function un(i,e){return new qy(i,e,void 0,void 0)}function gG(i,e){return vG(e,i)}function vG(i,e){let t=new re,n=un(e,r=>{t.clear(),i(r,t)});return Ft(()=>{n.dispose(),t.dispose()})}var qy,x7=M(()=>{MR();Ce();dp();qy=class{constructor(e,t,n,r){var o,s;this.debugName=e,this.runFn=t,this.createChangeSummary=n,this._handleChange=r,this.state=2,this.updateCount=0,this.disposed=!1,this.dependencies=new Set,this.dependenciesToBeRemoved=new Set,this.changeSummary=(o=this.createChangeSummary)===null||o===void 0?void 0:o.call(this),(s=Cs())===null||s===void 0||s.handleAutorunCreated(this),this._runIfNeeded()}dispose(){this.disposed=!0;for(let e of this.dependencies)e.removeObserver(this);this.dependencies.clear()}_runIfNeeded(){var e,t;if(this.state===3)return;let n=this.dependenciesToBeRemoved;this.dependenciesToBeRemoved=this.dependencies,this.dependencies=n,this.state=3,(e=Cs())===null||e===void 0||e.handleAutorunTriggered(this);try{let r=this.changeSummary;this.changeSummary=(t=this.createChangeSummary)===null||t===void 0?void 0:t.call(this),this.runFn(this,r)}finally{for(let r of this.dependenciesToBeRemoved)r.removeObserver(this);this.dependenciesToBeRemoved.clear()}}toString(){return`Autorun<${this.debugName}>`}beginUpdate(){this.state===3&&(this.state=1),this.updateCount++}endUpdate(){if(this.updateCount===1)do{if(this.state===1){this.state=3;for(let e of this.dependencies)if(e.reportChanges(),this.state===2)break}this._runIfNeeded()}while(this.state!==3);this.updateCount--,LR(()=>this.updateCount>=0)}handlePossibleChange(e){this.state===3&&this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(this.state=1)}handleChange(e,t){this.dependencies.has(e)&&!this.dependenciesToBeRemoved.has(e)&&(!this._handleChange||this._handleChange({changedObservable:e,change:t,didChange:r=>r===e},this.changeSummary))&&(this.state=2)}readObservable(e){if(this.disposed)return e.get();e.addObserver(this);let t=e.get();return this.dependencies.add(e),this.dependenciesToBeRemoved.delete(e),t}};(function(i){i.Observer=qy})(un||(un={}))});function $y(i){return new E7(i)}function $s(i,e){return new Gy(i,e)}function _G(i,e){return new T7(i,e)}function bG(i){return new k7(i)}function yG(i,e){let t=new I7(e!=null?e:!1);return i.addObserver(t),e&&i.reportChanges(),Ft(()=>{i.removeObserver(t)})}var E7,Gy,T7,k7,I7,CG=M(()=>{Ce();Yu();dp();E7=class extends q0{constructor(e){super(),this.value=e}get debugName(){return this.toString()}get(){return this.value}addObserver(e){}removeObserver(e){}toString(){return`Const: ${this.value}`}};Gy=class extends cc{constructor(e,t){super(),this.event=e,this.getValue=t,this.hasValue=!1,this.handleEvent=n=>{var r;let o=this.getValue(n),s=!this.hasValue||this.value!==o;(r=Cs())===null||r===void 0||r.handleFromEventObservableTriggered(this,{oldValue:this.value,newValue:o,change:void 0,didChange:s}),s&&(this.value=o,this.hasValue&&dn(a=>{for(let l of this.observers)a.updateObserver(l,this),l.handleChange(this,void 0)},()=>{let a=this.getDebugName();return"Event fired"+(a?`: ${a}`:"")}),this.hasValue=!0)}}getDebugName(){return Vy(this.getValue)}get debugName(){let e=this.getDebugName();return"From Event"+(e?`: ${e}`:"")}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0,this.hasValue=!1,this.value=void 0}get(){return this.subscription?(this.hasValue||this.handleEvent(void 0),this.value):this.getValue(void 0)}};(function(i){i.Observer=Gy})($s||($s={}));T7=class extends cc{constructor(e,t){super(),this.debugName=e,this.event=t,this.handleEvent=()=>{dn(n=>{for(let r of this.observers)n.updateObserver(r,this),r.handleChange(this,void 0)},()=>this.debugName)}}onFirstObserverAdded(){this.subscription=this.event(this.handleEvent)}onLastObserverRemoved(){this.subscription.dispose(),this.subscription=void 0}get(){}};k7=class extends cc{constructor(e){super(),this.debugName=e}trigger(e,t){if(!e){dn(n=>{this.trigger(n,t)},()=>`Trigger signal ${this.debugName}`);return}for(let n of this.observers)e.updateObserver(n,this),n.handleChange(this,t)}get(){}};I7=class{constructor(e){this.forceRecompute=e,this.counter=0}beginUpdate(e){this.counter++}endUpdate(e){this.counter--,this.counter===0&&this.forceRecompute&&e.reportChanges()}handlePossibleChange(e){}handleChange(e,t){}}});var _0e,Ys=M(()=>{Yu();w7();x7();CG();dp();_0e=!1;_0e&&hG(new zy)});var Yy,Xy,Qy,Jy=M(()=>{Yy="editor.action.inlineSuggest.commit",Xy="editor.action.inlineSuggest.showPrevious",Qy="editor.action.inlineSuggest.showNext"});var In,Zy=M(()=>{Ys();wi();Kre();pt();Ce();Re();In=class i extends oe{constructor(e,t){super(),this.contextKeyService=e,this.model=t,this.inlineCompletionVisible=i.inlineSuggestionVisible.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentation=i.inlineSuggestionHasIndentation.bindTo(this.contextKeyService),this.inlineCompletionSuggestsIndentationLessThanTabSize=i.inlineSuggestionHasIndentationLessThanTabSize.bindTo(this.contextKeyService),this.suppressSuggestions=i.suppressSuggestions.bindTo(this.contextKeyService),this._register(un("update context key: inlineCompletionVisible, suppressSuggestions",n=>{let r=this.model.read(n),o=r==null?void 0:r.selectedInlineCompletion.read(n),s=r==null?void 0:r.ghostText.read(n),a=r==null?void 0:r.selectedSuggestItem.read(n);this.inlineCompletionVisible.set(a===void 0&&s!==void 0&&!s.isEmpty()),s&&o&&this.suppressSuggestions.set(o.inlineCompletion.source.inlineCompletions.suppressSuggestions)})),this._register(un("update context key: inlineCompletionSuggestsIndentation, inlineCompletionSuggestsIndentationLessThanTabSize",n=>{let r=this.model.read(n),o=!1,s=!0,a=r==null?void 0:r.ghostText.read(n);if(r!=null&&r.selectedSuggestItem&&a&&a.parts.length>0){let{column:l,lines:c}=a.parts[0],d=c[0],u=r.textModel.getLineIndentColumn(a.lineNumber);if(l<=u){let p=Lm(d);p===-1&&(p=d.length-1),o=p>0;let m=r.textModel.getOptions().tabSize;s=RR.visibleColumnFromColumn(d,p+1,m){});var wG=M(()=>{SG()});function xG(i,e){let t=new A7(i),n=e.map(r=>{let o=P.lift(r.range);return{startOffset:t.getOffset(o.getStartPosition()),endOffset:t.getOffset(o.getEndPosition()),text:r.text}});n.sort((r,o)=>o.startOffset-r.startOffset);for(let r of n)i=i.substring(0,r.startOffset)+r.text+i.substring(r.endOffset);return i}function EG(){return b0e}function TG(i,e){let t=new re,n=i.createDecorationsCollection();return t.add(un(`Apply decorations from ${e.debugName}`,r=>{let o=e.read(r);n.set(o)})),t.add({dispose:()=>{n.clear()}}),t}function $0(i,e){return new Se(i.lineNumber+e.lineNumber-1,e.lineNumber===1?i.column+e.column-1:e.column)}function Y0(i){let e=1,t=1;for(let n of i)n===` +`?(e++,t=1):t++;return new Se(e,t)}var A7,b0e,e2,up=M(()=>{At();Ce();Ys();ri();qe();A7=class{constructor(e){this.lineStartOffsetByLineIdx=[],this.lineStartOffsetByLineIdx.push(0);for(let t=0;tt)throw new Qd(`startColumn ${e} cannot be after endColumnExclusive ${t}`)}toRange(e){return new P(e,this.startColumn,e,this.endColumnExclusive)}}});var hp,fp,t2,i2=M(()=>{up();hp=class{constructor(e,t){this.lineNumber=e,this.parts=t}renderForScreenReader(e){if(this.parts.length===0)return"";let t=this.parts[this.parts.length-1],n=e.substr(0,t.column-1);return xG(n,this.parts.map(o=>({range:{startLineNumber:1,endLineNumber:1,startColumn:o.column,endColumn:o.column},text:o.lines.join(` +`)}))).substring(this.parts[0].column-1)}isEmpty(){return this.parts.every(e=>e.lines.length===0)}get lineCount(){return 1+this.parts.reduce((e,t)=>e+t.lines.length-1,0)}},fp=class{constructor(e,t,n){this.column=e,this.lines=t,this.preview=n}},t2=class{constructor(e,t,n,r=0){this.lineNumber=e,this.columnRange=t,this.newLines=n,this.additionalReservedLineCount=r,this.parts=[new fp(this.columnRange.endColumnExclusive,this.newLines,!1)]}renderForScreenReader(e){return this.newLines.join(` +`)}get lineCount(){return this.newLines.length}isEmpty(){return this.parts.every(e=>e.lines.length===0)}}});function S0e(i,e,t,n,r){let o=n.get(31),s=n.get(113),a="none",l=n.get(90),c=n.get(49),d=n.get(48),u=n.get(64),h=new A_(1e4);h.appendString('
');for(let g=0,b=t.length;g');let N=y_(k),A=kR(k),B=sP.createEmpty(k,r);vb(new gb(d.isMonospace&&!o,d.canUseHalfwidthRightwardsArrow,k,!1,N,A,0,B,S.decorations,e,0,d.spaceWidth,d.middotWidth,d.wsmiddotWidth,s,a,l,c!==cP.OFF,null),h),h.appendString("
")}h.appendString("
"),mb(i,d);let p=h.build(),m=kG?kG.createHTML(p):p;i.innerHTML=m}var y0e,C0e,n2,L7,kG,IG=M(()=>{Ww();Gt();Ce();Ys();wi();wG();qP();Xm();ri();qe();$R();os();Kc();foe();GP();$P();i2();up();y0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},C0e=function(i,e){return function(t,n){e(t,n,i)}},n2=class extends oe{constructor(e,t,n){super(),this.editor=e,this.model=t,this.languageService=n,this.isDisposed=Gs("isDisposed",!1),this.currentTextModel=$s(this.editor.onDidChangeModel,()=>this.editor.getModel()),this.uiState=xr("uiState",r=>{if(this.isDisposed.read(r))return;let o=this.currentTextModel.read(r);if(o!==this.model.targetTextModel.read(r))return;let s=this.model.ghostText.read(r);if(!s)return;let a=s instanceof t2?s.columnRange:void 0,l=[],c=[];function d(g,b){if(c.length>0){let S=c[c.length-1];b&&S.decorations.push(new t1(S.content.length+1,S.content.length+1+g[0].length,b,0)),S.content+=g[0],g=g.slice(1)}for(let S of g)c.push({content:S,decorations:b?[new t1(1,S.length+1,b,0)]:[]})}let u=o.getLineContent(s.lineNumber),h,p=0;for(let g of s.parts){let b=g.lines;h===void 0?(l.push({column:g.column,text:b[0],preview:g.preview}),b=b.slice(1)):d([u.substring(p,g.column-1)],void 0),b.length>0&&(d(b,"ghost-text"),h===void 0&&g.column<=u.length&&(h=g.column)),p=g.column-1}h!==void 0&&d([u.substring(p)],void 0);let m=h!==void 0?new e2(h,u.length+1):void 0;return{replacedRange:a,inlineTexts:l,additionalLines:c,hiddenRange:m,lineNumber:s.lineNumber,additionalReservedLineCount:this.model.minReservedLineCount.read(r),targetTextModel:o}}),this.decorations=xr("decorations",r=>{let o=this.uiState.read(r);if(!o)return[];let s=[];o.replacedRange&&s.push({range:o.replacedRange.toRange(o.lineNumber),options:{inlineClassName:"inline-completion-text-to-replace",description:"GhostTextReplacement"}}),o.hiddenRange&&s.push({range:o.hiddenRange.toRange(o.lineNumber),options:{inlineClassName:"ghost-text-hidden",description:"ghost-text-hidden"}});for(let a of o.inlineTexts)s.push({range:P.fromPositions(new Se(o.lineNumber,a.column)),options:{description:"ghost-text",after:{content:a.text,inlineClassName:a.preview?"ghost-text-decoration-preview":"ghost-text-decoration",cursorStops:ou.Left},showIfCollapsed:!0}});return s}),this.additionalLinesWidget=this._register(new L7(this.editor,this.languageService.languageIdCodec,xr("lines",r=>{let o=this.uiState.read(r);return o?{lineNumber:o.lineNumber,additionalLines:o.additionalLines,minReservedLineCount:o.additionalReservedLineCount,targetTextModel:o.targetTextModel}:void 0}))),this._register(Ft(()=>{this.isDisposed.set(!0,void 0)})),this._register(TG(this.editor,this.decorations))}ownsViewZone(e){return this.additionalLinesWidget.viewZoneId===e}};n2=y0e([C0e(2,Qi)],n2);L7=class extends oe{get viewZoneId(){return this._viewZoneId}constructor(e,t,n){super(),this.editor=e,this.languageIdCodec=t,this.lines=n,this._viewZoneId=void 0,this.editorOptionsChanged=_G("editorOptionChanged",li.filter(this.editor.onDidChangeConfiguration,r=>r.hasChanged(31)||r.hasChanged(113)||r.hasChanged(95)||r.hasChanged(90)||r.hasChanged(49)||r.hasChanged(48)||r.hasChanged(64))),this._register(un("update view zone",r=>{let o=this.lines.read(r);this.editorOptionsChanged.read(r),o?this.updateLines(o.lineNumber,o.additionalLines,o.minReservedLineCount):this.clear()}))}dispose(){super.dispose(),this.clear()}clear(){this.editor.changeViewZones(e=>{this._viewZoneId&&(e.removeZone(this._viewZoneId),this._viewZoneId=void 0)})}updateLines(e,t,n){let r=this.editor.getModel();if(!r)return;let{tabSize:o}=r.getOptions();this.editor.changeViewZones(s=>{this._viewZoneId&&(s.removeZone(this._viewZoneId),this._viewZoneId=void 0);let a=Math.max(t.length,n);if(a>0){let l=document.createElement("div");S0e(l,o,t,this.editor.getOptions(),this.languageIdCodec),this._viewZoneId=s.addZone({afterLineNumber:e,heightInLines:a,domNode:l,afterColumnAffinity:1})}})}};kG=_f("editorGhostText",{createHTML:i=>i})});var AG=M(()=>{});var LG=M(()=>{AG()});var MG=M(()=>{});var DG=M(()=>{MG()});var w0e,r2,X0,NG=M(()=>{gf();Ooe();Pc();or();Kr();Gt();Ce();Mi();DG();Re();w0e=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},r2=class extends oe{constructor(e,t,n={orientation:0}){super(),this.submenuActionViewItems=[],this.hasSecondaryActions=!1,this._onDidChangeDropdownVisibility=this._register(new eR),this.onDidChangeDropdownVisibility=this._onDidChangeDropdownVisibility.event,this.disposables=new re,this.options=n,this.lookupKeybindings=typeof this.options.getKeyBinding=="function",this.toggleMenuAction=this._register(new X0(()=>{var r;return(r=this.toggleMenuActionViewItem)===null||r===void 0?void 0:r.show()},n.toggleMenuTitle)),this.element=document.createElement("div"),this.element.className="monaco-toolbar",e.appendChild(this.element),this.actionBar=this._register(new Oo(this.element,{orientation:n.orientation,ariaLabel:n.ariaLabel,actionRunner:n.actionRunner,allowContextMenu:n.allowContextMenu,actionViewItemProvider:(r,o)=>{var s;if(r.id===X0.ID)return this.toggleMenuActionViewItem=new Vw(r,r.menuActions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:gt.asClassNameArray((s=n.moreIcon)!==null&&s!==void 0?s:ct.toolBarMore),anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement}),this.toggleMenuActionViewItem.setActionContext(this.actionBar.context),this.disposables.add(this._onDidChangeDropdownVisibility.add(this.toggleMenuActionViewItem.onDidChangeVisibility)),this.toggleMenuActionViewItem;if(n.actionViewItemProvider){let a=n.actionViewItemProvider(r,o);if(a)return a}if(r instanceof Am){let a=new Vw(r,r.actions,t,{actionViewItemProvider:this.options.actionViewItemProvider,actionRunner:this.actionRunner,keybindingProvider:this.options.getKeyBinding,classNames:r.class,anchorAlignmentProvider:this.options.anchorAlignmentProvider,menuAsChild:!!this.options.renderDropdownAsChildElement});return a.setActionContext(this.actionBar.context),this.submenuActionViewItems.push(a),this.disposables.add(this._onDidChangeDropdownVisibility.add(a.onDidChangeVisibility)),a}}}))}set actionRunner(e){this.actionBar.actionRunner=e}get actionRunner(){return this.actionBar.actionRunner}getElement(){return this.element}getItemAction(e){return this.actionBar.getAction(e)}setActions(e,t){this.clear();let n=e?e.slice(0):[];this.hasSecondaryActions=!!(t&&t.length>0),this.hasSecondaryActions&&t&&(this.toggleMenuAction.menuActions=t.slice(0),n.push(this.toggleMenuAction)),n.forEach(r=>{this.actionBar.push(r,{icon:!0,label:!1,keybinding:this.getKeybindingLabel(r)})})}getKeybindingLabel(e){var t,n;let r=this.lookupKeybindings?(n=(t=this.options).getKeyBinding)===null||n===void 0?void 0:n.call(t,e):void 0;return Un(r==null?void 0:r.getLabel())}clear(){this.submenuActionViewItems=[],this.disposables.clear(),this.actionBar.clear()}dispose(){this.clear(),super.dispose()}},X0=class i extends is{constructor(e,t){t=t||v("moreActions","More Actions..."),super(i.ID,t,void 0,!0),this._menuActions=[],this.toggleDropdownMenu=e}run(){return w0e(this,void 0,void 0,function*(){this.toggleDropdownMenu()})}get menuActions(){return this._menuActions}set menuActions(e){this._menuActions=e}};X0.ID="toolbar.toggle.more"});var x0e,Q0,o2,RG=M(()=>{Bt();NG();Pc();oi();Ce();Re();Xi();pt();Tl();Gn();Hc();x0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Q0=function(i,e){return function(t,n){e(t,n,i)}},o2=class extends r2{constructor(e,t,n,r,o,s,a){super(e,o,Object.assign(Object.assign({getKeyBinding:l=>{var c;return(c=s.lookupKeybinding(l.id))!==null&&c!==void 0?c:void 0}},t),{allowContextMenu:!0})),this._options=t,this._menuService=n,this._contextKeyService=r,this._contextMenuService=o,this._sessionDisposables=this._store.add(new re),t!=null&&t.telemetrySource&&this._store.add(this.actionBar.onDidRun(l=>a.publicLog2("workbenchActionExecuted",{id:l.action.id,from:t.telemetrySource})))}setActions(e,t=[],n){var r,o,s;this._sessionDisposables.clear();let a=e.slice(),l=t.slice(),c=[],d=0,u=[],h=!1;if(((r=this._options)===null||r===void 0?void 0:r.hiddenItemStrategy)!==-1)for(let p=0;p=this._options.maxNumberOfItems&&(a[m]=void 0,u[m]=g)}}gw(a),gw(u),super.setActions(a,Is.join(u,l)),c.length>0&&this._sessionDisposables.add(Rt(this.getElement(),"contextmenu",p=>{var m,g,b,S;let k=this.getItemAction(p.target);if(!k)return;p.preventDefault(),p.stopPropagation();let N=!1;if(d===1&&((m=this._options)===null||m===void 0?void 0:m.hiddenItemStrategy)===0){N=!0;for(let j=0;jthis._menuService.resetHiddenStates(n)}))),this._contextMenuService.showContextMenu({getAnchor:()=>p,getActions:()=>B,menuId:(b=this._options)===null||b===void 0?void 0:b.contextMenu,menuActionOptions:Object.assign({renderShortTitle:!0},(S=this._options)===null||S===void 0?void 0:S.menuOptions),contextKeyService:this._contextKeyService})}))}};o2=x0e([Q0(2,As),Q0(3,Ke),Q0(4,ls),Q0(5,Ht),Q0(6,Dr)],o2)});var R7,Xs,s2,E0e,T0e,Qs,D7,N7,a2=M(()=>{Bt();gf();xP();Pc();oi();Dt();or();Ce();Ys();x7();nr();Kr();LG();ri();br();Jy();Re();yb();RG();Xi();zi();pt();Tl();Et();Gn();Hc();Ll();R7=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Xs=function(i,e){return function(t,n){e(t,n,i)}},s2=class extends oe{constructor(e,t,n){super(),this.editor=e,this.model=t,this.instantiationService=n,this.alwaysShowToolbar=$s(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(60).showToolbar==="always"),this.sessionPosition=void 0,this.position=xr("position",r=>{var o,s,a;let l=(o=this.model.read(r))===null||o===void 0?void 0:o.ghostText.read(r);if(!this.alwaysShowToolbar.read(r)||!l||l.parts.length===0)return this.sessionPosition=void 0,null;let c=l.parts[0].column;this.sessionPosition&&this.sessionPosition.lineNumber!==l.lineNumber&&(this.sessionPosition=void 0);let d=new Se(l.lineNumber,Math.min(c,(a=(s=this.sessionPosition)===null||s===void 0?void 0:s.column)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER));return this.sessionPosition=d,d}),this._register(gG("setup content widget",(r,o)=>{let s=this.model.read(r);if(!s||!this.alwaysShowToolbar.read(r))return;let a=o.add(this.instantiationService.createInstance(Qs,this.editor,!0,this.position,s.selectedInlineCompletionIndex,s.inlineCompletionsCount,s.selectedInlineCompletion.map(l=>{var c;return(c=l==null?void 0:l.inlineCompletion.source.inlineCompletions.commands)!==null&&c!==void 0?c:[]})));e.addContentWidget(a),o.add(Ft(()=>e.removeContentWidget(a))),o.add(un("request explicit",l=>{this.position.read(l)&&s.lastTriggerKind.read(l)!==ya.Explicit&&s.triggerExplicitly()}))}))}};s2=R7([Xs(2,Be)],s2);E0e=Ti("inline-suggestion-hints-next",ct.chevronRight,v("parameterHintsNextIcon","Icon for show next parameter hint.")),T0e=Ti("inline-suggestion-hints-previous",ct.chevronLeft,v("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),Qs=class M7 extends oe{static get dropDownVisible(){return this._dropDownVisible}createCommandAction(e,t,n){let r=new is(e,t,n,!0,()=>this._commandService.executeCommand(e)),o=this.keybindingService.lookupKeybinding(e,this._contextKeyService),s=t;return o&&(s=v({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",t,o.getLabel())),r.tooltip=s,r}constructor(e,t,n,r,o,s,a,l,c,d,u){super(),this.editor=e,this.withBorder=t,this._position=n,this._currentSuggestionIdx=r,this._suggestionCount=o,this._extraCommands=s,this._commandService=a,this.keybindingService=c,this._contextKeyService=d,this._menuService=u,this.id=`InlineSuggestionHintsContentWidget${M7.id++}`,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this.nodes=$h("div.inlineSuggestionsHints",{className:this.withBorder?".withBorder":""},[$h("div",{style:{display:"flex"}},[$h("div@actionBar",{className:"custom-actions"}),$h("div@toolBar")])]),this.previousAction=this.createCommandAction(Xy,v("previous","Previous"),gt.asClassName(T0e)),this.availableSuggestionCountAction=new is("inlineSuggestionHints.availableSuggestionCount","",void 0,!1),this.nextAction=this.createCommandAction(Qy,v("next","Next"),gt.asClassName(E0e)),this.inlineCompletionsActionsMenus=this._register(this._menuService.createMenu(xe.InlineCompletionsActions,this._contextKeyService)),this.clearAvailableSuggestionCountLabelDebounced=this._register(new ii(()=>{this.availableSuggestionCountAction.label=""},100)),this.disableButtonsDebounced=this._register(new ii(()=>{this.previousAction.enabled=this.nextAction.enabled=!1},100)),this.lastCommands=[];let h=this._register(new Oo(this.nodes.actionBar));h.push(this.previousAction,{icon:!0,label:!1}),h.push(this.availableSuggestionCountAction),h.push(this.nextAction,{icon:!0,label:!1}),this.toolBar=this._register(l.createInstance(N7,this.nodes.toolBar,xe.InlineSuggestionToolbar,{menuOptions:{renderShortTitle:!0},toolbarOptions:{primaryGroup:p=>p.startsWith("primary")},actionViewItemProvider:(p,m)=>p instanceof da?l.createInstance(D7,p,void 0):void 0,telemetrySource:"InlineSuggestionToolbar"})),this._register(this.toolBar.onDidChangeDropdownVisibility(p=>{M7._dropDownVisible=p})),this._register(un("update position",p=>{this._position.read(p),this.editor.layoutContentWidget(this)})),this._register(un("counts",p=>{let m=this._suggestionCount.read(p),g=this._currentSuggestionIdx.read(p);m!==void 0?(this.clearAvailableSuggestionCountLabelDebounced.cancel(),this.availableSuggestionCountAction.label=`${g+1}/${m}`):this.clearAvailableSuggestionCountLabelDebounced.schedule(),m!==void 0&&m>1?(this.disableButtonsDebounced.cancel(),this.previousAction.enabled=this.nextAction.enabled=!0):this.disableButtonsDebounced.schedule()})),this._register(un("extra commands",p=>{let m=this._extraCommands.read(p);if(ha(this.lastCommands,m))return;this.lastCommands=m;let g=m.map(b=>({class:void 0,id:b.id,enabled:!0,tooltip:b.tooltip||"",label:b.title,run:S=>this._commandService.executeCommand(b.id)}));for(let[b,S]of this.inlineCompletionsActionsMenus.getActions())for(let k of S)k instanceof da&&g.push(k);g.length>0&&g.unshift(new Is),this.toolBar.setAdditionalSecondaryActions(g)}))}getId(){return this.id}getDomNode(){return this.nodes.root}getPosition(){return{position:this._position.get(),preference:[1,2],positionAffinity:3}}};Qs._dropDownVisible=!1;Qs.id=0;Qs=R7([Xs(6,ui),Xs(7,Be),Xs(8,Ht),Xs(9,Ke),Xs(10,As)],Qs);D7=class extends bb{updateLabel(){let e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();if(this.label){let t=$h("div.keybinding").root;new nb(t,p_,Object.assign({disableTitle:!0},wP)).set(e),this.label.textContent=this._action.label,this.label.appendChild(t),this.label.classList.add("inlineSuggestionStatusBarItemLabel")}}},N7=class extends o2{constructor(e,t,n,r,o,s,a,l){super(e,Object.assign({resetMenu:t},n),r,o,s,a,l),this.menuId=t,this.options2=n,this.menuService=r,this.contextKeyService=o,this.menu=this._store.add(this.menuService.createMenu(this.menuId,this.contextKeyService,{emitEventsForSubmenuChanges:!0})),this.additionalActions=[],this._store.add(this.menu.onDidChange(()=>this.updateToolbar())),this.updateToolbar()}updateToolbar(){var e,t,n,r,o,s,a;let l=[],c=[];_b(this.menu,(e=this.options2)===null||e===void 0?void 0:e.menuOptions,{primary:l,secondary:c},(n=(t=this.options2)===null||t===void 0?void 0:t.toolbarOptions)===null||n===void 0?void 0:n.primaryGroup,(o=(r=this.options2)===null||r===void 0?void 0:r.toolbarOptions)===null||o===void 0?void 0:o.shouldInlineSubmenu,(a=(s=this.options2)===null||s===void 0?void 0:s.toolbarOptions)===null||a===void 0?void 0:a.useSeparatorsInPrimaryActions),c.push(...this.additionalActions),this.setActions(l,c)}setAdditionalSecondaryActions(e){ha(this.additionalActions,e,(t,n)=>t===n)||(this.additionalActions=e,this.updateToolbar())}};N7=R7([Xs(3,As),Xs(4,Ke),Xs(5,ls),Xs(6,Ht),Xs(7,Dr)],N7)});function k0e(i,e){return e.getStartPosition().equals(i.getStartPosition())&&e.getEndPosition().isBeforeOrEqual(i.getEndPosition())}function I0e(i,e){if((tl==null?void 0:tl.originalValue)===i&&(tl==null?void 0:tl.newValue)===e)return tl==null?void 0:tl.changes;{let t=PG(i,e,!0);if(t){let n=OG(t);if(n>0){let r=PG(i,e,!1);r&&OG(r)5e3||e.length>5e3)return;function n(c){let d=0;for(let u=0,h=c.length;ud&&(d=p)}return d}let r=Math.max(n(i),n(e));function o(c){if(c<0)throw new Error("unexpected");return r+c+1}function s(c){let d=0,u=0,h=new Int32Array(c.length);for(let p=0,m=c.length;pa},{getElements:()=>l}).ComputeDiff(!1).changes}var Xu,tl,O7=M(()=>{Poe();wi();qe();i2();up();Xu=class i{constructor(e,t){this.range=e,this.text=t}removeCommonPrefix(e,t){let n=t?this.range.intersectRanges(t):this.range;if(!n)return this;let r=e.getValueInRange(n,1),o=Fc(r,this.text),s=$0(this.range.getStartPosition(),Y0(r.substring(0,o))),a=this.text.substring(o),l=P.fromPositions(s,this.range.getEndPosition());return new i(l,a)}augments(e){return this.text.startsWith(e.text)&&k0e(this.range,e.range)}computeGhostText(e,t,n,r=0){let o=this.removeCommonPrefix(e);if(o.range.endLineNumber!==o.range.startLineNumber)return;let s=e.getLineContent(o.range.startLineNumber),a=Ui(s).length;if(o.range.startColumn-1<=a){let m=Ui(o.text).length,g=s.substring(o.range.startColumn-1,a),b=P.fromPositions(o.range.getStartPosition().delta(0,g.length),o.range.getEndPosition()),S=o.text.startsWith(g)?o.text.substring(g.length):o.text.substring(m);o=new i(b,S)}let c=e.getValueInRange(o.range),d=I0e(c,o.text);if(!d)return;let u=o.range.startLineNumber,h=new Array;if(t==="prefix"){let m=d.filter(g=>g.originalLength===0);if(m.length>1||m.length===1&&m[0].originalStart!==c.length)return}let p=o.text.length-r;for(let m of d){let g=o.range.startColumn+m.originalStart+m.originalLength;if(t==="subwordSmart"&&n&&n.lineNumber===o.range.startLineNumber&&g0)return;if(m.modifiedLength===0)continue;let b=m.modifiedStart+m.modifiedLength,S=Math.max(m.modifiedStart,Math.min(b,p)),k=o.text.substring(m.modifiedStart,S),N=o.text.substring(S,Math.max(m.modifiedStart,b));if(k.length>0){let A=eu(k);h.push(new fp(g,A,!1))}if(N.length>0){let A=eu(N);h.push(new fp(g,A,!0))}}return new hp(u,h)}}});function FG(i,e){let t=new _O,n=new yO(t,c=>e.getLanguageConfiguration(c)),r=new bO(new P7([i]),n),o=CO(r,[],void 0,!0),s="",a=i.getLineContent();function l(c,d){if(c.kind===2)if(l(c.openingBracket,d),d=af(d,c.openingBracket.length),c.child&&(l(c.child,d),d=af(d,c.child.length)),c.closingBracket)l(c.closingBracket,d),d=af(d,c.closingBracket.length);else{let h=n.getSingleLanguageBracketTokens(c.openingBracket.languageId).findClosingTokenText(c.openingBracket.bracketIds);s+=h}else if(c.kind!==3){if(c.kind===0||c.kind===1)s+=a.substring(d,af(d,c.length));else if(c.kind===4)for(let u of c.children)l(u,d),d=af(d,u.length)}}return l(o,vO),s}var P7,BG=M(()=>{loe();roe();coe();ooe();aoe();P7=class{constructor(e){this.lines=e,this.tokenization={getLineTokens:t=>this.lines[t-1]}}getLineCount(){return this.lines.length}getLineLength(e){return this.lines[e-1].getLineContent().length}}});function HG(i,e){let t=[...i];for(;t.length>0;){let n=t.shift();if(!e(n))break;t.unshift(...n.children)}}var l2,Cd,On,c2,Co,Qu,F7,Js,J0,pp,Wo,Ju=M(()=>{l2=class i{constructor(){this.value="",this.pos=0}static isDigitCharacter(e){return e>=48&&e<=57}static isVariableCharacter(e){return e===95||e>=97&&e<=122||e>=65&&e<=90}text(e){this.value=e,this.pos=0}tokenText(e){return this.value.substr(e.pos,e.len)}next(){if(this.pos>=this.value.length)return{type:14,pos:this.pos,len:0};let e=this.pos,t=0,n=this.value.charCodeAt(e),r;if(r=i._table[n],typeof r=="number")return this.pos+=1,{type:r,pos:e,len:1};if(i.isDigitCharacter(n)){r=8;do t+=1,n=this.value.charCodeAt(e+t);while(i.isDigitCharacter(n));return this.pos+=t,{type:r,pos:e,len:t}}if(i.isVariableCharacter(n)){r=9;do n=this.value.charCodeAt(e+ ++t);while(i.isVariableCharacter(n)||i.isDigitCharacter(n));return this.pos+=t,{type:r,pos:e,len:t}}r=10;do t+=1,n=this.value.charCodeAt(e+t);while(!isNaN(n)&&typeof i._table[n]=="undefined"&&!i.isDigitCharacter(n)&&!i.isVariableCharacter(n));return this.pos+=t,{type:r,pos:e,len:t}}};l2._table={36:0,58:1,44:2,123:3,125:4,92:5,47:6,124:7,43:11,45:12,63:13};Cd=class{constructor(){this._children=[]}appendChild(e){return e instanceof On&&this._children[this._children.length-1]instanceof On?this._children[this._children.length-1].value+=e.value:(e.parent=this,this._children.push(e)),this}replace(e,t){let{parent:n}=e,r=n.children.indexOf(e),o=n.children.slice(0);o.splice(r,1,...t),n._children=o,function s(a,l){for(let c of a)c.parent=l,s(c.children,c)}(t,n)}get children(){return this._children}get rightMostDescendant(){return this._children.length>0?this._children[this._children.length-1].rightMostDescendant:this}get snippet(){let e=this;for(;;){if(!e)return;if(e instanceof pp)return e;e=e.parent}}toString(){return this.children.reduce((e,t)=>e+t.toString(),"")}len(){return 0}},On=class i extends Cd{constructor(e){super(),this.value=e}toString(){return this.value}len(){return this.value.length}clone(){return new i(this.value)}},c2=class extends Cd{},Co=class i extends c2{static compareByIndex(e,t){return e.index===t.index?0:e.isFinalTabstop?1:t.isFinalTabstop||e.indext.index?1:0}constructor(e){super(),this.index=e}get isFinalTabstop(){return this.index===0}get choice(){return this._children.length===1&&this._children[0]instanceof Qu?this._children[0]:void 0}clone(){let e=new i(this.index);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}},Qu=class i extends Cd{constructor(){super(...arguments),this.options=[]}appendChild(e){return e instanceof On&&(e.parent=this,this.options.push(e)),this}toString(){return this.options[0].value}len(){return this.options[0].len()}clone(){let e=new i;return this.options.forEach(e.appendChild,e),e}},F7=class i extends Cd{constructor(){super(...arguments),this.regexp=new RegExp("")}resolve(e){let t=this,n=!1,r=e.replace(this.regexp,function(){return n=!0,t._replace(Array.prototype.slice.call(arguments,0,-2))});return!n&&this._children.some(o=>o instanceof Js&&!!o.elseValue)&&(r=this._replace([])),r}_replace(e){let t="";for(let n of this._children)if(n instanceof Js){let r=e[n.index]||"";r=n.resolve(r),t+=r}else t+=n.toString();return t}toString(){return""}clone(){let e=new i;return e.regexp=new RegExp(this.regexp.source,(this.regexp.ignoreCase?"i":"")+(this.regexp.global?"g":"")),e._children=this.children.map(t=>t.clone()),e}},Js=class i extends Cd{constructor(e,t,n,r){super(),this.index=e,this.shorthandName=t,this.ifValue=n,this.elseValue=r}resolve(e){return this.shorthandName==="upcase"?e?e.toLocaleUpperCase():"":this.shorthandName==="downcase"?e?e.toLocaleLowerCase():"":this.shorthandName==="capitalize"?e?e[0].toLocaleUpperCase()+e.substr(1):"":this.shorthandName==="pascalcase"?e?this._toPascalCase(e):"":this.shorthandName==="camelcase"?e?this._toCamelCase(e):"":e&&typeof this.ifValue=="string"?this.ifValue:!e&&typeof this.elseValue=="string"?this.elseValue:e||""}_toPascalCase(e){let t=e.match(/[a-z0-9]+/gi);return t?t.map(n=>n.charAt(0).toUpperCase()+n.substr(1)).join(""):e}_toCamelCase(e){let t=e.match(/[a-z0-9]+/gi);return t?t.map((n,r)=>r===0?n.charAt(0).toLowerCase()+n.substr(1):n.charAt(0).toUpperCase()+n.substr(1)).join(""):e}clone(){return new i(this.index,this.shorthandName,this.ifValue,this.elseValue)}},J0=class i extends c2{constructor(e){super(),this.name=e}resolve(e){let t=e.resolve(this);return this.transform&&(t=this.transform.resolve(t||"")),t!==void 0?(this._children=[new On(t)],!0):!1}clone(){let e=new i(this.name);return this.transform&&(e.transform=this.transform.clone()),e._children=this.children.map(t=>t.clone()),e}};pp=class i extends Cd{get placeholderInfo(){if(!this._placeholders){let e=[],t;this.walk(function(n){return n instanceof Co&&(e.push(n),t=!t||t.indexr===e?(n=!0,!1):(t+=r.len(),!0)),n?t:-1}fullLen(e){let t=0;return HG([e],n=>(t+=n.len(),!0)),t}enclosingPlaceholders(e){let t=[],{parent:n}=e;for(;n;)n instanceof Co&&t.push(n),n=n.parent;return t}resolveVariables(e){return this.walk(t=>(t instanceof J0&&t.resolve(e)&&(this._placeholders=void 0),!0)),this}appendChild(e){return this._placeholders=void 0,super.appendChild(e)}replace(e,t){return this._placeholders=void 0,super.replace(e,t)}clone(){let e=new i;return this._children=this.children.map(t=>t.clone()),e}walk(e){HG(this.children,e)}},Wo=class{constructor(){this._scanner=new l2,this._token={type:14,pos:0,len:0}}static escape(e){return e.replace(/\$|}|\\/g,"\\$&")}static guessNeedsClipboard(e){return/\${?CLIPBOARD/.test(e)}parse(e,t,n){let r=new pp;return this.parseFragment(e,r),this.ensureFinalTabstop(r,n!=null?n:!1,t!=null?t:!1),r}parseFragment(e,t){let n=t.children.length;for(this._scanner.text(e),this._token=this._scanner.next();this._parse(t););let r=new Map,o=[];t.walk(l=>(l instanceof Co&&(l.isFinalTabstop?r.set(0,void 0):!r.has(l.index)&&l.children.length>0?r.set(l.index,l.children):o.push(l)),!0));let s=(l,c)=>{let d=r.get(l.index);if(!d)return;let u=new Co(l.index);u.transform=l.transform;for(let h of d){let p=h.clone();u.appendChild(p),p instanceof Co&&r.has(p.index)&&!c.has(p.index)&&(c.add(p.index),s(p,c),c.delete(p.index))}t.replace(l,[u])},a=new Set;for(let l of o)s(l,a);return t.children.slice(n)}ensureFinalTabstop(e,t,n){(t||n&&e.placeholders.length>0)&&(e.placeholders.find(o=>o.index===0)||e.appendChild(new Co(0)))}_accept(e,t){if(e===void 0||this._token.type===e){let n=t?this._scanner.tokenText(this._token):!0;return this._token=this._scanner.next(),n}return!1}_backTo(e){return this._scanner.pos=e.pos+e.len,this._token=e,!1}_until(e){let t=this._token;for(;this._token.type!==e;){if(this._token.type===14)return!1;if(this._token.type===5){let r=this._scanner.next();if(r.type!==0&&r.type!==4&&r.type!==5)return!1}this._token=this._scanner.next()}let n=this._scanner.value.substring(t.pos,this._token.pos).replace(/\\(\$|}|\\)/g,"$1");return this._token=this._scanner.next(),n}_parse(e){return this._parseEscaped(e)||this._parseTabstopOrVariableName(e)||this._parseComplexPlaceholder(e)||this._parseComplexVariable(e)||this._parseAnything(e)}_parseEscaped(e){let t;return(t=this._accept(5,!0))?(t=this._accept(0,!0)||this._accept(4,!0)||this._accept(5,!0)||t,e.appendChild(new On(t)),!0):!1}_parseTabstopOrVariableName(e){let t,n=this._token;return this._accept(0)&&(t=this._accept(9,!0)||this._accept(8,!0))?(e.appendChild(/^\d+$/.test(t)?new Co(Number(t)):new J0(t)),!0):this._backTo(n)}_parseComplexPlaceholder(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(8,!0))))return this._backTo(n);let o=new Co(Number(t));if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new On("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else if(o.index>0&&this._accept(7)){let s=new Qu;for(;;){if(this._parseChoiceElement(s)){if(this._accept(2))continue;if(this._accept(7)&&(o.appendChild(s),this._accept(4)))return e.appendChild(o),!0}return this._backTo(n),!1}}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(n)}_parseChoiceElement(e){let t=this._token,n=[];for(;!(this._token.type===2||this._token.type===7);){let r;if((r=this._accept(5,!0))?r=this._accept(2,!0)||this._accept(7,!0)||this._accept(5,!0)||r:r=this._accept(void 0,!0),!r)return this._backTo(t),!1;n.push(r)}return n.length===0?(this._backTo(t),!1):(e.appendChild(new On(n.join(""))),!0)}_parseComplexVariable(e){let t,n=this._token;if(!(this._accept(0)&&this._accept(3)&&(t=this._accept(9,!0))))return this._backTo(n);let o=new J0(t);if(this._accept(1))for(;;){if(this._accept(4))return e.appendChild(o),!0;if(!this._parse(o))return e.appendChild(new On("${"+t+":")),o.children.forEach(e.appendChild,e),!0}else return this._accept(6)?this._parseTransform(o)?(e.appendChild(o),!0):(this._backTo(n),!1):this._accept(4)?(e.appendChild(o),!0):this._backTo(n)}_parseTransform(e){let t=new F7,n="",r="";for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(6,!0)||o,n+=o;continue}if(this._token.type!==14){n+=this._accept(void 0,!0);continue}return!1}for(;!this._accept(6);){let o;if(o=this._accept(5,!0)){o=this._accept(5,!0)||this._accept(6,!0)||o,t.appendChild(new On(o));continue}if(!(this._parseFormatString(t)||this._parseAnything(t)))return!1}for(;!this._accept(4);){if(this._token.type!==14){r+=this._accept(void 0,!0);continue}return!1}try{t.regexp=new RegExp(n,r)}catch(o){return!1}return e.transform=t,!0}_parseFormatString(e){let t=this._token;if(!this._accept(0))return!1;let n=!1;this._accept(3)&&(n=!0);let r=this._accept(8,!0);if(r)if(n){if(this._accept(4))return e.appendChild(new Js(Number(r))),!0;if(!this._accept(1))return this._backTo(t),!1}else return e.appendChild(new Js(Number(r))),!0;else return this._backTo(t),!1;if(this._accept(6)){let o=this._accept(9,!0);return!o||!this._accept(4)?(this._backTo(t),!1):(e.appendChild(new Js(Number(r),o)),!0)}else if(this._accept(11)){let o=this._until(4);if(o)return e.appendChild(new Js(Number(r),void 0,o,void 0)),!0}else if(this._accept(12)){let o=this._until(4);if(o)return e.appendChild(new Js(Number(r),void 0,void 0,o)),!0}else if(this._accept(13)){let o=this._until(1);if(o){let s=this._until(4);if(s)return e.appendChild(new Js(Number(r),void 0,o,s)),!0}}else{let o=this._until(4);if(o)return e.appendChild(new Js(Number(r),void 0,void 0,o)),!0}return this._backTo(t),!1}_parseAnything(e){return this._token.type!==14?(e.appendChild(new On(this._scanner.tokenText(this._token))),this._accept(void 0),!0):!1}}});function jG(i,e,t,n,r=tt.None,o){return zG(this,void 0,void 0,function*(){let s=A0e(e,t),a=i.all(t),l=yield Promise.all(a.map(u=>zG(this,void 0,void 0,function*(){try{let h=yield u.provideInlineCompletions(t,e,n,r);return{provider:u,completions:h}}catch(h){Ut(h)}return{provider:u,completions:void 0}}))),c=new Map,d=[];for(let u of l){let h=u.completions;if(!h)continue;let p=new H7(h,u.provider);d.push(p);for(let m of h.items){let g=z7.from(m,p,s,t,o);c.set(g.hash(),g)}}return new B7(Array.from(c.values()),new Set(c.keys()),d)})}function A0e(i,e){let t=e.getWordAtPosition(i),n=e.getLineMaxColumn(i.lineNumber);return t?new P(i.lineNumber,t.startColumn,i.lineNumber,n):P.fromPositions(i,i.with(void 0,n))}function UG(i,e,t,n){let o=t.getLineContent(e.lineNumber).substring(0,e.column-1)+i,s=t.tokenization.tokenizeLineWithEdit(e,o.length-(e.column-1),i),a=s==null?void 0:s.sliceAndInflate(e.column-1,o.length,0);return a?FG(a,n):i}var zG,B7,H7,z7,WG=M(()=>{MR();gi();At();qe();BG();up();Ju();zG=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};B7=class{constructor(e,t,n){this.completions=e,this.hashs=t,this.providerResults=n}has(e){return this.hashs.has(e.hash())}dispose(){for(let e of this.providerResults)e.removeRef()}},H7=class{constructor(e,t){this.inlineCompletions=e,this.provider=t,this.refCount=1}addRef(){this.refCount++}removeRef(){this.refCount--,this.refCount===0&&this.provider.freeInlineCompletions(this.inlineCompletions)}},z7=class i{static from(e,t,n,r,o){let s,a,l=e.range?P.lift(e.range):n;if(typeof e.insertText=="string"){if(s=e.insertText,o&&e.completeBracketPairs){s=UG(s,l.getStartPosition(),r,o);let c=s.length-e.insertText.length;c!==0&&(l=new P(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+c))}a=void 0}else if("snippet"in e.insertText){let c=e.insertText.snippet.length;if(o&&e.completeBracketPairs){e.insertText.snippet=UG(e.insertText.snippet,l.getStartPosition(),r,o);let u=e.insertText.snippet.length-c;u!==0&&(l=new P(l.startLineNumber,l.startColumn,l.endLineNumber,l.endColumn+u))}let d=new Wo().parse(e.insertText.snippet);d.children.length===1&&d.children[0]instanceof On?(s=d.children[0].value,a=void 0):(s=d.toString(),a={snippet:e.insertText.snippet,range:l})}else AR(e.insertText);return new i(s,e.command,l,s,a,e.additionalTextEdits||EG(),e,t)}constructor(e,t,n,r,o,s,a,l){this.filterText=e,this.command=t,this.range=n,this.insertText=r,this.snippetInfo=o,this.additionalTextEdits=s,this.sourceInlineCompletion=a,this.source=l,e=e.replace(/\r\n|\r/g,` +`),r=e.replace(/\r\n|\r/g,` +`)}withRange(e){return new i(this.filterText,this.command,e,this.insertText,this.snippetInfo,this.additionalTextEdits,this.sourceInlineCompletion,this.source)}hash(){return JSON.stringify({insertText:this.insertText,range:this.range.toString()})}}});function D0e(i,e){return new Promise(t=>{let n,r=setTimeout(()=>{n&&n.dispose(),t()},i);e&&(n=e.onCancellationRequested(()=>{clearTimeout(r),n&&n.dispose(),t()}))})}function N0e(i,e,t){return!i||!e?i===e:t(i,e)}function KG(i){return i.startLineNumber===i.endLineNumber?new Se(1,1+i.endColumn-i.startColumn):new Se(1+i.endLineNumber-i.startLineNumber,i.endColumn)}var L0e,VG,M0e,d2,U7,j7,W7,u2,qG=M(()=>{gi();Cl();Ce();Ys();Yu();ri();br();Kn();xt();O7();WG();L0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},VG=function(i,e){return function(t,n){e(t,n,i)}},M0e=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},d2=class extends oe{constructor(e,t,n,r,o){super(),this.textModel=e,this.versionId=t,this._debounceValue=n,this.languageFeaturesService=r,this.languageConfigurationService=o,this._updateOperation=this._register(new Hi),this.inlineCompletions=G0("inlineCompletions",void 0),this.suggestWidgetInlineCompletions=G0("suggestWidgetInlineCompletions",void 0),this._register(this.textModel.onDidChangeContent(()=>{this._updateOperation.clear()}))}fetch(e,t,n){var r,o;let s=new U7(e,t,this.textModel.getVersionId()),a=t.selectedSuggestionInfo?this.suggestWidgetInlineCompletions:this.inlineCompletions;if(!((r=this._updateOperation.value)===null||r===void 0)&&r.request.satisfies(s))return this._updateOperation.value.promise;if(!((o=a.get())===null||o===void 0)&&o.request.satisfies(s))return Promise.resolve(!0);let l=!!this._updateOperation.value;this._updateOperation.clear();let c=new Ri,d=(()=>M0e(this,void 0,void 0,function*(){if((l||t.triggerKind===ya.Automatic)&&(yield D0e(this._debounceValue.get(this.textModel))),c.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;let p=new Date,m=yield jG(this.languageFeaturesService.inlineCompletionsProvider,e,this.textModel,t,c.token,this.languageConfigurationService);if(c.token.isCancellationRequested||this.textModel.getVersionId()!==s.versionId)return!1;let g=new Date;this._debounceValue.update(this.textModel,g.getTime()-p.getTime());let b=new W7(m,s,this.textModel,this.versionId);if(n){let S=n.toInlineCompletion(void 0);n.canBeReused(this.textModel,e)&&!m.has(S)&&b.prepend(n.inlineCompletion,S.range,!0)}return this._updateOperation.clear(),dn(S=>{a.set(b,S)}),!0}))(),u=new j7(s,c,d);return this._updateOperation.value=u,d}clear(e){this._updateOperation.clear(),this.inlineCompletions.set(void 0,e),this.suggestWidgetInlineCompletions.set(void 0,e)}clearSuggestWidgetInlineCompletions(e){var t;!((t=this._updateOperation.value)===null||t===void 0)&&t.request.context.selectedSuggestionInfo&&this._updateOperation.clear(),this.suggestWidgetInlineCompletions.set(void 0,e)}cancelUpdate(){this._updateOperation.clear()}};d2=L0e([VG(3,be),VG(4,Tt)],d2);U7=class{constructor(e,t,n){this.position=e,this.context=t,this.versionId=n}satisfies(e){return this.position.equals(e.position)&&N0e(this.context.selectedSuggestionInfo,e.context.selectedSuggestionInfo,(t,n)=>t.equals(n))&&(e.context.triggerKind===ya.Automatic||this.context.triggerKind===ya.Explicit)&&this.versionId===e.versionId}};j7=class{constructor(e,t,n){this.request=e,this.cancellationTokenSource=t,this.promise=n}dispose(){this.cancellationTokenSource.cancel()}},W7=class{get inlineCompletions(){return this._inlineCompletions}constructor(e,t,n,r){this.inlineCompletionProviderResult=e,this.request=t,this.textModel=n,this.versionId=r,this._refCount=1,this._prependedInlineCompletionItems=[],this._rangeVersionIdValue=0,this._rangeVersionId=xr("ranges",s=>{this.versionId.read(s);let a=!1;for(let l of this._inlineCompletions)a=a||l._updateRange(this.textModel);return a&&this._rangeVersionIdValue++,this._rangeVersionIdValue});let o=n.deltaDecorations([],e.completions.map(s=>({range:s.range,options:{description:"inline-completion-tracking-range"}})));this._inlineCompletions=e.completions.map((s,a)=>new u2(s,o[a],this._rangeVersionId))}clone(){return this._refCount++,this}dispose(){if(this._refCount--,this._refCount===0){this.textModel.deltaDecorations(this._inlineCompletions.map(e=>e.decorationId),[]),this.inlineCompletionProviderResult.dispose();for(let e of this._prependedInlineCompletionItems)e.source.removeRef()}}prepend(e,t,n){n&&e.source.addRef();let r=this.textModel.deltaDecorations([],[{range:t,options:{description:"inline-completion-tracking-range"}}])[0];this._inlineCompletions.unshift(new u2(e,r,this._rangeVersionId,t)),this._prependedInlineCompletionItems.push(e)}},u2=class{get forwardStable(){var e;return(e=this.inlineCompletion.source.inlineCompletions.enableForwardStability)!==null&&e!==void 0?e:!1}constructor(e,t,n,r){this.inlineCompletion=e,this.decorationId=t,this.rangeVersion=n,this.semanticId=JSON.stringify([this.inlineCompletion.filterText,this.inlineCompletion.insertText,this.inlineCompletion.range.getStartPosition().toString()]),this._isValid=!0,this._updatedRange=r!=null?r:e.range}toInlineCompletion(e){return this.inlineCompletion.withRange(this._getUpdatedRange(e))}toSingleTextEdit(e){return new Xu(this._getUpdatedRange(e),this.inlineCompletion.insertText)}isVisible(e,t,n){let r=this._toFilterTextReplacement(n).removeCommonPrefix(e);if(!this._isValid||!this.inlineCompletion.range.getStartPosition().equals(this._getUpdatedRange(n).getStartPosition())||t.lineNumber!==r.range.startLineNumber)return!1;let o=e.getValueInRange(r.range,1).toLowerCase(),s=r.text.toLowerCase(),a=Math.max(0,t.column-r.range.startColumn),l=s.substring(0,a),c=s.substring(a),d=o.substring(0,a),u=o.substring(a),h=e.getLineIndentColumn(r.range.startLineNumber);return r.range.startColumn<=h&&(d=d.trimStart(),d.length===0&&(u=u.trimStart()),l=l.trimStart(),l.length===0&&(c=c.trimStart())),l.startsWith(d)&&!!tO(u,c)}canBeReused(e,t){return this._isValid&&this._getUpdatedRange(void 0).containsPosition(t)&&this.isVisible(e,t,void 0)&&!this._isSmallerThanOriginal(void 0)}_toFilterTextReplacement(e){return new Xu(this._getUpdatedRange(e),this.inlineCompletion.filterText)}_isSmallerThanOriginal(e){return KG(this._getUpdatedRange(e)).isBefore(KG(this.inlineCompletion.range))}_getUpdatedRange(e){return this.rangeVersion.read(e),this._updatedRange}_updateRange(e){let t=e.getDecorationRange(this.decorationId);return t?this._updatedRange.equalsRange(t)?!1:(this._updatedRange=t,!0):(this._isValid=!1,!0)}}});function GG(){return mp}function eg(i,e,t,n=dc.default,r={triggerKind:0},o=tt.None){return Z0(this,void 0,void 0,function*(){let s=new Ln(!0);t=t.clone();let a=e.getWordAtPosition(t),l=a?new P(t.lineNumber,a.startColumn,t.lineNumber,a.endColumn):P.fromPositions(t),c={replace:l,insert:l.setEndPosition(t.lineNumber,t.column)},d=[],u=new re,h=[],p=!1,m=(b,S,k)=>{var N,A,B;let j=!1;if(!S)return j;for(let z of S.suggestions)if(!n.kindFilter.has(z.kind)){if(!n.showDeprecated&&(!((N=z==null?void 0:z.tags)===null||N===void 0)&&N.includes(1)))continue;z.range||(z.range=c),z.sortText||(z.sortText=typeof z.label=="string"?z.label:z.label.label),!p&&z.insertTextRules&&z.insertTextRules&4&&(p=Wo.guessNeedsClipboard(z.insertText)),d.push(new V7(t,z,S,b)),j=!0}return u_(S)&&u.add(S),h.push({providerName:(A=b._debugDisplayName)!==null&&A!==void 0?A:"unknown_provider",elapsedProvider:(B=S.duration)!==null&&B!==void 0?B:-1,elapsedOverall:k.elapsed()}),j},g=(()=>Z0(this,void 0,void 0,function*(){if(!mp||n.kindFilter.has(27))return;let b=n.providerItemsToReuse.get(mp);if(b){b.forEach(N=>d.push(N));return}if(n.providerFilter.size>0&&!n.providerFilter.has(mp))return;let S=new Ln(!0),k=yield mp.provideCompletionItems(e,t,r,o);m(mp,k,S)}))();for(let b of i.orderedGroups(e)){let S=!1;if(yield Promise.all(b.map(k=>Z0(this,void 0,void 0,function*(){if(n.providerItemsToReuse.has(k)){let N=n.providerItemsToReuse.get(k);N.forEach(A=>d.push(A)),S=S||N.length>0;return}if(!(n.providerFilter.size>0&&!n.providerFilter.has(k)))try{let N=new Ln(!0),A=yield k.provideCompletionItems(e,t,r,o);S=m(k,A,N)||S}catch(N){Ut(N)}}))),S||o.isCancellationRequested)break}return yield g,o.isCancellationRequested?(u.dispose(),Promise.reject(new c_)):new K7(d.sort(P0e(n.snippetSortOrder)),p,{entries:h,elapsed:s.elapsed()},u)})}function q7(i,e){if(i.sortTextLow&&e.sortTextLow){if(i.sortTextLowe.sortTextLow)return 1}return i.textLabele.textLabel?1:i.completion.kind-e.completion.kind}function R0e(i,e){if(i.completion.kind!==e.completion.kind){if(i.completion.kind===27)return-1;if(e.completion.kind===27)return 1}return q7(i,e)}function O0e(i,e){if(i.completion.kind!==e.completion.kind){if(i.completion.kind===27)return 1;if(e.completion.kind===27)return-1}return q7(i,e)}function P0e(i){return h2.get(i)}function $G(i,e){var t;(t=i.getContribution("editor.contrib.suggestController"))===null||t===void 0||t.triggerSuggest(new Set().add(e),void 0,!0)}var Z0,nt,nl,V7,dc,mp,K7,h2,il,Zu=M(()=>{gi();At();Cl();Ce();ml();Mi();Sn();ri();qe();ca();Ju();Re();Xi();zi();pt();xt();AE();Z0=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},nt={Visible:Ay,HasFocusedSuggestion:new rt("suggestWidgetHasFocusedSuggestion",!1,v("suggestWidgetHasSelection","Whether any suggestion is focused")),DetailsVisible:new rt("suggestWidgetDetailsVisible",!1,v("suggestWidgetDetailsVisible","Whether suggestion details are visible")),MultipleSuggestions:new rt("suggestWidgetMultipleSuggestions",!1,v("suggestWidgetMultipleSuggestions","Whether there are multiple suggestions to pick from")),MakesTextEdit:new rt("suggestionMakesTextEdit",!0,v("suggestionMakesTextEdit","Whether inserting the current suggestion yields in a change or has everything already been typed")),AcceptSuggestionsOnEnter:new rt("acceptSuggestionOnEnter",!0,v("acceptSuggestionOnEnter","Whether suggestions are inserted when pressing Enter")),HasInsertAndReplaceRange:new rt("suggestionHasInsertAndReplaceRange",!1,v("suggestionHasInsertAndReplaceRange","Whether the current suggestion has insert and replace behaviour")),InsertMode:new rt("suggestionInsertMode",void 0,{type:"string",description:v("suggestionInsertMode","Whether the default behaviour is to insert or replace")}),CanResolve:new rt("suggestionCanResolve",!1,v("suggestionCanResolve","Whether the current suggestion supports to resolve further details"))},nl=new xe("suggestWidgetStatusBar"),V7=class{constructor(e,t,n,r){var o;this.position=e,this.completion=t,this.container=n,this.provider=r,this.isInvalid=!1,this.score=yl.Default,this.distance=0,this.textLabel=typeof t.label=="string"?t.label:(o=t.label)===null||o===void 0?void 0:o.label,this.labelLow=this.textLabel.toLowerCase(),this.isInvalid=!this.textLabel,this.sortTextLow=t.sortText&&t.sortText.toLowerCase(),this.filterTextLow=t.filterText&&t.filterText.toLowerCase(),this.extensionId=t.extensionId,P.isIRange(t.range)?(this.editStart=new Se(t.range.startLineNumber,t.range.startColumn),this.editInsertEnd=new Se(t.range.endLineNumber,t.range.endColumn),this.editReplaceEnd=new Se(t.range.endLineNumber,t.range.endColumn),this.isInvalid=this.isInvalid||P.spansMultipleLines(t.range)||t.range.startLineNumber!==e.lineNumber):(this.editStart=new Se(t.range.insert.startLineNumber,t.range.insert.startColumn),this.editInsertEnd=new Se(t.range.insert.endLineNumber,t.range.insert.endColumn),this.editReplaceEnd=new Se(t.range.replace.endLineNumber,t.range.replace.endColumn),this.isInvalid=this.isInvalid||P.spansMultipleLines(t.range.insert)||P.spansMultipleLines(t.range.replace)||t.range.insert.startLineNumber!==e.lineNumber||t.range.replace.startLineNumber!==e.lineNumber||t.range.insert.startColumn!==t.range.replace.startColumn),typeof r.resolveCompletionItem!="function"&&(this._resolveCache=Promise.resolve(),this._isResolved=!0)}get isResolved(){return!!this._isResolved}resolve(e){return Z0(this,void 0,void 0,function*(){if(!this._resolveCache){let t=e.onCancellationRequested(()=>{this._resolveCache=void 0,this._isResolved=!1});this._resolveCache=Promise.resolve(this.provider.resolveCompletionItem(this.completion,e)).then(n=>{Object.assign(this.completion,n),this._isResolved=!0,t.dispose()},n=>{Zo(n)&&(this._resolveCache=void 0,this._isResolved=!1)})}return this._resolveCache})}},dc=class{constructor(e=2,t=new Set,n=new Set,r=new Map,o=!0){this.snippetSortOrder=e,this.kindFilter=t,this.providerFilter=n,this.providerItemsToReuse=r,this.showDeprecated=o}};dc.default=new dc;K7=class{constructor(e,t,n,r){this.items=e,this.needsClipboard=t,this.durations=n,this.disposable=r}};h2=new Map;h2.set(0,R0e);h2.set(2,O0e);h2.set(1,q7);St.registerCommand("_executeCompletionItemProvider",(i,...e)=>Z0(void 0,void 0,void 0,function*(){let[t,n,r,o]=e;Lt(ft.isUri(t)),Lt(Se.isIPosition(n)),Lt(typeof r=="string"||!r),Lt(typeof o=="number"||!o);let{completionProvider:s}=i.get(be),a=yield i.get(xn).createModelReference(t);try{let l={incomplete:!1,suggestions:[]},c=[],d=a.object.textEditorModel.validatePosition(n),u=yield eg(s,a.object.textEditorModel,d,void 0,{triggerCharacter:r!=null?r:void 0,triggerKind:r?1:0});for(let h of u.items)c.length<(o!=null?o:0)&&c.push(h.resolve(tt.None)),l.incomplete=l.incomplete||h.container.incomplete,l.suggestions.push(h.completion);try{return yield Promise.all(c),l}finally{setTimeout(()=>u.disposable.dispose(),100)}}finally{a.dispose()}}));il=class{static isAllOff(e){return e.other==="off"&&e.comments==="off"&&e.strings==="off"}static isAllOn(e){return e.other==="on"&&e.comments==="on"&&e.strings==="on"}static valueFor(e,t){switch(t){case 1:return e.comments;case 2:return e.strings;default:return e.other}}}});var YG=M(()=>{});var XG=M(()=>{YG()});function G7(i,e=Nc){return sO(i,e)?i.charAt(0).toUpperCase()+i.slice(1):i}var QG=M(()=>{ioe();nr()});var F0e,B0e,Zje,tg,ig,ng,rg,og,uc,sg,ag,JG=M(()=>{QG();cR();ao();wi();b0();Kn();Ju();Re();cb();F0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},B0e=function(i,e){return function(t,n){e(t,n,i)}},Zje=Object.freeze({CURRENT_YEAR:!0,CURRENT_YEAR_SHORT:!0,CURRENT_MONTH:!0,CURRENT_DATE:!0,CURRENT_HOUR:!0,CURRENT_MINUTE:!0,CURRENT_SECOND:!0,CURRENT_DAY_NAME:!0,CURRENT_DAY_NAME_SHORT:!0,CURRENT_MONTH_NAME:!0,CURRENT_MONTH_NAME_SHORT:!0,CURRENT_SECONDS_UNIX:!0,CURRENT_TIMEZONE_OFFSET:!0,SELECTION:!0,CLIPBOARD:!0,TM_SELECTED_TEXT:!0,TM_CURRENT_LINE:!0,TM_CURRENT_WORD:!0,TM_LINE_INDEX:!0,TM_LINE_NUMBER:!0,TM_FILENAME:!0,TM_FILENAME_BASE:!0,TM_DIRECTORY:!0,TM_FILEPATH:!0,CURSOR_INDEX:!0,CURSOR_NUMBER:!0,RELATIVE_FILEPATH:!0,BLOCK_COMMENT_START:!0,BLOCK_COMMENT_END:!0,LINE_COMMENT:!0,WORKSPACE_NAME:!0,WORKSPACE_FOLDER:!0,RANDOM:!0,RANDOM_HEX:!0,UUID:!0}),tg=class{constructor(e){this._delegates=e}resolve(e){for(let t of this._delegates){let n=t.resolve(e);if(n!==void 0)return n}}},ig=class{constructor(e,t,n,r){this._model=e,this._selection=t,this._selectionIdx=n,this._overtypingCapturer=r}resolve(e){let{name:t}=e;if(t==="SELECTION"||t==="TM_SELECTED_TEXT"){let n=this._model.getValueInRange(this._selection)||void 0,r=this._selection.startLineNumber!==this._selection.endLineNumber;if(!n&&this._overtypingCapturer){let o=this._overtypingCapturer.getLastOvertypedInfo(this._selectionIdx);o&&(n=o.value,r=o.multiline)}if(n&&r&&e.snippet){let o=this._model.getLineContent(this._selection.startLineNumber),s=Ui(o,0,this._selection.startColumn-1),a=s;e.snippet.walk(c=>c===e?!1:(c instanceof On&&(a=Ui(eu(c.value).pop())),!0));let l=Fc(a,s);n=n.replace(/(\r\n|\r|\n)(.*)/g,(c,d,u)=>`${d}${a.substr(l)}${u}`)}return n}else{if(t==="TM_CURRENT_LINE")return this._model.getLineContent(this._selection.positionLineNumber);if(t==="TM_CURRENT_WORD"){let n=this._model.getWordAtPosition({lineNumber:this._selection.positionLineNumber,column:this._selection.positionColumn});return n&&n.word||void 0}else{if(t==="TM_LINE_INDEX")return String(this._selection.positionLineNumber-1);if(t==="TM_LINE_NUMBER")return String(this._selection.positionLineNumber);if(t==="CURSOR_INDEX")return String(this._selectionIdx);if(t==="CURSOR_NUMBER")return String(this._selectionIdx+1)}}}},ng=class{constructor(e,t){this._labelService=e,this._model=t}resolve(e){let{name:t}=e;if(t==="TM_FILENAME")return Gh(this._model.uri.fsPath);if(t==="TM_FILENAME_BASE"){let n=Gh(this._model.uri.fsPath),r=n.lastIndexOf(".");return r<=0?n:n.slice(0,r)}else{if(t==="TM_DIRECTORY")return lR(this._model.uri.fsPath)==="."?"":this._labelService.getUriLabel(rf(this._model.uri));if(t==="TM_FILEPATH")return this._labelService.getUriLabel(this._model.uri);if(t==="RELATIVE_FILEPATH")return this._labelService.getUriLabel(this._model.uri,{relative:!0,noPrefix:!0})}}},rg=class{constructor(e,t,n,r){this._readClipboardText=e,this._selectionIdx=t,this._selectionCount=n,this._spread=r}resolve(e){if(e.name!=="CLIPBOARD")return;let t=this._readClipboardText();if(t){if(this._spread){let n=t.split(/\r\n|\n|\r/).filter(r=>!yR(r));if(n.length===this._selectionCount)return n[this._selectionIdx]}return t}}},og=class{constructor(e,t,n){this._model=e,this._selection=t,this._languageConfigurationService=n}resolve(e){let{name:t}=e,n=this._model.getLanguageIdAtPosition(this._selection.selectionStartLineNumber,this._selection.selectionStartColumn),r=this._languageConfigurationService.getLanguageConfiguration(n).comments;if(r){if(t==="LINE_COMMENT")return r.lineCommentToken||void 0;if(t==="BLOCK_COMMENT_START")return r.blockCommentStartToken||void 0;if(t==="BLOCK_COMMENT_END")return r.blockCommentEndToken||void 0}}};og=F0e([B0e(2,Tt)],og);uc=class i{constructor(){this._date=new Date}resolve(e){let{name:t}=e;if(t==="CURRENT_YEAR")return String(this._date.getFullYear());if(t==="CURRENT_YEAR_SHORT")return String(this._date.getFullYear()).slice(-2);if(t==="CURRENT_MONTH")return String(this._date.getMonth().valueOf()+1).padStart(2,"0");if(t==="CURRENT_DATE")return String(this._date.getDate().valueOf()).padStart(2,"0");if(t==="CURRENT_HOUR")return String(this._date.getHours().valueOf()).padStart(2,"0");if(t==="CURRENT_MINUTE")return String(this._date.getMinutes().valueOf()).padStart(2,"0");if(t==="CURRENT_SECOND")return String(this._date.getSeconds().valueOf()).padStart(2,"0");if(t==="CURRENT_DAY_NAME")return i.dayNames[this._date.getDay()];if(t==="CURRENT_DAY_NAME_SHORT")return i.dayNamesShort[this._date.getDay()];if(t==="CURRENT_MONTH_NAME")return i.monthNames[this._date.getMonth()];if(t==="CURRENT_MONTH_NAME_SHORT")return i.monthNamesShort[this._date.getMonth()];if(t==="CURRENT_SECONDS_UNIX")return String(Math.floor(this._date.getTime()/1e3));if(t==="CURRENT_TIMEZONE_OFFSET"){let n=this._date.getTimezoneOffset(),r=n>0?"-":"+",o=Math.trunc(Math.abs(n/60)),s=o<10?"0"+o:o,a=Math.abs(n)-o*60,l=a<10?"0"+a:a;return r+s+":"+l}}};uc.dayNames=[v("Sunday","Sunday"),v("Monday","Monday"),v("Tuesday","Tuesday"),v("Wednesday","Wednesday"),v("Thursday","Thursday"),v("Friday","Friday"),v("Saturday","Saturday")];uc.dayNamesShort=[v("SundayShort","Sun"),v("MondayShort","Mon"),v("TuesdayShort","Tue"),v("WednesdayShort","Wed"),v("ThursdayShort","Thu"),v("FridayShort","Fri"),v("SaturdayShort","Sat")];uc.monthNames=[v("January","January"),v("February","February"),v("March","March"),v("April","April"),v("May","May"),v("June","June"),v("July","July"),v("August","August"),v("September","September"),v("October","October"),v("November","November"),v("December","December")];uc.monthNamesShort=[v("JanuaryShort","Jan"),v("FebruaryShort","Feb"),v("MarchShort","Mar"),v("AprilShort","Apr"),v("MayShort","May"),v("JuneShort","Jun"),v("JulyShort","Jul"),v("AugustShort","Aug"),v("SeptemberShort","Sep"),v("OctoberShort","Oct"),v("NovemberShort","Nov"),v("DecemberShort","Dec")];sg=class{constructor(e){this._workspaceService=e}resolve(e){if(!this._workspaceService)return;let t=DP(this._workspaceService.getWorkspace());if(!MP(t)){if(e.name==="WORKSPACE_NAME")return this._resolveWorkspaceName(t);if(e.name==="WORKSPACE_FOLDER")return this._resoveWorkspacePath(t)}}_resolveWorkspaceName(e){if(Pw(e))return Gh(e.uri.path);let t=Gh(e.configPath.path);return t.endsWith(Fw)&&(t=t.substr(0,t.length-Fw.length-1)),t}_resoveWorkspacePath(e){if(Pw(e))return G7(e.uri.fsPath);let t=Gh(e.configPath.path),n=e.configPath.fsPath;return n.endsWith(t)&&(n=n.substr(0,n.length-t.length-1)),n?G7(n):"/"}},ag=class{resolve(e){let{name:t}=e;if(t==="RANDOM")return Math.random().toString().slice(-6);if(t==="RANDOM_HEX")return Math.random().toString(16).slice(-6);if(t==="UUID")return _d()}}});var H0e,z0e,lg,ZG,gp,$7=M(()=>{oi();Ce();wi();XG();Ea();qe();Mn();Kn();qn();Cb();cb();Ju();JG();H0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},z0e=function(i,e){return function(t,n){e(t,n,i)}},lg=class i{constructor(e,t,n){this._editor=e,this._snippet=t,this._snippetLineLeadingWhitespace=n,this._offset=-1,this._nestingLevel=1,this._placeholderGroups=mw(t.placeholders,Co.compareByIndex),this._placeholderGroupsIdx=-1}initialize(e){this._offset=e.newPosition}dispose(){this._placeholderDecorations&&this._editor.removeDecorations([...this._placeholderDecorations.values()]),this._placeholderGroups.length=0}_initDecorations(){if(this._offset===-1)throw new Error("Snippet not initialized!");if(this._placeholderDecorations)return;this._placeholderDecorations=new Map;let e=this._editor.getModel();this._editor.changeDecorations(t=>{for(let n of this._snippet.placeholders){let r=this._snippet.offset(n),o=this._snippet.fullLen(n),s=P.fromPositions(e.getPositionAt(this._offset+r),e.getPositionAt(this._offset+r+o)),a=n.isFinalTabstop?i._decor.inactiveFinal:i._decor.inactive,l=t.addDecoration(s,a);this._placeholderDecorations.set(n,l)}})}move(e){if(!this._editor.hasModel())return[];if(this._initDecorations(),this._placeholderGroupsIdx>=0){let r=[];for(let o of this._placeholderGroups[this._placeholderGroupsIdx])if(o.transform){let s=this._placeholderDecorations.get(o),a=this._editor.getModel().getDecorationRange(s),l=this._editor.getModel().getValueInRange(a),c=o.transform.resolve(l).split(/\r\n|\r|\n/);for(let d=1;d0&&this._editor.executeEdits("snippet.placeholderTransform",r)}let t=!1;e===!0&&this._placeholderGroupsIdx0&&(this._placeholderGroupsIdx-=1,t=!0);let n=this._editor.getModel().changeDecorations(r=>{let o=new Set,s=[];for(let a of this._placeholderGroups[this._placeholderGroupsIdx]){let l=this._placeholderDecorations.get(a),c=this._editor.getModel().getDecorationRange(l);s.push(new We(c.startLineNumber,c.startColumn,c.endLineNumber,c.endColumn)),t=t&&this._hasPlaceholderBeenCollapsed(a),r.changeDecorationOptions(l,a.isFinalTabstop?i._decor.activeFinal:i._decor.active),o.add(a);for(let d of this._snippet.enclosingPlaceholders(a)){let u=this._placeholderDecorations.get(d);r.changeDecorationOptions(u,d.isFinalTabstop?i._decor.activeFinal:i._decor.active),o.add(d)}}for(let[a,l]of this._placeholderDecorations)o.has(a)||r.changeDecorationOptions(l,a.isFinalTabstop?i._decor.inactiveFinal:i._decor.inactive);return s});return t?this.move(e):n!=null?n:[]}_hasPlaceholderBeenCollapsed(e){let t=e;for(;t;){if(t instanceof Co){let n=this._placeholderDecorations.get(t);if(this._editor.getModel().getDecorationRange(n).isEmpty()&&t.toString().length>0)return!0}t=t.parent}return!1}get isAtFirstPlaceholder(){return this._placeholderGroupsIdx<=0||this._placeholderGroups.length===0}get isAtLastPlaceholder(){return this._placeholderGroupsIdx===this._placeholderGroups.length-1}get hasPlaceholder(){return this._snippet.placeholders.length>0}get isTrivialSnippet(){if(this._snippet.placeholders.length===0)return!0;if(this._snippet.placeholders.length===1){let[e]=this._snippet.placeholders;if(e.isFinalTabstop&&this._snippet.rightMostDescendant===e)return!0}return!1}computePossibleSelections(){let e=new Map;for(let t of this._placeholderGroups){let n;for(let r of t){if(r.isFinalTabstop)break;n||(n=[],e.set(r.index,n));let o=this._placeholderDecorations.get(r),s=this._editor.getModel().getDecorationRange(o);if(!s){e.delete(r.index);break}n.push(s)}}return e}get activeChoice(){if(!this._placeholderDecorations)return;let e=this._placeholderGroups[this._placeholderGroupsIdx][0];if(!(e!=null&&e.choice))return;let t=this._placeholderDecorations.get(e);if(!t)return;let n=this._editor.getModel().getDecorationRange(t);if(n)return{range:n,choice:e.choice}}get hasChoice(){let e=!1;return this._snippet.walk(t=>(e=t instanceof Qu,!e)),e}merge(e){let t=this._editor.getModel();this._nestingLevel*=10,this._editor.changeDecorations(n=>{for(let r of this._placeholderGroups[this._placeholderGroupsIdx]){let o=e.shift();console.assert(o._offset!==-1),console.assert(!o._placeholderDecorations);let s=o._snippet.placeholderInfo.last.index;for(let l of o._snippet.placeholderInfo.all)l.isFinalTabstop?l.index=r.index+(s+1)/this._nestingLevel:l.index=r.index+l.index/this._nestingLevel;this._snippet.replace(r,o._snippet.children);let a=this._placeholderDecorations.get(r);n.removeDecoration(a),this._placeholderDecorations.delete(r);for(let l of o._snippet.placeholders){let c=o._snippet.offset(l),d=o._snippet.fullLen(l),u=P.fromPositions(t.getPositionAt(o._offset+c),t.getPositionAt(o._offset+c+d)),h=n.addDecoration(u,i._decor.inactive);this._placeholderDecorations.set(l,h)}}this._placeholderGroups=mw(this._snippet.placeholders,Co.compareByIndex)})}};lg._decor={active:dt.register({description:"snippet-placeholder-1",stickiness:0,className:"snippet-placeholder"}),inactive:dt.register({description:"snippet-placeholder-2",stickiness:1,className:"snippet-placeholder"}),activeFinal:dt.register({description:"snippet-placeholder-3",stickiness:1,className:"finish-snippet-placeholder"}),inactiveFinal:dt.register({description:"snippet-placeholder-4",stickiness:1,className:"finish-snippet-placeholder"})};ZG={overwriteBefore:0,overwriteAfter:0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},gp=class rl{static adjustWhitespace(e,t,n,r,o){let s=e.getLineContent(t.lineNumber),a=Ui(s,0,t.column-1),l;return r.walk(c=>{if(!(c instanceof On)||c.parent instanceof Qu||o&&!o.has(c))return!0;let d=c.value.split(/\r\n|\r|\n/);if(n){let h=r.offset(c);if(h===0)d[0]=e.normalizeIndentation(d[0]);else{l=l!=null?l:r.toString();let p=l.charCodeAt(h-1);(p===10||p===13)&&(d[0]=e.normalizeIndentation(a+d[0]))}for(let p=1;pA.get(Il)),m=e.invokeWithinContext(A=>new ng(A.get(Dl),h)),g=()=>a,b=h.getValueInRange(rl.adjustSelection(h,e.getSelection(),n,0)),S=h.getValueInRange(rl.adjustSelection(h,e.getSelection(),0,r)),k=h.getLineFirstNonWhitespaceColumn(e.getSelection().positionLineNumber),N=e.getSelections().map((A,B)=>({selection:A,idx:B})).sort((A,B)=>P.compareRangesUsingStarts(A.selection,B.selection));for(let{selection:A,idx:B}of N){let j=rl.adjustSelection(h,A,n,0),z=rl.adjustSelection(h,A,0,r);b!==h.getValueInRange(j)&&(j=A),S!==h.getValueInRange(z)&&(z=A);let J=A.setStartPosition(j.startLineNumber,j.startColumn).setEndPosition(z.endLineNumber,z.endColumn),ae=new Wo().parse(t,!0,o),Le=J.getStartPosition(),he=rl.adjustWhitespace(h,Le,s||B>0&&k!==h.getLineFirstNonWhitespaceColumn(A.positionLineNumber),ae);ae.resolveVariables(new tg([m,new rg(g,B,N.length,e.getOption(76)==="spread"),new ig(h,A,B,l),new og(h,A,c),new uc,new sg(p),new ag])),d[B]=qt.replace(J,ae.toString()),d[B].identifier={major:B,minor:0},d[B]._isTracked=!0,u[B]=new lg(e,ae,he)}return{edits:d,snippets:u}}static createEditsAndSnippetsFromEdits(e,t,n,r,o,s,a){if(!e.hasModel()||t.length===0)return{edits:[],snippets:[]};let l=[],c=e.getModel(),d=new Wo,u=new pp,h=new tg([e.invokeWithinContext(m=>new ng(m.get(Dl),c)),new rg(()=>o,0,e.getSelections().length,e.getOption(76)==="spread"),new ig(c,e.getSelection(),0,s),new og(c,e.getSelection(),a),new uc,new sg(e.invokeWithinContext(m=>m.get(Il))),new ag]);t=t.sort((m,g)=>P.compareRangesUsingStarts(m.range,g.range));let p=0;for(let m=0;m0){let B=t[m-1].range,j=P.fromPositions(B.getEndPosition(),g.getStartPosition()),z=new On(c.getValueInRange(j));u.appendChild(z),p+=z.value.length}let S=d.parseFragment(b,u);rl.adjustWhitespace(c,g.getStartPosition(),!0,u,new Set(S)),u.resolveVariables(h);let k=u.toString(),N=k.slice(p);p=k.length;let A=qt.replace(g,N);A.identifier={major:m,minor:0},A._isTracked=!0,l.push(A)}return d.ensureFinalTabstop(u,n,!0),{edits:l,snippets:[new lg(e,u,"")]}}constructor(e,t,n=ZG,r){this._editor=e,this._template=t,this._options=n,this._languageConfigurationService=r,this._templateMerges=[],this._snippets=[]}dispose(){Vi(this._snippets)}_logInfo(){return`template="${this._template}", merged_templates="${this._templateMerges.join(" -> ")}"`}insert(){if(!this._editor.hasModel())return;let{edits:e,snippets:t}=typeof this._template=="string"?rl.createEditsAndSnippetsFromSelections(this._editor,this._template,this._options.overwriteBefore,this._options.overwriteAfter,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService):rl.createEditsAndSnippetsFromEdits(this._editor,this._template,!1,this._options.adjustWhitespace,this._options.clipboardText,this._options.overtypingCapturer,this._languageConfigurationService);this._snippets=t,this._editor.executeEdits("snippet",e,n=>{let r=n.filter(o=>!!o.identifier);for(let o=0;oWe.fromPositions(o.range.getEndPosition()))}),this._editor.revealRange(this._editor.getSelections()[0])}merge(e,t=ZG){if(!this._editor.hasModel())return;this._templateMerges.push([this._snippets[0]._nestingLevel,this._snippets[0]._placeholderGroupsIdx,e]);let{edits:n,snippets:r}=rl.createEditsAndSnippetsFromSelections(this._editor,e,t.overwriteBefore,t.overwriteAfter,!0,t.adjustWhitespace,t.clipboardText,t.overtypingCapturer,this._languageConfigurationService);this._editor.executeEdits("snippet",n,o=>{let s=o.filter(l=>!!l.identifier);for(let l=0;lWe.fromPositions(l.range.getEndPosition()))})}next(){let e=this._move(!0);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}prev(){let e=this._move(!1);this._editor.setSelections(e),this._editor.revealPositionInCenterIfOutsideViewport(e[0].getPosition())}_move(e){let t=[];for(let n of this._snippets){let r=n.move(e);t.push(...r)}return t}get isAtFirstPlaceholder(){return this._snippets[0].isAtFirstPlaceholder}get isAtLastPlaceholder(){return this._snippets[0].isAtLastPlaceholder}get hasPlaceholder(){return this._snippets[0].hasPlaceholder}get hasChoice(){return this._snippets[0].hasChoice}get activeChoice(){return this._snippets[0].activeChoice}isSelectionWithinPlaceholders(){if(!this.hasPlaceholder)return!1;let e=this._editor.getSelections();if(e.length{o.push(...r.get(s))})}e.sort(P.compareRangesUsingStarts);for(let[n,r]of t){if(r.length!==e.length){t.delete(n);continue}r.sort(P.compareRangesUsingStarts);for(let o=0;o0}};gp=H0e([z0e(3,Tt)],gp)});var U0e,f2,e$,en,p2,vp=M(()=>{Ce();Mi();et();ri();Vt();Kn();xt();Zu();Re();pt();S_();$7();U0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},f2=function(i,e){return function(t,n){e(t,n,i)}},e$={overwriteBefore:0,overwriteAfter:0,undoStopBefore:!0,undoStopAfter:!0,adjustWhitespace:!0,clipboardText:void 0,overtypingCapturer:void 0},en=class cg{static get(e){return e.getContribution(cg.ID)}constructor(e,t,n,r,o){this._editor=e,this._logService=t,this._languageFeaturesService=n,this._languageConfigurationService=o,this._snippetListener=new re,this._modelVersionId=-1,this._inSnippet=cg.InSnippetMode.bindTo(r),this._hasNextTabstop=cg.HasNextTabstop.bindTo(r),this._hasPrevTabstop=cg.HasPrevTabstop.bindTo(r)}dispose(){var e;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),(e=this._session)===null||e===void 0||e.dispose(),this._snippetListener.dispose()}insert(e,t){try{this._doInsert(e,typeof t=="undefined"?e$:Object.assign(Object.assign({},e$),t))}catch(n){this.cancel(),this._logService.error(n),this._logService.error("snippet_error"),this._logService.error("insert_template=",e),this._logService.error("existing_template=",this._session?this._session._logInfo():"")}}_doInsert(e,t){var n;if(this._editor.hasModel()){if(this._snippetListener.clear(),t.undoStopBefore&&this._editor.getModel().pushStackElement(),this._session&&typeof e!="string"&&this.cancel(),this._session?(Lt(typeof e=="string"),this._session.merge(e,t)):(this._modelVersionId=this._editor.getModel().getAlternativeVersionId(),this._session=new gp(this._editor,e,t,this._languageConfigurationService),this._session.insert()),t.undoStopAfter&&this._editor.getModel().pushStackElement(),!((n=this._session)===null||n===void 0)&&n.hasChoice){this._choiceCompletionItemProvider={provideCompletionItems:(o,s)=>{if(!this._session||o!==this._editor.getModel()||!Se.equals(this._editor.getPosition(),s))return;let{activeChoice:a}=this._session;if(!a||a.choice.options.length===0)return;let l=o.getValueInRange(a.range),c=!!a.choice.options.find(u=>u.value===l),d=[];for(let u=0;ur.isFlush&&this.cancel())),this._snippetListener.add(this._editor.onDidChangeModel(()=>this.cancel())),this._snippetListener.add(this._editor.onDidChangeCursorSelection(()=>this._updateState()))}}_updateState(){if(!(!this._session||!this._editor.hasModel())){if(this._modelVersionId===this._editor.getModel().getAlternativeVersionId())return this.cancel();if(!this._session.hasPlaceholder)return this.cancel();if(this._session.isAtLastPlaceholder||!this._session.isSelectionWithinPlaceholders())return this._editor.getModel().pushStackElement(),this.cancel();this._inSnippet.set(!0),this._hasPrevTabstop.set(!this._session.isAtFirstPlaceholder),this._hasNextTabstop.set(!this._session.isAtLastPlaceholder),this._handleChoice()}}_handleChoice(){if(!this._session||!this._editor.hasModel()){this._currentChoice=void 0;return}let{activeChoice:e}=this._session;if(!e||!this._choiceCompletionItemProvider){this._currentChoice=void 0;return}this._currentChoice!==e.choice&&(this._currentChoice=e.choice,queueMicrotask(()=>{$G(this._editor,this._choiceCompletionItemProvider)}))}finish(){for(;this._inSnippet.get();)this.next()}cancel(e=!1){var t;this._inSnippet.reset(),this._hasPrevTabstop.reset(),this._hasNextTabstop.reset(),this._snippetListener.clear(),this._currentChoice=void 0,(t=this._session)===null||t===void 0||t.dispose(),this._session=void 0,this._modelVersionId=-1,e&&this._editor.setSelections([this._editor.getSelection()])}prev(){var e;(e=this._session)===null||e===void 0||e.prev(),this._updateState()}next(){var e;(e=this._session)===null||e===void 0||e.next(),this._updateState()}isInSnippet(){return!!this._inSnippet.get()}};en.ID="snippetController2";en.InSnippetMode=new rt("inSnippetMode",!1,v("inSnippetMode","Whether the editor in current in snippet mode"));en.HasNextTabstop=new rt("hasNextTabstop",!1,v("hasNextTabstop","Whether there is a next tab stop when in snippet mode"));en.HasPrevTabstop=new rt("hasPrevTabstop",!1,v("hasPrevTabstop","Whether there is a previous tab stop when in snippet mode"));en=U0e([f2(1,zc),f2(2,be),f2(3,Ke),f2(4,Tt)],en);Ae(en.ID,en,4);p2=xi.bindToContribution(en.get);Ne(new p2({id:"jumpToNextSnippetPlaceholder",precondition:ce.and(en.InSnippetMode,en.HasNextTabstop),handler:i=>i.next(),kbOpts:{weight:100+30,kbExpr:O.editorTextFocus,primary:2}}));Ne(new p2({id:"jumpToPrevSnippetPlaceholder",precondition:ce.and(en.InSnippetMode,en.HasPrevTabstop),handler:i=>i.prev(),kbOpts:{weight:100+30,kbExpr:O.editorTextFocus,primary:1026}}));Ne(new p2({id:"leaveSnippet",precondition:en.InSnippetMode,handler:i=>i.cancel(!0),kbOpts:{weight:100+30,kbExpr:O.editorTextFocus,primary:9,secondary:[1033]}}));Ne(new p2({id:"acceptSnippet",precondition:en.InSnippetMode,handler:i=>i.finish()}))});var j0e,Y7,_p,So,m2,t$=M(()=>{oi();At();Ce();Ys();Yu();w7();Mi();Ea();ri();qe();br();Kn();i2();qG();up();vp();zi();Et();j0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Y7=function(i,e){return function(t,n){e(t,n,i)}},_p=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};(function(i){i[i.Undo=0]="Undo",i[i.Redo=1]="Redo",i[i.AcceptWord=2]="AcceptWord",i[i.Other=3]="Other"})(So||(So={}));m2=class extends oe{get isAcceptingPartially(){return this._isAcceptingPartially}get isNavigatingCurrentInlineCompletion(){return this._isNavigatingCurrentInlineCompletion}constructor(e,t,n,r,o,s,a,l,c,d,u,h){super(),this.textModel=e,this.selectedSuggestItem=t,this.cursorPosition=n,this.textModelVersionId=r,this._debounceValue=o,this._suggestPreviewEnabled=s,this._suggestPreviewMode=a,this._inlineSuggestMode=l,this._enabled=c,this._instantiationService=d,this._commandService=u,this._languageConfigurationService=h,this._source=this._register(this._instantiationService.createInstance(d2,this.textModel,this.textModelVersionId,this._debounceValue)),this._isActive=Gs("isActive",!1),this._forceUpdate=bG("forceUpdate"),this._selectedInlineCompletionId=Gs("selectedInlineCompletionId",void 0),this._isAcceptingPartially=!1,this._isNavigatingCurrentInlineCompletion=!1,this._preserveCurrentCompletionReasons=new Set([So.Redo,So.Undo,So.AcceptWord]),this._fetchInlineCompletions=mG("fetch inline completions",{createEmptyChangeSummary:()=>({preserveCurrentCompletion:!1,inlineCompletionTriggerKind:ya.Automatic}),handleChange:(m,g)=>(m.didChange(this.textModelVersionId)&&this._preserveCurrentCompletionReasons.has(m.change)?g.preserveCurrentCompletion=!0:m.didChange(this._forceUpdate)&&(g.inlineCompletionTriggerKind=m.change),!0)},(m,g)=>{if(this._forceUpdate.read(m),!(this._enabled.read(m)&&this.selectedSuggestItem.read(m)||this._isActive.read(m))){this._source.cancelUpdate();return}this.textModelVersionId.read(m);let S=this.selectedInlineCompletion.get(),k=g.preserveCurrentCompletion||S!=null&&S.forwardStable?S:void 0,N=this._source.suggestWidgetInlineCompletions.get(),A=this.selectedSuggestItem.read(m);if(N&&!A){let z=this._source.inlineCompletions.get();dn(J=>{z&&N.request.versionId>z.request.versionId&&this._source.inlineCompletions.set(N.clone(),J),this._source.clearSuggestWidgetInlineCompletions(J)})}let B=this.cursorPosition.read(m),j={triggerKind:g.inlineCompletionTriggerKind,selectedSuggestionInfo:A==null?void 0:A.toSelectedSuggestionInfo()};return this._source.fetch(B,j,k)}),this._filteredInlineCompletionItems=xr("filteredInlineCompletionItems",m=>{let g=this._source.inlineCompletions.read(m);if(!g)return[];let b=this.cursorPosition.read(m);return g.inlineCompletions.filter(k=>k.isVisible(this.textModel,b,m))}),this.selectedInlineCompletionIndex=xr("selectedCachedCompletionIndex",m=>{let g=this._selectedInlineCompletionId.read(m),b=this._filteredInlineCompletionItems.read(m),S=this._selectedInlineCompletionId===void 0?-1:b.findIndex(k=>k.semanticId===g);return S===-1?(this._selectedInlineCompletionId.set(void 0,void 0),0):S}),this.selectedInlineCompletion=xr("selectedCachedCompletion",m=>{let g=this._filteredInlineCompletionItems.read(m),b=this.selectedInlineCompletionIndex.read(m);return g[b]}),this.lastTriggerKind=this._source.inlineCompletions.map(m=>m==null?void 0:m.request.context.triggerKind),this.inlineCompletionsCount=xr("selectedInlineCompletionsCount",m=>{if(this.lastTriggerKind.read(m)===ya.Explicit)return this._filteredInlineCompletionItems.read(m).length}),this.state=xr("ghostTextAndCompletion",m=>{var g;let b=this.textModel,S=this.selectedSuggestItem.read(m);if(S){let k=this._source.suggestWidgetInlineCompletions.read(m),N=k?k.inlineCompletions:[this.selectedInlineCompletion.read(m)].filter(rR),A=S.toSingleTextEdit().removeCommonPrefix(b),B=WR(N,at=>{let ot=at.toSingleTextEdit(m);return ot=ot.removeCommonPrefix(b,P.fromPositions(ot.range.getStartPosition(),S.range.getEndPosition())),ot.augments(A)?{edit:ot,completion:at}:void 0});if(!this._suggestPreviewEnabled.read(m)&&!B)return;let z=(g=B==null?void 0:B.edit)!==null&&g!==void 0?g:A,J=B?B.edit.text.length-A.text.length:0,ae=this._suggestPreviewMode.read(m),Le=this.cursorPosition.read(m),he=z.computeGhostText(b,ae,Le,J);return{ghostText:he!=null?he:new hp(z.range.endLineNumber,[]),completion:B==null?void 0:B.completion,suggestItem:S}}else{if(!this._isActive.read(m))return;let k=this.selectedInlineCompletion.read(m);if(!k)return;let N=k.toSingleTextEdit(m),A=this._inlineSuggestMode.read(m),B=this.cursorPosition.read(m),j=N.computeGhostText(b,A,B);return j?{ghostText:j,completion:k,suggestItem:void 0}:void 0}}),this.ghostText=xr("ghostText",m=>{let g=this.state.read(m);if(g)return g.ghostText}),this._register(yG(this._fetchInlineCompletions,!0));let p;this._register(un("call handleItemDidShow",m=>{var g,b;let S=this.state.read(m),k=S==null?void 0:S.completion;if((k==null?void 0:k.semanticId)!==(p==null?void 0:p.semanticId)&&(p=k,k)){let N=k.inlineCompletion,A=N.source;(b=(g=A.provider).handleItemDidShow)===null||b===void 0||b.call(g,A.inlineCompletions,N.sourceInlineCompletion,N.insertText)}}))}trigger(e){return _p(this,void 0,void 0,function*(){this._isActive.set(!0,e),yield this._fetchInlineCompletions.get()})}triggerExplicitly(e){return _p(this,void 0,void 0,function*(){S7(e,t=>{this._isActive.set(!0,t),this._forceUpdate.trigger(t,ya.Explicit)}),yield this._fetchInlineCompletions.get()})}stop(e){S7(e,t=>{this._isActive.set(!1,t),this._source.clear(t)})}_deltaSelectedInlineCompletionIndex(e){return _p(this,void 0,void 0,function*(){yield this.triggerExplicitly(),this._isNavigatingCurrentInlineCompletion=!0;try{let t=this._filteredInlineCompletionItems.get()||[];if(t.length>0){let n=(this.selectedInlineCompletionIndex.get()+e+t.length)%t.length;this._selectedInlineCompletionId.set(t[n].semanticId,void 0)}else this._selectedInlineCompletionId.set(void 0,void 0)}finally{this._isNavigatingCurrentInlineCompletion=!1}})}next(){return _p(this,void 0,void 0,function*(){yield this._deltaSelectedInlineCompletionIndex(1)})}previous(){return _p(this,void 0,void 0,function*(){yield this._deltaSelectedInlineCompletionIndex(-1)})}accept(e){var t,n;return _p(this,void 0,void 0,function*(){if(e.getModel()!==this.textModel)throw new Qd;let r=this.ghostText.get(),o=(t=this.selectedInlineCompletion.get())===null||t===void 0?void 0:t.toInlineCompletion(void 0);!r||!o||(e.pushUndoStop(),o.snippetInfo?(e.executeEdits("inlineSuggestion.accept",[qt.replaceMove(o.range,""),...o.additionalTextEdits]),e.setPosition(o.snippetInfo.range.getStartPosition()),(n=en.get(e))===null||n===void 0||n.insert(o.snippetInfo.snippet,{undoStopBefore:!1})):e.executeEdits("inlineSuggestion.accept",[qt.replaceMove(o.range,o.insertText),...o.additionalTextEdits]),o.command&&(yield this._commandService.executeCommand(o.command.id,...o.command.arguments||[]).then(void 0,Ut)),dn(s=>{this._source.clear(s),this._isActive.set(!1,s)}))})}acceptNextWord(e){this._acceptNext(e,(t,n)=>{let r=this.textModel.getLanguageIdAtPosition(t.lineNumber,t.column),o=this._languageConfigurationService.getLanguageConfiguration(r),s=new RegExp(o.wordDefinition.source,o.wordDefinition.flags.replace("g","")),a=n.match(s),l=0;a&&a.index!==void 0?a.index===0?l=a[0].length:l=a.index:l=n.length;let d=/\s+/g.exec(n);return d&&d.index!==void 0&&d.index+d[0].length{let r=n.match(/\n/);return r&&r.index!==void 0?r.index+1:n.length})}_acceptNext(e,t){var n;if(e.getModel()!==this.textModel)throw new Qd;let r=this.ghostText.get(),o=(n=this.selectedInlineCompletion.get())===null||n===void 0?void 0:n.toInlineCompletion(void 0);if(!r||!o)return;if(o.snippetInfo||o.filterText!==o.insertText){this.accept(e);return}if(r.parts.length===0)return;let s=r.parts[0],a=new Se(r.lineNumber,s.column),l=s.lines.join(` +`),c=t(a,l);if(c===l.length&&r.parts.length===1){this.accept(e);return}let d=l.substring(0,c);this._isAcceptingPartially=!0;try{e.pushUndoStop(),e.executeEdits("inlineSuggestion.accept",[qt.replace(P.fromPositions(a),d)]);let u=Y0(d);e.setPosition($0(a,u))}finally{this._isAcceptingPartially=!1}if(o.source.provider.handlePartialAccept){let u=P.fromPositions(o.range.getStartPosition(),$0(a,Y0(d))),h=e.getModel().getValueInRange(u,1);o.source.provider.handlePartialAccept(o.source.inlineCompletions,o.sourceInlineCompletion,h.length)}}};m2=j0e([Y7(9,Be),Y7(10,ui),Y7(11,Tt)],m2)});var W0e,i$,dg,v2,X7,Q7,ug,bp,J7=M(()=>{Dt();Ce();tf();Toe();br();Wn();bl();Et();cu();W0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},i$=function(i,e){return function(t,n){e(t,n,i)}},dg=class{constructor(e){this.name=e}select(e,t,n){if(n.length===0)return 0;let r=n[0].score[0];for(let o=0;ol&&u.type===n[c].completion.kind&&u.insertText===n[c].completion.insertText&&(l=u.touch,a=c),n[c].completion.preselect&&s===-1)return s=c}return a!==-1?a:s!==-1?s:0}toJSON(){return this._cache.toJSON()}fromJSON(e){this._cache.clear();let t=0;for(let[n,r]of e)r.touch=t,r.type=typeof r.type=="number"?r.type:qm.fromString(r.type),this._cache.set(n,r);this._seq=this._cache.size}},Q7=class extends dg{constructor(){super("recentlyUsedByPrefix"),this._trie=LP.forStrings(),this._seq=0}memorize(e,t,n){let{word:r}=e.getWordUntilPosition(t),o=`${e.getLanguageId()}/${r}`;this._trie.set(o,{type:n.completion.kind,insertText:n.completion.insertText,touch:this._seq++})}select(e,t,n){let{word:r}=e.getWordUntilPosition(t);if(!r)return super.select(e,t,n);let o=`${e.getLanguageId()}/${r}`,s=this._trie.get(o);if(s||(s=this._trie.findSubstr(o)),s)for(let a=0;ae.push([n,t])),e.sort((t,n)=>-(t[1].touch-n[1].touch)).forEach((t,n)=>t[1].touch=n),e.slice(0,200)}fromJSON(e){if(this._trie.clear(),e.length>0){this._seq=e[0][1].touch+1;for(let[t,n]of e)n.type=typeof n.type=="number"?n.type:qm.fromString(n.type),this._trie.set(t,n)}}},ug=class g2{constructor(e,t){this._storageService=e,this._configService=t,this._disposables=new re,this._persistSoon=new ii(()=>this._saveState(),500),this._disposables.add(e.onWillSaveState(n=>{n.reason===ab.SHUTDOWN&&this._saveState()}))}dispose(){this._disposables.dispose(),this._persistSoon.dispose()}memorize(e,t,n){this._withStrategy(e,t).memorize(e,t,n),this._persistSoon.schedule()}select(e,t,n){return this._withStrategy(e,t).select(e,t,n)}_withStrategy(e,t){var n;let r=this._configService.getValue("editor.suggestSelection",{overrideIdentifier:e.getLanguageIdAtPosition(t.lineNumber,t.column),resource:e.uri});if(((n=this._strategy)===null||n===void 0?void 0:n.name)!==r){this._saveState();let o=g2._strategyCtors.get(r)||v2;this._strategy=new o;try{let a=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,l=this._storageService.get(`${g2._storagePrefix}/${r}`,a);l&&this._strategy.fromJSON(JSON.parse(l))}catch(s){}}return this._strategy}_saveState(){if(this._strategy){let t=this._configService.getValue("editor.suggest.shareSuggestSelections")?0:1,n=JSON.stringify(this._strategy);this._storageService.store(`${g2._storagePrefix}/${this._strategy.name}`,n,t,1)}}};ug._strategyCtors=new Map([["recentlyUsedByPrefix",Q7],["recentlyUsed",X7],["first",v2]]);ug._storagePrefix="suggest/memories";ug=W0e([i$(0,$r),i$(1,Mt)],ug);bp=rr("ISuggestMemories");sr(bp,ug,1)});var V0e,K0e,yp,r$=M(()=>{pt();V0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},K0e=function(i,e){return function(t,n){e(t,n,i)}},yp=class n${constructor(e,t){this._editor=e,this._enabled=!1,this._ckAtEnd=n$.AtEnd.bindTo(t),this._configListener=this._editor.onDidChangeConfiguration(n=>n.hasChanged(119)&&this._update()),this._update()}dispose(){var e;this._configListener.dispose(),(e=this._selectionListener)===null||e===void 0||e.dispose(),this._ckAtEnd.reset()}_update(){let e=this._editor.getOption(119)==="on";if(this._enabled!==e)if(this._enabled=e,this._enabled){let t=()=>{if(!this._editor.hasModel()){this._ckAtEnd.set(!1);return}let n=this._editor.getModel(),r=this._editor.getSelection(),o=n.getWordAtPosition(r.getStartPosition());if(!o){this._ckAtEnd.set(!1);return}this._ckAtEnd.set(o.endColumn===r.getStartPosition().column)};this._selectionListener=this._editor.onDidChangeCursorSelection(t),t()}else this._selectionListener&&(this._ckAtEnd.reset(),this._selectionListener.dispose(),this._selectionListener=void 0)}};yp.AtEnd=new rt("atEndOfWord",!1);yp=V0e([K0e(1,Ke)],yp)});var q0e,G0e,Sd,o$=M(()=>{pt();q0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},G0e=function(i,e){return function(t,n){e(t,n,i)}},Sd=class _2{constructor(e,t){this._editor=e,this._index=0,this._ckOtherSuggestions=_2.OtherSuggestions.bindTo(t)}dispose(){this.reset()}reset(){var e;this._ckOtherSuggestions.reset(),(e=this._listener)===null||e===void 0||e.dispose(),this._model=void 0,this._acceptNext=void 0,this._ignore=!1}set({model:e,index:t},n){if(e.items.length===0){this.reset();return}if(_2._moveIndex(!0,e,t)===t){this.reset();return}this._acceptNext=n,this._model=e,this._index=t,this._listener=this._editor.onDidChangeCursorPosition(()=>{this._ignore||this.reset()}),this._ckOtherSuggestions.set(!0)}static _moveIndex(e,t,n){let r=n;for(let o=t.items.length;o>0&&(r=(r+t.items.length+(e?1:-1))%t.items.length,!(r===n||!t.items[r].completion.additionalTextEdits));o--);return r}next(){this._move(!0)}prev(){this._move(!1)}_move(e){if(this._model)try{this._ignore=!0,this._index=_2._moveIndex(e,this._model,this._index),this._acceptNext({index:this._index,item:this._model.items[this._index],model:this._model})}finally{this._ignore=!1}}};Sd.OtherSuggestions=new rt("hasOtherSuggestions",!1);Sd=q0e([G0e(1,Ke)],Sd)});var b2,s$=M(()=>{oi();Ce();pw();b2=class{constructor(e,t,n,r){this._disposables=new re,this._disposables.add(n.onDidSuggest(o=>{o.completionModel.items.length===0&&this.reset()})),this._disposables.add(n.onDidCancel(o=>{this.reset()})),this._disposables.add(t.onDidShow(()=>this._onItem(t.getFocusedItem()))),this._disposables.add(t.onDidFocus(this._onItem,this)),this._disposables.add(t.onDidHide(this.reset,this)),this._disposables.add(e.onWillType(o=>{if(this._active&&!t.isFrozen()&&n.state!==0){let s=o.charCodeAt(o.length-1);this._active.acceptCharacters.has(s)&&e.getOption(0)&&r(this._active.item)}}))}_onItem(e){if(!e||!ji(e.item.completion.commitCharacters)){this.reset();return}if(this._active&&this._active.item.item===e.item)return;let t=new tu;for(let n of e.item.completion.commitCharacters)n.length>0&&t.add(n.charCodeAt(0));this._active={acceptCharacters:t,item:e}}reset(){this._active=void 0}dispose(){this._disposables.dispose()}}});var $0e,wd,Z7=M(()=>{XN();ri();qe();$0e=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},wd=class i{provideSelectionRanges(e,t){return $0e(this,void 0,void 0,function*(){let n=[];for(let r of t){let o=[];n.push(o);let s=new Map;yield new Promise(a=>i._bracketsRightYield(a,0,e,r,s)),yield new Promise(a=>i._bracketsLeftYield(a,0,e,r,s,o))}return n})}static _bracketsRightYield(e,t,n,r,o){let s=new Map,a=Date.now();for(;;){if(t>=i._maxRounds){e();break}if(!r){e();break}let l=n.bracketPairs.findNextBracket(r);if(!l){e();break}if(Date.now()-a>i._maxDuration){setTimeout(()=>i._bracketsRightYield(e,t+1,n,r,o));break}if(l.bracketInfo.isOpeningBracket){let d=l.bracketInfo.bracketText,u=s.has(d)?s.get(d):0;s.set(d,u+1)}else{let d=l.bracketInfo.getOpeningBrackets()[0].bracketText,u=s.has(d)?s.get(d):0;if(u-=1,s.set(d,Math.max(0,u)),u<0){let h=o.get(d);h||(h=new h_,o.set(d,h)),h.push(l.range)}}r=l.range.getEndPosition()}}static _bracketsLeftYield(e,t,n,r,o,s){let a=new Map,l=Date.now();for(;;){if(t>=i._maxRounds&&o.size===0){e();break}if(!r){e();break}let c=n.bracketPairs.findPrevBracket(r);if(!c){e();break}if(Date.now()-l>i._maxDuration){setTimeout(()=>i._bracketsLeftYield(e,t+1,n,r,o,s));break}if(c.bracketInfo.isOpeningBracket){let u=c.bracketInfo.bracketText,h=a.has(u)?a.get(u):0;if(h-=1,a.set(u,Math.max(0,h)),h<0){let p=o.get(u);if(p){let m=p.shift();p.size===0&&o.delete(u);let g=P.fromPositions(c.range.getEndPosition(),m.getStartPosition()),b=P.fromPositions(c.range.getStartPosition(),m.getEndPosition());s.push({range:g}),s.push({range:b}),i._addBracketLeading(n,b,s)}}}else{let u=c.bracketInfo.getOpeningBrackets()[0].bracketText,h=a.has(u)?a.get(u):0;a.set(u,h+1)}r=c.range.getStartPosition()}}static _addBracketLeading(e,t,n){if(t.startLineNumber===t.endLineNumber)return;let r=t.startLineNumber,o=e.getLineFirstNonWhitespaceColumn(r);o!==0&&o!==t.startColumn&&(n.push({range:P.fromPositions(new Se(r,o),t.getEndPosition())}),n.push({range:P.fromPositions(new Se(r,1),t.getEndPosition())}));let s=r-1;if(s>0){let a=e.getLineFirstNonWhitespaceColumn(s);a===t.startColumn&&a!==e.getLineLastNonWhitespaceColumn(s)&&(n.push({range:P.fromPositions(new Se(s,a),t.getEndPosition())}),n.push({range:P.fromPositions(new Se(s,1),t.getEndPosition())}))}}};wd._maxDuration=30;wd._maxRounds=2});var Y0e,xd,eT=M(()=>{oi();qe();Z7();Y0e=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},xd=class i{static create(e,t){return Y0e(this,void 0,void 0,function*(){if(!t.getOption(114).localityBonus||!t.hasModel())return i.None;let n=t.getModel(),r=t.getPosition();if(!e.canComputeWordRanges(n.uri))return i.None;let[o]=yield new wd().provideSelectionRanges(n,[r]);if(o.length===0)return i.None;let s=yield e.computeWordRanges(n.uri,o[0].range);if(!s)return i.None;let a=n.getWordUntilPosition(r);return delete s[a.word],new class extends i{distance(l,c){if(!r.equals(t.getPosition()))return 0;if(c.kind===17)return 2<<20;let d=typeof c.label=="string"?c.label:c.label.label,u=s[d];if(zR(u))return 2<<20;let h=iu(u,P.fromPositions(l),P.compareRangesUsingStarts),p=h>=0?u[h]:u[Math.max(0,~h-1)],m=o.length;for(let g of o){if(!P.containsRange(g.range,p))break;m-=1}return m}}})}};xd.None=new class extends xd{distance(){return 0}}});var hg,Cp,tT=M(()=>{oi();Cl();wi();hg=class{constructor(e,t){this.leadingLineContent=e,this.characterCountDelta=t}},Cp=class i{constructor(e,t,n,r,o,s,a=O_.default,l=void 0){this.clipboardText=l,this._snippetCompareFn=i._compareCompletionItems,this._items=e,this._column=t,this._wordDistance=r,this._options=o,this._refilterKind=1,this._lineContext=n,this._fuzzyScoreOptions=a,s==="top"?this._snippetCompareFn=i._compareCompletionItemsSnippetsUp:s==="bottom"&&(this._snippetCompareFn=i._compareCompletionItemsSnippetsDown)}get lineContext(){return this._lineContext}set lineContext(e){(this._lineContext.leadingLineContent!==e.leadingLineContent||this._lineContext.characterCountDelta!==e.characterCountDelta)&&(this._refilterKind=this._lineContext.characterCountDelta0&&n[0].container.incomplete&&e.add(t);return e}get stats(){return this._ensureCachedState(),this._stats}_ensureCachedState(){this._refilterKind!==0&&this._createCachedState()}_createCachedState(){this._itemsByProvider=new Map;let e=[],{leadingLineContent:t,characterCountDelta:n}=this._lineContext,r="",o="",s=this._refilterKind===1?this._items:this._filteredItems,a=[],l=!this._options.filterGraceful||s.length>2e3?P_:rO;for(let c=0;c=p)d.score=yl.Default;else if(typeof d.completion.filterText=="string"){let g=l(r,o,m,d.completion.filterText,d.filterTextLow,0,this._fuzzyScoreOptions);if(!g)continue;wR(d.completion.filterText,d.textLabel)===0?d.score=g:(d.score=nO(r,o,m,d.textLabel,d.labelLow,0),d.score[0]=g[0])}else{let g=l(r,o,m,d.textLabel,d.labelLow,0,this._fuzzyScoreOptions);if(!g)continue;d.score=g}}d.idx=c,d.distance=this._wordDistance.distance(d.position,d.completion),a.push(d),e.push(d.textLabel.length)}this._filteredItems=a.sort(this._snippetCompareFn),this._refilterKind=0,this._stats={pLabelLen:e.length?HR(e.length-.85,e,(c,d)=>c-d):0}}static _compareCompletionItems(e,t){return e.score[0]>t.score[0]?-1:e.score[0]t.distance?1:e.idxt.idx?1:0}static _compareCompletionItemsSnippetsDown(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return 1;if(t.completion.kind===27)return-1}return i._compareCompletionItems(e,t)}static _compareCompletionItemsSnippetsUp(e,t){if(e.completion.kind!==t.completion.kind){if(e.completion.kind===27)return-1;if(t.completion.kind===27)return 1}return i._compareCompletionItems(e,t)}}});function J0e(i,e,t){if(!e.getContextKeyValue(In.inlineSuggestionVisible.key))return!0;let n=e.getContextKeyValue(In.suppressSuggestions.key);return n!==void 0?!n:!i.getOption(60).suppressSuggestions}function Z0e(i,e,t){if(!e.getContextKeyValue("inlineSuggestionVisible"))return!0;let n=e.getContextKeyValue(In.suppressSuggestions.key);return n!==void 0?!n:!i.getOption(60).suppressSuggestions}var X0e,eh,Q0e,hc,y2,l$=M(()=>{Dt();gi();At();Gt();Ce();wi();Mn();fb();eT();$m();Wn();pt();S_();Hc();tT();Zu();xt();Cl();Mi();Zy();vp();X0e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},eh=function(i,e){return function(t,n){e(t,n,i)}},Q0e=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},hc=class{static shouldAutoTrigger(e){if(!e.hasModel())return!1;let t=e.getModel(),n=e.getPosition();t.tokenization.tokenizeIfCheap(n.lineNumber);let r=t.getWordAtPosition(n);return!(!r||r.endColumn!==n.column&&r.startColumn+1!==n.column||!isNaN(Number(r.word)))}constructor(e,t,n){this.leadingLineContent=e.getLineContent(t.lineNumber).substr(0,t.column-1),this.leadingWord=e.getWordUntilPosition(t),this.lineNumber=t.lineNumber,this.column=t.column,this.triggerOptions=n}};y2=class a${constructor(e,t,n,r,o,s,a,l){this._editor=e,this._editorWorkerService=t,this._clipboardService=n,this._telemetryService=r,this._logService=o,this._contextKeyService=s,this._configurationService=a,this._languageFeaturesService=l,this._toDispose=new re,this._triggerCharacterListener=new re,this._triggerQuickSuggest=new ss,this._triggerState=void 0,this._completionDisposables=new re,this._onDidCancel=new $e,this._onDidTrigger=new $e,this._onDidSuggest=new $e,this.onDidCancel=this._onDidCancel.event,this.onDidTrigger=this._onDidTrigger.event,this.onDidSuggest=this._onDidSuggest.event,this._telemetryGate=0,this._currentSelection=this._editor.getSelection()||new We(1,1,1,1),this._toDispose.add(this._editor.onDidChangeModel(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeModelLanguage(()=>{this._updateTriggerCharacters(),this.cancel()})),this._toDispose.add(this._editor.onDidChangeConfiguration(()=>{this._updateTriggerCharacters()})),this._toDispose.add(this._languageFeaturesService.completionProvider.onDidChange(()=>{this._updateTriggerCharacters(),this._updateActiveSuggestSession()}));let c=!1;this._toDispose.add(this._editor.onDidCompositionStart(()=>{c=!0})),this._toDispose.add(this._editor.onDidCompositionEnd(()=>{c=!1,this._onCompositionEnd()})),this._toDispose.add(this._editor.onDidChangeCursorSelection(d=>{c||this._onCursorChange(d)})),this._toDispose.add(this._editor.onDidChangeModelContent(()=>{!c&&this._triggerState!==void 0&&this._refilterCompletionItems()})),this._updateTriggerCharacters()}dispose(){Vi(this._triggerCharacterListener),Vi([this._onDidCancel,this._onDidSuggest,this._onDidTrigger,this._triggerQuickSuggest]),this._toDispose.dispose(),this._completionDisposables.dispose(),this.cancel()}_updateTriggerCharacters(){if(this._triggerCharacterListener.clear(),this._editor.getOption(88)||!this._editor.hasModel()||!this._editor.getOption(117))return;let e=new Map;for(let n of this._languageFeaturesService.completionProvider.all(this._editor.getModel()))for(let r of n.triggerCharacters||[]){let o=e.get(r);o||(o=new Set,o.add(GG()),e.set(r,o)),o.add(n)}let t=n=>{var r;if(!Z0e(this._editor,this._contextKeyService,this._configurationService)||hc.shouldAutoTrigger(this._editor))return;if(!n){let a=this._editor.getPosition();n=this._editor.getModel().getLineContent(a.lineNumber).substr(0,a.column-1)}let o="";TR(n.charCodeAt(n.length-1))?ER(n.charCodeAt(n.length-2))&&(o=n.substr(n.length-2)):o=n.charAt(n.length-1);let s=e.get(o);if(s){let a=new Map;if(this._completionModel)for(let[l,c]of this._completionModel.getItemsByProvider())s.has(l)||a.set(l,c);this.trigger({auto:!0,triggerKind:1,triggerCharacter:o,retrigger:!!this._completionModel,clipboardText:(r=this._completionModel)===null||r===void 0?void 0:r.clipboardText,completionOptions:{providerFilter:s,providerItemsToReuse:a}})}};this._triggerCharacterListener.add(this._editor.onDidType(t)),this._triggerCharacterListener.add(this._editor.onDidCompositionEnd(()=>t()))}get state(){return this._triggerState?this._triggerState.auto?2:1:0}cancel(e=!1){var t;this._triggerState!==void 0&&(this._triggerQuickSuggest.cancel(),(t=this._requestToken)===null||t===void 0||t.cancel(),this._requestToken=void 0,this._triggerState=void 0,this._completionModel=void 0,this._context=void 0,this._onDidCancel.fire({retrigger:e}))}clear(){this._completionDisposables.clear()}_updateActiveSuggestSession(){this._triggerState!==void 0&&(!this._editor.hasModel()||!this._languageFeaturesService.completionProvider.has(this._editor.getModel())?this.cancel():this.trigger({auto:this._triggerState.auto,retrigger:!0}))}_onCursorChange(e){if(!this._editor.hasModel())return;let t=this._currentSelection;if(this._currentSelection=this._editor.getSelection(),!e.selection.isEmpty()||e.reason!==0&&e.reason!==3||e.source!=="keyboard"&&e.source!=="deleteLeft"){this.cancel();return}this._triggerState===void 0&&e.reason===0?(t.containsRange(this._currentSelection)||t.getEndPosition().isBeforeOrEqual(this._currentSelection.getPosition()))&&this._doTriggerQuickSuggest():this._triggerState!==void 0&&e.reason===3&&this._refilterCompletionItems()}_onCompositionEnd(){this._triggerState===void 0?this._doTriggerQuickSuggest():this._refilterCompletionItems()}_doTriggerQuickSuggest(){var e;il.isAllOff(this._editor.getOption(86))||this._editor.getOption(114).snippetsPreventQuickSuggestions&&(!((e=en.get(this._editor))===null||e===void 0)&&e.isInSnippet())||(this.cancel(),this._triggerQuickSuggest.cancelAndSet(()=>{if(this._triggerState!==void 0||!hc.shouldAutoTrigger(this._editor)||!this._editor.hasModel()||!this._editor.hasWidgetFocus())return;let t=this._editor.getModel(),n=this._editor.getPosition(),r=this._editor.getOption(86);if(!il.isAllOff(r)){if(!il.isAllOn(r)){t.tokenization.tokenizeIfCheap(n.lineNumber);let o=t.tokenization.getLineTokens(n.lineNumber),s=o.getStandardTokenType(o.findTokenIndexAtOffset(Math.max(n.column-1-1,0)));if(il.valueFor(r,s)!=="on")return}J0e(this._editor,this._contextKeyService,this._configurationService)&&this._languageFeaturesService.completionProvider.has(t)&&this.trigger({auto:!0})}},this._editor.getOption(87)))}_refilterCompletionItems(){Lt(this._editor.hasModel()),Lt(this._triggerState!==void 0);let e=this._editor.getModel(),t=this._editor.getPosition(),n=new hc(e,t,Object.assign(Object.assign({},this._triggerState),{refilter:!0}));this._onNewContext(n)}trigger(e){var t,n,r,o,s,a;if(!this._editor.hasModel())return;let l=this._editor.getModel(),c=new hc(l,this._editor.getPosition(),e);this.cancel(e.retrigger),this._triggerState=e,this._onDidTrigger.fire({auto:e.auto,shy:(t=e.shy)!==null&&t!==void 0?t:!1,position:this._editor.getPosition()}),this._context=c;let d={triggerKind:(n=e.triggerKind)!==null&&n!==void 0?n:0};e.triggerCharacter&&(d={triggerKind:1,triggerCharacter:e.triggerCharacter}),this._requestToken=new Ri;let u=this._editor.getOption(108),h=1;switch(u){case"top":h=0;break;case"bottom":h=2;break}let{itemKind:p,showDeprecated:m}=a$._createSuggestFilter(this._editor),g=new dc(h,(o=(r=e.completionOptions)===null||r===void 0?void 0:r.kindFilter)!==null&&o!==void 0?o:p,(s=e.completionOptions)===null||s===void 0?void 0:s.providerFilter,(a=e.completionOptions)===null||a===void 0?void 0:a.providerItemsToReuse,m),b=xd.create(this._editorWorkerService,this._editor),S=eg(this._languageFeaturesService.completionProvider,l,this._editor.getPosition(),g,d,this._requestToken.token);Promise.all([S,b]).then(([k,N])=>Q0e(this,void 0,void 0,function*(){var A;if((A=this._requestToken)===null||A===void 0||A.dispose(),!this._editor.hasModel())return;let B=e==null?void 0:e.clipboardText;if(!B&&k.needsClipboard&&(B=yield this._clipboardService.readText()),this._triggerState===void 0)return;let j=this._editor.getModel(),z=new hc(j,this._editor.getPosition(),e),J=Object.assign(Object.assign({},O_.default),{firstMatchCanBeWeak:!this._editor.getOption(114).matchOnWordStartOnly});this._completionModel=new Cp(k.items,this._context.column,{leadingLineContent:z.leadingLineContent,characterCountDelta:z.column-this._context.column},N,this._editor.getOption(114),this._editor.getOption(108),J,B),this._completionDisposables.add(k.disposable),this._onNewContext(z),this._reportDurationsTelemetry(k.durations)})).catch(lt)}_reportDurationsTelemetry(e){this._telemetryGate++%230===0&&setTimeout(()=>{this._telemetryService.publicLog2("suggest.durations.json",{data:JSON.stringify(e)}),this._logService.debug("suggest.durations.json",e)})}static _createSuggestFilter(e){let t=new Set;e.getOption(108)==="none"&&t.add(27);let r=e.getOption(114);return r.showMethods||t.add(0),r.showFunctions||t.add(1),r.showConstructors||t.add(2),r.showFields||t.add(3),r.showVariables||t.add(4),r.showClasses||t.add(5),r.showStructs||t.add(6),r.showInterfaces||t.add(7),r.showModules||t.add(8),r.showProperties||t.add(9),r.showEvents||t.add(10),r.showOperators||t.add(11),r.showUnits||t.add(12),r.showValues||t.add(13),r.showConstants||t.add(14),r.showEnums||t.add(15),r.showEnumMembers||t.add(16),r.showKeywords||t.add(17),r.showWords||t.add(18),r.showColors||t.add(19),r.showFiles||t.add(20),r.showReferences||t.add(21),r.showColors||t.add(22),r.showFolders||t.add(23),r.showTypeParameters||t.add(24),r.showSnippets||t.add(27),r.showUsers||t.add(25),r.showIssues||t.add(26),{itemKind:t,showDeprecated:r.showDeprecated}}_onNewContext(e){if(this._context){if(e.lineNumber!==this._context.lineNumber){this.cancel();return}if(Ui(e.leadingLineContent)!==Ui(this._context.leadingLineContent)){this.cancel();return}if(e.columnthis._context.leadingWord.startColumn){if(hc.shouldAutoTrigger(this._editor)&&this._context){let n=this._completionModel.getItemsByProvider();this.trigger({auto:this._context.triggerOptions.auto,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerItemsToReuse:n}})}return}if(e.column>this._context.column&&this._completionModel.getIncompleteProvider().size>0&&e.leadingWord.word.length!==0){let t=new Map,n=new Set;for(let[r,o]of this._completionModel.getItemsByProvider())o.length>0&&o[0].container.incomplete?n.add(r):t.set(r,o);this.trigger({auto:this._context.triggerOptions.auto,triggerKind:2,retrigger:!0,clipboardText:this._completionModel.clipboardText,completionOptions:{providerFilter:n,providerItemsToReuse:t}})}else{let t=this._completionModel.lineContext,n=!1;if(this._completionModel.lineContext={leadingLineContent:e.leadingLineContent,characterCountDelta:e.column-this._context.column},this._completionModel.items.length===0){let r=hc.shouldAutoTrigger(this._editor);if(!this._context){this.cancel();return}if(r&&this._context.leadingWord.endColumn0,n&&e.leadingWord.word.length===0){this.cancel();return}}this._onDidSuggest.fire({completionModel:this._completionModel,triggerOptions:e.triggerOptions,isFrozen:n})}}}}};y2=X0e([eh(1,Ml),eh(2,Ds),eh(3,Dr),eh(4,zc),eh(5,Ke),eh(6,Mt),eh(7,be)],y2)});var fg,c$=M(()=>{Ce();fg=class i{constructor(e,t){this._disposables=new re,this._lastOvertyped=[],this._locked=!1,this._disposables.add(e.onWillType(()=>{if(this._locked||!e.hasModel())return;let n=e.getSelections(),r=n.length,o=!1;for(let a=0;ai._maxSelectionLength)return;this._lastOvertyped[a]={value:s.getValueInRange(l),multiline:l.startLineNumber!==l.endLineNumber}}})),this._disposables.add(t.onDidTrigger(n=>{this._locked=!0})),this._disposables.add(t.onDidCancel(n=>{this._locked=!1}))}getLastOvertypedInfo(e){if(e>=0&&e{});var u$=M(()=>{d$()});var ege,fc,Vo,Sp=M(()=>{Cw();Lr();tF();zi();pt();Et();Ro();ar();qw();Kn();xt();ege=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},fc=function(i,e){return function(t,n){e(t,n,i)}},Vo=class extends eF{constructor(e,t,n,r,o,s,a,l,c,d,u,h,p){super(e,Object.assign(Object.assign({},r.getRawOptions()),{overflowWidgetsDomNode:r.getOverflowWidgetsDomNode()}),n,o,s,a,l,c,d,u,h,p),this._parentEditor=r,this._overwriteOptions=t,super.updateOptions(this._overwriteOptions),this._register(r.onDidChangeConfiguration(m=>this._onParentConfigurationChanged(m)))}getParentEditor(){return this._parentEditor}_onParentConfigurationChanged(e){super.updateOptions(this._parentEditor.getRawOptions()),super.updateOptions(this._overwriteOptions)}updateOptions(e){sf(this._overwriteOptions,e,!0),super.updateOptions(this._overwriteOptions)}};Vo=ege([fc(4,Be),fc(5,ei),fc(6,ui),fc(7,Ke),fc(8,pn),fc(9,Ei),fc(10,Sb),fc(11,Tt),fc(12,be)],Vo)});var tge,iT,nT,C2,f$=M(()=>{Bt();gf();Ce();Re();yb();Xi();pt();Et();tge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},iT=function(i,e){return function(t,n){e(t,n,i)}},nT=class i extends bb{updateLabel(){let e=this._keybindingService.lookupKeybinding(this._action.id,this._contextKeyService);if(!e)return super.updateLabel();this.label&&(this.label.textContent=v({key:"content",comment:["A label","A keybinding"]},"{0} ({1})",this._action.label,i.symbolPrintEnter(e)))}static symbolPrintEnter(e){var t;return(t=e.getLabel())===null||t===void 0?void 0:t.replace(/\benter\b/gi,"\u23CE")}},C2=class{constructor(e,t,n,r,o){this._menuId=t,this._menuService=r,this._contextKeyService=o,this._menuDisposables=new re,this.element=me(e,fe(".suggest-status-bar"));let s=a=>a instanceof da?n.createInstance(nT,a,void 0):void 0;this._leftActions=new Oo(this.element,{actionViewItemProvider:s}),this._rightActions=new Oo(this.element,{actionViewItemProvider:s}),this._leftActions.domNode.classList.add("left"),this._rightActions.domNode.classList.add("right")}dispose(){this._menuDisposables.dispose(),this.element.remove()}show(){let e=this._menuService.createMenu(this._menuId,this._contextKeyService),t=()=>{let n=[],r=[];for(let[o,s]of e.getActions())o==="left"?n.push(...s):r.push(...s);this._leftActions.clear(),this._leftActions.push(n),this._rightActions.clear(),this._rightActions.push(r)};this._menuDisposables.add(e.onDidChange(()=>t())),this._menuDisposables.add(e)}hide(){this._menuDisposables.clear()}};C2=tge([iT(2,Be),iT(3,As),iT(4,Ke)],C2)});var wp,rT=M(()=>{Bt();Hw();Gt();Ce();wp=class{constructor(){this._onDidWillResize=new $e,this.onDidWillResize=this._onDidWillResize.event,this._onDidResize=new $e,this.onDidResize=this._onDidResize.event,this._sashListener=new re,this._size=new Di(0,0),this._minSize=new Di(0,0),this._maxSize=new Di(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER),this.domNode=document.createElement("div"),this._eastSash=new Al(this.domNode,{getVerticalSashLeft:()=>this._size.width},{orientation:0}),this._westSash=new Al(this.domNode,{getVerticalSashLeft:()=>0},{orientation:0}),this._northSash=new Al(this.domNode,{getHorizontalSashTop:()=>0},{orientation:1,orthogonalEdge:Bw.North}),this._southSash=new Al(this.domNode,{getHorizontalSashTop:()=>this._size.height},{orientation:1,orthogonalEdge:Bw.South}),this._northSash.orthogonalStartSash=this._westSash,this._northSash.orthogonalEndSash=this._eastSash,this._southSash.orthogonalStartSash=this._westSash,this._southSash.orthogonalEndSash=this._eastSash;let e,t=0,n=0;this._sashListener.add(li.any(this._northSash.onDidStart,this._eastSash.onDidStart,this._southSash.onDidStart,this._westSash.onDidStart)(()=>{e===void 0&&(this._onDidWillResize.fire(),e=this._size,t=0,n=0)})),this._sashListener.add(li.any(this._northSash.onDidEnd,this._eastSash.onDidEnd,this._southSash.onDidEnd,this._westSash.onDidEnd)(()=>{e!==void 0&&(e=void 0,t=0,n=0,this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(this._eastSash.onDidChange(r=>{e&&(n=r.currentX-r.startX,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,east:!0}))})),this._sashListener.add(this._westSash.onDidChange(r=>{e&&(n=-(r.currentX-r.startX),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,west:!0}))})),this._sashListener.add(this._northSash.onDidChange(r=>{e&&(t=-(r.currentY-r.startY),this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,north:!0}))})),this._sashListener.add(this._southSash.onDidChange(r=>{e&&(t=r.currentY-r.startY,this.layout(e.height+t,e.width+n),this._onDidResize.fire({dimension:this._size,done:!1,south:!0}))})),this._sashListener.add(li.any(this._eastSash.onDidReset,this._westSash.onDidReset)(r=>{this._preferredSize&&(this.layout(this._size.height,this._preferredSize.width),this._onDidResize.fire({dimension:this._size,done:!0}))})),this._sashListener.add(li.any(this._northSash.onDidReset,this._southSash.onDidReset)(r=>{this._preferredSize&&(this.layout(this._preferredSize.height,this._size.width),this._onDidResize.fire({dimension:this._size,done:!0}))}))}dispose(){this._northSash.dispose(),this._southSash.dispose(),this._eastSash.dispose(),this._westSash.dispose(),this._sashListener.dispose(),this._onDidResize.dispose(),this._onDidWillResize.dispose(),this.domNode.remove()}enableSashes(e,t,n,r){this._northSash.state=e?3:0,this._eastSash.state=t?3:0,this._southSash.state=n?3:0,this._westSash.state=r?3:0}layout(e=this.size.height,t=this.size.width){let{height:n,width:r}=this._minSize,{height:o,width:s}=this._maxSize;e=Math.max(n,Math.min(o,e)),t=Math.max(r,Math.min(s,t));let a=new Di(t,e);Di.equals(a,this._size)||(this.domNode.style.height=e+"px",this.domNode.style.width=t+"px",this._size=a,this._northSash.layout(),this._eastSash.layout(),this._southSash.layout(),this._westSash.layout())}clearSashHoverState(){this._eastSash.clearSashHoverState(),this._westSash.clearSashHoverState(),this._northSash.clearSashHoverState(),this._southSash.clearSashHoverState()}get size(){return this._size}set maxSize(e){this._maxSize=e}get maxSize(){return this._maxSize}set minSize(e){this._minSize=e}get minSize(){return this._minSize}set preferredSize(e){this._preferredSize=e}get preferredSize(){return this._preferredSize}}});var p$=M(()=>{});var m$=M(()=>{p$()});function nge(i,e,t){return v$(this,void 0,void 0,function*(){try{return yield i.open(e,{fromUserGesture:!0,allowContributedOpeners:!0,allowCommands:rge(t)})}catch(n){return lt(n),!1}})}function rge(i){return i===!0?!0:i&&Array.isArray(i.enabledCommands)?i.enabledCommands:!1}var ige,g$,v$,to,th=M(()=>{Coe();Ww();At();Gt();Ce();m$();qP();os();_w();Hoe();cs();ige=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},g$=function(i,e){return function(t,n){e(t,n,i)}},v$=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},to=class _${constructor(e,t,n){this._options=e,this._languageService=t,this._openerService=n,this._onDidRenderAsync=new $e,this.onDidRenderAsync=this._onDidRenderAsync.event}dispose(){this._onDidRenderAsync.dispose()}render(e,t,n){if(!e)return{element:document.createElement("span"),dispose:()=>{}};let r=new re,o=r.add(bP(e,Object.assign(Object.assign({},this._getRenderOptions(e,r)),t),n));return o.element.classList.add("rendered-markdown"),{element:o.element,dispose:()=>r.dispose()}}_getRenderOptions(e,t){return{codeBlockRenderer:(n,r)=>v$(this,void 0,void 0,function*(){var o,s,a;let l;n?l=this._languageService.getLanguageIdByLanguageName(n):this._options.editor&&(l=(o=this._options.editor.getModel())===null||o===void 0?void 0:o.getLanguageId()),l||(l=Zh);let c=yield ZP(this._languageService,r,l),d=document.createElement("span");if(d.innerHTML=(a=(s=_$._ttpTokenizer)===null||s===void 0?void 0:s.createHTML(c))!==null&&a!==void 0?a:c,this._options.editor){let u=this._options.editor.getOption(48);mb(d,u)}else this._options.codeBlockFontFamily&&(d.style.fontFamily=this._options.codeBlockFontFamily);return this._options.codeBlockFontSize!==void 0&&(d.style.fontSize=this._options.codeBlockFontSize),d}),asyncRenderCallback:()=>this._onDidRenderAsync.fire(),actionHandler:{callback:n=>nge(this._openerService,n,e.isTrusted),disposables:t}}}};to._ttpTokenizer=_f("tokenizeToString",{createHTML(i){return i}});to=ige([g$(1,Qi),g$(2,Ji)],to)});function pg(i){return!!i&&!!(i.completion.documentation||i.completion.detail&&i.completion.detail!==i.completion.label)}var oge,sge,S2,w2,oT=M(()=>{Bt();tb();or();Kr();Gt();Sl();Ce();th();rT();Re();Et();oge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},sge=function(i,e){return function(t,n){e(t,n,i)}};S2=class{constructor(e,t){this._editor=e,this._onDidClose=new $e,this.onDidClose=this._onDidClose.event,this._onDidChangeContents=new $e,this.onDidChangeContents=this._onDidChangeContents.event,this._disposables=new re,this._renderDisposeable=new re,this._borderWidth=1,this._size=new Di(330,0),this.domNode=fe(".suggest-details"),this.domNode.classList.add("no-docs"),this._markdownRenderer=t.createInstance(to,{editor:e}),this._body=fe(".body"),this._scrollbar=new mf(this._body,{alwaysConsumeMouseWheel:!0}),me(this.domNode,this._scrollbar.getDomNode()),this._disposables.add(this._scrollbar),this._header=me(this._body,fe(".header")),this._close=me(this._header,fe("span"+gt.asCSSSelector(ct.close))),this._close.title=v("details.close","Close"),this._type=me(this._header,fe("p.type")),this._docs=me(this._body,fe("p.docs")),this._configureFont(),this._disposables.add(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(48)&&this._configureFont()}))}dispose(){this._disposables.dispose(),this._renderDisposeable.dispose()}_configureFont(){let e=this._editor.getOptions(),t=e.get(48),n=t.getMassagedFontFamily(),r=e.get(115)||t.fontSize,o=e.get(116)||t.lineHeight,s=t.fontWeight,a=`${r}px`,l=`${o}px`;this.domNode.style.fontSize=a,this.domNode.style.lineHeight=`${o/r}`,this.domNode.style.fontWeight=s,this.domNode.style.fontFeatureSettings=t.fontFeatureSettings,this._type.style.fontFamily=n,this._close.style.height=l,this._close.style.width=l}getLayoutInfo(){let e=this._editor.getOption(116)||this._editor.getOption(48).lineHeight,t=this._borderWidth,n=t*2;return{lineHeight:e,borderWidth:t,borderHeight:n,verticalPadding:22,horizontalPadding:14}}renderLoading(){this._type.textContent=v("loading","Loading..."),this._docs.textContent="",this.domNode.classList.remove("no-docs","no-type"),this.layout(this.size.width,this.getLayoutInfo().lineHeight*2),this._onDidChangeContents.fire(this)}renderItem(e,t){var n,r;this._renderDisposeable.clear();let{detail:o,documentation:s}=e.completion;if(t){let a="";a+=`score: ${e.score[0]} +`,a+=`prefix: ${(n=e.word)!==null&&n!==void 0?n:"(no prefix)"} `,a+=`word: ${e.completion.filterText?e.completion.filterText+" (filterText)":e.textLabel} `,a+=`distance: ${e.distance} (localityBonus-setting) `,a+=`index: ${e.idx}, based on ${e.completion.sortText&&`sortText: "${e.completion.sortText}"`||"label"} -`,a+=`commit_chars: ${(n=e.completion.commitCharacters)===null||n===void 0?void 0:n.join("")} -`,s=new $i().appendCodeblock("empty",a),o=`Provider: ${e.provider._debugDisplayName}`}if(!t&&!Ob(e)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),o){let a=o.length>1e5?`${o.substr(0,1e5)}\u2026`:o;this._type.textContent=a,this._type.title=a,un(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(a))}else qn(this._type),this._type.title="",Br(this._type),this.domNode.classList.add("no-type");if(qn(this._docs),typeof s=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),qn(this._docs);let a=this._markdownRenderer.render(s);this._docs.appendChild(a.element),this._renderDisposeable.add(a),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=a=>{a.preventDefault(),a.stopPropagation()},this._close.onclick=a=>{a.preventDefault(),a.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(e,t){let r=new Qt(e,t);Qt.equals(r,this._size)||(this._size=r,sP(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};J2=J0e([ebe(1,Ke)],J2);eC=class{constructor(e,t){this.widget=e,this._editor=t,this._disposables=new le,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new Od,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let r,n,o=0,s=0;this._disposables.add(this._resizable.onDidWillResize(()=>{r=this._topLeft,n=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(a=>{if(r&&n){this.widget.layout(a.dimension.width,a.dimension.height);let l=!1;a.west&&(s=n.width-a.dimension.width,l=!0),a.north&&(o=n.height-a.dimension.height,l=!0),l&&this._applyTopLeft({top:r.top+o,left:r.left+s})}a.done&&(r=void 0,n=void 0,o=0,s=0,this._userSize=a.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var a;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(a=this._userSize)!==null&&a!==void 0?a:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var r;let n=e.getBoundingClientRect();this._anchorBox=n,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,(r=this._userSize)!==null&&r!==void 0?r:this.widget.size,t)}_placeAtAnchor(e,t,r){var n;let o=Oc(document.body),s=this.widget.getLayoutInfo(),a=new Qt(220,2*s.lineHeight),l=e.top,c=function(){let L=o.width-(e.left+e.width+s.borderWidth+s.horizontalPadding),A=-s.borderWidth+e.left+e.width,O=new Qt(L,o.height-e.top-s.borderHeight-s.verticalPadding),U=O.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:l,left:A,fit:L-t.width,maxSizeTop:O,maxSizeBottom:U,minSize:a.with(Math.min(L,a.width))}}(),d=function(){let L=e.left-s.borderWidth-s.horizontalPadding,A=Math.max(s.horizontalPadding,e.left-t.width-s.borderWidth),O=new Qt(L,o.height-e.top-s.borderHeight-s.verticalPadding),U=O.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:l,left:A,fit:L-t.width,maxSizeTop:O,maxSizeBottom:U,minSize:a.with(Math.min(L,a.width))}}(),u=function(){let L=e.left,A=-s.borderWidth+e.top+e.height,O=new Qt(e.width-s.borderHeight,o.height-e.top-e.height-s.verticalPadding);return{top:A,left:L,fit:O.height-t.height,maxSizeBottom:O,maxSizeTop:O,minSize:a.with(O.width)}}(),h=[c,d,u],f=(n=h.find(L=>L.fit>=0))!==null&&n!==void 0?n:h.sort((L,A)=>A.fit-L.fit)[0],m=e.top+e.height-s.borderHeight,g,w=t.height,_=Math.max(f.maxSizeTop.height,f.maxSizeBottom.height);w>_&&(w=_);let E;r?w<=f.maxSizeTop.height?(g=!0,E=f.maxSizeTop):(g=!1,E=f.maxSizeBottom):w<=f.maxSizeBottom.height?(g=!1,E=f.maxSizeBottom):(g=!0,E=f.maxSizeTop),this._applyTopLeft({left:f.left,top:g?f.top:m-w}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!g,f===c,g,f!==c),this._resizable.minSize=f.minSize,this._resizable.maxSize=E,this._resizable.layout(w,Math.min(E.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}});var Gs,hL=N(()=>{(function(i){i[i.FILE=0]="FILE",i[i.FOLDER=1]="FOLDER",i[i.ROOT_FOLDER=2]="ROOT_FOLDER"})(Gs||(Gs={}))});function Fb(i,e,t,r){let n=r===Gs.ROOT_FOLDER?["rootfolder-icon"]:r===Gs.FOLDER?["folder-icon"]:["file-icon"];if(t){let o;if(t.scheme===Eo.data)o=Bm.parseMetaData(t).get(Bm.META_DATA_LABEL);else{let s=t.path.match(tbe);s?(o=tC(s[2].toLowerCase()),s[1]&&n.push(`${tC(s[1].toLowerCase())}-name-dir-icon`)):o=tC(t.authority.toLowerCase())}if(r===Gs.FOLDER)n.push(`${o}-name-folder-icon`);else{if(o){if(n.push(`${o}-name-file-icon`),n.push("name-file-icon"),o.length<=255){let a=o.split(".");for(let l=1;l{Dm();Lo();Q3();hL();tbe=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/});function mL(i){return`suggest-aria-id:${i}`}function pL(i){return i.replace(/\r\n|\r|\n/g,"")}var rbe,fL,Fd,nbe,obe,iC,Q$=N(()=>{Ht();nz();Zr();An();ei();pl();ke();Ir();fn();X$();Xo();es();He();hL();Sl();rn();uL();rbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fL=function(i,e){return function(t,r){e(t,r,i)}};nbe=Pi("suggest-more-info",pt.chevronRight,b("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),obe=new(Fd=class{extract(e,t){if(e.textLabel.match(Fd._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(Fd._regexStrict))return t[0]=e.completion.detail,!0;if(typeof e.completion.documentation=="string"){let r=Fd._regexRelaxed.exec(e.completion.documentation);if(r&&(r.index===0||r.index+r[0].length===e.completion.documentation.length))return t[0]=r[0],!0}return!1}},Fd._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,Fd._regexStrict=new RegExp(`^${Fd._regexRelaxed.source}$`,"i"),Fd),iC=class{constructor(e,t,r,n){this._editor=e,this._modelService=t,this._languageService=r,this._themeService=n,this._onDidToggleDetails=new Je,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){let t=new le,r=e;r.classList.add("show-file-icons");let n=Te(e,Ae(".icon")),o=Te(n,Ae("span.colorspan")),s=Te(e,Ae(".contents")),a=Te(s,Ae(".main")),l=Te(a,Ae(".icon-label.codicon")),c=Te(a,Ae("span.left")),d=Te(a,Ae("span.right")),u=new iy(c,{supportHighlights:!0,supportIcons:!0});t.add(u);let h=Te(c,Ae("span.signature-label")),f=Te(c,Ae("span.qualifier-label")),m=Te(d,Ae("span.details-label")),g=Te(d,Ae("span.readMore"+_t.asCSSSelector(nbe)));g.title=b("readMore","Read More");let w=()=>{let _=this._editor.getOptions(),E=_.get(49),L=E.getMassagedFontFamily(),A=E.fontFeatureSettings,O=_.get(117)||E.fontSize,U=_.get(118)||E.lineHeight,Y=E.fontWeight,oe=E.letterSpacing,te=`${O}px`,Z=`${U}px`,ve=`${oe}px`;r.style.fontSize=te,r.style.fontWeight=Y,r.style.letterSpacing=ve,a.style.fontFamily=L,a.style.fontFeatureSettings=A,a.style.lineHeight=Z,n.style.height=Z,n.style.width=Z,g.style.height=Z,g.style.width=Z};return w(),t.add(this._editor.onDidChangeConfiguration(_=>{(_.hasChanged(49)||_.hasChanged(117)||_.hasChanged(118))&&w()})),{root:r,left:c,right:d,icon:n,colorspan:o,iconLabel:u,iconContainer:l,parametersLabel:h,qualifierLabel:f,detailsLabel:m,readMore:g,disposables:t}}renderElement(e,t,r){let{completion:n}=e;r.root.id=mL(t),r.colorspan.style.backgroundColor="";let o={labelEscapeNewLines:!0,matches:gu(e.score)},s=[];if(n.kind===19&&obe.extract(e,s))r.icon.className="icon customcolor",r.iconContainer.className="icon hide",r.colorspan.style.backgroundColor=s[0];else if(n.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){r.icon.className="icon hide",r.iconContainer.className="icon hide";let a=Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:e.textLabel}),Gs.FILE),l=Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:n.detail}),Gs.FILE);o.extraClasses=a.length>l.length?a:l}else n.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(r.icon.className="icon hide",r.iconContainer.className="icon hide",o.extraClasses=[Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:e.textLabel}),Gs.FOLDER),Fb(this._modelService,this._languageService,yt.from({scheme:"fake",path:n.detail}),Gs.FOLDER)].flat()):(r.icon.className="icon hide",r.iconContainer.className="",r.iconContainer.classList.add("suggest-icon",..._t.asClassNameArray(Xm.toIcon(n.kind))));n.tags&&n.tags.indexOf(1)>=0&&(o.extraClasses=(o.extraClasses||[]).concat(["deprecated"]),o.matches=[]),r.iconLabel.setLabel(e.textLabel,void 0,o),typeof n.label=="string"?(r.parametersLabel.textContent="",r.detailsLabel.textContent=pL(n.detail||""),r.root.classList.add("string-label")):(r.parametersLabel.textContent=pL(n.label.detail||""),r.detailsLabel.textContent=pL(n.label.description||""),r.root.classList.remove("string-label")),this._editor.getOption(116).showInlineDetails?un(r.detailsLabel):Br(r.detailsLabel),Ob(e)?(r.right.classList.add("can-expand-details"),un(r.readMore),r.readMore.onmousedown=a=>{a.stopPropagation(),a.preventDefault()},r.readMore.onclick=a=>{a.stopPropagation(),a.preventDefault(),this._onDidToggleDetails.fire()}):(r.right.classList.remove("can-expand-details"),Br(r.readMore),r.readMore.onmousedown=null,r.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};iC=rbe([fL(1,Di),fL(2,er),fL(3,br)],iC)});var sbe,rC,abe,Lp,nC,lbe,gL,Dp,bL,Z$=N(()=>{Ht();D0();mF();jt();qt();ei();ke();Fre();Ni();$$();Ap();Y$();Lx();He();wt();Ut();wu();tn();ok();rn();Z2();uh();uL();Q$();O_();Io();sbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},rC=function(i,e){return function(t,r){e(t,r,i)}},abe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};je("editorSuggestWidget.background",{dark:bl,light:bl,hcDark:bl,hcLight:bl},b("editorSuggestWidgetBackground","Background color of the suggest widget."));je("editorSuggestWidget.border",{dark:vu,light:vu,hcDark:vu,hcLight:vu},b("editorSuggestWidgetBorder","Border color of the suggest widget."));nC=je("editorSuggestWidget.foreground",{dark:ha,light:ha,hcDark:ha,hcLight:ha},b("editorSuggestWidgetForeground","Foreground color of the suggest widget."));je("editorSuggestWidget.selectedForeground",{dark:qm,light:qm,hcDark:qm,hcLight:qm},b("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget."));je("editorSuggestWidget.selectedIconForeground",{dark:Km,light:Km,hcDark:Km,hcLight:Km},b("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));lbe=je("editorSuggestWidget.selectedBackground",{dark:$m,light:$m,hcDark:$m,hcLight:$m},b("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));je("editorSuggestWidget.highlightForeground",{dark:fa,light:fa,hcDark:fa,hcLight:fa},b("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget."));je("editorSuggestWidget.focusHighlightForeground",{dark:Vm,light:Vm,hcDark:Vm,hcLight:Vm},b("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));je("editorSuggestWidgetStatus.foreground",{dark:Nn(nC,.5),light:Nn(nC,.5),hcDark:Nn(nC,.5),hcLight:Nn(nC,.5)},b("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));gL=class{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof Wo}`}restore(){var e;let t=(e=this._service.get(this._key,0))!==null&&e!==void 0?e:"";try{let r=JSON.parse(t);if(Qt.is(r))return Qt.lift(r)}catch(r){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}},Dp=Lp=class{constructor(e,t,r,n,o){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new Wi,this._pendingShowDetails=new Wi,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new aa,this._disposables=new le,this._onDidSelect=new M3,this._onDidFocus=new M3,this._onDidHide=new Je,this._onDidShow=new Je,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new Je,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new Od,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new bL(this,e),this._persistedSize=new gL(t,e);class s{constructor(f,m,g=!1,w=!1){this.persistedSize=f,this.currentSize=m,this.persistHeight=g,this.persistWidth=w}}let a;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),a=new s(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(h=>{var f,m,g,w;if(this._resize(h.dimension.width,h.dimension.height),a&&(a.persistHeight=a.persistHeight||!!h.north||!!h.south,a.persistWidth=a.persistWidth||!!h.east||!!h.west),!!h.done){if(a){let{itemHeight:_,defaultSize:E}=this.getLayoutInfo(),L=Math.round(_/2),{width:A,height:O}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-O)<=L)&&(O=(m=(f=a.persistedSize)===null||f===void 0?void 0:f.height)!==null&&m!==void 0?m:E.height),(!a.persistWidth||Math.abs(a.currentSize.width-A)<=L)&&(A=(w=(g=a.persistedSize)===null||g===void 0?void 0:g.width)!==null&&w!==void 0?w:E.width),this._persistedSize.store(new Qt(A,O))}this._contentWidget.unlockPreference(),a=void 0}})),this._messageElement=Te(this.element.domNode,Ae(".message")),this._listElement=Te(this.element.domNode,Ae(".tree"));let l=o.createInstance(J2,this.editor);l.onDidClose(this.toggleDetails,this,this._disposables),this._details=new eC(l,this.editor);let c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(116).showIcons);c();let d=o.createInstance(iC,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails(()=>this.toggleDetails())),this._list=new R_("SuggestWidget",this._listElement,{getHeight:h=>this.getLayoutInfo().itemHeight,getTemplateId:h=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>b("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:h=>{let f=h.textLabel;if(typeof h.completion.label!="string"){let{detail:_,description:E}=h.completion.label;_&&E?f=b("label.full","{0} {1}, {2}",f,_,E):_?f=b("label.detail","{0} {1}",f,_):E&&(f=b("label.desc","{0}, {1}",f,E))}if(!h.isResolved||!this._isDetailsVisible())return f;let{documentation:m,detail:g}=h.completion,w=nf("{0}{1}",g||"",m?typeof m=="string"?m:m.value:"");return b("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",f,w)}}}),this._list.style(wF({listInactiveFocusBackground:lbe,listInactiveFocusOutline:ua})),this._status=o.createInstance(Q2,this.element.domNode,Ya);let u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(116).showStatusBar);u(),this._disposables.add(n.onDidColorThemeChange(h=>this._onThemeChange(h))),this._onThemeChange(n.getColorTheme()),this._disposables.add(this._list.onMouseDown(h=>this._onListMouseDownOrTap(h))),this._disposables.add(this._list.onTap(h=>this._onListMouseDownOrTap(h))),this._disposables.add(this._list.onDidChangeSelection(h=>this._onListSelection(h))),this._disposables.add(this._list.onDidChangeFocus(h=>this._onListFocus(h))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(h=>{h.hasChanged(116)&&(u(),c())})),this._ctxSuggestWidgetVisible=ct.Visible.bindTo(r),this._ctxSuggestWidgetDetailsVisible=ct.DetailsVisible.bindTo(r),this._ctxSuggestWidgetMultipleSuggestions=ct.MultipleSuggestions.bindTo(r),this._ctxSuggestWidgetHasFocusedSuggestion=ct.HasFocusedSuggestion.bindTo(r),this._disposables.add(To(this._details.widget.domNode,"keydown",h=>{this._onDetailsKeydown.fire(h)})),this._disposables.add(this.editor.onMouseDown(h=>this._onEditorMouseDown(h)))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){this._state!==0&&this._contentWidget.layout()}_onListMouseDownOrTap(e){typeof e.element=="undefined"||typeof e.index=="undefined"||(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){let r=this._completionModel;r&&(this._onDidSelect.fire({item:e,index:t,model:r}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=_u(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length){this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);return}if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);let r=e.elements[0],n=e.indexes[0];r!==this._focusedItem&&((t=this._currentSuggestionDetails)===null||t===void 0||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=r,this._list.reveal(n),this._currentSuggestionDetails=Jt(o=>abe(this,void 0,void 0,function*(){let s=ml(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),a=o.onCancellationRequested(()=>s.dispose()),l=yield r.resolve(o);return s.dispose(),a.dispose(),l})),this._currentSuggestionDetails.then(()=>{n>=this._list.length||r!==this._list.element(n)||(this._ignoreFocusEvents=!0,this._list.splice(n,1,[r]),this._list.setFocus([n]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:mL(n)}))}).catch(ft)),this._onDidFocus.fire({item:r,index:n,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",e===4),this.element.domNode.classList.remove("message"),e){case 0:Br(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=Lp.LOADING_MESSAGE,Br(this._listElement,this._status.element),un(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,uu(Lp.LOADING_MESSAGE);break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=Lp.NO_SUGGESTIONS_MESSAGE,Br(this._listElement,this._status.element),un(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0,uu(Lp.NO_SUGGESTIONS_MESSAGE);break;case 3:Br(this._messageElement),un(this._listElement,this._status.element),this._show();break;case 4:Br(this._messageElement),un(this._listElement,this._status.element),this._show();break;case 5:Br(this._messageElement),un(this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(e,t){this._state===0&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=ml(()=>this._setState(1),t)))}showSuggestions(e,t,r,n,o){var s,a;if(this._contentWidget.setPosition(this.editor.getPosition()),(s=this._loadingTimeout)===null||s===void 0||s.dispose(),(a=this._currentSuggestionDetails)===null||a===void 0||a.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),r&&this._state!==2&&this._state!==0){this._setState(4);return}let l=this._completionModel.items.length,c=l===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(l>1),c){this._setState(n?0:2),this._completionModel=void 0;return}this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(r?4:3),this._list.reveal(t,0),this._list.setFocus(o?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=P3(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")})}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(this._state!==0&&this._state!==2&&this._state!==1&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){this._state===5?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):this._state===3&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):(Ob(this._list.getFocusedElements()[0])||this._explainMode)&&(this._state===3||this._state===5||this._state===4)&&(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=P3(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")})}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;this._pendingLayout.clear(),this._pendingShowDetails.clear(),(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();let t=this._persistedSize.restore(),r=Math.ceil(this.getLayoutInfo().itemHeight*4.3);t&&t.heightc&&(l=c);let d=this._completionModel?this._completionModel.stats.pLabelLen*s.typicalHalfwidthCharacterWidth:l,u=s.statusBarHeight+this._list.contentHeight+s.borderHeight,h=s.itemHeight+s.statusBarHeight,f=Zi(this.editor.getDomNode()),m=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),g=f.top+m.top+m.height,w=Math.min(o.height-g-s.verticalPadding,u),_=f.top+m.top-s.verticalPadding,E=Math.min(_,u),L=Math.min(Math.max(E,w)+s.borderHeight,u);a===((t=this._cappedHeight)===null||t===void 0?void 0:t.capped)&&(a=this._cappedHeight.wanted),aL&&(a=L);let A=150;a>w||this._forceRenderingAbove&&_>A?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),L=E):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),L=w),this.element.preferredSize=new Qt(d,s.defaultSize.height),this.element.maxSize=new Qt(c,L),this.element.minSize=new Qt(220,h),this._cappedHeight=a===u?{wanted:(n=(r=this._cappedHeight)===null||r===void 0?void 0:r.wanted)!==null&&n!==void 0?n:e.height,capped:a}:void 0}this._resize(l,a)}_resize(e,t){let{width:r,height:n}=this.element.maxSize;e=Math.min(r,e),t=Math.min(n,t);let{statusBarHeight:o}=this.getLayoutInfo();this._list.layout(t-o,e),this._listElement.style.height=`${t-o}px`,this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,((e=this._contentWidget.getPosition())===null||e===void 0?void 0:e.preference[0])===2)}getLayoutInfo(){let e=this.editor.getOption(49),t=fF(this.editor.getOption(118)||e.lineHeight,8,1e3),r=!this.editor.getOption(116).showStatusBar||this._state===2||this._state===1?0:t,n=this._details.widget.borderWidth,o=2*n;return{itemHeight:t,statusBarHeight:r,borderWidth:n,borderHeight:o,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new Qt(430,r+12*t+o)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};Dp.LOADING_MESSAGE=b("suggestWidget.loading","Loading...");Dp.NO_SUGGESTIONS_MESSAGE=b("suggestWidget.noSuggestions","No suggestions.");Dp=Lp=sbe([rC(1,Yn),rC(2,it),rC(3,br),rC(4,Ke)],Dp);bL=class{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return this._hidden||!this._position||!this._preference?null:{position:this._position,preference:[this._preference]}}beforeRender(){let{height:e,width:t}=this._widget.element.size,{borderWidth:r,horizontalPadding:n}=this._widget.getLayoutInfo();return new Qt(t+2*r+n,e+2*r)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}});var cbe,Mp,vL,dbe,_L,Vo,yL,zb,_o,vn,oC=N(()=>{Io();mi();jt();ki();qt();ei();sre();ke();Tn();al();zr();z_();lt();_a();di();et();ti();kp();ch();rL();U$();He();Vi();wt();Ut();Yv();uh();j$();W$();V$();q$();Z$();Bc();Lo();CF();cbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Mp=function(i,e){return function(t,r){e(t,r,i)}},dbe=!1,_L=class{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){let n=e.getOffsetAt(t),o=e.getPositionAt(n+1);this._marker=e.deltaDecorations([],[{range:B.fromPositions(t,o),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){let t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}else return this._model.getLineMaxColumn(e.lineNumber)-e.column}},Vo=vL=class{static get(e){return e.getContribution(vL.ID)}constructor(e,t,r,n,o,s,a){this._memoryService=t,this._commandService=r,this._contextKeyService=n,this._instantiationService=o,this._logService=s,this._telemetryService=a,this._lineSuffix=new Wi,this._toDispose=new le,this._selectors=new yL(u=>u.priority),this._onWillInsertSuggestItem=new Je,this.onWillInsertSuggestItem=this._onWillInsertSuggestItem.event,this.editor=e,this.model=o.createInstance(X2,this.editor),this._selectors.register({priority:0,select:(u,h,f)=>this._memoryService.select(u,h,f)});let l=ct.InsertMode.bindTo(n);l.set(e.getOption(116).insertMode),this._toDispose.add(this.model.onDidTrigger(()=>l.set(e.getOption(116).insertMode))),this.widget=this._toDispose.add(new h_(()=>{let u=this._instantiationService.createInstance(Dp,this.editor);this._toDispose.add(u),this._toDispose.add(u.onDidSelect(w=>this._insertSuggestion(w,0),this));let h=new Y2(this.editor,u,this.model,w=>this._insertSuggestion(w,2));this._toDispose.add(h);let f=ct.MakesTextEdit.bindTo(this._contextKeyService),m=ct.HasInsertAndReplaceRange.bindTo(this._contextKeyService),g=ct.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(ri(()=>{f.reset(),m.reset(),g.reset()})),this._toDispose.add(u.onDidFocus(({item:w})=>{let _=this.editor.getPosition(),E=w.editStart.column,L=_.column,A=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!w.completion.additionalTextEdits&&!(w.completion.insertTextRules&4)&&L-E===w.completion.insertText.length&&(A=this.editor.getModel().getValueInRange({startLineNumber:_.lineNumber,startColumn:E,endLineNumber:_.lineNumber,endColumn:L})!==w.completion.insertText),f.set(A),m.set(!Ie.equals(w.editInsertEnd,w.editReplaceEnd)),g.set(!!w.provider.resolveCompletionItem||!!w.completion.documentation||w.completion.detail!==w.completion.label)})),this._toDispose.add(u.onDetailsKeyDown(w=>{if(w.toKeyCodeChord().equals(new R3(!0,!1,!1,!1,33))||En&&w.toKeyCodeChord().equals(new R3(!1,!1,!1,!0,33))){w.stopPropagation();return}w.toKeyCodeChord().isModifierKey()||this.editor.focus()})),u})),this._overtypingCapturer=this._toDispose.add(new h_(()=>this._toDispose.add(new Pb(this.editor,this.model)))),this._alternatives=this._toDispose.add(new h_(()=>this._toDispose.add(new Md(this.editor,this._contextKeyService)))),this._toDispose.add(o.createInstance(Tp,e)),this._toDispose.add(this.model.onDidTrigger(u=>{this.widget.value.showTriggered(u.auto,u.shy?250:50),this._lineSuffix.value=new _L(this.editor.getModel(),u.position)})),this._toDispose.add(this.model.onDidSuggest(u=>{if(u.triggerOptions.shy)return;let h=-1;for(let m of this._selectors.itemsOrderedByPriorityDesc)if(h=m.select(this.editor.getModel(),this.editor.getPosition(),u.completionModel.items),h!==-1)break;h===-1&&(h=0);let f=!1;if(u.triggerOptions.auto){let m=this.editor.getOption(116);m.selectionMode==="never"||m.selectionMode==="always"?f=m.selectionMode==="never":m.selectionMode==="whenTriggerCharacter"?f=u.triggerOptions.triggerKind!==1:m.selectionMode==="whenQuickSuggestion"&&(f=u.triggerOptions.triggerKind===1&&!u.triggerOptions.refilter)}this.widget.value.showSuggestions(u.completionModel,h,u.isFrozen,u.triggerOptions.auto,f)})),this._toDispose.add(this.model.onDidCancel(u=>{u.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{dbe||(this.model.cancel(),this.model.clear())}));let c=ct.AcceptSuggestionsOnEnter.bindTo(n),d=()=>{let u=this.editor.getOption(1);c.set(u==="on"||u==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>d())),d()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose(),this._onWillInsertSuggestItem.dispose()}_insertSuggestion(e,t){if(!e||!e.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;let r=nr.get(this.editor);if(!r)return;this._onWillInsertSuggestItem.fire({item:e.item});let n=this.editor.getModel(),o=n.getAlternativeVersionId(),{item:s}=e,a=[],l=new zi;t&1||this.editor.pushUndoStop();let c=this.getOverwriteInfo(s,!!(t&8));this._memoryService.memorize(n,this.editor.getPosition(),s);let d=s.isResolved,u=-1,h=-1;if(Array.isArray(s.completion.additionalTextEdits)){this.model.cancel();let m=va.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",s.completion.additionalTextEdits.map(g=>ii.replaceMove(B.lift(g.range),g.text))),m.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!d){let m=new mr,g,w=n.onDidChangeContent(A=>{if(A.isFlush){l.cancel(),w.dispose();return}for(let O of A.changes){let U=B.getEndPosition(O.range);(!g||Ie.isBefore(U,g))&&(g=U)}}),_=t;t|=2;let E=!1,L=this.editor.onWillType(()=>{L.dispose(),E=!0,_&2||this.editor.pushUndoStop()});a.push(s.resolve(l.token).then(()=>{if(!s.completion.additionalTextEdits||l.token.isCancellationRequested)return;if(g&&s.completion.additionalTextEdits.some(O=>Ie.isBefore(g,B.getStartPosition(O.range))))return!1;E&&this.editor.pushUndoStop();let A=va.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",s.completion.additionalTextEdits.map(O=>ii.replaceMove(B.lift(O.range),O.text))),A.restoreRelativeVerticalPositionOfCursor(this.editor),(E||!(_&2))&&this.editor.pushUndoStop(),!0}).then(A=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",m.elapsed(),A),h=A===!0?1:A===!1?0:-2}).finally(()=>{w.dispose(),L.dispose()}))}let{insertText:f}=s.completion;if(s.completion.insertTextRules&4||(f=jo.escape(f)),this.model.cancel(),r.insert(f,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(s.completion.insertTextRules&1),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),t&2||this.editor.pushUndoStop(),s.completion.command)if(s.completion.command.id===zb.id)this.model.trigger({auto:!0,retrigger:!0});else{let m=new mr;a.push(this._commandService.executeCommand(s.completion.command.id,...s.completion.command.arguments?[...s.completion.command.arguments]:[]).catch(g=>{s.completion.extensionId?Xt(g):ft(g)}).finally(()=>{u=m.elapsed()}))}t&4&&this._alternatives.value.set(e,m=>{for(l.cancel();n.canUndo();){o!==n.getAlternativeVersionId()&&n.undo(),this._insertSuggestion(m,3|(t&8?8:0));break}}),this._alertCompletionItem(s),Promise.all(a).finally(()=>{this._reportSuggestionAcceptedTelemetry(s,n,d,u,h),this.model.clear(),l.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,r,n,o){var s,a,l;Math.floor(Math.random()*100)!==0&&this._telemetryService.publicLog2("suggest.acceptedSuggestion",{extensionId:(a=(s=e.extensionId)===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:"unknown",providerId:(l=e.provider._debugDisplayName)!==null&&l!==void 0?l:"unknown",kind:e.completion.kind,basenameHash:H_(Dn(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:ZP(t.uri),resolveInfo:e.provider.resolveCompletionItem?r?1:0:-1,resolveDuration:e.resolveDuration,commandDuration:n,additionalEditsAsync:o})}getOverwriteInfo(e,t){Bt(this.editor.hasModel());let r=this.editor.getOption(116).insertMode==="replace";t&&(r=!r);let n=e.position.column-e.editStart.column,o=(r?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,s=this.editor.getPosition().column-e.position.column,a=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:n+s,overwriteAfter:o+a}}_alertCompletionItem(e){if(Ki(e.completion.additionalTextEdits)){let t=b("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);ar(t)}}triggerSuggest(e,t,r){this.editor.hasModel()&&(this.model.trigger({auto:t!=null?t:!1,completionOptions:{providerFilter:e,kindFilter:r?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;let t=this.editor.getPosition(),r=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},n=o=>{if(o.completion.insertTextRules&4||o.completion.additionalTextEdits)return!0;let s=this.editor.getPosition(),a=o.editStart.column,l=s.column;return l-a!==o.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:s.lineNumber,startColumn:a,endLineNumber:s.lineNumber,endColumn:l})!==o.completion.insertText};ci.once(this.model.onDidTrigger)(o=>{let s=[];ci.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{ji(s),r()},void 0,s),this.model.onDidSuggest(({completionModel:a})=>{if(ji(s),a.items.length===0){r();return}let l=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),a.items),c=a.items[l];if(!n(c)){r();return}this.editor.pushUndoStop(),this._insertSuggestion({index:l,item:c,model:a},7)},void 0,s)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){let r=this.widget.value.getFocusedItem(),n=0;e&&(n|=4),t&&(n|=8),this._insertSuggestion(r,n)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};Vo.ID="editor.contrib.suggestController";Vo=vL=cbe([Mp(1,Ep),Mp(2,_i),Mp(3,it),Mp(4,Ke),Mp(5,Hc),Mp(6,Ln)],Vo);yL=class{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(this._items.indexOf(e)!==-1)throw new Error("Value is already registered");return this._items.push(e),this._items.sort((t,r)=>this.prioritySelector(r)-this.prioritySelector(t)),{dispose:()=>{let t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}},zb=class i extends de{constructor(){super({id:i.id,label:b("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:fe.and(F.writable,F.hasCompletionItemProvider,ct.Visible.toNegated()),kbOpts:{kbExpr:F.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,r){let n=Vo.get(t);if(!n)return;let o;r&&typeof r=="object"&&r.auto===!0&&(o=!0),n.triggerSuggest(void 0,o,void 0)}};zb.id="editor.action.triggerSuggest";Ue(Vo.ID,Vo,2);ee(zb);_o=100+90,vn=Fi.bindToContribution(Vo.get);We(new vn({id:"acceptSelectedSuggestion",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion),handler(i){i.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:fe.and(ct.Visible,F.textInputFocus),weight:_o},{primary:3,kbExpr:fe.and(ct.Visible,F.textInputFocus,ct.AcceptSuggestionsOnEnter,ct.MakesTextEdit),weight:_o}],menuOpts:[{menuId:Ya,title:b("accept.insert","Insert"),group:"left",order:1,when:ct.HasInsertAndReplaceRange.toNegated()},{menuId:Ya,title:b("accept.insert","Insert"),group:"left",order:1,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("insert"))},{menuId:Ya,title:b("accept.replace","Replace"),group:"left",order:1,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("replace"))}]}));We(new vn({id:"acceptAlternativeSelectedSuggestion",precondition:fe.and(ct.Visible,F.textInputFocus,ct.HasFocusedSuggestion),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:1027,secondary:[1026]},handler(i){i.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:Ya,group:"left",order:2,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("insert")),title:b("accept.replace","Replace")},{menuId:Ya,group:"left",order:2,when:fe.and(ct.HasInsertAndReplaceRange,ct.InsertMode.isEqualTo("replace")),title:b("accept.insert","Insert")}]}));Dt.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion");We(new vn({id:"hideSuggestWidget",precondition:ct.Visible,handler:i=>i.cancelSuggestWidget(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:9,secondary:[1033]}}));We(new vn({id:"selectNextSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectNextSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}}));We(new vn({id:"selectNextPageSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectNextPageSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:12,secondary:[2060]}}));We(new vn({id:"selectLastSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectLastSuggestion()}));We(new vn({id:"selectPrevSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectPrevSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}}));We(new vn({id:"selectPrevPageSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectPrevPageSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:11,secondary:[2059]}}));We(new vn({id:"selectFirstSuggestion",precondition:fe.and(ct.Visible,fe.or(ct.MultipleSuggestions,ct.HasFocusedSuggestion.negate())),handler:i=>i.selectFirstSuggestion()}));We(new vn({id:"focusSuggestion",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion.negate()),handler:i=>i.focusSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}}));We(new vn({id:"focusAndAcceptSuggestion",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion.negate()),handler:i=>{i.focusSuggestion(),i.acceptSelectedSuggestion(!0,!1)}}));We(new vn({id:"toggleSuggestionDetails",precondition:fe.and(ct.Visible,ct.HasFocusedSuggestion),handler:i=>i.toggleSuggestionDetails(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:Ya,group:"right",order:1,when:fe.and(ct.DetailsVisible,ct.CanResolve),title:b("detail.more","show less")},{menuId:Ya,group:"right",order:1,when:fe.and(ct.DetailsVisible.toNegated(),ct.CanResolve),title:b("detail.less","show more")}]}));We(new vn({id:"toggleExplainMode",precondition:ct.Visible,handler:i=>i.toggleExplainMode(),kbOpts:{weight:100,primary:2138}}));We(new vn({id:"toggleSuggestionFocus",precondition:ct.Visible,handler:i=>i.toggleSuggestionFocus(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:2570,mac:{primary:778}}}));We(new vn({id:"insertBestCompletion",precondition:fe.and(F.textInputFocus,fe.equals("config.editor.tabCompletion","on"),Tp.AtEnd,ct.Visible.toNegated(),Md.OtherSuggestions.toNegated(),nr.InSnippetMode.toNegated()),handler:(i,e)=>{i.triggerSuggestAndAcceptBest(Hv(e)?Object.assign({fallback:"tab"},e):{fallback:"tab"})},kbOpts:{weight:_o,primary:2}}));We(new vn({id:"insertNextSuggestion",precondition:fe.and(F.textInputFocus,fe.equals("config.editor.tabCompletion","on"),Md.OtherSuggestions,ct.Visible.toNegated(),nr.InSnippetMode.toNegated()),handler:i=>i.acceptNextSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:2}}));We(new vn({id:"insertPrevSuggestion",precondition:fe.and(F.textInputFocus,fe.equals("config.editor.tabCompletion","on"),Md.OtherSuggestions,ct.Visible.toNegated(),nr.InSnippetMode.toNegated()),handler:i=>i.acceptPrevSuggestion(),kbOpts:{weight:_o,kbExpr:F.textInputFocus,primary:1026}}));ee(class extends de{constructor(){super({id:"editor.action.resetSuggestSize",label:b("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(i,e){var t;(t=Vo.get(e))===null||t===void 0||t.resetWidgetSize()}})});function ube(i,e){return i===e?!0:!i||!e?!1:i.equals(e)}var sC,Bb,J$=N(()=>{ei();ke();di();et();fn();ch();JA();oC();wa();qA();mi();sC=class extends ce{get selectedItem(){return this._selectedItem}constructor(e,t,r,n){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=r,this.onWillAccept=n,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=ya("suggestWidgetInlineCompletionProvider.selectedItem",void 0),this._register(e.onKeyDown(s=>{s.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(s=>{s.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));let o=Vo.get(this.editor);if(o){this._register(o.registerSelector({priority:100,select:(l,c,d)=>{var u;on(_=>this.checkModelVersion(_));let h=this.editor.getModel();if(!h)return-1;let f=(u=this.suggestControllerPreselector())===null||u===void 0?void 0:u.removeCommonPrefix(h);if(!f)return-1;let m=Ie.lift(c),g=d.map((_,E)=>{let A=Bb.fromSuggestion(o,h,m,_,this.isShiftKeyPressed).toSingleTextEdit().removeCommonPrefix(h),O=f.augments(A);return{index:E,valid:O,prefixLength:A.text.length,suggestItem:_}}).filter(_=>_&&_.valid&&_.prefixLength>0),w=OP(g,RP(_=>_.prefixLength,PP));return w?w.index:-1}}));let s=!1,a=()=>{s||(s=!0,this._register(o.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(o.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.update(!1)})),this._register(o.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(ci.once(o.model.onDidTrigger)(l=>{a()})),this._register(o.onWillInsertSuggestItem(l=>{let c=this.editor.getPosition(),d=this.editor.getModel();if(!c||!d)return;let u=Bb.fromSuggestion(o,d,c,l.item,this.isShiftKeyPressed);this.onWillAccept(u)}))}this.update(this._isActive)}update(e){let t=this.getSuggestItemInfo();(this._isActive!==e||!ube(this._currentSuggestItemInfo,t))&&(this._isActive=e,this._currentSuggestItemInfo=t,on(r=>{this.checkModelVersion(r),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,r)}))}getSuggestItemInfo(){let e=Vo.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;let t=e.widget.value.getFocusedItem(),r=this.editor.getPosition(),n=this.editor.getModel();if(!(!t||!r||!n))return Bb.fromSuggestion(e,n,r,t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){let e=Vo.get(this.editor);e==null||e.stopForceRenderingAbove()}forceRenderingAbove(){let e=Vo.get(this.editor);e==null||e.forceRenderingAbove()}},Bb=class i{static fromSuggestion(e,t,r,n,o){let{insertText:s}=n.completion,a=!1;if(n.completion.insertTextRules&4){let c=new jo().parse(s);c.children.length<100&&Cp.adjustWhitespace(t,r,!0,c),s=c.toString(),a=!0}let l=e.getOverwriteInfo(n,o);return new i(B.fromPositions(r.delta(0,-l.overwriteBefore),r.delta(0,Math.max(l.overwriteAfter,0))),s,n.completion.kind,a)}constructor(e,t,r,n){this.range=e,this.insertText=t,this.completionItemKind=r,this.isSnippetText=n}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new UO(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new dh(this.range,this.insertText)}}});var hbe,zd,wL,_n,aC=N(()=>{Io();ei();ke();wa();s_();di();Ds();Pt();L2();f$();D2();B2();B$();J$();He();rne();Vi();Sr();wt();Ut();jr();hbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zd=function(i,e){return function(t,r){e(t,r,i)}},_n=wL=class extends ce{static get(e){return e.getContribution(wL.ID)}constructor(e,t,r,n,o,s,a,l,c){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=r,this.configurationService=n,this.commandService=o,this.debounceService=s,this.languageFeaturesService=a,this.audioCueService=l,this._keybindingService=c,this.model=sg("inlineCompletionModel",void 0),this.textModelVersionId=ya("textModelVersionId",-1),this.cursorPosition=ya("cursorPosition",new Ie(1,1)),this.suggestWidgetAdaptor=this._register(new sC(this.editor,()=>{var h,f;return(f=(h=this.model.get())===null||h===void 0?void 0:h.selectedInlineCompletion.get())===null||f===void 0?void 0:f.toSingleTextEdit(void 0)},h=>this.updateObservables(h,io.Other),h=>{on(f=>{var m;this.updateObservables(f,io.Other),(m=this.model.get())===null||m===void 0||m.handleSuggestAccepted(h)})})),this._enabled=El(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(61).enabled),this.ghostTextWidget=this._register(this.instantiationService.createInstance(R2,this.editor,{ghostText:this.model.map((h,f)=>h==null?void 0:h.ghostText.read(f)),minReservedLineCount:$_(0),targetTextModel:this.model.map(h=>h==null?void 0:h.textModel)})),this._debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(new _r(this.contextKeyService,this.model)),this._register(ci.runAndSubscribe(e.onDidChangeModel,()=>on(h=>{this.model.set(void 0,h),this.updateObservables(h,io.Other);let f=e.getModel();if(f){let m=t.createInstance($2,f,this.suggestWidgetAdaptor.selectedItem,this.cursorPosition,this.textModelVersionId,this._debounceValue,El(e.onDidChangeConfiguration,()=>e.getOption(116).preview),El(e.onDidChangeConfiguration,()=>e.getOption(116).previewMode),El(e.onDidChangeConfiguration,()=>e.getOption(61).mode),this._enabled);this.model.set(m,h)}})));let d=h=>{var f;return h.isUndoing?io.Undo:h.isRedoing?io.Redo:!((f=this.model.get())===null||f===void 0)&&f.isAcceptingPartially?io.AcceptWord:io.Other};this._register(e.onDidChangeModelContent(h=>on(f=>this.updateObservables(f,d(h))))),this._register(e.onDidChangeCursorPosition(h=>on(f=>{var m;this.updateObservables(f,io.Other),(h.reason===3||h.source==="api")&&((m=this.model.get())===null||m===void 0||m.stop(f))}))),this._register(e.onDidType(()=>on(h=>{var f;this.updateObservables(h,io.Other),this._enabled.get()&&((f=this.model.get())===null||f===void 0||f.trigger(h))}))),this._register(this.commandService.onDidExecuteCommand(h=>{new Set([cf.Tab.id,cf.DeleteLeft.id,cf.DeleteRight.id,T2,"acceptSelectedSuggestion"]).has(h.commandId)&&e.hasTextFocus()&&this._enabled.get()&&on(m=>{var g;(g=this.model.get())===null||g===void 0||g.trigger(m)})})),this._register(this.editor.onDidBlurEditorWidget(()=>{this.contextKeyService.getContextKeyValue("accessibleViewIsShown")||this.configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(61).keepOnBlur||qs.dropDownVisible||on(h=>{var f;(f=this.model.get())===null||f===void 0||f.stop(h)})})),this._register(pn(h=>{var f;let m=(f=this.model.read(h))===null||f===void 0?void 0:f.state.read(h);m!=null&&m.suggestItem?m.ghostText.lineCount>=2&&this.suggestWidgetAdaptor.forceRenderingAbove():this.suggestWidgetAdaptor.stopForceRenderingAbove()})),this._register(ri(()=>{this.suggestWidgetAdaptor.stopForceRenderingAbove()}));let u;this._register(pn(h=>{let f=this.model.read(h),m=f==null?void 0:f.state.read(h);if(!f||!m||!m.inlineCompletion){u=void 0;return}if(m.inlineCompletion.semanticId!==u){u=m.inlineCompletion.semanticId;let g=f.textModel.getLineContent(m.ghostText.lineNumber);this.audioCueService.playAudioCue(sz.inlineSuggestion).then(()=>{this.editor.getOption(7)&&this.provideScreenReaderUpdate(m.ghostText.renderForScreenReader(g))})}})),this._register(new z2(this.editor,this.model,this.instantiationService)),this._register(this.configurationService.onDidChangeConfiguration(h=>{h.affectsConfiguration("accessibility.verbosity.inlineCompletions")&&this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this.configurationService.getValue("accessibility.verbosity.inlineCompletions")})})),this.editor.updateOptions({inlineCompletionsAccessibilityVerbose:this.configurationService.getValue("accessibility.verbosity.inlineCompletions")})}provideScreenReaderUpdate(e){let t=this.contextKeyService.getContextKeyValue("accessibleViewIsShown"),r=this._keybindingService.lookupKeybinding("editor.action.accessibleView"),n;!t&&r&&this.editor.getOption(146)&&(n=b("showAccessibleViewHint","Inspect this in the accessible view ({0})",r.getAriaLabel())),n?ar(e+", "+n):ar(e)}updateObservables(e,t){var r,n;let o=this.editor.getModel();this.textModelVersionId.set((r=o==null?void 0:o.getVersionId())!==null&&r!==void 0?r:-1,e,t),this.cursorPosition.set((n=this.editor.getPosition())!==null&&n!==void 0?n:new Ie(1,1),e)}shouldShowHoverAt(e){var t;let r=(t=this.model.get())===null||t===void 0?void 0:t.ghostText.get();return r?r.parts.some(n=>e.containsPosition(new Ie(r.lineNumber,n.column))):!1}shouldShowHoverAtViewZone(e){return this.ghostTextWidget.ownsViewZone(e)}};_n.ID="editor.contrib.inlineCompletionsController";_n=wL=hbe([zd(1,Ke),zd(2,it),zd(3,Mt),zd(4,_i),zd(5,lr),zd(6,Se),zd(7,oz),zd(8,Kt)],_n)});var Bd,Hb,Ub,lC,cC,dC,uC,jb,Wb,eG=N(()=>{wa();lt();ti();L2();D2();aC();uh();He();Ji();Sr();wt();Bd=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Hb=class i extends de{constructor(){super({id:i.ID,label:b("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:fe.and(F.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);(r=n==null?void 0:n.model.get())===null||r===void 0||r.next()})}};Hb.ID=A2;Ub=class i extends de{constructor(){super({id:i.ID,label:b("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:fe.and(F.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);(r=n==null?void 0:n.model.get())===null||r===void 0||r.previous()})}};Ub.ID=I2;lC=class extends de{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:b("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:F.writable})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);(r=n==null?void 0:n.model.get())===null||r===void 0||r.triggerExplicitly()})}},cC=class extends de{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:b("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:fe.and(F.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100+1,primary:2065,kbExpr:fe.and(F.writable,_r.inlineSuggestionVisible)},menuOpts:[{menuId:Me.InlineSuggestionToolbar,title:b("acceptWord","Accept Word"),group:"primary",order:2}]})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);yield(r=n==null?void 0:n.model.get())===null||r===void 0?void 0:r.acceptNextWord(n.editor)})}},dC=class extends de{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:b("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:fe.and(F.writable,_r.inlineSuggestionVisible),kbOpts:{weight:100+1},menuOpts:[{menuId:Me.InlineSuggestionToolbar,title:b("acceptLine","Accept Line"),group:"secondary",order:2}]})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);yield(r=n==null?void 0:n.model.get())===null||r===void 0?void 0:r.acceptNextLine(n.editor)})}},uC=class extends de{constructor(){super({id:T2,label:b("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:_r.inlineSuggestionVisible,menuOpts:[{menuId:Me.InlineSuggestionToolbar,title:b("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:fe.and(_r.inlineSuggestionVisible,F.tabMovesFocus.toNegated(),_r.inlineSuggestionHasIndentationLessThanTabSize,ct.Visible.toNegated(),F.hoverFocused.toNegated())}})}run(e,t){var r;return Bd(this,void 0,void 0,function*(){let n=_n.get(t);n&&((r=n.model.get())===null||r===void 0||r.accept(n.editor),n.editor.focus())})}},jb=class i extends de{constructor(){super({id:i.ID,label:b("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:_r.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}run(e,t){return Bd(this,void 0,void 0,function*(){let r=_n.get(t);on(n=>{var o;(o=r==null?void 0:r.model.get())===null||o===void 0||o.stop(n)})})}};jb.ID="editor.action.inlineSuggest.hide";Wb=class i extends Jo{constructor(){super({id:i.ID,title:b("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:Me.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:fe.equals("config.editor.inlineSuggest.showToolbar","always")})}run(e,t){return Bd(this,void 0,void 0,function*(){let r=e.get(Mt),o=r.getValue("editor.inlineSuggest.showToolbar")==="always"?"onHover":"always";r.updateValue("editor.inlineSuggest.showToolbar",o)})}};Wb.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"});var fbe,Vb,xL,hC,tG=N(()=>{Ht();Es();ke();wa();et();es();rc();aC();B2();kd();He();X_();Ut();is();Bc();fbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vb=function(i,e){return function(t,r){e(t,r,i)}},xL=class{constructor(e,t,r){this.owner=e,this.range=t,this.controller=r}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},hC=class{constructor(e,t,r,n,o,s){this._editor=e,this._languageService=t,this._openerService=r,this.accessibilityService=n,this._instantiationService=o,this._telemetryService=s,this.hoverOrdinal=4}suggestHoverAnchor(e){let t=_n.get(this._editor);if(!t)return null;let r=e.target;if(r.type===8){let n=r.detail;if(t.shouldShowHoverAtViewZone(n.viewZoneId))return new Ad(1e3,this,B.fromPositions(this._editor.getModel().validatePosition(n.positionBefore||n.position)),e.event.posx,e.event.posy,!1)}return r.type===7&&t.shouldShowHoverAt(r.range)?new Ad(1e3,this,r.range,e.event.posx,e.event.posy,!1):r.type===6&&r.detail.mightBeForeignElement&&t.shouldShowHoverAt(r.range)?new Ad(1e3,this,r.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if(this._editor.getOption(61).showToolbar==="always")return[];let r=_n.get(this._editor);return r&&r.shouldShowHoverAt(e.range)?[new xL(this,e.range,r)]:[]}renderHoverParts(e,t){let r=new le,n=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&!this._editor.getOption(7)&&this.renderScreenReaderText(e,n,r);let o=n.controller.model.get(),s=this._instantiationService.createInstance(qs,this._editor,!1,$_(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.selectedInlineCompletion.map(a=>{var l;return(l=a==null?void 0:a.inlineCompletion.source.inlineCompletions.commands)!==null&&l!==void 0?l:[]}));return e.fragment.appendChild(s.getDomNode()),o.triggerExplicitly(),r.add(s),r}renderScreenReaderText(e,t,r){let n=Ae,o=n("div.hover-row.markdown-hover"),s=Te(o,n("div.hover-contents",{"aria-live":"assertive"})),a=r.add(new to({editor:this._editor},this._languageService,this._openerService)),l=c=>{r.add(a.onDidRenderAsync(()=>{s.className="hover-contents code-hover-contents",e.onContentsChanged()}));let d=b("inlineSuggestionFollows","Suggestion:"),u=r.add(a.render(new $i().appendText(d).appendCodeblock("text",c)));s.replaceChildren(u.element)};r.add(pn(c=>{var d;let u=(d=t.controller.model.read(c))===null||d===void 0?void 0:d.ghostText.read(c);if(u){let h=this._editor.getModel().getLineContent(u.lineNumber);l(u.renderForScreenReader(h))}else du(s)})),e.fragment.appendChild(o)}};hC=fbe([Vb(1,er),Vb(2,tr),Vb(3,kf),Vb(4,Ke),Vb(5,Ln)],hC)});var CL=N(()=>{lt();rc();eG();tG();aC();Ji();Ue(_n.ID,_n,3);ee(lC);ee(Hb);ee(Ub);ee(cC);ee(dC);ee(uC);ee(jb);Si(Wb);Uo.register(hC)});var iG=N(()=>{});var rG=N(()=>{iG()});var nG=N(()=>{});var oG=N(()=>{nG()});var sG,pbe,mbe,SL,kL,fC,pC,aG=N(()=>{Ht();bk();ca();cF();ke();ek();oG();et();Ur();sG=new vt(new Ts(0,122,204)),pbe={showArrow:!0,showFrame:!0,className:"",frameColor:sG,arrowColor:sG,keepEditorSelection:!1},mbe="vs.editor.contrib.zoneWidget",SL=class{constructor(e,t,r,n,o,s,a,l){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=r,this.heightInLines=n,this.showInHiddenAreas=a,this.ordinal=l,this._onDomNodeTop=o,this._onComputedHeight=s}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}},kL=class{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}},fC=class i{constructor(e){this._editor=e,this._ruleName=i._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),O3(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){O3(this._ruleName),cP(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:B.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}};fC._IdGenerator=new aF(".arrow-decoration-");pC=class{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new le,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=rO(t),ff(this.options,pbe,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(r=>{let n=this._getWidth(r);this.domNode.style.width=n+"px",this.domNode.style.left=this._getLeft(r)+"px",this._onWidth(n)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new fC(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){let e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){let e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){let r=e-this._decoratingElementsHeight();this.container.style.height=`${r}px`;let n=this.editor.getLayoutInfo();this._doLayout(r,this._getWidth(n))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){let e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){let r=B.isIRange(e)?B.lift(e):B.fromPositions(e);this._isShowing=!0,this._showImpl(r,t),this._isShowing=!1,this._positionMarkerId.set([{range:r,options:mt.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){let e=this.editor.getOption(65),t=0;if(this.options.showArrow){let r=Math.round(e/3);t+=2*r}if(this.options.showFrame){let r=Math.round(e/9);t+=2*r}return t}_showImpl(e,t){let r=e.getStartPosition(),n=this.editor.getLayoutInfo(),o=this._getWidth(n);this.domNode.style.width=`${o}px`,this.domNode.style.left=this._getLeft(n)+"px";let s=document.createElement("div");s.style.overflow="hidden";let a=this.editor.getOption(65);if(!this.options.allowUnlimitedHeight){let h=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,h)}let l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(r)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(h=>{this._viewZone&&h.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new SL(s,r.lineNumber,r.column,t,f=>this._onViewZoneTop(f),f=>this._onViewZoneHeight(f),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=h.addZone(this._viewZone),this._overlayWidget=new kL(mbe+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){let h=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=h+"px",this.container.style.borderBottomWidth=h+"px"}let d=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden"),this._doLayout(d,o),this.options.keepEditorSelection||this.editor.setSelection(e);let u=this.editor.getModel();if(u){let h=u.validateRange(new B(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(h,h.startLineNumber===u.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new Cl(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){let r=(t.currentY-e.startY)/this.editor.getOption(65),n=r<0?Math.ceil(r):Math.floor(r),o=e.heightInLines+n;o>5&&o<35&&this._relayout(o)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){let e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}});function dG(i){let e=i.get(ai).getFocusedCodeEditor();return e instanceof Wo?e.getParentEditor():e}var lG,cG,EL,Pr,qb,gbe,Np,uG,mC,gC,hG,fG,Att,Ltt,Dtt,Mtt,Hd,Ntt,Rtt,Ptt,Ott,Ftt,hh=N(()=>{Ht();ng();Fc();Zr();An();ca();ei();ek();rG();lt();In();Ap();aG();He();J_();wt();hl();Ut();tn();lG=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cG=function(i,e){return function(t,r){e(t,r,i)}},EL=Qr("IPeekViewService");en(EL,class{constructor(){this._widgets=new Map}addExclusiveWidget(i,e){let t=this._widgets.get(i);t&&(t.listener.dispose(),t.widget.dispose());let r=()=>{let n=this._widgets.get(i);n&&n.widget===e&&(n.listener.dispose(),this._widgets.delete(i))};this._widgets.set(i,{widget:e,listener:e.onDidClose(r)})}},1);(function(i){i.inPeekEditor=new ht("inReferenceSearchEditor",!0,b("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),i.notInPeekEditor=i.inPeekEditor.toNegated()})(Pr||(Pr={}));qb=class{constructor(e,t){e instanceof Wo&&Pr.inPeekEditor.bindTo(t)}dispose(){}};qb.ID="editor.contrib.referenceController";qb=lG([cG(1,it)],qb);Ue(qb.ID,qb,0);gbe={headerBackgroundColor:vt.white,primaryHeadingColor:vt.fromHex("#333333"),secondaryHeadingColor:vt.fromHex("#6c6c6cb3")},Np=class extends pC{constructor(e,t,r){super(e,t),this.instantiationService=r,this._onDidClose=new Je,this.onDidClose=this._onDidClose.event,ff(this.options,gbe,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){let t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();let e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=Ae(".head"),this._bodyElement=Ae(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=Ae(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),To(this._titleElement,"click",o=>this._onTitleClick(o))),Te(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=Ae("span.filename"),this._secondaryHeading=Ae("span.dirname"),this._metaHeading=Ae("span.meta"),Te(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);let r=Ae(".peekview-actions");Te(this._headElement,r);let n=this._getActionBarOptions();this._actionbarWidget=new Ls(r,n),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new Qo("peekview.close",b("label.close","Close"),_t.asClassName(pt.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:YF.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:qn(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,un(this._metaHeading)):Br(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}let r=Math.ceil(this.editor.getOption(65)*1.2),n=Math.round(e-(r+2));this._doLayoutHead(r,t),this._doLayoutBody(n,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};Np=lG([cG(2,Ke)],Np);uG=je("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:vt.black,hcLight:vt.white},b("peekViewTitleBackground","Background color of the peek view title area.")),mC=je("peekViewTitleLabel.foreground",{dark:vt.white,light:vt.black,hcDark:vt.white,hcLight:ha},b("peekViewTitleForeground","Color of the peek view title.")),gC=je("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},b("peekViewTitleInfoForeground","Color of the peek view title info.")),hG=je("peekView.border",{dark:jm,light:jm,hcDark:ts,hcLight:ts},b("peekViewBorder","Color of the peek view borders and arrow.")),fG=je("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:vt.black,hcLight:vt.white},b("peekViewResultsBackground","Background color of the peek view result list.")),Att=je("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:vt.white,hcLight:ha},b("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),Ltt=je("peekViewResult.fileForeground",{dark:vt.white,light:"#1E1E1E",hcDark:vt.white,hcLight:ha},b("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),Dtt=je("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},b("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),Mtt=je("peekViewResult.selectionForeground",{dark:vt.white,light:"#6C6C6C",hcDark:vt.white,hcLight:ha},b("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Hd=je("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:vt.black,hcLight:vt.white},b("peekViewEditorBackground","Background color of the peek view editor.")),Ntt=je("peekViewEditorGutter.background",{dark:Hd,light:Hd,hcDark:Hd,hcLight:Hd},b("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),Rtt=je("peekViewEditorStickyScroll.background",{dark:Hd,light:Hd,hcDark:Hd,hcLight:Hd},b("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),Ptt=je("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},b("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),Ott=je("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},b("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),Ftt=je("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:ua,hcLight:ua},b("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))});var vbe,qo,TL,cc,Hn,Rp=N(()=>{qt();ei();cF();ke();df();Lo();Ni();et();He();vbe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},qo=class{constructor(e,t,r,n){this.isProviderFirst=e,this.parent=t,this.link=r,this._rangeCallback=n,this.id=lF.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;let t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?b({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,Dn(this.uri),this.range.startLineNumber,this.range.startColumn):b("aria.oneReference","in {0} on line {1} at column {2}",Dn(this.uri),this.range.startLineNumber,this.range.startColumn)}},TL=class{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){let r=this._modelReference.object.textEditorModel;if(!r)return;let{startLineNumber:n,startColumn:o,endLineNumber:s,endColumn:a}=e,l=r.getWordUntilPosition({lineNumber:n,column:o-t}),c=new B(n,l.startColumn,n,o),d=new B(s,a,s,1073741824),u=r.getValueInRange(c).replace(/^\s+/,""),h=r.getValueInRange(e),f=r.getValueInRange(d).replace(/\s+$/,"");return{value:u+h+f,highlight:{start:u.length,end:u.length+h.length}}}},cc=class{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new HP}dispose(){ji(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){let e=this.children.length;return e===1?b("aria.fileReferences.1","1 symbol in {0}, full path {1}",Dn(this.uri),this.uri.fsPath):b("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Dn(this.uri),this.uri.fsPath)}resolve(e){return vbe(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(let t of this.children)if(!this._previews.has(t.uri))try{let r=yield e.createModelReference(t.uri);this._previews.set(t.uri,new TL(r))}catch(r){ft(r)}return this})}},Hn=class i{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new Je,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;let[r]=e;e.sort(i._compareReferences);let n;for(let o of e)if((!n||!J3.isEqual(n.uri,o.uri,!0))&&(n=new cc(this,o.uri),this.groups.push(n)),n.children.length===0||i._compareReferences(o,n.children[n.children.length-1])!==0){let s=new qo(r===o,n,o,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(s),n.children.push(s)}}dispose(){ji(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new i(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?b("aria.result.0","No results found"):this.references.length===1?b("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?b("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):b("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:r}=e,n=r.children.indexOf(e),o=r.children.length,s=r.parent.groups.length;return s===1||t&&n+10?(t?n=(n+1)%o:n=(n+o-1)%o,r.children[n]):(n=r.parent.groups.indexOf(r),t?(n=(n+1)%s,r.parent.groups[n].children[0]):(n=(n+s-1)%s,r.parent.groups[n].children[r.parent.groups[n].children.length-1]))}nearestReference(e,t){let r=this.references.map((n,o)=>({idx:o,prefixLen:zc(n.uri.toString(),e.toString()),offsetDist:Math.abs(n.range.startLineNumber-t.lineNumber)*100+Math.abs(n.range.startColumn-t.column)})).sort((n,o)=>n.prefixLen>o.prefixLen?-1:n.prefixLeno.offsetDist?1:0)[0];if(r)return this.references[r.idx]}referenceAt(e,t){for(let r of this.references)if(r.uri.toString()===e.toString()&&B.containsPosition(r.range,t))return r}firstReference(){for(let e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return J3.compare(e.uri,t.uri)||B.compareRangesUsingStarts(e.range,t.range)}}});var pG=N(()=>{});var mG=N(()=>{pG()});var xC,CC,IL,bC,vC,_C,yC,AL,Pp,LL,Op,wC,gG=N(()=>{Ht();one();ine();nz();pl();ke();Lo();ra();He();Ut();jr();ey();O_();Rp();xC=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CC=function(i,e){return function(t,r){e(t,r,i)}},bC=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof Hn||e instanceof cc}getChildren(e){if(e instanceof Hn)return e.groups;if(e instanceof cc)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};bC=xC([CC(0,Cr)],bC);vC=class{getHeight(){return 23}getTemplateId(e){return e instanceof cc?Pp.id:Op.id}},_C=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof qo){let r=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(r)return r.value}return Dn(e.uri)}};_C=xC([CC(0,Kt)],_C);yC=class{getId(e){return e instanceof qo?e.id:e.uri}},AL=class extends ce{constructor(e,t){super(),this._labelService=t;let r=document.createElement("div");r.classList.add("reference-file"),this.file=this._register(new iy(r,{supportHighlights:!0})),this.badge=new uz(Te(r,Ae(".count")),{},_F),e.appendChild(r)}set(e,t){let r=uf(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(r,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});let n=e.children.length;this.badge.setCount(n),n>1?this.badge.setTitleFormat(b("referencesCount","{0} references",n)):this.badge.setTitleFormat(b("referenceCount","{0} reference",n))}};AL=xC([CC(1,Tl)],AL);Pp=IL=class{constructor(e){this._instantiationService=e,this.templateId=IL.id}renderTemplate(e){return this._instantiationService.createInstance(AL,e)}renderElement(e,t,r){r.set(e.element,gu(e.filterData))}disposeTemplate(e){e.dispose()}};Pp.id="FileReferencesRenderer";Pp=IL=xC([CC(0,Ke)],Pp);LL=class{constructor(e){this.label=new rz(e)}set(e,t){var r;let n=(r=e.parent.getPreview(e))===null||r===void 0?void 0:r.preview(e.range);if(!n||!n.value)this.label.set(`${Dn(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{let{value:o,highlight:s}=n;t&&!fl.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(o,gu(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(o,[s]))}}},Op=class i{constructor(){this.templateId=i.id}renderTemplate(e){return new LL(e)}renderElement(e,t,r){r.set(e.element,e.filterData)}disposeTemplate(){}};Op.id="OneReferenceRenderer";wC=class{getWidgetAriaLabel(){return b("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}});var _be,dc,bG,SC,kC,DL,EC,vG=N(()=>{Ht();nne();ca();ei();ke();Dm();Lo();mG();Ap();et();Ur();Hr();Q3();es();ra();gG();hh();He();Ut();jr();ey();dz();rn();Dre();Rp();_be=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},dc=function(i,e){return function(t,r){e(t,r,i)}},bG=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},SC=class i{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new le,this._callOnModelChange=new le,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();let e=this._editor.getModel();if(e){for(let t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));let t=[],r=[];for(let n=0,o=e.children.length;n{let o=n.deltaDecorations([],t);for(let s=0;s{o.equals(9)&&(this._keybindingService.dispatchEvent(o,o.target),o.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(DL,"ReferencesWidget",this._treeContainer,new vC,[this._instantiationService.createInstance(Pp),this._instantiationService.createInstance(Op)],this._instantiationService.createInstance(bC),r),this._splitView.addView({onDidChange:ci.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:o=>{this._preview.layout({height:this._dim.height,width:o})}},Ik.Distribute),this._splitView.addView({onDidChange:ci.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:o=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${o}px`,this._tree.layout(this._dim.height,o)}},Ik.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let n=(o,s)=>{o instanceof qo&&(s==="show"&&this._revealReference(o,!1),this._onDidSelectReference.fire({element:o,kind:s,source:"tree"}))};this._tree.onDidOpen(o=>{o.sideBySide?n(o.element,"side"):o.editorOptions.pinned?n(o.element,"goto"):n(o.element,"show")}),Br(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Qt(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=b("noResults","No results"),un(this._messageContainer),Promise.resolve(void 0)):(Br(this._messageContainer),this._decorationsManager=new SC(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{let{event:t,target:r}=e;if(t.detail!==2)return;let n=this._getFocusedReference();n&&this._onDidSelectReference.fire({element:{uri:n.uri,range:r.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),un(this._treeContainer),un(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){let[e]=this._tree.getFocus();if(e instanceof qo)return e;if(e instanceof cc&&e.children.length>0)return e.children[0]}revealReference(e){return bG(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return bG(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==Eo.inMemory?this.setTitle(QP(e.uri),this._uriLabel.getUriLabel(uf(e.uri))):this.setTitle(b("peekView.alternateTitle","References"));let r=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));let n=yield r;if(!this._model){n.dispose();return}ji(this._previewModelReference);let o=n.object;if(o){let s=this._preview.getModel()===o.textEditorModel?0:1,a=B.lift(e.range).collapseToStart();this._previewModelReference=n,this._preview.setModel(o.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,s)}else this._preview.setModel(this._previewNotAvailableMessage),n.dispose()})}};EC=_be([dc(3,br),dc(4,Cr),dc(5,Ke),dc(6,EL),dc(7,Tl),dc(8,XO),dc(9,Kt),dc(10,er),dc(11,Ot)],EC)});function ph(i,e){let t=dG(i);if(!t)return;let r=Xa.get(t);r&&e(r)}var ybe,Fp,_G,TC,fh,Xa,ML=N(()=>{jt();qt();ll();ke();In();di();et();hh();He();Vi();Sr();wt();Ut();j3();dz();Mo();wu();Rp();vG();ybe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Fp=function(i,e){return function(t,r){e(t,r,i)}},_G=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},fh=new ht("referenceSearchVisible",!1,b("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'")),Xa=TC=class{static get(e){return e.getContribution(TC.ID)}constructor(e,t,r,n,o,s,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=n,this._notificationService=o,this._instantiationService=s,this._storageService=a,this._configurationService=l,this._disposables=new le,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=fh.bindTo(r)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,r){let n;if(this._widget&&(n=this._widget.position),this.closeWidget(),n&&e.containsPosition(n))return;this._peekMode=r,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));let o="peekViewLayout",s=kC.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(EC,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(b("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{let{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":r?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));let a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(b("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let d=this._editor.getModel().uri,u=new Ie(e.startLineNumber,e.startColumn),h=this._model.nearestReference(d,u);if(h)return this._widget.setSelection(h).then(()=>{this._widget&&this._editor.getOption(85)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return _G(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;let t=this._widget.position;if(!t)return;let r=this._model.nearestReference(this._editor.getModel().uri,t);if(!r)return;let n=this._model.nextOrPreviousReference(r,e),o=this._editor.hasTextFocus(),s=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(n),yield this._gotoReference(n,!1),o?this._editor.focus():this._widget&&s&&this._widget.focusOnPreviewEditor()})}revealReference(e){return _G(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,r;(t=this._widget)===null||t===void 0||t.dispose(),(r=this._model)===null||r===void 0||r.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var r;(r=this._widget)===null||r===void 0||r.hide(),this._ignoreModelChangeEvent=!0;let n=B.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:n,selectionSource:"code.jump",pinned:t}},this._editor).then(o=>{var s;if(this._ignoreModelChangeEvent=!1,!o||!this._widget){this.closeWidget();return}if(this._editor===o)this._widget.show(n),this._widget.focusOnReferenceTree();else{let a=TC.get(o),l=this._model.clone();this.closeWidget(),o.focus(),a==null||a.toggleWidget(n,Jt(c=>Promise.resolve(l)),(s=this._peekMode)!==null&&s!==void 0?s:!1)}},o=>{this._ignoreModelChangeEvent=!1,ft(o)})}openReference(e,t,r){t||this.closeWidget();let{uri:n,range:o}=e;this._editorService.openCodeEditor({resource:n,options:{selection:o,selectionSource:"code.jump",pinned:r}},this._editor,t)}};Xa.ID="editor.contrib.referencesController";Xa=TC=ybe([Fp(2,it),Fp(3,ai),Fp(4,Ri),Fp(5,Ke),Fp(6,Yn),Fp(7,Mt)],Xa);Ao.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:gi(2089,60),when:fe.or(fh,Pr.inPeekEditor),handler(i){ph(i,e=>{e.changeFocusBetweenPreviewAndReferences()})}});Ao.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:fe.or(fh,Pr.inPeekEditor),handler(i){ph(i,e=>{e.goToNextOrPreviousReference(!0)})}});Ao.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:fe.or(fh,Pr.inPeekEditor),handler(i){ph(i,e=>{e.goToNextOrPreviousReference(!1)})}});Dt.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");Dt.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");Dt.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");Dt.registerCommand("closeReferenceSearch",i=>ph(i,e=>e.closeWidget()));Ao.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:fe.and(Pr.inPeekEditor,fe.not("config.editor.stablePeek"))});Ao.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:fe.and(fh,fe.not("config.editor.stablePeek"))});Ao.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:fe.and(fh,Lk,Dk.negate(),Mk.negate()),handler(i){var e;let r=(e=i.get(ry).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(r)&&r[0]instanceof qo&&ph(i,n=>n.revealReference(r[0]))}});Ao.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:fe.and(fh,Lk,Dk.negate(),Mk.negate()),handler(i){var e;let r=(e=i.get(ry).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(r)&&r[0]instanceof qo&&ph(i,n=>n.openReference(r[0],!0,!0))}});Dt.registerCommand("openReference",i=>{var e;let r=(e=i.get(ry).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(r)&&r[0]instanceof qo&&ph(i,n=>n.openReference(r[0],!1,!0))})});var yG,Kb,PL,$b,NL,RL,wG=N(()=>{ei();ke();Lo();lt();In();et();He();wt();hl();Ut();jr();j3();Mo();yG=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Kb=function(i,e){return function(t,r){e(t,r,i)}},PL=new ht("hasSymbols",!1,b("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),$b=Qr("ISymbolNavigationService"),NL=class{constructor(e,t,r,n){this._editorService=t,this._notificationService=r,this._keybindingService=n,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=PL.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){let t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();let r=new RL(this._editorService),n=r.onDidChange(o=>{if(this._ignoreEditorChange)return;let s=this._editorService.getActiveCodeEditor();if(!s)return;let a=s.getModel(),l=s.getPosition();if(!a||!l)return;let c=!1,d=!1;for(let u of t.references)if(c_(u.uri,a.uri))c=!0,d=d||B.containsPosition(u.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=D3(r,n)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;let t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:B.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();let t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),r=t?b("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):b("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(r)}};NL=yG([Kb(0,it),Kb(1,ai),Kb(2,Ri),Kb(3,Kt)],NL);en($b,NL,1);We(new class extends Fi{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:PL,kbOpts:{weight:100,primary:70}})}runEditorCommand(i,e){return i.get($b).revealNext(e)}});Ao.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:PL,primary:9,handler(i){i.get($b).reset()}});RL=class{constructor(e){this._listener=new Map,this._disposables=new le,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),ji(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,D3(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};RL=yG([Kb(0,ai)],RL)});function Gb(i,e,t,r){return OL(this,void 0,void 0,function*(){let o=t.ordered(i).map(a=>Promise.resolve(r(a,i,e)).then(void 0,l=>{Xt(l)})),s=yield Promise.all(o);return hn(s.flat())})}function mh(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideDefinition(o,s,r))}function FL(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideDeclaration(o,s,r))}function zL(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideImplementation(o,s,r))}function BL(i,e,t,r){return Gb(e,t,i,(n,o,s)=>n.provideTypeDefinition(o,s,r))}function Yb(i,e,t,r,n){return Gb(e,t,i,(o,s,a)=>OL(this,void 0,void 0,function*(){let l=yield o.provideReferences(s,a,{includeDeclaration:!0},n);if(!r||!l||l.length!==2)return l;let c=yield o.provideReferences(s,a,{includeDeclaration:!1},n);return c&&c.length===1?c:l}))}function Xb(i){return OL(this,void 0,void 0,function*(){let e=yield i(),t=new Hn(e,""),r=t.references.map(n=>n.link);return t.dispose(),r})}var OL,IC=N(()=>{mi();ki();qt();lt();Pt();Rp();OL=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};$n("_executeDefinitionProvider",(i,e,t)=>{let r=i.get(Se),n=mh(r.definitionProvider,e,t,st.None);return Xb(()=>n)});$n("_executeTypeDefinitionProvider",(i,e,t)=>{let r=i.get(Se),n=BL(r.typeDefinitionProvider,e,t,st.None);return Xb(()=>n)});$n("_executeDeclarationProvider",(i,e,t)=>{let r=i.get(Se),n=FL(r.declarationProvider,e,t,st.None);return Xb(()=>n)});$n("_executeReferenceProvider",(i,e,t)=>{let r=i.get(Se),n=Yb(r.referenceProvider,e,t,!1,st.None);return Xb(()=>n)});$n("_executeImplementationProvider",(i,e,t)=>{let r=i.get(Se),n=zL(r.implementationProvider,e,t,st.None);return Xb(()=>n)})});var ps,Qb,Zb,Jb,AC,LC,DC,MC,NC,gh,ms,uc,RC,PC,OC,FC,HL,e1=N(()=>{Io();jt();ll();zr();Ir();yu();_k();lt();In();Ap();di();et();ti();fn();ML();Rp();wG();M0();hh();He();Ji();Vi();wt();Ut();Mo();$c();IC();Pt();Jh();lz();ps=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};Zo.appendMenuItem(Me.EditorContext,{submenu:Me.EditorContextPeek,title:b("peek.submenu","Peek"),group:"navigation",order:100});gh=class i{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof i||Ie.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}},ms=class i extends oa{static all(){return i._allSymbolNavigationCommands.values()}static _patchConfig(e){let t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(let r of kn.wrap(t.menu))(r.id===Me.EditorContext||r.id===Me.EditorContextPeek)&&(r.when=fe.and(e.precondition,r.when));return t}constructor(e,t){super(i._patchConfig(t)),this.configuration=e,i._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,r,n){if(!t.hasModel())return Promise.resolve(void 0);let o=e.get(Ri),s=e.get(ai),a=e.get(vl),l=e.get($b),c=e.get(Se),d=e.get(Ke),u=t.getModel(),h=t.getPosition(),f=gh.is(r)?r:new gh(u,h),m=new ga(t,5),g=Vc(this._getLocationModel(c,f.model,f.position,m.token),m.token).then(w=>ps(this,void 0,void 0,function*(){var _;if(!w||m.token.isCancellationRequested)return;ar(w.ariaMessage);let E;if(w.referenceAt(u.uri,h)){let A=this._getAlternativeCommand(t);!i._activeAlternativeCommands.has(A)&&i._allSymbolNavigationCommands.has(A)&&(E=i._allSymbolNavigationCommands.get(A))}let L=w.references.length;if(L===0){if(!this.configuration.muteMessage){let A=u.getWordAtPosition(h);(_=qr.get(t))===null||_===void 0||_.showMessage(this._getNoResultFoundMessage(A),h)}}else if(L===1&&E)i._activeAlternativeCommands.add(this.desc.id),d.invokeFunction(A=>E.runEditorCommand(A,t,r,n).finally(()=>{i._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(s,l,t,w,n)}),w=>{o.error(w)}).finally(()=>{m.dispose()});return a.showWhile(g,250),g}_onResult(e,t,r,n,o){return ps(this,void 0,void 0,function*(){let s=this._getGoToPreference(r);if(!(r instanceof Wo)&&(this.configuration.openInPeek||s==="peek"&&n.references.length>1))this._openInPeek(r,n,o);else{let a=n.firstReference(),l=n.references.length>1&&s==="gotoAndPeek",c=yield this._openReference(r,e,a,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,n,o):n.dispose(),s==="goto"&&t.put(a)}})}_openReference(e,t,r,n,o){return ps(this,void 0,void 0,function*(){let s;if(jO(r)&&(s=r.targetSelectionRange),s||(s=r.range),!s)return;let a=yield t.openCodeEditor({resource:r.uri,options:{selection:B.collapseToStart(s),selectionRevealType:3,selectionSource:"code.jump"}},e,n);if(a){if(o){let l=a.getModel(),c=a.createDecorationsCollection([{range:s,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t,r){let n=Xa.get(e);n&&e.hasModel()?n.toggleWidget(r!=null?r:e.getSelection(),Jt(o=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}};ms._allSymbolNavigationCommands=new Map;ms._activeAlternativeCommands=new Set;uc=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield mh(e.definitionProvider,t,r,n),b("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?b("noResultWord","No definition found for '{0}'",e.word):b("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(57).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(57).multipleDefinitions}};Si((Qb=class extends uc{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Qb.id,title:{value:b("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:b({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:fe.and(F.hasDefinitionProvider,F.isInWalkThroughSnippet.toNegated()),keybinding:[{when:F.editorTextFocus,primary:70,weight:100},{when:fe.and(F.editorTextFocus,Ak),primary:2118,weight:100}],menu:[{id:Me.EditorContext,group:"navigation",order:1.1},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),Dt.registerCommandAlias("editor.action.goToDeclaration",Qb.id)}},Qb.id="editor.action.revealDefinition",Qb));Si((Zb=class extends uc{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:Zb.id,title:{value:b("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:fe.and(F.hasDefinitionProvider,F.isInWalkThroughSnippet.toNegated()),keybinding:[{when:F.editorTextFocus,primary:gi(2089,70),weight:100},{when:fe.and(F.editorTextFocus,Ak),primary:gi(2089,2118),weight:100}]}),Dt.registerCommandAlias("editor.action.openDeclarationToTheSide",Zb.id)}},Zb.id="editor.action.revealDefinitionAside",Zb));Si((Jb=class extends uc{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Jb.id,title:{value:b("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:fe.and(F.hasDefinitionProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),keybinding:{when:F.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:Me.EditorContextPeek,group:"peek",order:2}}),Dt.registerCommandAlias("editor.action.previewDeclaration",Jb.id)}},Jb.id="editor.action.peekDefinition",Jb));RC=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield FL(e.declarationProvider,t,r,n),b("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?b("decl.noResultWord","No declaration found for '{0}'",e.word):b("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(57).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(57).multipleDeclarations}};Si((AC=class extends RC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:AC.id,title:{value:b("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:b({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:fe.and(F.hasDeclarationProvider,F.isInWalkThroughSnippet.toNegated()),menu:[{id:Me.EditorContext,group:"navigation",order:1.3},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?b("decl.noResultWord","No declaration found for '{0}'",e.word):b("decl.generic.noResults","No declaration found")}},AC.id="editor.action.revealDeclaration",AC));Si(class extends RC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:b("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:fe.and(F.hasDeclarationProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),menu:{id:Me.EditorContextPeek,group:"peek",order:3}})}});PC=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield BL(e.typeDefinitionProvider,t,r,n),b("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?b("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):b("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(57).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(57).multipleTypeDefinitions}};Si((LC=class extends PC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:LC.ID,title:{value:b("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:b({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:fe.and(F.hasTypeDefinitionProvider,F.isInWalkThroughSnippet.toNegated()),keybinding:{when:F.editorTextFocus,primary:0,weight:100},menu:[{id:Me.EditorContext,group:"navigation",order:1.4},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},LC.ID="editor.action.goToTypeDefinition",LC));Si((DC=class extends PC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:DC.ID,title:{value:b("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:fe.and(F.hasTypeDefinitionProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),menu:{id:Me.EditorContextPeek,group:"peek",order:4}})}},DC.ID="editor.action.peekTypeDefinition",DC));OC=class extends ms{_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield zL(e.implementationProvider,t,r,n),b("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?b("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):b("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(57).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(57).multipleImplementations}};Si((MC=class extends OC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:MC.ID,title:{value:b("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:b({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:fe.and(F.hasImplementationProvider,F.isInWalkThroughSnippet.toNegated()),keybinding:{when:F.editorTextFocus,primary:2118,weight:100},menu:[{id:Me.EditorContext,group:"navigation",order:1.45},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},MC.ID="editor.action.goToImplementation",MC));Si((NC=class extends OC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:NC.ID,title:{value:b("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:fe.and(F.hasImplementationProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),keybinding:{when:F.editorTextFocus,primary:3142,weight:100},menu:{id:Me.EditorContextPeek,group:"peek",order:5}})}},NC.ID="editor.action.peekImplementation",NC));FC=class extends ms{_getNoResultFoundMessage(e){return e?b("references.no","No references found for '{0}'",e.word):b("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(57).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(57).multipleReferences}};Si(class extends FC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:b("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:b({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:fe.and(F.hasReferenceProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),keybinding:{when:F.editorTextFocus,primary:1094,weight:100},menu:[{id:Me.EditorContext,group:"navigation",order:1.45},{id:Me.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield Yb(e.referenceProvider,t,r,!0,n),b("ref.title","References"))})}});Si(class extends FC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:b("references.action.label","Peek References"),original:"Peek References"},precondition:fe.and(F.hasReferenceProvider,Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated()),menu:{id:Me.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(yield Yb(e.referenceProvider,t,r,!1,n),b("ref.title","References"))})}});HL=class extends ms{constructor(e,t,r){super(e,{id:"editor.action.goToLocation",title:{value:b("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:fe.and(Pr.notInPeekEditor,F.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=r}_getLocationModel(e,t,r,n){return ps(this,void 0,void 0,function*(){return new Hn(this._references,b("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&b("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(57).multipleReferences}_getAlternativeCommand(){return""}};Dt.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:yt},{name:"position",description:"The position at which to start",constraint:Ie.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(i,e,t,r,n,o,s)=>ps(void 0,void 0,void 0,function*(){Bt(yt.isUri(e)),Bt(Ie.isIPosition(t)),Bt(Array.isArray(r)),Bt(typeof n=="undefined"||typeof n=="string"),Bt(typeof s=="undefined"||typeof s=="boolean");let a=i.get(ai),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(vk(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{let d=new class extends HL{_getNoResultFoundMessage(u){return o||super._getNoResultFoundMessage(u)}}({muteMessage:!o,openInPeek:!!s,openToSide:!1},r,n);c.get(Ke).invokeFunction(d.run.bind(d),l)})})});Dt.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:yt},{name:"position",description:"The position at which to start",constraint:Ie.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(i,e,t,r,n)=>ps(void 0,void 0,void 0,function*(){i.get(_i).executeCommand("editor.action.goToLocations",e,t,r,n,void 0,!0)})});Dt.registerCommand({id:"editor.action.findReferences",handler:(i,e,t)=>{Bt(yt.isUri(e)),Bt(Ie.isIPosition(t));let r=i.get(Se),n=i.get(ai);return n.openCodeEditor({resource:e},n.getFocusedCodeEditor()).then(o=>{if(!vk(o)||!o.hasModel())return;let s=Xa.get(o);if(!s)return;let a=Jt(c=>Yb(r.referenceProvider,o.getModel(),Ie.lift(t),!1,c).then(d=>new Hn(d,b("ref.title","References")))),l=new B(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(s.toggleWidget(l,a,!1))})}});Dt.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")});var xG=N(()=>{});var CG=N(()=>{xG()});function UL(i,e){return!!i[e]}function SG(i){return i==="altKey"?En?new zp(57,"metaKey",6,"altKey"):new zp(5,"ctrlKey",6,"altKey"):En?new zp(6,"altKey",57,"metaKey"):new zp(6,"altKey",5,"ctrlKey")}var t1,zC,zp,Qa,i1=N(()=>{ei();ke();Tn();t1=class{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=UL(e.event,t.triggerModifier),this.hasSideBySideModifier=UL(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}},zC=class{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=UL(e,t.triggerModifier)}},zp=class{constructor(e,t,r,n){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=r,this.triggerSideBySideModifier=n}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}};Qa=class extends ce{constructor(e,t){var r;super(),this._onMouseMoveOrRelevantKeyDown=this._register(new Je),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new Je),this.onExecute=this._onExecute.event,this._onCancel=this._register(new Je),this.onCancel=this._onCancel.event,this._editor=e,this._extractLineNumberFromMouseEvent=(r=t==null?void 0:t.extractLineNumberFromMouseEvent)!==null&&r!==void 0?r:n=>n.target.position?n.target.position.lineNumber:0,this._opts=SG(this._editor.getOption(76)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(n=>{if(n.hasChanged(76)){let o=SG(this._editor.getOption(76));if(this._opts.equals(o))return;this._opts=o,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(n=>this._onEditorMouseMove(new t1(n,this._opts)))),this._register(this._editor.onMouseDown(n=>this._onEditorMouseDown(new t1(n,this._opts)))),this._register(this._editor.onMouseUp(n=>this._onEditorMouseUp(new t1(n,this._opts)))),this._register(this._editor.onKeyDown(n=>this._onEditorKeyDown(new zC(n,this._opts)))),this._register(this._editor.onKeyUp(n=>this._onEditorKeyUp(new zC(n,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(n=>this._onDidChangeCursorSelection(n))),this._register(this._editor.onDidChangeModel(n=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(n=>{(n.scrollTopChanged||n.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=this._extractLineNumberFromMouseEvent(e)}_onEditorMouseUp(e){let t=this._extractLineNumberFromMouseEvent(e);this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}});var wbe,jL,kG,r1,Ud,BC=N(()=>{jt();qt();Es();ke();CG();yu();lt();et();es();ra();i1();hh();He();wt();e1();IC();Pt();Ur();wbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jL=function(i,e){return function(t,r){e(t,r,i)}},kG=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ud=r1=class{constructor(e,t,r,n){this.textModelResolverService=t,this.languageService=r,this.languageFeaturesService=n,this.toUnhook=new le,this.toUnhookForKeyboard=new le,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();let o=new Qa(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown(([s,a])=>{this.startFindDefinitionFromMouse(s,a!=null?a:void 0)})),this.toUnhook.add(o.onExecute(s=>{this.isEnabled(s)&&this.gotoDefinition(s.target.position,s.hasSideBySideModifier).catch(a=>{ft(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(o.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(r1.ID)}startFindDefinitionFromCursor(e){return kG(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}let r=e.target.position;this.startFindDefinition(r)}startFindDefinition(e){var t;return kG(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();let r=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!r){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===r.startColumn&&this.currentWordAtPosition.endColumn===r.endColumn&&this.currentWordAtPosition.word===r.word)return;this.currentWordAtPosition=r;let n=new T_(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Jt(a=>this.findDefinition(e,a));let o;try{o=yield this.previousPromise}catch(a){ft(a);return}if(!o||!o.length||!n.validate(this.editor)){this.removeLinkDecorations();return}let s=o[0].originSelectionRange?B.lift(o[0].originSelectionRange):new B(e.lineNumber,r.startColumn,e.lineNumber,r.endColumn);if(o.length>1){let a=s;for(let{originSelectionRange:l}of o)l&&(a=B.plusRange(a,l));this.addDecoration(a,new $i().appendText(b("multipleResults","Click to show {0} definitions.",o.length)))}else{let a=o[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}let{object:{textEditorModel:c}}=l,{startLineNumber:d}=a.range;if(d<1||d>c.getLineCount()){l.dispose();return}let u=this.getPreviewValue(c,d,a),h=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(s,u?new $i().appendCodeblock(h||"",u):void 0),l.dispose()})}})}getPreviewValue(e,t,r){let n=r.range;return n.endLineNumber-n.startLineNumber>=r1.MAX_SOURCE_PREVIEW_LINES&&(n=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,n)}stripIndentationFromPreviewRange(e,t,r){let o=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{let n=!t&&this.editor.getOption(86)&&!this.isInPeekEditor(r);return new uc({openToSide:t,openInPeek:n,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(r)})}isInPeekEditor(e){let t=e.get(it);return Pr.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};Ud.ID="editor.contrib.gotodefinitionatposition";Ud.MAX_SOURCE_PREVIEW_LINES=8;Ud=r1=wbe([jL(1,Cr),jL(2,er),jL(3,Se)],Ud);Ue(Ud.ID,Ud,2)});var EG,HC,UC,WL,qL,VL,TG=N(()=>{mi();ei();ke();j9();Ni();Ir();et();hl();Ut();F_();Sr();EG=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},HC=function(i,e){return function(t,r){e(t,r,i)}},UC=class{constructor(e,t,r){this.marker=e,this.index=t,this.total=r}},WL=class{constructor(e,t,r){this._markerService=t,this._configService=r,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._dispoables=new le,this._markers=[],this._nextIdx=-1,yt.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);let n=this._configService.getValue("problems.sortOrder"),o=(a,l)=>{let c=z3(a.resource.toString(),l.resource.toString());return c===0&&(n==="position"?c=B.compareRangesUsingStarts(a,l)||Lr.compare(a.severity,l.severity):c=Lr.compare(a.severity,l.severity)||B.compareRangesUsingStarts(a,l)),c},s=()=>{this._markers=this._markerService.read({resource:yt.isUri(e)?e:void 0,severities:Lr.Error|Lr.Warning|Lr.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(o)};s(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(s(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){let e=this._markers[this._nextIdx];return e&&new UC(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,r){let n=!1,o=this._markers.findIndex(s=>s.resource.toString()===e.uri.toString());o<0&&(o=pu(this._markers,{resource:e.uri},(s,a)=>z3(s.resource.toString(),a.resource.toString())),o<0&&(o=~o));for(let s=o;sn.resource.toString()===e.toString());if(!(r<0)){for(;r{});var AG=N(()=>{IG()});var LG=N(()=>{});var DG=N(()=>{LG()});var jC,MG=N(()=>{DG();Zr();An();Nre();(function(i){function e(t){switch(t){case ig.Ignore:return"severity-ignore "+_t.asClassName(pt.info);case ig.Info:return _t.asClassName(pt.info);case ig.Warning:return _t.asClassName(pt.warning);case ig.Error:return _t.asClassName(pt.error);default:return""}}i.className=e})(jC||(jC={}))});var xbe,Bp,KL,$L,bh,NG,RG,PG,GL,Cbe,WC,Sbe,YL,kbe,Ebe,OG=N(()=>{Ht();N_();mi();ca();ei();ke();Lo();Ni();AG();et();hh();He();J_();Ji();wt();Ut();ey();F_();is();MG();tn();rn();xbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Bp=function(i,e){return function(t,r){e(t,r,i)}},$L=class{constructor(e,t,r,n,o){this._openerService=n,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new le,this._editor=t;let s=document.createElement("div");s.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),s.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),s.appendChild(this._relatedBlock),this._disposables.add(To(this._relatedBlock,"click",a=>{a.preventDefault();let l=this._relatedDiagnostics.get(a.target);l&&r(l)})),this._scrollable=new pF(s,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{s.style.left=`-${a.scrollLeft}px`,s.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){ji(this._disposables)}update(e){let{source:t,message:r,relatedInformation:n,code:o}=e,s=((t==null?void 0:t.length)||0)+2;o&&(typeof o=="string"?s+=o.length:s+=o.value.length);let a=hu(r);this._lines=a.length,this._longestLineLength=0;for(let h of a)this._longestLineLength=Math.max(h.length+s,this._longestLineLength);qn(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(let h of a)l=document.createElement("div"),l.innerText=h,h===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||o){let h=document.createElement("span");if(h.classList.add("details"),l.appendChild(h),t){let f=document.createElement("span");f.innerText=t,f.classList.add("source"),h.appendChild(f)}if(o)if(typeof o=="string"){let f=document.createElement("span");f.innerText=`(${o})`,f.classList.add("code"),h.appendChild(f)}else{this._codeLink=Ae("a.code-link"),this._codeLink.setAttribute("href",`${o.target.toString()}`),this._codeLink.onclick=m=>{this._openerService.open(o.target,{allowCommands:!0}),m.preventDefault(),m.stopPropagation()};let f=Te(this._codeLink,Ae("span"));f.innerText=o.value,h.appendChild(this._codeLink)}}if(qn(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),Ki(n)){let h=this._relatedBlock.appendChild(document.createElement("div"));h.style.paddingTop=`${Math.floor(this._editor.getOption(65)*.66)}px`,this._lines+=1;for(let f of n){let m=document.createElement("div"),g=document.createElement("a");g.classList.add("filename"),g.innerText=`${this._labelService.getUriBasenameLabel(f.resource)}(${f.startLineNumber}, ${f.startColumn}): `,g.title=this._labelService.getUriLabel(f.resource),this._relatedDiagnostics.set(g,f);let w=document.createElement("span");w.innerText=f.message,m.appendChild(g),m.appendChild(w),this._lines+=1,h.appendChild(m)}}let c=this._editor.getOption(49),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),u=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:u})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case Lr.Error:t=b("Error","Error");break;case Lr.Warning:t=b("Warning","Warning");break;case Lr.Info:t=b("Info","Info");break;case Lr.Hint:t=b("Hint","Hint");break}let r=b("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn),n=this._editor.getModel();return n&&e.startLineNumber<=n.getLineCount()&&e.startLineNumber>=1&&(r=`${n.getLineContent(e.startLineNumber)}, ${r}`),r}},bh=KL=class extends Np{constructor(e,t,r,n,o,s,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},o),this._themeService=t,this._openerService=r,this._menuService=n,this._contextKeyService=s,this._labelService=a,this._callOnDispose=new le,this._onDidSelectRelatedInformation=new Je,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=Lr.Warning,this._backgroundColor=vt.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Ebe);let t=GL,r=Cbe;this._severity===Lr.Warning?(t=WC,r=Sbe):this._severity===Lr.Info&&(t=YL,r=kbe);let n=e.getColor(t),o=e.getColor(r);this.style({arrowColor:n,frameColor:n,headerBackgroundColor:o,primaryHeadingColor:e.getColor(mC),secondaryHeadingColor:e.getColor(gC)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(n=>this.editor.focus()));let t=[],r=this._menuService.createMenu(KL.TitleMenu,this._contextKeyService);Q_(r,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),r.dispose()}_fillTitleIcon(e){this._icon=Te(e,Ae(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new $L(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,r){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());let n=B.lift(e),o=this.editor.getPosition(),s=o&&n.containsPosition(o)?o:n.getStartPosition();super.show(s,this.computeRequiredHeight());let a=this.editor.getModel();if(a){let l=r>1?b("problems","{0} of {1} problems",t,r):b("change","{0} of {1} problem",t,r);this.setTitle(Dn(a.uri),l)}this._icon.className=`codicon ${jC.className(Lr.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(s,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};bh.TitleMenu=new Me("gotoErrorTitleMenu");bh=KL=xbe([Bp(1,br),Bp(2,tr),Bp(3,Ss),Bp(4,Ke),Bp(5,it),Bp(6,Tl)],bh);NG=__(mO,gO),RG=__(bO,vO),PG=__(jm,_O),GL=je("editorMarkerNavigationError.background",{dark:NG,light:NG,hcDark:ts,hcLight:ts},b("editorMarkerNavigationError","Editor marker navigation widget error color.")),Cbe=je("editorMarkerNavigationError.headerBackground",{dark:Nn(GL,.1),light:Nn(GL,.1),hcDark:null,hcLight:null},b("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),WC=je("editorMarkerNavigationWarning.background",{dark:RG,light:RG,hcDark:ts,hcLight:ts},b("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Sbe=je("editorMarkerNavigationWarning.headerBackground",{dark:Nn(WC,.1),light:Nn(WC,.1),hcDark:"#0C141F",hcLight:Nn(WC,.2)},b("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),YL=je("editorMarkerNavigationInfo.background",{dark:PG,light:PG,hcDark:ts,hcLight:ts},b("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),kbe=je("editorMarkerNavigationInfo.headerBackground",{dark:Nn(YL,.1),light:Nn(YL,.1),hcDark:null,hcLight:null},b("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Ebe=je("editorMarkerNavigation.background",{dark:Wm,light:Wm,hcDark:Wm,hcLight:Wm},b("editorMarkerNavigationBackground","Editor marker navigation widget background."))});var Tbe,VC,FG,n1,hc,Hp,vh,o1,XL,QL,zG,Ibe,qC=N(()=>{Zr();ke();lt();In();di();et();ti();TG();He();Ji();wt();Ut();Sl();OG();Tbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},VC=function(i,e){return function(t,r){e(t,r,i)}},FG=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},hc=n1=class{static get(e){return e.getContribution(n1.ID)}constructor(e,t,r,n,o){this._markerNavigationService=t,this._contextKeyService=r,this._editorService=n,this._instantiationService=o,this._sessionDispoables=new le,this._editor=e,this._widgetVisible=zG.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(bh,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(r=>{var n,o,s;(!(!((n=this._model)===null||n===void 0)&&n.selected)||!B.containsPosition((o=this._model)===null||o===void 0?void 0:o.selected.marker,r.position))&&((s=this._model)===null||s===void 0||s.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;let r=this._model.find(this._editor.getModel().uri,this._widget.position);r?this._widget.updateMarker(r.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(r=>{this._editorService.openCodeEditor({resource:r.resource,options:{pinned:!0,revealIfOpened:!0,selection:B.lift(r).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){let t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new Ie(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var r,n;return FG(this,void 0,void 0,function*(){if(this._editor.hasModel()){let o=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(o.move(e,this._editor.getModel(),this._editor.getPosition()),!o.selected)return;if(o.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();let s=yield this._editorService.openCodeEditor({resource:o.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:o.selected.marker}},this._editor);s&&((r=n1.get(s))===null||r===void 0||r.close(),(n=n1.get(s))===null||n===void 0||n.nagivate(e,t))}else this._widget.showAtMarker(o.selected.marker,o.selected.index,o.selected.total)}})}};hc.ID="editor.contrib.markerController";hc=n1=Tbe([VC(1,qL),VC(2,it),VC(3,ai),VC(4,Ke)],hc);Hp=class extends de{constructor(e,t,r){super(r),this._next=e,this._multiFile=t}run(e,t){var r;return FG(this,void 0,void 0,function*(){t.hasModel()&&((r=hc.get(t))===null||r===void 0||r.nagivate(this._next,this._multiFile))})}},vh=class i extends Hp{constructor(){super(!0,!1,{id:i.ID,label:i.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:578,weight:100},menuOpts:{menuId:bh.TitleMenu,title:i.LABEL,icon:Pi("marker-navigation-next",pt.arrowDown,b("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}};vh.ID="editor.action.marker.next";vh.LABEL=b("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");o1=class i extends Hp{constructor(){super(!1,!1,{id:i.ID,label:i.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:1602,weight:100},menuOpts:{menuId:bh.TitleMenu,title:i.LABEL,icon:Pi("marker-navigation-previous",pt.arrowUp,b("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}};o1.ID="editor.action.marker.prev";o1.LABEL=b("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");XL=class extends Hp{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:b("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:66,weight:100},menuOpts:{menuId:Me.MenubarGoMenu,title:b({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}},QL=class extends Hp{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:b("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:1090,weight:100},menuOpts:{menuId:Me.MenubarGoMenu,title:b({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}};Ue(hc.ID,hc,4);ee(vh);ee(o1);ee(XL);ee(QL);zG=new ht("markersNavigationVisible",!1),Ibe=Fi.bindToContribution(hc.get);We(new Ibe({id:"closeMarkersNavigation",precondition:zG,handler:i=>i.close(),kbOpts:{weight:100+50,kbExpr:F.focus,primary:9,secondary:[1033]}}))});var BG=N(()=>{});var HG=N(()=>{BG()});function UG(i,e){return i&&e?b("acessibleViewHint","Inspect this in the accessible view with {0}.",e):i?b("acessibleViewHintNoKbOpen","Inspect this in the accessible view via the command Open Accessible View which is currently not triggerable via keybinding."):""}var KC,Up,$C,ZL=N(()=>{Ht();Z9();N_();ke();HG();He();KC=Ae,Up=class extends ce{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new Cf(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}},$C=class i extends ce{static render(e,t,r){return new i(e,t,r)}constructor(e,t,r){super(),this.actionContainer=Te(e,KC("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=Te(this.actionContainer,KC("a.action")),this.action.setAttribute("role","button"),t.iconClass&&Te(this.action,KC(`span.icon.${t.iconClass}`));let n=Te(this.action,KC("span"));n.textContent=r?`${t.label} (${r})`:t.label,this._register(Lt(this.actionContainer,bi.CLICK,o=>{o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer)})),this._register(Lt(this.actionContainer,bi.KEY_DOWN,o=>{let s=new Wv(o);(s.equals(3)||s.equals(10))&&(o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}});var Abe,Lbe,JL,jp,e8=N(()=>{jt();qt();ei();ke();Abe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Lbe=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=i[o]&&function(s){return new Promise(function(a,l){s=i[o](s),n(a,l,s.done,s.value)})}}function n(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}},JL=class{constructor(e,t,r){this.value=e,this.isComplete=t,this.hasLoadingMessage=r}},jp=class extends ce{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new Je),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new ui(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new ui(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new ui(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(59).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=iO(e=>this._computer.computeAsync(e)),Abe(this,void 0,void 0,function*(){var e,t,r,n;try{try{for(var o=!0,s=Lbe(this._asyncIterable),a;a=yield s.next(),e=a.done,!e;o=!0){n=a.value,o=!1;let l=n;l&&(this._result.push(l),this._fireResult())}}catch(l){t={error:l}}finally{try{!o&&!e&&(r=s.return)&&(yield r.call(s))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){ft(l)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;let e=this._state===0,t=this._state===4;this._onResult.fire(new JL(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}});var Dbe,Mbe,GC,jG=N(()=>{Z2();ke();di();Ht();Dbe=30,Mbe=24,GC=class extends ce{constructor(e,t=new Qt(10,10)){super(),this._editor=e,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._resizableNode=this._register(new Od),this._contentPosition=null,this._isResizing=!1,this._resizableNode.domNode.style.position="absolute",this._resizableNode.minSize=Qt.lift(t),this._resizableNode.layout(t.height,t.width),this._resizableNode.enableSashes(!0,!0,!0,!0),this._register(this._resizableNode.onDidResize(r=>{this._resize(new Qt(r.dimension.width,r.dimension.height)),r.done&&(this._isResizing=!1)})),this._register(this._resizableNode.onDidWillResize(()=>{this._isResizing=!0}))}get isResizing(){return this._isResizing}getDomNode(){return this._resizableNode.domNode}getPosition(){return this._contentPosition}get position(){var e;return!((e=this._contentPosition)===null||e===void 0)&&e.position?Ie.lift(this._contentPosition.position):void 0}_availableVerticalSpaceAbove(e){let t=this._editor.getDomNode(),r=this._editor.getScrolledVisiblePosition(e);return!t||!r?void 0:Zi(t).top+r.top-Dbe}_availableVerticalSpaceBelow(e){let t=this._editor.getDomNode(),r=this._editor.getScrolledVisiblePosition(e);if(!t||!r)return;let n=Zi(t),o=Oc(document.body),s=n.top+r.top+r.height;return o.height-s-Mbe}_findPositionPreference(e,t){var r,n;let o=Math.min((r=this._availableVerticalSpaceBelow(t))!==null&&r!==void 0?r:1/0,e),s=Math.min((n=this._availableVerticalSpaceAbove(t))!==null&&n!==void 0?n:1/0,e),a=Math.min(Math.max(s,o),e),l=Math.min(e,a),c;return this._editor.getOption(59).above?c=l<=s?1:2:c=l<=o?2:1,c===1?this._resizableNode.enableSashes(!0,!0,!1,!1):this._resizableNode.enableSashes(!1,!0,!0,!1),c}_resize(e){this._resizableNode.layout(e.height,e.width)}}});function qG(i,e,t,r,n,o){let s=t+n/2,a=r+o/2,l=Math.max(Math.abs(i-s)-n/2,0),c=Math.max(Math.abs(e-a)-o/2,0);return Math.sqrt(l*l+c*c)}var o8,_h,YC,Za,WG,s1,XC,i8,r8,VG,t8,Nbe,fc,a1,n8,s8=N(()=>{Ht();ZL();mi();ke();di();et();Ur();fn();e8();rc();Ut();jr();jt();ti();wt();jG();Sr();X_();o8=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},_h=function(i,e){return function(t,r){e(t,r,i)}},WG=Ae,s1=YC=class extends ce{constructor(e,t,r){super(),this._editor=e,this._instantiationService=t,this._keybindingService=r,this._currentResult=null,this._widget=this._register(this._instantiationService.createInstance(fc,this._editor)),this._participants=[];for(let n of Uo.getAll())this._participants.push(this._instantiationService.createInstance(n,this._editor));this._participants.sort((n,o)=>n.hoverOrdinal-o.hoverOrdinal),this._computer=new n8(this._editor,this._participants),this._hoverOperation=this._register(new jp(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{if(!this._computer.anchor)return;let o=n.hasLoadingMessage?this._addLoadingMessage(n.value):n.value;this._withResult(new XC(this._computer.anchor,o,n.isComplete))})),this._register(To(this._widget.getDomNode(),"keydown",n=>{n.equals(9)&&this.hide()})),this._register(_f.onDidChange(()=>{this._widget.position&&this._currentResult&&this._setCurrentResult(this._currentResult)}))}get widget(){return this._widget}maybeShowAt(e){if(this._widget.isResizing)return!0;let t=[];for(let n of this._participants)if(n.suggestHoverAnchor){let o=n.suggestHoverAnchor(e);o&&t.push(o)}let r=e.target;if(r.type===6&&t.push(new bp(0,r.range,e.event.posx,e.event.posy)),r.type===7){let n=this._editor.getOption(49).typicalHalfwidthCharacterWidth/2;!r.detail.isAfterLines&&typeof r.detail.horizontalDistanceToText=="number"&&r.detail.horizontalDistanceToTexto.priority-n.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,r,n){this._startShowingOrUpdateHover(new bp(0,e,void 0,void 0),t,r,n,null)}_startShowingOrUpdateHover(e,t,r,n,o){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,r,n,!1),!0):!1:this._editor.getOption(59).sticky&&o&&this._widget.isMouseGettingCloser(o.event.posx,o.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,r,n,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,r,n,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,r,n,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,r,n,o){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=n,this._computer.source=r,this._computer.insistOnKeepingHoverVisible=o,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}get isColorPickerVisible(){return this._widget.isColorPickerVisible}get isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}get isVisible(){return this._widget.isVisible}get isFocused(){return this._widget.isFocused}get isResizing(){return this._widget.isResizing}containsNode(e){return e?this._widget.getDomNode().contains(e):!1}_addLoadingMessage(e){if(this._computer.anchor){for(let t of this._participants)if(t.createLoadingMessage){let r=t.createLoadingMessage(this._computer.anchor);if(r)return e.slice(0).concat([r])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){let{showAtPosition:r,showAtSecondaryPosition:n,highlightRange:o}=YC.computeHoverRanges(this._editor,e.range,t),s=new le,a=s.add(new a1(this._keybindingService)),l=document.createDocumentFragment(),c=null,d={fragment:l,statusBar:a,setColorPicker:h=>c=h,onContentsChanged:()=>this._widget.onContentsChanged(),setMinimumDimensions:h=>this._widget.setMinimumDimensions(h),hide:()=>this.hide()};for(let h of this._participants){let f=t.filter(m=>m.owner===h);f.length>0&&s.add(h.renderHoverParts(d,f))}let u=t.some(h=>h.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(o){let h=this._editor.createDecorationsCollection();h.set([{range:o,options:YC._DECORATION_OPTIONS}]),s.add(ri(()=>{h.clear()}))}this._widget.showAt(l,new r8(c,r,n,this._editor.getOption(59).above,this._computer.shouldFocus,this._computer.source,u,e.initialMousePosX,e.initialMousePosY,s))}else s.dispose()}static computeHoverRanges(e,t,r){let n=1;if(e.hasModel()){let c=e._getViewModel(),d=c.coordinatesConverter,u=d.convertModelRangeToViewRange(t),h=new Ie(u.startLineNumber,c.getLineMinColumn(u.startLineNumber));n=d.convertViewPositionToModelPosition(h).column}let o=t.startLineNumber,s=t.startColumn,a=r[0].range,l=null;for(let c of r)a=B.plusRange(a,c.range),c.range.startLineNumber===o&&c.range.endLineNumber===o&&(s=Math.max(Math.min(s,c.range.startColumn),n)),c.forceShowAtRange&&(l=c.range);return{showAtPosition:l?l.getStartPosition():new Ie(o,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new Ie(o,s),highlightRange:a}}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}};s1._DECORATION_OPTIONS=mt.register({description:"content-hover-highlight",className:"hoverHighlight"});s1=YC=o8([_h(1,Ke),_h(2,Kt)],s1);XC=class{constructor(e,t,r){this.anchor=e,this.messages=t,this.isComplete=r}filter(e){let t=this.messages.filter(r=>r.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new i8(this,this.anchor,t,this.isComplete)}},i8=class extends XC{constructor(e,t,r,n){super(t,r,n),this.original=e}filter(e){return this.original.filter(e)}},r8=class{constructor(e,t,r,n,o,s,a,l,c,d){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=r,this.preferAbove=n,this.stoleFocus=o,this.source=s,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=c,this.disposables=d,this.closestMouseDistance=void 0}},VG=30,t8=10,Nbe=6,fc=Za=class extends GC{get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}get isVisible(){var e;return(e=this._hoverVisibleKey.get())!==null&&e!==void 0?e:!1}get isFocused(){var e;return(e=this._hoverFocusedKey.get())!==null&&e!==void 0?e:!1}constructor(e,t,r,n,o){let s=e.getOption(65)+8,a=150,l=new Qt(a,s);super(e,l),this._configurationService=r,this._accessibilityService=n,this._keybindingService=o,this._hover=this._register(new Up),this._minimumSize=l,this._hoverVisibleKey=F.hoverVisible.bindTo(t),this._hoverFocusedKey=F.hoverFocused.bindTo(t),Te(this._resizableNode.domNode,this._hover.containerDomNode),this._resizableNode.domNode.style.zIndex="50",this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(d=>{d.hasChanged(49)&&this._updateFont()}));let c=this._register(xs(this._resizableNode.domNode));this._register(c.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(c.onDidBlur(()=>{this._hoverFocusedKey.set(!1)})),this._setHoverData(void 0),this._layout(),this._editor.addContentWidget(this)}dispose(){var e;super.dispose(),(e=this._visibleData)===null||e===void 0||e.disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return Za.ID}static _applyDimensions(e,t,r){let n=typeof t=="number"?`${t}px`:t,o=typeof r=="number"?`${r}px`:r;e.style.width=n,e.style.height=o}_setContentsDomNodeDimensions(e,t){let r=this._hover.contentsDomNode;return Za._applyDimensions(r,e,t)}_setContainerDomNodeDimensions(e,t){let r=this._hover.containerDomNode;return Za._applyDimensions(r,e,t)}_setHoverWidgetDimensions(e,t){this._setContentsDomNodeDimensions(e,t),this._setContainerDomNodeDimensions(e,t),this._layoutContentWidget()}static _applyMaxDimensions(e,t,r){let n=typeof t=="number"?`${t}px`:t,o=typeof r=="number"?`${r}px`:r;e.style.maxWidth=n,e.style.maxHeight=o}_setHoverWidgetMaxDimensions(e,t){Za._applyMaxDimensions(this._hover.contentsDomNode,e,t),Za._applyMaxDimensions(this._hover.containerDomNode,e,t),this._hover.containerDomNode.style.setProperty("--vscode-hover-maxWidth",typeof e=="number"?`${e}px`:e),this._layoutContentWidget()}_hasHorizontalScrollbar(){let e=this._hover.scrollbar.getScrollDimensions();return e.scrollWidth>e.width}_adjustContentsBottomPadding(){let e=this._hover.contentsDomNode,t=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;e.style.paddingBottom!==t&&(e.style.paddingBottom=t)}_setAdjustedHoverWidgetDimensions(e){this._setHoverWidgetMaxDimensions("none","none");let t=e.width,r=e.height;this._setHoverWidgetDimensions(t,r),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._setContentsDomNodeDimensions(t,r-t8))}_updateResizableNodeMaxDimensions(){var e,t;let r=(e=this._findMaximumRenderingWidth())!==null&&e!==void 0?e:1/0,n=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._resizableNode.maxSize=new Qt(r,n),this._setHoverWidgetMaxDimensions(r,n)}_resize(e){var t,r;Za._lastDimensions=new Qt(e.width,e.height),this._setAdjustedHoverWidgetDimensions(e),this._resizableNode.layout(e.height,e.width),this._updateResizableNodeMaxDimensions(),this._hover.scrollbar.scanDomNode(),this._editor.layoutContentWidget(this),(r=(t=this._visibleData)===null||t===void 0?void 0:t.colorPicker)===null||r===void 0||r.layout()}_findAvailableSpaceVertically(){var e;let t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition;if(t)return this._positionPreference===1?this._availableVerticalSpaceAbove(t):this._availableVerticalSpaceBelow(t)}_findMaximumRenderingHeight(){let e=this._findAvailableSpaceVertically();if(!e)return;let t=Nbe;return Array.from(this._hover.contentsDomNode.children).forEach(r=>{t+=r.clientHeight}),this._hasHorizontalScrollbar()&&(t+=t8),Math.min(e,t)}_isHoverTextOverflowing(){this._hover.containerDomNode.style.setProperty("--vscode-hover-whiteSpace","nowrap"),this._hover.containerDomNode.style.setProperty("--vscode-hover-sourceWhiteSpace","nowrap");let e=Array.from(this._hover.contentsDomNode.children).some(t=>t.scrollWidth>t.clientWidth);return this._hover.containerDomNode.style.removeProperty("--vscode-hover-whiteSpace"),this._hover.containerDomNode.style.removeProperty("--vscode-hover-sourceWhiteSpace"),e}_findMaximumRenderingWidth(){if(!this._editor||!this._editor.hasModel())return;let e=this._isHoverTextOverflowing(),t=typeof this._contentWidth=="undefined"?0:this._contentWidth-2;return e||this._hover.containerDomNode.clientWidththis._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,n),!0)}_setHoverData(e){var t;(t=this._visibleData)===null||t===void 0||t.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!e),this._hover.containerDomNode.classList.toggle("hidden",!e)}_layout(){let{fontSize:e,lineHeight:t}=this._editor.getOption(49),r=this._hover.contentsDomNode;r.style.fontSize=`${e}px`,r.style.lineHeight=`${t/e}`,this._updateMaxDimensions()}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_updateContent(e){let t=this._hover.contentsDomNode;t.style.paddingBottom="",t.textContent="",t.appendChild(e)}_layoutContentWidget(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged()}_updateMaxDimensions(){let e=Math.max(this._editor.getLayoutInfo().height/4,250,Za._lastDimensions.height),t=Math.max(this._editor.getLayoutInfo().width*.66,500,Za._lastDimensions.width);this._setHoverWidgetMaxDimensions(t,e)}_render(e,t){this._setHoverData(t),this._updateFont(),this._updateContent(e),this._updateMaxDimensions(),this.onContentsChanged(),this._editor.render()}getPosition(){var e;return this._visibleData?{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,positionAffinity:this._visibleData.isBeforeContent?3:void 0,preference:[(e=this._positionPreference)!==null&&e!==void 0?e:1]}:null}showAt(e,t){var r,n,o,s;if(!this._editor||!this._editor.hasModel())return;this._render(e,t);let a=Mm(this._hover.containerDomNode),l=t.showAtPosition;this._positionPreference=(r=this._findPositionPreference(a,l))!==null&&r!==void 0?r:1,this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(n=t.colorPicker)===null||n===void 0||n.layout();let c=UG(this._configurationService.getValue("accessibility.verbosity.hover")===!0&&this._accessibilityService.isScreenReaderOptimized(),(s=(o=this._keybindingService.lookupKeybinding("editor.action.accessibleView"))===null||o===void 0?void 0:o.getAriaLabel())!==null&&s!==void 0?s:"");c&&(this._hover.contentsDomNode.ariaLabel=this._hover.contentsDomNode.textContent+", "+c)}hide(){if(!this._visibleData)return;let e=this._visibleData.stoleFocus||this._hoverFocusedKey.get();this._setHoverData(void 0),this._resizableNode.maxSize=new Qt(1/0,1/0),this._resizableNode.clearSashHoverState(),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}_removeConstraintsRenderNormally(){let e=this._editor.getLayoutInfo();this._resizableNode.layout(e.height,e.width),this._setHoverWidgetDimensions("auto","auto")}_adjustHoverHeightForScrollbar(e){var t;let r=this._hover.containerDomNode,n=this._hover.contentsDomNode,o=(t=this._findMaximumRenderingHeight())!==null&&t!==void 0?t:1/0;this._setContainerDomNodeDimensions(Kn(r),Math.min(o,e)),this._setContentsDomNodeDimensions(Kn(n),Math.min(o,e-t8))}setMinimumDimensions(e){this._minimumSize=new Qt(Math.max(this._minimumSize.width,e.width),Math.max(this._minimumSize.height,e.height)),this._updateMinimumWidth()}_updateMinimumWidth(){let e=typeof this._contentWidth=="undefined"?this._minimumSize.width:Math.min(this._contentWidth,this._minimumSize.width);this._resizableNode.minSize=new Qt(e,this._minimumSize.height)}onContentsChanged(){var e;this._removeConstraintsRenderNormally();let t=this._hover.containerDomNode,r=Mm(t),n=Kn(t);if(this._resizableNode.layout(r,n),this._setHoverWidgetDimensions(n,r),r=Mm(t),n=Kn(t),this._contentWidth=n,this._updateMinimumWidth(),this._resizableNode.layout(r,n),this._hasHorizontalScrollbar()&&(this._adjustContentsBottomPadding(),this._adjustHoverHeightForScrollbar(r)),!((e=this._visibleData)===null||e===void 0)&&e.showAtPosition){let o=Mm(this._hover.containerDomNode);this._positionPreference=this._findPositionPreference(o,this._visibleData.showAtPosition)}this._layoutContentWidget()}focus(){this._hover.containerDomNode.focus()}scrollUp(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(49);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(49);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){let e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-VG})}scrollRight(){let e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+VG})}pageUp(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}};fc.ID="editor.contrib.resizableContentHoverWidget";fc._lastDimensions=new Qt(0,0);fc=Za=o8([_h(1,it),_h(2,Mt),_h(3,kf),_h(4,Kt)],fc);a1=class extends ce{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=WG("div.hover-row.status-bar"),this.actionsElement=Te(this.hoverElement,WG("div.actions"))}addAction(e){let t=this._keybindingService.lookupKeybinding(e.commandId),r=t?t.getLabel():null;return this._hasContent=!0,this._register($C.render(this.actionsElement,e,r))}append(e){let t=Te(this.actionsElement,e);return this._hasContent=!0,t}};a1=o8([_h(0,Kt)],a1);n8=class i{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];let r=e.getModel(),n=t.range.startLineNumber;if(n>r.getLineCount())return[];let o=r.getLineMaxColumn(n);return e.getLineDecorations(n).filter(s=>{if(s.options.isWholeLine)return!0;let a=s.range.startLineNumber===n?s.range.startColumn:1,l=s.range.endLineNumber===n?s.range.endColumn:o;if(s.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){let t=this._anchor;if(!this._editor.hasModel()||!t)return Mn.EMPTY;let r=i._getLineDecorations(this._editor,t);return Mn.merge(this._participants.map(n=>n.computeAsync?n.computeAsync(t,r,e):Mn.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];let e=i._getLineDecorations(this._editor,this._anchor),t=[];for(let r of this._participants)t=t.concat(r.computeSync(this._anchor,e));return hn(t)}}});var KG,yh,a8,$G=N(()=>{Ht();mi();Es();ke();kd();e8();ZL();KG=Ae,yh=class i extends ce{constructor(e,t,r){super(),this._renderDisposeables=this._register(new le),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new Up),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new to({editor:this._editor},t,r)),this._computer=new a8(this._editor),this._hoverOperation=this._register(new jp(this._editor,this._computer)),this._register(this._hoverOperation.onResult(n=>{this._withResult(n.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(49)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return i.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();let r=document.createDocumentFragment();for(let n of t){let o=KG("div.hover-row.markdown-hover"),s=Te(o,KG("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(n.value));s.appendChild(a.element),r.appendChild(o)}this._updateContents(r),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));let t=this._editor.getLayoutInfo(),r=this._editor.getTopForLineNumber(e),n=this._editor.getScrollTop(),o=this._editor.getOption(65),s=this._hover.containerDomNode.clientHeight,a=r-n-(s-o)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}};yh.ID="editor.contrib.modesGlyphHoverWidget";a8=class{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){let e=n=>({value:n}),t=this._editor.getLineDecorations(this._lineNumber),r=[];if(!t)return r;for(let n of t){if(!n.options.glyphMarginClassName)continue;let o=n.options.glyphMarginHoverMessage;!o||Wc(o)||r.push(...t_(o).map(e))}return r}}});function Pbe(i,e,t,r,n){return Rbe(this,void 0,void 0,function*(){try{let o=yield Promise.resolve(i.provideHover(t,r,n));if(o&&Fbe(o))return new l8(i,o,e)}catch(o){Xt(o)}})}function l1(i,e,t,r){let o=i.ordered(e).map((s,a)=>Pbe(s,a,e,t,r));return Mn.fromPromises(o).coalesce()}function Obe(i,e,t,r){return l1(i,e,t,r).map(n=>n.hover).toPromise()}function Fbe(i){let e=typeof i.range!="undefined",t=typeof i.contents!="undefined"&&i.contents&&i.contents.length>0;return e&&t}var Rbe,l8,c8=N(()=>{jt();ki();qt();lt();Pt();Rbe=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},l8=class{constructor(e,t,r){this.provider=e,this.hover=t,this.ordinal=r}};$n("_executeHoverProvider",(i,e,t)=>{let r=i.get(Se);return Obe(r.hoverProvider,e,t,st.None)})});function d8(i,e,t,r,n){e.sort((s,a)=>s.ordinal-a.ordinal);let o=new le;for(let s of e)for(let a of s.contents){if(Wc(a))continue;let l=GG("div.hover-row.markdown-hover"),c=Te(l,GG("div.hover-contents")),d=o.add(new to({editor:t},r,n));o.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",i.onContentsChanged()}));let u=o.add(d.render(a));c.appendChild(u.element),i.fragment.appendChild(l)}return o}var zbe,QC,GG,ro,Wp,ZC=N(()=>{Ht();mi();jt();Es();ke();kd();di();et();es();c8();He();Sr();is();Pt();zbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},QC=function(i,e){return function(t,r){e(t,r,i)}},GG=Ae,ro=class{constructor(e,t,r,n,o){this.owner=e,this.range=t,this.contents=r,this.isBeforeContent=n,this.ordinal=o}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},Wp=class{constructor(e,t,r,n,o){this._editor=e,this._languageService=t,this._openerService=r,this._configurationService=n,this._languageFeaturesService=o,this.hoverOrdinal=3}createLoadingMessage(e){return new ro(this,e.range,[new $i().appendText(b("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];let r=this._editor.getModel(),n=e.range.startLineNumber,o=r.getLineMaxColumn(n),s=[],a=1e3,l=r.getLineLength(n),c=r.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._editor.getOption(115),u=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c}),h=!1;d>=0&&l>d&&e.range.startColumn>=d&&(h=!0,s.push(new ro(this,e.range,[{value:b("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!h&&typeof u=="number"&&l>=u&&s.push(new ro(this,e.range,[{value:b("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let f=!1;for(let m of t){let g=m.range.startLineNumber===n?m.range.startColumn:1,w=m.range.endLineNumber===n?m.range.endColumn:o,_=m.options.hoverMessage;if(!_||Wc(_))continue;m.options.beforeContentClassName&&(f=!0);let E=new B(e.range.startLineNumber,g,e.range.startLineNumber,w);s.push(new ro(this,E,t_(_),f,a++))}return s}computeAsync(e,t,r){if(!this._editor.hasModel()||e.type!==1)return Mn.EMPTY;let n=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(n))return Mn.EMPTY;let o=new Ie(e.range.startLineNumber,e.range.startColumn);return l1(this._languageFeaturesService.hoverProvider,n,o,r).filter(s=>!Wc(s.hover.contents)).map(s=>{let a=s.hover.range?B.lift(s.hover.range):e.range;return new ro(this,a,s.hover.contents,!1,s.ordinal)})}renderHoverParts(e,t){return d8(e,t,this._editor,this._languageService,this._openerService)}};Wp=zbe([QC(1,er),QC(2,tr),QC(3,Mt),QC(4,Se)],Wp)});var Bbe,u8,gs,h8,YG,JC,XG=N(()=>{Ht();mi();jt();qt();ke();Lo();et();Pt();Zre();Ku();Fx();Sd();qC();He();F_();is();$c();Bbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},u8=function(i,e){return function(t,r){e(t,r,i)}},gs=Ae,h8=class{constructor(e,t,r){this.owner=e,this.range=t,this.marker=r}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},YG={type:1,filter:{include:nt.QuickFix},triggerAction:Vr.QuickFixHover},JC=class{constructor(e,t,r,n){this._editor=e,this._markerDecorationsService=t,this._openerService=r,this._languageFeaturesService=n,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];let r=this._editor.getModel(),n=e.range.startLineNumber,o=r.getLineMaxColumn(n),s=[];for(let a of t){let l=a.range.startLineNumber===n?a.range.startColumn:1,c=a.range.endLineNumber===n?a.range.endColumn:o,d=this._markerDecorationsService.getMarker(r.uri,a);if(!d)continue;let u=new B(e.range.startLineNumber,l,e.range.startLineNumber,c);s.push(new h8(this,u,d))}return s}renderHoverParts(e,t){if(!t.length)return ce.None;let r=new le;t.forEach(o=>e.fragment.appendChild(this.renderMarkerHover(o,r)));let n=t.length===1?t[0]:t.sort((o,s)=>Lr.compare(o.marker.severity,s.marker.severity))[0];return this.renderMarkerStatusbar(e,n,r),r}renderMarkerHover(e,t){let r=gs("div.hover-row"),n=Te(r,gs("div.marker.hover-contents")),{source:o,message:s,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(n);let c=Te(n,gs("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=s,o||a)if(a&&typeof a!="string"){let d=gs("span");if(o){let m=Te(d,gs("span"));m.innerText=o}let u=Te(d,gs("a.code-link"));u.setAttribute("href",a.target.toString()),t.add(Lt(u,"click",m=>{this._openerService.open(a.target,{allowCommands:!0}),m.preventDefault(),m.stopPropagation()}));let h=Te(u,gs("span"));h.innerText=a.value;let f=Te(n,d);f.style.opacity="0.6",f.style.paddingLeft="6px"}else{let d=Te(n,gs("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=o&&a?`${o}(${a})`:o||`(${a})`}if(Ki(l))for(let{message:d,resource:u,startLineNumber:h,startColumn:f}of l){let m=Te(n,gs("div"));m.style.marginTop="8px";let g=Te(m,gs("a"));g.innerText=`${Dn(u)}(${h}, ${f}): `,g.style.cursor="pointer",t.add(Lt(g,"click",_=>{_.stopPropagation(),_.preventDefault(),this._openerService&&this._openerService.open(u,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:h,startColumn:f}}}).catch(ft)}));let w=Te(m,gs("span"));w.innerText=d,this._editor.applyFontInfo(w)}return r}renderMarkerStatusbar(e,t,r){if((t.marker.severity===Lr.Error||t.marker.severity===Lr.Warning||t.marker.severity===Lr.Info)&&e.statusBar.addAction({label:b("view problem","View Problem"),commandId:vh.ID,run:()=>{var n;e.hide(),(n=hc.get(this._editor))===null||n===void 0||n.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(89)){let n=e.statusBar.append(gs("div"));this.recentMarkerCodeActionsInfo&&(fk.makeKey(this.recentMarkerCodeActionsInfo.marker)===fk.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(n.textContent=b("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);let o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?ce.None:r.add(ml(()=>n.textContent=b("checkingForQuickFixes","Checking for quick fixes..."),200));n.textContent||(n.textContent=String.fromCharCode(160));let s=this.getCodeActions(t.marker);r.add(ri(()=>s.cancel())),s.then(a=>{if(o.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),n.textContent=b("noQuickFixes","No quick fixes available");return}n.style.display="none";let l=!1;r.add(ri(()=>{l||a.dispose()})),e.statusBar.addAction({label:b("quick fixes","Quick Fix..."),commandId:tp,run:c=>{l=!0;let d=Ha.get(this._editor),u=Zi(c);e.hide(),d==null||d.showCodeActions(YG,a,{x:u.left,y:u.top,width:u.width,height:u.height})}})},ft)}}getCodeActions(e){return Jt(t=>A0(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new B(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),YG,ba.None,t))}};JC=Bbe([u8(1,ZF),u8(2,tr),u8(3,Se)],JC)});var QG=N(()=>{});var ZG=N(()=>{QG()});var Hbe,eS,f8,tS,yn,p8,m8,g8,b8,v8,_8,y8,w8,x8,C8,iS=N(()=>{ll();ke();lt();et();ti();es();BC();s8();$G();Ut();is();tn();rn();rc();ZC();XG();B2();jr();He();ZG();Hbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},eS=function(i,e){return function(t,r){e(t,r,i)}},tS=!1,yn=f8=class{static get(e){return e.getContribution(f8.ID)}constructor(e,t,r,n,o){this._editor=e,this._instantiationService=t,this._openerService=r,this._languageService=n,this._keybindingService=o,this._toUnhook=new le,this._hoverActivatedByColorDecoratorClick=!1,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(s=>{s.hasChanged(59)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){let e=()=>this._hideWidgets(),t=this._editor.getOption(59);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(r=>this._onEditorMouseDown(r))),this._toUnhook.add(this._editor.onMouseUp(r=>this._onEditorMouseUp(r))),this._toUnhook.add(this._editor.onMouseMove(r=>this._onEditorMouseMove(r))),this._toUnhook.add(this._editor.onKeyDown(r=>this._onKeyDown(r)))):(this._toUnhook.add(this._editor.onMouseMove(r=>this._onEditorMouseMove(r))),this._toUnhook.add(this._editor.onKeyDown(r=>this._onKeyDown(r)))),this._toUnhook.add(this._editor.onMouseLeave(r=>this._onEditorMouseLeave(r))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(r=>this._onEditorScrollChanged(r)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){var t;this._isMouseDown=!0;let r=e.target;if(r.type===9&&r.detail===fc.ID){this._hoverClicked=!0;return}r.type===12&&r.detail===yh.ID||(r.type!==12&&(this._hoverClicked=!1),!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t,r;let n=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.widget.isResizing||!((r=this._contentWidget)===null||r===void 0)&&r.containsNode(n)||tS||this._hideWidgets()}_onEditorMouseMove(e){var t,r,n,o,s,a,l,c,d,u,h;let f=e.target;if(!((t=this._contentWidget)===null||t===void 0)&&t.isFocused||!((r=this._contentWidget)===null||r===void 0)&&r.isResizing||this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&f.type===9&&f.detail===fc.ID||this._isHoverSticky&&(!((n=this._contentWidget)===null||n===void 0)&&n.containsNode((o=e.event.browserEvent.view)===null||o===void 0?void 0:o.document.activeElement))&&!(!((a=(s=e.event.browserEvent.view)===null||s===void 0?void 0:s.getSelection())===null||a===void 0)&&a.isCollapsed)||!this._isHoverSticky&&f.type===9&&f.detail===fc.ID&&(!((l=this._contentWidget)===null||l===void 0)&&l.isColorPickerVisible)||this._isHoverSticky&&f.type===12&&f.detail===yh.ID||this._isHoverSticky&&(!((c=this._contentWidget)===null||c===void 0)&&c.isVisibleFromKeyboard))return;let m=(d=f.element)===null||d===void 0?void 0:d.classList.contains("colorpicker-color-decoration"),g=this._editor.getOption(145);if(m&&(g==="click"&&!this._hoverActivatedByColorDecoratorClick||g==="hover"&&!this._isHoverEnabled&&!tS||g==="clickAndHover"&&!this._isHoverEnabled&&!this._hoverActivatedByColorDecoratorClick)||!m&&!this._isHoverEnabled&&!this._hoverActivatedByColorDecoratorClick){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(u=this._glyphWidget)===null||u===void 0||u.hide();return}if(f.type===2&&f.position){(h=this._contentWidget)===null||h===void 0||h.hide(),this._glyphWidget||(this._glyphWidget=new yh(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(f.position.lineNumber);return}tS||this._hideWidgets()}_onKeyDown(e){var t;if(!this._editor.hasModel())return;let r=this._keybindingService.softDispatch(e,this._editor.getDomNode()),n=r.kind===1||r.kind===2&&r.commandId==="editor.action.showHover"&&((t=this._contentWidget)===null||t===void 0?void 0:t.isVisible);e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&!n&&this._hideWidgets()}_hideWidgets(){var e,t,r;tS||this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible)||qs.dropDownVisible||(this._hoverActivatedByColorDecoratorClick=!1,this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(r=this._contentWidget)===null||r===void 0||r.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(s1,this._editor)),this._contentWidget}showContentHover(e,t,r,n,o=!1){this._hoverActivatedByColorDecoratorClick=o,this._getOrCreateContentWidget().startShowingAtRange(e,t,r,n)}focus(){var e;(e=this._contentWidget)===null||e===void 0||e.focus()}scrollUp(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollUp()}scrollDown(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollDown()}scrollLeft(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollLeft()}scrollRight(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollRight()}pageUp(){var e;(e=this._contentWidget)===null||e===void 0||e.pageUp()}pageDown(){var e;(e=this._contentWidget)===null||e===void 0||e.pageDown()}goToTop(){var e;(e=this._contentWidget)===null||e===void 0||e.goToTop()}goToBottom(){var e;(e=this._contentWidget)===null||e===void 0||e.goToBottom()}get isColorPickerVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible}get isHoverVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isVisible}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};yn.ID="editor.contrib.hover";yn=f8=Hbe([eS(1,Ke),eS(2,tr),eS(3,er),eS(4,Kt)],yn);p8=class extends de{constructor(){super({id:"editor.action.showHover",label:b({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse.","If the hover is already visible, it will take focus."]},"Show or Focus Hover"),description:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if when triggered with the keyboard, the hover should take focus immediately.",type:"boolean",default:!1}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:gi(2089,2087),weight:100}})}run(e,t,r){if(!t.hasModel())return;let n=yn.get(t);if(!n)return;let o=t.getPosition(),s=new B(o.lineNumber,o.column,o.lineNumber,o.column),a=t.getOption(2)===2||!!(r!=null&&r.focus);n.isHoverVisible?n.focus():n.showContentHover(s,1,1,a)}},m8=class extends de{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:b({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){let r=yn.get(t);if(!r)return;let n=t.getPosition();if(!n)return;let o=new B(n.lineNumber,n.column,n.lineNumber,n.column),s=Ud.get(t);if(!s)return;s.startFindDefinitionFromCursor(n).then(()=>{r.showContentHover(o,1,1,!0)})}},g8=class extends de{constructor(){super({id:"editor.action.scrollUpHover",label:b({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:16,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollUp()}},b8=class extends de{constructor(){super({id:"editor.action.scrollDownHover",label:b({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:18,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollDown()}},v8=class extends de{constructor(){super({id:"editor.action.scrollLeftHover",label:b({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:15,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollLeft()}},_8=class extends de{constructor(){super({id:"editor.action.scrollRightHover",label:b({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:17,weight:100}})}run(e,t){let r=yn.get(t);r&&r.scrollRight()}},y8=class extends de{constructor(){super({id:"editor.action.pageUpHover",label:b({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){let r=yn.get(t);r&&r.pageUp()}},w8=class extends de{constructor(){super({id:"editor.action.pageDownHover",label:b({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){let r=yn.get(t);r&&r.pageDown()}},x8=class extends de{constructor(){super({id:"editor.action.goToTopHover",label:b({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){let r=yn.get(t);r&&r.goToTop()}},C8=class extends de{constructor(){super({id:"editor.action.goToBottomHover",label:b({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:F.hoverFocused,kbOpts:{kbExpr:F.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){let r=yn.get(t);r&&r.goToBottom()}};Ue(yn.ID,yn,2);ee(p8);ee(m8);ee(g8);ee(b8);ee(v8);ee(_8);ee(y8);ee(w8);ee(x8);ee(C8);Uo.register(Wp);Uo.register(JC);bf((i,e)=>{let t=i.getColor(AO);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))})});function wn(i,e){let t=0;for(let r=0;r{});function eY(i,e,t,r,n){if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return[];let o=e.getLanguageConfiguration(i.getLanguageId()).indentationRules;if(!o)return[];for(r=Math.min(r,i.getLineCount());t<=r&&o.unIndentedLinePattern;){let w=i.getLineContent(t);if(!o.unIndentedLinePattern.test(w))break;t++}if(t>r-1)return[];let{tabSize:s,indentSize:a,insertSpaces:l}=i.getOptions(),c=(w,_)=>(_=_||1,jc.shiftIndent(w,w.length+_,s,a,l)),d=(w,_)=>(_=_||1,jc.unshiftIndent(w,w.length+_,s,a,l)),u=[],h,f=i.getLineContent(t),m=f;if(n!=null){h=n;let w=qi(f);m=h+f.substring(w.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(m)&&(h=d(h),m=h+f.substring(w.length)),f!==m&&u.push(ii.replaceMove(new Qe(t,1,t,w.length+1),q3(h,a,l)))}else h=qi(f);let g=h;o.increaseIndentPattern&&o.increaseIndentPattern.test(m)?(g=c(g),h=c(h)):o.indentNextLinePattern&&o.indentNextLinePattern.test(m)&&(g=c(g)),t++;for(let w=t;w<=r;w++){let _=i.getLineContent(w),E=qi(_),L=g+_.substring(E.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(L)&&(g=d(g),h=d(h)),E!==g&&u.push(ii.replaceMove(new Qe(w,1,w,E.length+1),q3(g,a,l))),!(o.unIndentedLinePattern&&o.unIndentedLinePattern.test(_))&&(o.increaseIndentPattern&&o.increaseIndentPattern.test(L)?(h=c(h),g=h):o.indentNextLinePattern&&o.indentNextLinePattern.test(L)?g=c(g):g=h)}return u}function tY(i,e,t,r){if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return;let n="";for(let s=0;s{ke();Ni();lt();Z3();_a();et();Ar();ti();Hr();Xo();S8();He();wl();cre();BP();Ube=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},jbe=function(i,e){return function(t,r){e(t,r,i)}};rS=class i extends de{constructor(){super({id:i.ID,label:b("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:F.writable})}run(e,t){let r=t.getModel();if(!r)return;let n=r.getOptions(),o=t.getSelection();if(!o)return;let s=new I8(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),r.updateOptions({insertSpaces:!0})}};rS.ID="editor.action.indentationToSpaces";nS=class i extends de{constructor(){super({id:i.ID,label:b("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:F.writable})}run(e,t){let r=t.getModel();if(!r)return;let n=r.getOptions(),o=t.getSelection();if(!o)return;let s=new A8(o,n.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),r.updateOptions({insertSpaces:!1})}};nS.ID="editor.action.indentationToTabs";c1=class extends de{constructor(e,t,r){super(r),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){let r=e.get(nn),n=e.get(Di),o=t.getModel();if(!o)return;let s=n.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),a=o.getOptions(),l=[1,2,3,4,5,6,7,8].map(d=>({id:d.toString(),label:d.toString(),description:d===s.tabSize&&d===a.tabSize?b("configuredTabSize","Configured Tab Size"):d===s.tabSize?b("defaultTabSize","Default Tab Size"):d===a.tabSize?b("currentTabSize","Current Tab Size"):void 0})),c=Math.min(o.getOptions().tabSize-1,7);setTimeout(()=>{r.pick(l,{placeHolder:b({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:l[c]}).then(d=>{if(d&&o&&!o.isDisposed()){let u=parseInt(d.label,10);this.displaySizeOnly?o.updateOptions({tabSize:u}):o.updateOptions({tabSize:u,indentSize:u,insertSpaces:this.insertSpaces})}})},50)}},oS=class i extends c1{constructor(){super(!1,!1,{id:i.ID,label:b("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}};oS.ID="editor.action.indentUsingTabs";sS=class i extends c1{constructor(){super(!0,!1,{id:i.ID,label:b("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}};sS.ID="editor.action.indentUsingSpaces";aS=class i extends c1{constructor(){super(!0,!0,{id:i.ID,label:b("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0})}};aS.ID="editor.action.changeTabDisplaySize";lS=class i extends de{constructor(){super({id:i.ID,label:b("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){let r=e.get(Di),n=t.getModel();if(!n)return;let o=r.getCreationOptions(n.getLanguageId(),n.uri,n.isForSimpleWidget);n.detectIndentation(o.insertSpaces,o.tabSize)}};lS.ID="editor.action.detectIndentation";k8=class extends de{constructor(){super({id:"editor.action.reindentlines",label:b("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:F.writable})}run(e,t){let r=e.get(Ot),n=t.getModel();if(!n)return;let o=eY(n,r,1,n.getLineCount());o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}},E8=class extends de{constructor(){super({id:"editor.action.reindentselectedlines",label:b("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:F.writable})}run(e,t){let r=e.get(Ot),n=t.getModel();if(!n)return;let o=t.getSelections();if(o===null)return;let s=[];for(let a of o){let l=a.startLineNumber,c=a.endLineNumber;if(l!==c&&a.endColumn===1&&c--,l===1){if(l===c)continue}else l--;let d=eY(n,r,l,c);s.push(...d)}s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}},T8=class{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let r of e)r.range&&typeof r.text=="string"&&this._edits.push(r)}getEditOperations(e,t){for(let n of this._edits)t.addEditOperation(B.lift(n.range),n.text);let r=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(r=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(r=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),r||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}},d1=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new le,this.callOnModel=new le,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(11)<4||this.editor.getOption(54))&&this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){let t=this.editor.getSelections();if(t===null||t.length>1)return;let r=this.editor.getModel();if(!r||!r.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;let n=this.editor.getOption(11),{tabSize:o,indentSize:s,insertSpaces:a}=r.getOptions(),l=[],c={shiftIndent:f=>jc.shiftIndent(f,f.length+1,o,s,a),unshiftIndent:f=>jc.unshiftIndent(f,f.length+1,o,s,a)},d=e.startLineNumber;for(;d<=e.endLineNumber;){if(this.shouldIgnoreLine(r,d)){d++;continue}break}if(d>e.endLineNumber)return;let u=r.getLineContent(d);if(!/\S/.test(u.substring(0,e.startColumn-1))){let f=mu(n,r,r.getLanguageId(),d,c,this._languageConfigurationService);if(f!==null){let m=qi(u),g=wn(f,o),w=wn(m,o);if(g!==w){let _=wh(g,o,a);l.push({range:new B(d,1,d,m.length+1),text:_}),u=_+u.substr(m.length)}else{let _=n_(r,d,this._languageConfigurationService);if(_===0||_===8)return}}}let h=d;for(;dr.tokenization.getLineTokens(g),getLanguageId:()=>r.getLanguageId(),getLanguageIdAtPosition:(g,w)=>r.getLanguageIdAtPosition(g,w)},getLineContent:g=>g===h?u:r.getLineContent(g)},r.getLanguageId(),d+1,c,this._languageConfigurationService);if(m!==null){let g=wn(m,o),w=wn(qi(r.getLineContent(d+1)),o);if(g!==w){let _=g-w;for(let E=d+1;E<=e.endLineNumber;E++){let L=r.getLineContent(E),A=qi(L),U=wn(A,o)+_,Y=wh(U,o,a);Y!==A&&l.push({range:new B(E,1,E,A.length+1),text:Y})}}}}if(l.length>0){this.editor.pushUndoStop();let f=new T8(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",f),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);let r=e.getLineFirstNonWhitespaceColumn(t);if(r===0)return!0;let n=e.tokenization.getLineTokens(t);if(n.getCount()>0){let o=n.findTokenIndexAtOffset(r);if(o>=0&&n.getStandardTokenType(o)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};d1.ID="editor.contrib.autoIndentOnPaste";d1=Ube([jbe(1,Ot)],d1);I8=class{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),tY(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}},A8=class{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),tY(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}};Ue(d1.ID,d1,2);ee(rS);ee(nS);ee(oS);ee(sS);ee(aS);ee(lS);ee(k8);ee(E8)});function iY(i){return yt.from({scheme:Eo.command,path:i.id,query:i.arguments&&encodeURIComponent(JSON.stringify(i.arguments))}).toString()}var cS,u1,D8,h1,M8=N(()=>{qt();ke();di();et();Dm();Ir();cS=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},u1=class{constructor(e,t){this.range=e,this.direction=t}},D8=class i{constructor(e,t,r){this.hint=e,this.anchor=t,this.provider=r,this._isResolved=!1}with(e){let t=new i(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}resolve(e){return cS(this,void 0,void 0,function*(){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return yield this._currentResolve,e.isCancellationRequested?void 0:this.resolve(e);this._isResolved||(this._currentResolve=this._doResolve(e).finally(()=>this._currentResolve=void 0)),yield this._currentResolve}})}_doResolve(e){var t,r;return cS(this,void 0,void 0,function*(){try{let n=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=(t=n==null?void 0:n.tooltip)!==null&&t!==void 0?t:this.hint.tooltip,this.hint.label=(r=n==null?void 0:n.label)!==null&&r!==void 0?r:this.hint.label,this._isResolved=!0}catch(n){Xt(n),this._isResolved=!1}})}},h1=class i{static create(e,t,r,n){return cS(this,void 0,void 0,function*(){let o=[],s=e.ordered(t).reverse().map(a=>r.map(l=>cS(this,void 0,void 0,function*(){try{let c=yield a.provideInlayHints(t,l,n);c!=null&&c.hints.length&&o.push([c,a])}catch(c){Xt(c)}})));if(yield Promise.all(s.flat()),n.isCancellationRequested||t.isDisposed())throw new Pv;return new i(r,o,t)})}constructor(e,t,r){this._disposables=new le,this.ranges=e,this.provider=new Set;let n=[];for(let[o,s]of t){this._disposables.add(o),this.provider.add(s);for(let a of o.hints){let l=r.validatePosition(a.position),c="before",d=i._getRangeAtPosition(r,l),u;d.getStartPosition().isBefore(l)?(u=B.fromPositions(d.getStartPosition(),l),c="after"):(u=B.fromPositions(l,d.getEndPosition()),c="before"),n.push(new D8(a,new u1(u,c),s))}}this.items=n.sort((o,s)=>Ie.compare(o.hint.position,s.hint.position))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){let r=t.lineNumber,n=e.getWordAtPosition(t);if(n)return new B(r,n.startColumn,r,n.endColumn);e.tokenization.tokenizeIfCheap(r);let o=e.tokenization.getLineTokens(r),s=t.column-1,a=o.findTokenIndexAtOffset(s),l=o.getStartOffset(a),c=o.getEndOffset(a);return c-l===1&&(l===s&&a>1?(l=o.getStartOffset(a-1),c=o.getEndOffset(a-1)):c===s&&axP(m)?m.command.id:Td()));for(let m of ms.all())h.has(m.desc.id)&&u.push(new Qo(m.desc.id,na.label(m.desc,{renderShortTitle:!0}),void 0,!0,()=>f1(this,void 0,void 0,function*(){let g=yield o.createModelReference(d.uri);try{let w=new gh(g.object.textEditorModel,B.getStartPosition(d.range)),_=r.item.anchor.range;yield l.invokeFunction(m.runEditorCommand.bind(m),e,w,_)}finally{g.dispose()}})));if(r.part.command){let{command:m}=r.part;u.push(new Cs),u.push(new Qo(m.id,m.title,void 0,!0,()=>f1(this,void 0,void 0,function*(){var g;try{yield a.executeCommand(m.id,...(g=m.arguments)!==null&&g!==void 0?g:[])}catch(w){c.notify({severity:wf.Error,source:r.item.provider.displayName,message:w})}})))}let f=e.getOption(125);s.showContextMenu({domForShadowRoot:f&&(n=e.getDomNode())!==null&&n!==void 0?n:void 0,getAnchor:()=>{let m=Zi(t);return{x:m.left,y:m.top+m.height+8}},getActions:()=>u,onHide:()=>{e.focus()},autoSelectFirstItem:!0})})}function dS(i,e,t,r){return f1(this,void 0,void 0,function*(){let o=yield i.get(Cr).createModelReference(r.uri);yield t.invokeWithinContext(s=>f1(this,void 0,void 0,function*(){let a=e.hasSideBySideModifier,l=s.get(it),c=Pr.inPeekEditor.getValue(l),d=!a&&t.getOption(86)&&!c;return new uc({openToSide:a,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(s,new gh(o.object.textEditorModel,B.getStartPosition(r.range)),B.lift(r.range))})),o.dispose()})}var f1,N8=N(()=>{Ht();Fc();ki();H0();et();ra();e1();hh();Ji();Vi();wt();yl();Ut();Mo();f1=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})}});function Vbe(i){let e="\xA0";return i.replace(/[ \t]/g,e)}var Wbe,Vp,qp,uS,R8,nY,Kp,P8,pc,F8=N(()=>{Ht();mi();jt();ki();qt();ke();df();zr();Ir();JF();z_();eg();_a();et();fn();qc();Ur();Ds();Pt();ra();i1();M8();N8();Vi();hl();Ut();Mo();tn();rn();Wbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Vp=function(i,e){return function(t,r){e(t,r,i)}},qp=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},R8=class i{constructor(){this._entries=new sa(50)}get(e){let t=i._key(e);return this._entries.get(t)}set(e,t){let r=i._key(e);this._entries.set(r,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}},nY=Qr("IInlayHintsCache");en(nY,R8,1);Kp=class{constructor(e,t){this.item=e,this.index=t}get part(){let e=this.item.hint.label;return typeof e=="string"?{label:e}:e[this.index]}},P8=class{constructor(e,t){this.part=e,this.hasTriggerModifier=t}},pc=uS=class{static get(e){var t;return(t=e.getContribution(uS.ID))!==null&&t!==void 0?t:void 0}constructor(e,t,r,n,o,s,a){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=n,this._commandService=o,this._notificationService=s,this._instaService=a,this._disposables=new le,this._sessionDisposables=new le,this._decorationsMetadata=new Map,this._ruleFactory=new ty(this._editor),this._activeRenderMode=0,this._debounceInfo=r.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(l=>{l.hasChanged(138)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();let e=this._editor.getOption(138);if(e.enabled==="off")return;let t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;let r=this._inlayHintsCache.get(t);r&&this._updateHintsDecorators([t.getFullModelRange()],r),this._sessionDisposables.add(ri(()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)}));let n,o=new Set,s=new ui(()=>qp(this,void 0,void 0,function*(){let a=Date.now();n==null||n.dispose(!0),n=new zi;let l=t.onWillDispose(()=>n==null?void 0:n.cancel());try{let c=n.token,d=yield h1.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),c);if(s.delay=this._debounceInfo.update(t,Date.now()-a),c.isCancellationRequested){d.dispose();return}for(let u of d.provider)typeof u.onDidChangeInlayHints=="function"&&!o.has(u)&&(o.add(u),this._sessionDisposables.add(u.onDidChangeInlayHints(()=>{s.isScheduled()||s.schedule()})));this._sessionDisposables.add(d),this._updateHintsDecorators(d.ranges,d.items),this._cacheHintsForFastRestore(t)}catch(c){ft(c)}finally{n.dispose(),l.dispose()}}),this._debounceInfo.get(t));if(this._sessionDisposables.add(s),this._sessionDisposables.add(ri(()=>n==null?void 0:n.dispose(!0))),s.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(a=>{(a.scrollTopChanged||!s.isScheduled())&&s.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(a=>{let l=Math.max(s.delay,1250);s.schedule(l)})),e.enabled==="on")this._activeRenderMode=0;else{let a,l;e.enabled==="onUnlessPressed"?(a=0,l=1):(a=1,l=0),this._activeRenderMode=a,this._sessionDisposables.add(uP.getInstance().event(c=>{if(!this._editor.hasModel())return;let d=c.altKey&&c.ctrlKey&&!(c.shiftKey||c.metaKey)?l:a;if(d!==this._activeRenderMode){this._activeRenderMode=d;let u=this._editor.getModel(),h=this._copyInlayHintsWithCurrentAnchor(u);this._updateHintsDecorators([u.getFullModelRange()],h),s.schedule(0)}}))}this._sessionDisposables.add(this._installDblClickGesture(()=>s.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){let e=new le,t=e.add(new Qa(this._editor)),r=new le;return e.add(r),e.add(t.onMouseMoveOrRelevantKeyDown(n=>{let[o]=n,s=this._getInlayHintLabelPart(o),a=this._editor.getModel();if(!s||!a){r.clear();return}let l=new zi;r.add(ri(()=>l.dispose(!0))),s.item.resolve(l.token),this._activeInlayHintPart=s.part.command||s.part.location?new P8(s,o.hasTriggerModifier):void 0;let c=a.validatePosition(s.item.hint.position).lineNumber,d=new B(c,1,c,a.getLineMaxColumn(c)),u=this._getInlineHintsForRange(d);this._updateHintsDecorators([d],u),r.add(ri(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([d],u)}))})),e.add(t.onCancel(()=>r.clear())),e.add(t.onExecute(n=>qp(this,void 0,void 0,function*(){let o=this._getInlayHintLabelPart(n);if(o){let s=o.part;s.location?this._instaService.invokeFunction(dS,n,this._editor,s.location):qO.is(s.command)&&(yield this._invokeCommand(s.command,o.item))}}))),e}_getInlineHintsForRange(e){let t=new Set;for(let r of this._decorationsMetadata.values())e.containsRange(r.item.anchor.range)&&t.add(r.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp(t=>qp(this,void 0,void 0,function*(){if(t.event.detail!==2)return;let r=this._getInlayHintLabelPart(t);if(r&&(t.event.preventDefault(),yield r.item.resolve(st.None),Ki(r.item.hint.textEdits))){let n=r.item.hint.textEdits.map(o=>ii.replace(B.lift(o.range),o.text));this._editor.executeEdits("inlayHint.default",n),e()}}))}_installContextMenu(){return this._editor.onContextMenu(e=>qp(this,void 0,void 0,function*(){if(!(e.event.target instanceof HTMLElement))return;let t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(rY,this._editor,e.event.target,t))}))}_getInlayHintLabelPart(e){var t;if(e.target.type!==6)return;let r=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;if(r instanceof yf&&(r==null?void 0:r.attachedData)instanceof Kp)return r.attachedData}_invokeCommand(e,t){var r;return qp(this,void 0,void 0,function*(){try{yield this._commandService.executeCommand(e.id,...(r=e.arguments)!==null&&r!==void 0?r:[])}catch(n){this._notificationService.notify({severity:wf.Error,source:t.provider.displayName,message:n})}})}_cacheHintsForFastRestore(e){let t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){let t=new Map;for(let[r,n]of this._decorationsMetadata){if(t.has(n.item))continue;let o=e.getDecorationRange(r);if(o){let s=new u1(o,n.item.anchor.direction),a=n.item.with({anchor:s});t.set(n.item,a)}}return Array.from(t.values())}_getHintsRanges(){let t=this._editor.getModel(),r=this._editor.getVisibleRangesPlusViewportAboveBelow(),n=[];for(let o of r.sort(B.compareRangesUsingStarts)){let s=t.validateRange(new B(o.startLineNumber-30,o.startColumn,o.endLineNumber+30,o.endColumn));n.length===0||!B.areIntersectingOrTouching(n[n.length-1],s)?n.push(s):n[n.length-1]=B.plusRange(n[n.length-1],s)}return n}_updateHintsDecorators(e,t){var r,n;let o=[],s=(g,w,_,E,L)=>{let A={content:_,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:w.className,cursorStops:E,attachedData:L};o.push({item:g,classNameRef:w,decoration:{range:g.anchor.range,options:{description:"InlayHint",showIfCollapsed:g.anchor.range.isEmpty(),collapseOnReplaceEdit:!g.anchor.range.isEmpty(),stickiness:0,[g.anchor.direction]:this._activeRenderMode===0?A:void 0}}})},a=(g,w)=>{let _=this._ruleFactory.createClassNameRef({width:`${l/3|0}px`,display:"inline-block"});s(g,_,"\u200A",w?bu.Right:bu.None)},{fontSize:l,fontFamily:c,padding:d,isUniform:u}=this._getLayoutInfo(),h="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(h,c);for(let g of t){g.hint.paddingLeft&&a(g,!1);let w=typeof g.hint.label=="string"?[{label:g.hint.label}]:g.hint.label;for(let _=0;_uS._MAX_DECORATORS)break}let f=[];for(let g of e)for(let{id:w}of(n=this._editor.getDecorationsInRange(g))!==null&&n!==void 0?n:[]){let _=this._decorationsMetadata.get(w);_&&(f.push(w),_.classNameRef.dispose(),this._decorationsMetadata.delete(w))}let m=va.capture(this._editor);this._editor.changeDecorations(g=>{let w=g.deltaDecorations(f,o.map(_=>_.decoration));for(let _=0;_r)&&(o=r);let s=e.fontFamily||n;return{fontSize:o,fontFamily:s,padding:t,isUniform:!t&&s===n&&o===r}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(let e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};pc.ID="editor.contrib.InlayHints";pc._MAX_DECORATORS=1500;pc=uS=Wbe([Vp(1,Se),Vp(2,lr),Vp(3,nY),Vp(4,_i),Vp(5,Ri),Vp(6,Ke)],pc);Dt.registerCommand("_executeInlayHintProvider",(i,...e)=>qp(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(yt.isUri(t)),Bt(B.isIRange(r));let{inlayHintsProvider:n}=i.get(Se),o=yield i.get(Cr).createModelReference(t);try{let s=yield h1.create(n,o.object.textEditorModel,[B.lift(r)],st.None),a=s.items.map(l=>l.hint);return setTimeout(()=>s.dispose(),0),a}finally{o.dispose()}}))});var qbe,p1,oY,Kbe,hS,fS,sY=N(()=>{jt();Es();di();Ur();rc();es();ra();c8();ZC();F8();Sr();is();Pt();He();Tn();M8();mi();qbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},p1=function(i,e){return function(t,r){e(t,r,i)}},oY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Kbe=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(o){t[o]=i[o]&&function(s){return new Promise(function(a,l){s=i[o](s),n(a,l,s.done,s.value)})}}function n(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}},hS=class extends Ad{constructor(e,t,r,n){super(10,t,e.item.anchor.range,r,n,!0),this.part=e}},fS=class extends Wp{constructor(e,t,r,n,o,s){super(e,t,r,n,s),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!pc.get(this._editor)||e.target.type!==6)return null;let n=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;return n instanceof yf&&n.attachedData instanceof Kp?new hS(n.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,r){return e instanceof hS?new Mn(n=>oY(this,void 0,void 0,function*(){var o,s,a,l;let{part:c}=e;if(yield c.item.resolve(r),r.isCancellationRequested)return;let d;typeof c.item.hint.tooltip=="string"?d=new $i().appendText(c.item.hint.tooltip):c.item.hint.tooltip&&(d=c.item.hint.tooltip),d&&n.emitOne(new ro(this,e.range,[d],!1,0)),Ki(c.item.hint.textEdits)&&n.emitOne(new ro(this,e.range,[new $i().appendText(b("hint.dbl","Double-click to insert"))],!1,10001));let u;if(typeof c.part.tooltip=="string"?u=new $i().appendText(c.part.tooltip):c.part.tooltip&&(u=c.part.tooltip),u&&n.emitOne(new ro(this,e.range,[u],!1,1)),c.part.location||c.part.command){let w,E=this._editor.getOption(76)==="altKey"?En?b("links.navigate.kb.meta.mac","cmd + click"):b("links.navigate.kb.meta","ctrl + click"):En?b("links.navigate.kb.alt.mac","option + click"):b("links.navigate.kb.alt","alt + click");c.part.location&&c.part.command?w=new $i().appendText(b("hint.defAndCommand","Go to Definition ({0}), right click for more",E)):c.part.location?w=new $i().appendText(b("hint.def","Go to Definition ({0})",E)):c.part.command&&(w=new $i(`[${b("hint.cmd","Execute Command")}](${iY(c.part.command)} "${c.part.command.title}") (${E})`,{isTrusted:!0})),w&&n.emitOne(new ro(this,e.range,[w],!1,1e4))}let h=yield this._resolveInlayHintLabelPartHover(c,r);try{for(var f=!0,m=Kbe(h),g;g=yield m.next(),o=g.done,!o;f=!0){l=g.value,f=!1;let w=l;n.emitOne(w)}}catch(w){s={error:w}}finally{try{!f&&!o&&(a=m.return)&&(yield a.call(m))}finally{if(s)throw s.error}}})):Mn.EMPTY}_resolveInlayHintLabelPartHover(e,t){return oY(this,void 0,void 0,function*(){if(!e.part.location)return Mn.EMPTY;let{uri:r,range:n}=e.part.location,o=yield this._resolverService.createModelReference(r);try{let s=o.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(s)?l1(this._languageFeaturesService.hoverProvider,s,new Ie(n.startLineNumber,n.startColumn),t).filter(a=>!Wc(a.hover.contents)).map(a=>new ro(this,e.item.anchor.range,a.hover.contents,!1,2+a.ordinal)):Mn.EMPTY}finally{o.dispose()}})}};fS=qbe([p1(1,er),p1(2,tr),p1(3,Mt),p1(4,Cr),p1(5,Se)],fS)});var z8=N(()=>{lt();rc();F8();sY();Ue(pc.ID,pc,1);Uo.register(fS)});var pS,aY=N(()=>{Ar();pS=class{constructor(e,t,r){this._editRange=e,this._originalSelection=t,this._text=r}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){let n=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new Qe(n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn),n.endLineNumber,Math.min(this._originalSelection.positionColumn,n.endColumn)):new Qe(n.endLineNumber,n.endColumn-this._text.length,n.endLineNumber,n.endColumn)}}});var lY=N(()=>{});var cY=N(()=>{lY()});var U8=Qi(m1=>{jt();qt();yu();lt();et();Ar();ti();Ur();q_();He();aY();cY();var $be=m1&&m1.__decorate||function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Gbe=m1&&m1.__param||function(i,e){return function(t,r){e(t,r,i)}},mS,jd=mS=class{static get(e){return e.getContribution(mS.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){var r;(r=this.currentRequest)===null||r===void 0||r.cancel();let n=this.editor.getSelection(),o=this.editor.getModel();if(!o||!n)return;let s=n;if(s.startLineNumber!==s.endLineNumber)return;let a=new T_(this.editor,5),l=o.uri;return this.editorWorkerService.canNavigateValueSet(l)?(this.currentRequest=Jt(c=>this.editorWorkerService.navigateValueSet(l,s,t)),this.currentRequest.then(c=>{var d;if(!c||!c.range||!c.value||!a.validate(this.editor))return;let u=B.lift(c.range),h=c.range,f=c.value.length-(s.endColumn-s.startColumn);h={startLineNumber:h.startLineNumber,startColumn:h.startColumn,endLineNumber:h.endLineNumber,endColumn:h.startColumn+c.value.length},f>1&&(s=new Qe(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+f-1));let m=new pS(u,s,c.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,m),this.editor.pushUndoStop(),this.decorations.set([{range:h,options:mS.DECORATION}]),(d=this.decorationRemover)===null||d===void 0||d.cancel(),this.decorationRemover=hf(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(ft)}).catch(ft)):Promise.resolve(void 0)}};jd.ID="editor.contrib.inPlaceReplaceController";jd.DECORATION=mt.register({description:"in-place-replace",className:"valueSetReplacement"});jd=mS=$be([Gbe(1,kl)],jd);var B8=class extends de{constructor(){super({id:"editor.action.inPlaceReplace.up",label:b("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:3159,weight:100}})}run(e,t){let r=jd.get(t);return r?r.run(this.id,!1):Promise.resolve(void 0)}},H8=class extends de{constructor(){super({id:"editor.action.inPlaceReplace.down",label:b("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:3161,weight:100}})}run(e,t){let r=jd.get(t);return r?r.run(this.id,!0):Promise.resolve(void 0)}};Ue(jd.ID,jd,4);ee(B8);ee(H8)});var j8,W8=N(()=>{lt();IP();ti();He();j8=class extends de{constructor(){super({id:"expandLineSelection",label:b("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:F.textInputFocus,primary:2090}})}run(e,t,r){if(r=r||{},!t.hasModel())return;let n=t._getViewModel();n.model.pushStackElement(),n.setCursorStates(r.source,3,Fm.expandLineSelection(n,n.getCursorStates())),n.revealPrimaryCursor(r.source,!0)}};ee(j8)});function Ybe(i,e){e.sort((s,a)=>s.lineNumber===a.lineNumber?s.column-a.column:s.lineNumber-a.lineNumber);for(let s=e.length-2;s>=0;s--)e[s].lineNumber===e[s+1].lineNumber&&e.splice(s,1);let t=[],r=0,n=0,o=e.length;for(let s=1,a=i.getLineCount();s<=a;s++){let l=i.getLineContent(s),c=l.length+1,d=0;if(n{Ni();_a();et();gS=class{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){let r=Ybe(e,this._cursors);for(let n=0,o=r.length;n{et();Ar();g1=class{constructor(e,t,r){this._selection=e,this._isCopyingDown=t,this._noop=r||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let r=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,r.startLineNumber{Ni();Z3();et();Ar();fre();Hr();S8();BP();mre();Xbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qbe=function(i,e){return function(t,r){e(t,r,i)}},bS=class{constructor(e,t,r,n){this._languageConfigurationService=n,this._selection=e,this._isMovingDown=t,this._autoIndent=r,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){let r=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===r){this._selectionId=t.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=t.trackSelection(this._selection);return}this._moveEndPositionDown=!1;let n=this._selection;n.startLineNumbere.tokenization.getLineTokens(d),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(d,u)=>e.getLanguageIdAtPosition(d,u)},getLineContent:null};if(n.startLineNumber===n.endLineNumber&&e.getLineMaxColumn(n.startLineNumber)===1){let d=n.startLineNumber,u=this._isMovingDown?d+1:d-1;e.getLineMaxColumn(u)===1?t.addEditOperation(new B(1,1,1,1),null):(t.addEditOperation(new B(d,1,d,1),e.getLineContent(u)),t.addEditOperation(new B(u,1,u,e.getLineMaxColumn(u)),null)),n=new Qe(u,1,u,1)}else{let d,u;if(this._isMovingDown){d=n.endLineNumber+1,u=e.getLineContent(d),t.addEditOperation(new B(d-1,e.getLineMaxColumn(d-1),d,e.getLineMaxColumn(d)),null);let h=u;if(this.shouldAutoIndent(e,n)){let f=this.matchEnterRule(e,l,o,d,n.startLineNumber-1);if(f!==null){let g=qi(e.getLineContent(d)),w=f+wn(g,o);h=wh(w,o,a)+this.trimStart(u)}else{c.getLineContent=w=>w===n.startLineNumber?e.getLineContent(d):e.getLineContent(w);let g=mu(this._autoIndent,c,e.getLanguageIdAtPosition(d,1),n.startLineNumber,l,this._languageConfigurationService);if(g!==null){let w=qi(e.getLineContent(d)),_=wn(g,o),E=wn(w,o);_!==E&&(h=wh(_,o,a)+this.trimStart(u))}}t.addEditOperation(new B(n.startLineNumber,1,n.startLineNumber,1),h+` -`);let m=this.matchEnterRuleMovingDown(e,l,o,n.startLineNumber,d,h);if(m!==null)m!==0&&this.getIndentEditsOfMovingBlock(e,t,n,o,a,m);else{c.getLineContent=w=>w===n.startLineNumber?h:w>=n.startLineNumber+1&&w<=n.endLineNumber+1?e.getLineContent(w-1):e.getLineContent(w);let g=mu(this._autoIndent,c,e.getLanguageIdAtPosition(d,1),n.startLineNumber+1,l,this._languageConfigurationService);if(g!==null){let w=qi(e.getLineContent(n.startLineNumber)),_=wn(g,o),E=wn(w,o);if(_!==E){let L=_-E;this.getIndentEditsOfMovingBlock(e,t,n,o,a,L)}}}}else t.addEditOperation(new B(n.startLineNumber,1,n.startLineNumber,1),h+` -`)}else if(d=n.startLineNumber-1,u=e.getLineContent(d),t.addEditOperation(new B(d,1,d+1,1),null),t.addEditOperation(new B(n.endLineNumber,e.getLineMaxColumn(n.endLineNumber),n.endLineNumber,e.getLineMaxColumn(n.endLineNumber)),` -`+u),this.shouldAutoIndent(e,n)){c.getLineContent=f=>f===d?e.getLineContent(n.startLineNumber):e.getLineContent(f);let h=this.matchEnterRule(e,l,o,n.startLineNumber,n.startLineNumber-2);if(h!==null)h!==0&&this.getIndentEditsOfMovingBlock(e,t,n,o,a,h);else{let f=mu(this._autoIndent,c,e.getLanguageIdAtPosition(n.startLineNumber,1),d,l,this._languageConfigurationService);if(f!==null){let m=qi(e.getLineContent(n.startLineNumber)),g=wn(f,o),w=wn(m,o);if(g!==w){let _=g-w;this.getIndentEditsOfMovingBlock(e,t,n,o,a,_)}}}}}this._selectionId=t.trackSelection(n)}buildIndentConverter(e,t,r){return{shiftIndent:n=>jc.shiftIndent(n,n.length+1,e,t,r),unshiftIndent:n=>jc.unshiftIndent(n,n.length+1,e,t,r)}}parseEnterResult(e,t,r,n,o){if(o){let s=o.indentation;o.indentAction===zm.None||o.indentAction===zm.Indent?s=o.indentation+o.appendText:o.indentAction===zm.IndentOutdent?s=o.indentation:o.indentAction===zm.Outdent&&(s=t.unshiftIndent(o.indentation)+o.appendText);let a=e.getLineContent(n);if(this.trimStart(a).indexOf(this.trimStart(s))>=0){let l=qi(e.getLineContent(n)),c=qi(s),d=n_(e,n,this._languageConfigurationService);d!==null&&d&2&&(c=t.unshiftIndent(c));let u=wn(c,r),h=wn(l,r);return u-h}}return null}matchEnterRuleMovingDown(e,t,r,n,o,s){if(of(s)>=0){let a=e.getLineMaxColumn(o),l=r_(this._autoIndent,e,new B(o,a,o,a),this._languageConfigurationService);return this.parseEnterResult(e,t,r,n,l)}else{let a=n-1;for(;a>=1;){let d=e.getLineContent(a);if(of(d)>=0)break;a--}if(a<1||n>e.getLineCount())return null;let l=e.getLineMaxColumn(a),c=r_(this._autoIndent,e,new B(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(e,t,r,n,c)}}matchEnterRule(e,t,r,n,o,s){let a=o;for(;a>=1;){let d;if(a===o&&s!==void 0?d=s:d=e.getLineContent(a),of(d)>=0)break;a--}if(a<1||n>e.getLineCount())return null;let l=e.getLineMaxColumn(a),c=r_(this._autoIndent,e,new B(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(e,t,r,n,c)}trimStart(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4||!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;let r=e.getLanguageIdAtPosition(t.startLineNumber,1),n=e.getLanguageIdAtPosition(t.endLineNumber,1);return!(r!==n||this._languageConfigurationService.getLanguageConfiguration(r).indentRulesSupport===null)}getIndentEditsOfMovingBlock(e,t,r,n,o,s){for(let a=r.startLineNumber;a<=r.endLineNumber;a++){let l=e.getLineContent(a),c=qi(l),u=wn(c,n)+s,h=wh(u,n,o);h!==c&&(t.addEditOperation(new B(a,1,a,c.length+1),h),a===r.endLineNumber&&r.endColumn<=c.length+1&&h===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let r=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(r=r.setEndPosition(r.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&r.startLineNumber=n)return null;let o=[];for(let a=r;a<=n;a++)o.push(i.getLineContent(a));let s=o.slice(0);return s.sort(xh.getCollator().compare),t===!0&&(s=s.reverse()),{startLineNumber:r,endLineNumber:n,before:o,after:s}}function Zbe(i,e,t){let r=fY(i,e,t);return r?ii.replace(new B(r.startLineNumber,1,r.endLineNumber,i.getLineMaxColumn(r.endLineNumber)),r.after.join(` -`)):null}var xh,pY=N(()=>{_a();et();xh=class i{static getCollator(){return i._COLLATOR||(i._COLLATOR=new Intl.Collator),i._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){let r=Zbe(e,this.selection,this.descending);r&&t.addEditOperation(r.range,r.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,r){if(e===null)return!1;let n=fY(e,t,r);if(!n)return!1;for(let o=0,s=n.before.length;o{ll();s_();lt();Zv();dY();bre();_a();di();et();Ar();ti();uY();hY();pY();He();Ji();Hr();vS=class extends de{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;let r=t.getSelections().map((s,a)=>({selection:s,index:a,ignore:!1}));r.sort((s,a)=>B.compareRangesUsingStarts(s.selection,a.selection));let n=r[0];for(let s=1;snew Ie(a.positionLineNumber,a.positionColumn)));let o=t.getSelection();if(o===null)return;let s=new gS(o,n);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop()}};wS.ID="editor.action.trimTrailingWhitespace";Z8=class extends de{constructor(){super({id:"editor.action.deleteLines",label:b("lines.delete","Delete Line"),alias:"Delete Line",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;let r=this._getLinesToRemove(t),n=t.getModel();if(n.getLineCount()===1&&n.getLineMaxColumn(1)===1)return;let o=0,s=[],a=[];for(let l=0,c=r.length;l1&&(u-=1,f=n.getLineMaxColumn(u)),s.push(ii.replace(new Qe(u,f,h,m),"")),a.push(new Qe(u-o,d.positionColumn,u-o,d.positionColumn)),o+=d.endLineNumber-d.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,s,a),t.pushUndoStop()}_getLinesToRemove(e){let t=e.getSelections().map(o=>{let s=o.endLineNumber;return o.startLineNumbero.startLineNumber===s.startLineNumber?o.endLineNumber-s.endLineNumber:o.startLineNumber-s.startLineNumber);let r=[],n=t[0];for(let o=1;o=t[o].startLineNumber?n.endLineNumber=t[o].endLineNumber:(r.push(n),n=t[o]);return r.push(n),r}},J8=class extends de{constructor(){super({id:"editor.action.indentLines",label:b("lines.indent","Indent Line"),alias:"Indent Line",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:2142,weight:100}})}run(e,t){let r=t._getViewModel();r&&(t.pushUndoStop(),t.executeCommands(this.id,o_.indent(r.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}},e7=class extends de{constructor(){super({id:"editor.action.outdentLines",label:b("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:2140,weight:100}})}run(e,t){cf.Outdent.runEditorCommand(e,t,null)}},t7=class extends de{constructor(){super({id:"editor.action.insertLineBefore",label:b("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:3075,weight:100}})}run(e,t){let r=t._getViewModel();r&&(t.pushUndoStop(),t.executeCommands(this.id,o_.lineInsertBefore(r.cursorConfig,t.getModel(),t.getSelections())))}},i7=class extends de{constructor(){super({id:"editor.action.insertLineAfter",label:b("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:2051,weight:100}})}run(e,t){let r=t._getViewModel();r&&(t.pushUndoStop(),t.executeCommands(this.id,o_.lineInsertAfter(r.cursorConfig,t.getModel(),t.getSelections())))}},xS=class extends de{run(e,t){if(!t.hasModel())return;let r=t.getSelection(),n=this._getRangesToDelete(t),o=[];for(let l=0,c=n.length-1;lii.replace(l,""));t.pushUndoStop(),t.executeEdits(this.id,a,s),t.pushUndoStop()}},r7=class extends xS{constructor(){super({id:"deleteAllLeft",label:b("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let r=null,n=[],o=0;return t.forEach(s=>{let a;if(s.endColumn===1&&o>0){let l=s.startLineNumber-o;a=new Qe(l,s.startColumn,l,s.startColumn)}else a=new Qe(s.startLineNumber,s.startColumn,s.startLineNumber,s.startColumn);o+=s.endLineNumber-s.startLineNumber,s.intersectRanges(e)?r=a:n.push(a)}),r&&n.unshift(r),n}_getRangesToDelete(e){let t=e.getSelections();if(t===null)return[];let r=t,n=e.getModel();return n===null?[]:(r.sort(B.compareRangesUsingStarts),r=r.map(o=>{if(o.isEmpty())if(o.startColumn===1){let s=Math.max(1,o.startLineNumber-1),a=o.startLineNumber===1?1:n.getLineContent(s).length+1;return new B(s,a,o.startLineNumber,1)}else return new B(o.startLineNumber,1,o.startLineNumber,o.startColumn);else return new B(o.startLineNumber,1,o.endLineNumber,o.endColumn)}),r)}},n7=class extends xS{constructor(){super({id:"deleteAllRight",label:b("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let r=null,n=[];for(let o=0,s=t.length,a=0;o{if(o.isEmpty()){let s=t.getLineMaxColumn(o.startLineNumber);return o.startColumn===s?new B(o.startLineNumber,o.startColumn,o.startLineNumber+1,1):new B(o.startLineNumber,o.startColumn,o.startLineNumber,s)}return o});return n.sort(B.compareRangesUsingStarts),n}},o7=class extends de{constructor(){super({id:"editor.action.joinLines",label:b("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:F.writable,kbOpts:{kbExpr:F.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){let r=t.getSelections();if(r===null)return;let n=t.getSelection();if(n===null)return;r.sort(B.compareRangesUsingStarts);let o=[],s=r.reduce((h,f)=>h.isEmpty()?h.endLineNumber===f.startLineNumber?(n.equalsSelection(h)&&(n=f),f):f.startLineNumber>h.endLineNumber+1?(o.push(h),f):new Qe(h.startLineNumber,h.startColumn,f.endLineNumber,f.endColumn):f.startLineNumber>h.endLineNumber?(o.push(h),f):new Qe(h.startLineNumber,h.startColumn,f.endLineNumber,f.endColumn));o.push(s);let a=t.getModel();if(a===null)return;let l=[],c=[],d=n,u=0;for(let h=0,f=o.length;h=1){let Z=!0;O===""&&(Z=!1),Z&&(O.charAt(O.length-1)===" "||O.charAt(O.length-1)===" ")&&(Z=!1,O=O.replace(/[\s\uFEFF\xA0]+$/g," "));let ve=oe.substr(te-1);O+=(Z?" ":"")+ve,Z?_=ve.length+1:_=ve.length}else _=0}let U=new B(g,w,E,L);if(!U.isEmpty()){let Y;m.isEmpty()?(l.push(ii.replace(U,O)),Y=new Qe(U.startLineNumber-u,O.length-_+1,g-u,O.length-_+1)):m.startLineNumber===m.endLineNumber?(l.push(ii.replace(U,O)),Y=new Qe(m.startLineNumber-u,m.startColumn,m.endLineNumber-u,m.endColumn)):(l.push(ii.replace(U,O)),Y=new Qe(m.startLineNumber-u,m.startColumn,m.startLineNumber-u,O.length-A)),B.intersectRanges(U,n)!==null?d=Y:c.push(Y)}u+=U.endLineNumber-U.startLineNumber}c.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,l,c),t.pushUndoStop()}},s7=class extends de{constructor(){super({id:"editor.action.transpose",label:b("editor.transpose","Transpose Characters around the Cursor"),alias:"Transpose Characters around the Cursor",precondition:F.writable})}run(e,t){let r=t.getSelections();if(r===null)return;let n=t.getModel();if(n===null)return;let o=[];for(let s=0,a=r.length;s=d){if(c.lineNumber===n.getLineCount())continue;let u=new B(c.lineNumber,Math.max(1,c.column-1),c.lineNumber+1,1),h=n.getValueInRange(u).split("").reverse().join("");o.push(new ul(new Qe(c.lineNumber,Math.max(1,c.column-1),c.lineNumber+1,1),h))}else{let u=new B(c.lineNumber,Math.max(1,c.column-1),c.lineNumber,c.column+1),h=n.getValueInRange(u).split("").reverse().join("");o.push(new Qv(u,h,new Qe(c.lineNumber,c.column+1,c.lineNumber,c.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}},Wd=class extends de{run(e,t){let r=t.getSelections();if(r===null)return;let n=t.getModel();if(n===null)return;let o=t.getOption(128),s=[];for(let a of r)if(a.isEmpty()){let l=a.getStartPosition(),c=t.getConfiguredWordAtPosition(l);if(!c)continue;let d=new B(l.lineNumber,c.startColumn,l.lineNumber,c.endColumn),u=n.getValueInRange(d);s.push(ii.replace(d,this._modifyText(u,o)))}else{let l=n.getValueInRange(a);s.push(ii.replace(a,this._modifyText(l,o)))}t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop()}},a7=class extends Wd{constructor(){super({id:"editor.action.transformToUppercase",label:b("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:F.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}},l7=class extends Wd{constructor(){super({id:"editor.action.transformToLowercase",label:b("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:F.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}},mc=class{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return this.get()!==null}},b1=class i extends Wd{constructor(){super({id:"editor.action.transformToTitlecase",label:b("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:F.writable})}_modifyText(e,t){let r=i.titleBoundary.get();return r?e.toLocaleLowerCase().replace(r,n=>n.toLocaleUpperCase()):e}};b1.titleBoundary=new mc("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");Ch=class i extends Wd{constructor(){super({id:"editor.action.transformToSnakecase",label:b("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:F.writable})}_modifyText(e,t){let r=i.caseBoundary.get(),n=i.singleLetters.get();return!r||!n?e:e.replace(r,"$1_$2").replace(n,"$1_$2$3").toLocaleLowerCase()}};Ch.caseBoundary=new mc("(\\p{Ll})(\\p{Lu})","gmu");Ch.singleLetters=new mc("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");v1=class i extends Wd{constructor(){super({id:"editor.action.transformToCamelcase",label:b("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:F.writable})}_modifyText(e,t){let r=i.wordBoundary.get();if(!r)return e;let n=e.split(r);return n.shift()+n.map(s=>s.substring(0,1).toLocaleUpperCase()+s.substring(1)).join("")}};v1.wordBoundary=new mc("[_\\s-]","gm");Sh=class i extends Wd{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every(t=>t.isSupported())}constructor(){super({id:"editor.action.transformToKebabcase",label:b("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:F.writable})}_modifyText(e,t){let r=i.caseBoundary.get(),n=i.singleLetters.get(),o=i.underscoreBoundary.get();return!r||!n||!o?e:e.replace(o,"$1-$3").replace(r,"$1-$2").replace(n,"$1-$2").toLocaleLowerCase()}};Sh.caseBoundary=new mc("(\\p{Ll})(\\p{Lu})","gmu");Sh.singleLetters=new mc("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu");Sh.underscoreBoundary=new mc("(\\S)(_)(\\S)","gm");ee(V8);ee(q8);ee(K8);ee($8);ee(G8);ee(Y8);ee(X8);ee(Q8);ee(wS);ee(Z8);ee(J8);ee(e7);ee(t7);ee(i7);ee(r7);ee(n7);ee(o7);ee(s7);ee(a7);ee(l7);Ch.caseBoundary.isSupported()&&Ch.singleLetters.isSupported()&&ee(Ch);v1.wordBoundary.isSupported()&&ee(v1);b1.titleBoundary.isSupported()&&ee(b1);Sh.isSupported()&&ee(Sh)});var mY=N(()=>{});var gY=N(()=>{mY()});function vY(i,e,t,r){let n=i.ordered(e);return u_(n.map(o=>()=>d7(this,void 0,void 0,function*(){try{return yield o.provideLinkedEditingRanges(e,t,r)}catch(s){Xt(s);return}})),o=>!!o&&Ki(o==null?void 0:o.ranges))}var Jbe,CS,d7,SS,bY,e1e,Vd,u7,t1e,tut,f7=N(()=>{mi();jt();ki();ca();qt();ei();ke();Ni();Ir();lt();In();di();et();ti();Ur();Hr();He();wt();Pt();tn();Ds();al();gY();Jbe=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CS=function(i,e){return function(t,r){e(t,r,i)}},d7=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bY=new ht("LinkedEditingInputVisible",!1),e1e="linked-editing-decoration",Vd=SS=class extends ce{static get(e){return e.getContribution(SS.ID)}constructor(e,t,r,n,o){super(),this.languageConfigurationService=n,this._syncRangesToken=0,this._localToDispose=this._register(new le),this._editor=e,this._providers=r.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=bY.bindTo(t),this._debounceInformation=o.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new le),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(s=>{(s.hasChanged(68)||s.hasChanged(91))&&this.reinitialize(!1)})),this._register(this._providers.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}reinitialize(e){let t=this._editor.getModel(),r=t!==null&&(this._editor.getOption(68)||this._editor.getOption(91))&&this._providers.has(t);if(r===this._enabled&&!e||(this._enabled=r,this.clearRanges(),this._localToDispose.clear(),!r||t===null))return;this._localToDispose.add(ci.runAndSubscribe(t.onDidChangeLanguageConfiguration,()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()}));let n=new Do(this._debounceInformation.get(t)),o=()=>{var l;this._rangeUpdateTriggerPromise=n.trigger(()=>this.updateRanges(),(l=this._debounceDuration)!==null&&l!==void 0?l:this._debounceInformation.get(t))},s=new Do(0),a=l=>{this._rangeSyncTriggerPromise=s.trigger(()=>this._syncRanges(l))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{o()})),this._localToDispose.add(this._editor.onDidChangeModelContent(l=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){let c=this._currentDecorations.getRange(0);if(c&&l.changes.every(d=>c.intersectRanges(d.range))){a(this._syncRangesToken);return}}o()})),this._localToDispose.add({dispose:()=>{n.dispose(),s.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||this._currentDecorations.length===0)return;let t=this._editor.getModel(),r=this._currentDecorations.getRange(0);if(!r||r.startLineNumber!==r.endLineNumber)return this.clearRanges();let n=t.getValueInRange(r);if(this._currentWordPattern){let s=n.match(this._currentWordPattern);if((s?s[0].length:0)!==n.length)return this.clearRanges()}let o=[];for(let s=1,a=this._currentDecorations.length;s1){this.clearRanges();return}let r=this._editor.getModel(),n=r.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===n){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){let s=this._currentDecorations.getRange(0);if(s&&s.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=n;let o=Jt(s=>d7(this,void 0,void 0,function*(){try{let a=new mr(!1),l=yield vY(this._providers,r,t,s);if(this._debounceInformation.update(r,a.elapsed()),o!==this._currentRequest||(this._currentRequest=null,n!==r.getVersionId()))return;let c=[];l!=null&&l.ranges&&(c=l.ranges),this._currentWordPattern=(l==null?void 0:l.wordPattern)||this._languageWordPattern;let d=!1;for(let h=0,f=c.length;h({range:h,options:SS.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations.set(u),this._syncRangesToken++}catch(a){Yo(a)||ft(a),(this._currentRequest===o||!this._currentRequest)&&this.clearRanges()}}));return this._currentRequest=o,o})}};Vd.ID="editor.contrib.linkedEditing";Vd.DECORATION=mt.register({description:"linked-editing",stickiness:0,className:e1e});Vd=SS=Jbe([CS(1,it),CS(2,Se),CS(3,Ot),CS(4,lr)],Vd);u7=class extends de{constructor(){super({id:"editor.action.linkedEditing",label:b("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:fe.and(F.writable,F.hasRenameProvider),kbOpts:{kbExpr:F.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){let r=e.get(ai),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return yt.isUri(n)&&Ie.isIPosition(o)?r.openCodeEditor({resource:n},r.getActiveCodeEditor()).then(s=>{s&&(s.setPosition(o),s.invokeWithinContext(a=>(this.reportTelemetry(a,s),this.run(a,s))))},ft):super.runCommand(e,t)}run(e,t){let r=Vd.get(t);return r?Promise.resolve(r.updateRanges(!0)):Promise.resolve()}},t1e=Fi.bindToContribution(Vd.get);We(new t1e({id:"cancelLinkedEditingInput",precondition:bY,handler:i=>i.clearRanges(),kbOpts:{kbExpr:F.editorTextFocus,weight:100+99,primary:9,secondary:[1033]}}));tut=je("editor.linkedEditingBackground",{dark:vt.fromHex("#f00").transparent(.3),light:vt.fromHex("#f00").transparent(.3),hcDark:vt.fromHex("#f00").transparent(.3),hcLight:vt.white},b("editorLinkedEditingBackground","Background color when the editor auto renames on type."));$n("_executeLinkedEditingProvider",(i,e,t)=>{let{linkedEditingRangeProvider:r}=i.get(Se);return vY(r,e,t,st.None)});Ue(Vd.ID,Vd,1);ee(u7)});var _Y=N(()=>{});var yY=N(()=>{_Y()});function m7(i,e,t){let r=[],n=i.ordered(e).reverse().map((o,s)=>Promise.resolve(o.provideLinks(e,t)).then(a=>{a&&(r[s]=[a,o])},Xt));return Promise.all(n).then(()=>{let o=new kS(hn(r));return t.isCancellationRequested?(o.dispose(),new kS([])):o})}var wY,p7,kS,xY=N(()=>{mi();ki();qt();ke();zr();Ir();et();Xo();Vi();Pt();wY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},p7=class{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return wY(this,void 0,void 0,function*(){return this._link.url?this._link.url:typeof this._provider.resolveLink=="function"?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))})}},kS=class i{constructor(e){this._disposables=new le;let t=[];for(let[r,n]of e){let o=r.links.map(s=>new p7(s,n));t=i._union(t,o),Fv(r)&&this._disposables.add(r)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){let r=[],n,o,s,a;for(n=0,s=0,o=e.length,a=t.length;nwY(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(t instanceof yt),typeof r!="number"&&(r=0);let{linkProvider:n}=i.get(Se),o=i.get(Di).getModel(t);if(!o)return[];let s=yield m7(n,o,st.None);if(!s)return[];for(let l=0;l{jt();ki();qt();Es();ke();Dm();Tn();Lo();al();Ir();yY();lt();Ur();Ds();Pt();i1();xY();He();Mo();is();i1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ES=function(i,e){return function(t,r){e(t,r,i)}},r1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},$p=g7=class extends ce{static get(e){return e.getContribution(g7.ID)}constructor(e,t,r,n,o){super(),this.editor=e,this.openerService=t,this.notificationService=r,this.languageFeaturesService=n,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=o.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new ui(()=>this.computeLinksNow(),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;let s=this._register(new Qa(e));this._register(s.onMouseMoveOrRelevantKeyDown(([a,l])=>{this._onEditorMouseMove(a,l)})),this._register(s.onExecute(a=>{this.onEditorMouseUp(a)})),this._register(s.onCancel(a=>{this.cleanUpActiveLinkDecoration()})),this._register(e.onDidChangeConfiguration(a=>{a.hasChanged(69)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))})),this._register(e.onDidChangeModelContent(a=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))})),this._register(e.onDidChangeModel(a=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)})),this._register(e.onDidChangeModelLanguage(a=>{this.stop(),this.computeLinks.schedule(0)})),this._register(this.providers.onDidChange(a=>{this.stop(),this.computeLinks.schedule(0)})),this.computeLinks.schedule(0)}computeLinksNow(){return r1e(this,void 0,void 0,function*(){if(!this.editor.hasModel()||!this.editor.getOption(69))return;let e=this.editor.getModel();if(this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=Jt(t=>m7(this.providers,e,t));try{let t=new mr(!1);if(this.activeLinksList=yield this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){ft(t)}finally{this.computePromise=null}}})}updateDecorations(e){let t=this.editor.getOption(76)==="altKey",r=[],n=Object.keys(this.currentOccurrences);for(let s of n){let a=this.currentOccurrences[s];r.push(a.decorationId)}let o=[];if(e)for(let s of e)o.push(TS.decoration(s,t));this.editor.changeDecorations(s=>{let a=s.deltaDecorations(r,o);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let l=0,c=a.length;l{n.activate(o,r),this.activeLinkDecorationId=n.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){let e=this.editor.getOption(76)==="altKey";if(this.activeLinkDecorationId){let t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(r=>{t.deactivate(r,e)}),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;let t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,r=!1){if(!this.openerService)return;let{link:n}=e;n.resolve(st.None).then(o=>{if(typeof o=="string"&&this.editor.hasModel()){let s=this.editor.getModel().uri;if(s.scheme===Eo.file&&o.startsWith(`${Eo.file}:`)){let a=yt.parse(o);if(a.scheme===Eo.file){let l=XP(a),c=null;l.startsWith("/./")?c=`.${l.substr(1)}`:l.startsWith("//./")&&(c=`.${l.substr(2)}`),c&&(o=JP(s,c))}}}return this.openerService.open(o,{openToSide:t,fromUserGesture:r,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})},o=>{let s=o instanceof Error?o.message:o;s==="invalid"?this.notificationService.warn(b("invalid.url","Failed to open this link because it is not well-formed: {0}",n.url.toString())):s==="missing"?this.notificationService.warn(b("missing.url","Failed to open this link because its target is missing.")):ft(o)})}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;let t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(let r of t){let n=this.currentOccurrences[r.id];if(n)return n}return null}isEnabled(e,t){return!!(e.target.type===6&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.computeLinks.cancel(),this.activeLinksList&&((e=this.activeLinksList)===null||e===void 0||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};$p.ID="editor.linkDetector";$p=g7=i1e([ES(1,tr),ES(2,Ri),ES(3,Se),ES(4,lr)],$p);CY={general:mt.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:mt.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},TS=class i{static decoration(e,t){return{range:e.range,options:i._getOptions(e,t,!1)}}static _getOptions(e,t,r){let n=Object.assign({},r?CY.active:CY.general);return n.hoverMessage=n1e(e,t),n}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,i._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,i._getOptions(this.link,t,!1))}};b7=class extends de{constructor(){super({id:"editor.action.openLink",label:b("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){let r=$p.get(t);if(!r||!t.hasModel())return;let n=t.getSelections();for(let o of n){let s=r.getLinkOccurrence(o.getEndPosition());s&&r.openLinkOccurrence(s,!1)}}};Ue($p.ID,$p,1);ee(b7)});var _1,_7=N(()=>{ke();lt();_1=class extends ce{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(t=>{let r=this._editor.getOption(115);r>=0&&t.target.type===6&&t.target.position.column>=r&&this._editor.updateOptions({stopRenderingLineAfter:-1})}))}};_1.ID="editor.contrib.longLinesHelper";Ue(_1.ID,_1,2)});var SY=N(()=>{});var kY=N(()=>{SY()});function EY(i){return i===Qm.Write?l1e:i===Qm.Text?c1e:h1e}function TY(i){return i?u1e:d1e}var IS,AS,o1e,s1e,a1e,l1e,c1e,d1e,u1e,h1e,y7=N(()=>{kY();qc();Ur();fn();He();tn();rn();IS=je("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},b("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);je("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},b("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0);je("editor.wordHighlightTextBackground",{light:IS,dark:IS,hcDark:IS,hcLight:IS},b("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);AS=je("editor.wordHighlightBorder",{light:null,dark:null,hcDark:ua,hcLight:ua},b("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));je("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:ua,hcLight:ua},b("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable."));je("editor.wordHighlightTextBorder",{light:AS,dark:AS,hcDark:AS,hcLight:AS},b("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));o1e=je("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},b("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),s1e=je("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},b("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),a1e=je("editorOverviewRuler.wordHighlightTextForeground",{dark:gf,light:gf,hcDark:gf,hcLight:gf},b("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),l1e=mt.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:Ei(s1e),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}}),c1e=mt.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:Ei(a1e),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}}),d1e=mt.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:Ei(gf),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}}),u1e=mt.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),h1e=mt.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:Ei(o1e),position:Gn.Center},minimap:{color:Ei(Gm),position:la.Inline}});bf((i,e)=>{let t=i.getColor(xO);t&&e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`)})});function Kd(i,e){let t=e.filter(r=>!i.find(n=>n.equals(r)));if(t.length>=1){let r=t.map(o=>`line ${o.viewState.position.lineNumber} column ${o.viewState.position.column}`).join(", "),n=t.length===1?b("cursorAdded","Cursor added: {0}",r):b("cursorsAdded","Cursors added: {0}",r);uu(n)}}function AY(i,e,t){let r=IY(i,e[0],!t);for(let n=1,o=e.length;n{Io();jt();ll();ke();lt();IP();et();Ar();ti();y2();He();Ji();wt();Pt();y7();Ut();f1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},p1e=function(i,e){return function(t,r){e(t,r,i)}};x7=class extends de{constructor(){super({id:"editor.action.insertCursorAbove",label:b("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,r){if(!t.hasModel())return;let n=!0;r&&r.logicalLine===!1&&(n=!1);let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let s=o.getCursorStates();o.setCursorStates(r.source,3,Fm.addCursorUp(o,s,n)),o.revealTopMostCursor(r.source),Kd(s,o.getCursorStates())}},C7=class extends de{constructor(){super({id:"editor.action.insertCursorBelow",label:b("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,r){if(!t.hasModel())return;let n=!0;r&&r.logicalLine===!1&&(n=!1);let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let s=o.getCursorStates();o.setCursorStates(r.source,3,Fm.addCursorDown(o,s,n)),o.revealBottomMostCursor(r.source),Kd(s,o.getCursorStates())}},S7=class extends de{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:b("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,r){if(!e.isEmpty()){for(let n=e.startLineNumber;n1&&r.push(new Qe(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let r=t.getModel(),n=t.getSelections(),o=t._getViewModel(),s=o.getCursorStates(),a=[];n.forEach(l=>this.getCursorsForSelection(l,r,a)),a.length>0&&t.setSelections(a),Kd(s,o.getCursorStates())}},k7=class extends de{constructor(){super({id:"editor.action.addCursorsToBottom",label:b("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;let r=t.getSelections(),n=t.getModel().getLineCount(),o=[];for(let l=r[0].startLineNumber;l<=n;l++)o.push(new Qe(l,r[0].startColumn,l,r[0].endColumn));let s=t._getViewModel(),a=s.getCursorStates();o.length>0&&t.setSelections(o),Kd(a,s.getCursorStates())}},E7=class extends de{constructor(){super({id:"editor.action.addCursorsToTop",label:b("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;let r=t.getSelections(),n=[];for(let a=r[0].startLineNumber;a>=1;a--)n.push(new Qe(a,r[0].startColumn,a,r[0].endColumn));let o=t._getViewModel(),s=o.getCursorStates();n.length>0&&t.setSelections(n),Kd(s,o.getCursorStates())}},Gp=class{constructor(e,t,r){this.selections=e,this.revealRange=t,this.revealScrollType=r}},LS=class i{static create(e,t){if(!e.hasModel())return null;let r=t.getState();if(!e.hasTextFocus()&&r.isRevealed&&r.searchString.length>0)return new i(e,t,!1,r.searchString,r.wholeWord,r.matchCase,null);let n=!1,o,s,a=e.getSelections();a.length===1&&a[0].isEmpty()?(n=!0,o=!0,s=!0):(o=r.wholeWord,s=r.matchCase);let l=e.getSelection(),c,d=null;if(l.isEmpty()){let u=e.getConfiguredWordAtPosition(l.getStartPosition());if(!u)return null;c=u.word,d=new Qe(l.startLineNumber,u.startColumn,l.startLineNumber,u.endColumn)}else c=e.getModel().getValueInRange(l).replace(/\r\n/g,` -`);return new i(e,t,n,c,o,s,d)}constructor(e,t,r,n,o,s,a){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=r,this.searchText=n,this.wholeWord=o,this.matchCase=s,this.currentMatch=a}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let n=this.currentMatch;return this.currentMatch=null,n}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],r=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1);return r?new Qe(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Gp(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let n=this.currentMatch;return this.currentMatch=null,n}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],r=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1);return r?new Qe(r.range.startLineNumber,r.range.startColumn,r.range.endLineNumber,r.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();let t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(128):null,!1,1073741824)}},kh=class i extends ce{static get(e){return e.getContribution(i.ID)}constructor(e){super(),this._sessionDispose=this._register(new le),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=LS.create(this._editor,e);if(!t)return;this._session=t;let r={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(r.wholeWordOverride=1,r.matchCaseOverride=1,r.isRegexOverride=2),e.getState().change(r,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(n=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(n=>{(n.matchCase||n.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){let e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;let r=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return r?new Qe(t.startLineNumber,r.startColumn,t.startLineNumber,r.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){let t=this._editor.getSelections();if(t.length>1){let n=e.getState().matchCase;if(!AY(this._editor.getModel(),t,n)){let s=this._editor.getModel(),a=[];for(let l=0,c=t.length;l0&&r.isRegex){let n=this._editor.getModel();r.searchScope?t=n.findMatches(r.searchString,r.searchScope,r.isRegex,r.matchCase,r.wholeWord?this._editor.getOption(128):null,!1,1073741824):t=n.findMatches(r.searchString,!0,r.isRegex,r.matchCase,r.wholeWord?this._editor.getOption(128):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(r.searchScope)}if(t.length>0){let n=this._editor.getSelection();for(let o=0,s=t.length;onew Qe(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)))}}};kh.ID="editor.contrib.multiCursorController";qd=class extends de{run(e,t){let r=kh.get(t);if(!r)return;let n=t._getViewModel();if(n){let o=n.getCursorStates(),s=ln.get(t);if(s)this._run(r,s);else{let a=e.get(Ke).createInstance(ln,t);this._run(r,a),a.dispose()}Kd(o,n.getCursorStates())}}},T7=class extends qd{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:b("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:2082,weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}},I7=class extends qd{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:b("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}},A7=class extends qd{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:b("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:gi(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}},L7=class extends qd{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:b("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}},D7=class extends qd{constructor(){super({id:"editor.action.selectHighlights",label:b("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:3114,weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"3_multi",title:b({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}},M7=class extends qd{constructor(){super({id:"editor.action.changeAll",label:b("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:fe.and(F.writable,F.editorTextFocus),kbOpts:{kbExpr:F.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}},N7=class{constructor(e,t,r,n,o){this._model=e,this._searchText=t,this._matchCase=r,this._wordSeparators=n,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,o&&this._model===o._model&&this._searchText===o._searchText&&this._matchCase===o._matchCase&&this._wordSeparators===o._wordSeparators&&this._modelVersionId===o._modelVersionId&&(this._cachedFindMatches=o._cachedFindMatches)}findMatches(){return this._cachedFindMatches===null&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(B.compareRangesUsingStarts)),this._cachedFindMatches}},y1=w7=class extends ce{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(106),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new ui(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(n=>{this._isEnabled=e.getOption(106)})),this._register(e.onDidChangeCursorSelection(n=>{this._isEnabled&&(n.selection.isEmpty()?n.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(n=>{this._setState(null)})),this._register(e.onDidChangeModelContent(n=>{this._isEnabled&&this.updateSoon.schedule()}));let r=ln.get(e);r&&this._register(r.getState().onFindReplaceStateChange(n=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(w7._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,r){if(!t||!r.hasModel())return null;let n=r.getSelection();if(n.startLineNumber!==n.endLineNumber)return null;let o=kh.get(r);if(!o)return null;let s=ln.get(r);if(!s)return null;let a=o.getSession(s);if(!a){let d=r.getSelections();if(d.length>1){let h=s.getState().matchCase;if(!AY(r.getModel(),d,h))return null}a=LS.create(r,s)}if(!a||a.currentMatch||/^[ \t]+$/.test(a.searchText)||a.searchText.length>200)return null;let l=s.getState(),c=l.matchCase;if(l.isRevealed){let d=l.searchString;c||(d=d.toLowerCase());let u=a.searchText;if(c||(u=u.toLowerCase()),d===u&&a.matchCase===l.matchCase&&a.wholeWord===l.wholeWord&&!l.isRegex)return null}return new N7(r.getModel(),a.searchText,a.matchCase,a.wholeWord?r.getOption(128):null,e)}_setState(e){if(this.state=e,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;let t=this.editor.getModel();if(t.isTooLargeForTokenization())return;let r=this.state.findMatches(),n=this.editor.getSelections();n.sort(B.compareRangesUsingStarts);let o=[];for(let l=0,c=0,d=r.length,u=n.length;l=u)o.push(h),l++;else{let f=B.compareRangesUsingStarts(h,n[c]);f<0?((n[c].isEmpty()||!B.areIntersecting(h,n[c]))&&o.push(h),l++):(f>0||l++,c++)}}let s=this._languageFeaturesService.documentHighlightProvider.has(t)&&this.editor.getOption(79),a=o.map(l=>({range:l,options:TY(s)}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};y1.ID="editor.contrib.selectionHighlighter";y1=w7=f1e([p1e(1,Se)],y1);R7=class extends de{constructor(){super({id:"editor.action.focusNextCursor",label:b("mutlicursor.focusNextCursor","Focus Next Cursor"),description:{description:b("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,r){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let o=Array.from(n.getCursorStates()),s=o.shift();s&&(o.push(s),n.setCursorStates(r.source,3,o),n.revealPrimaryCursor(r.source,!0),Kd(o,n.getCursorStates()))}},P7=class extends de{constructor(){super({id:"editor.action.focusPreviousCursor",label:b("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),description:{description:b("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,r){if(!t.hasModel())return;let n=t._getViewModel();if(n.cursorConfig.readOnly)return;n.model.pushStackElement();let o=Array.from(n.getCursorStates()),s=o.pop();s&&(o.unshift(s),n.setCursorStates(r.source,3,o),n.revealPrimaryCursor(r.source,!0),Kd(o,n.getCursorStates()))}};Ue(kh.ID,kh,4);Ue(y1.ID,y1,1);ee(x7);ee(C7);ee(S7);ee(T7);ee(I7);ee(A7);ee(L7);ee(D7);ee(M7);ee(k7);ee(E7);ee(R7);ee(P7)});function F7(i,e,t,r,n){return LY(this,void 0,void 0,function*(){let o=i.ordered(e);for(let s of o)try{let a=yield s.provideSignatureHelp(e,t,n,r);if(a)return a}catch(a){Xt(a)}})}var LY,gc,DS=N(()=>{ki();qt();zr();Ir();di();fn();Pt();ra();Vi();wt();LY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},gc={Visible:new ht("parameterHintsVisible",!1),MultipleSignatures:new ht("parameterHintsMultipleSignatures",!1)};Dt.registerCommand("_executeSignatureHelpProvider",(i,...e)=>LY(void 0,void 0,void 0,function*(){let[t,r,n]=e;Bt(yt.isUri(t)),Bt(Ie.isIPosition(r)),Bt(typeof n=="string"||!n);let o=i.get(Se),s=yield i.get(Cr).createModelReference(t);try{let a=yield F7(o.signatureHelpProvider,s.object.textEditorModel,Ie.lift(r),{triggerKind:Is.Invoke,isRetrigger:!1,triggerCharacter:n},st.None);return a?(setTimeout(()=>a.dispose(),0),a.value):void 0}finally{s.dispose()}}))});function g1e(i,e){switch(e.triggerKind){case Is.Invoke:return e;case Is.ContentChange:return i;case Is.TriggerCharacter:default:return e}}var m1e,$d,w1,DY=N(()=>{jt();qt();ei();ke();K3();fn();DS();m1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i.Default={type:0};class e{constructor(n,o){this.request=n,this.previouslyActiveHints=o,this.type=2}}i.Pending=e;class t{constructor(n){this.hints=n,this.type=1}}i.Active=t})($d||($d={}));w1=class i extends ce{constructor(e,t,r=i.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new Je),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=$d.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new Wi),this.triggerChars=new fu,this.retriggerChars=new fu,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new Do(r),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(n=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(n=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(n=>this.onCursorChange(n))),this._register(this.editor.onDidChangeModelContent(n=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(n=>this.onDidType(n))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){this._state.type===2&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=$d.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){let r=this.editor.getModel();if(!r||!this.providers.has(r))return;let n=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(n),t).catch(ft)}next(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,r=t%e===e-1,n=this.editor.getOption(84).cycle;if((e<2||r)&&!n){this.cancel();return}this.updateActiveSignature(r&&n?0:t+1)}previous(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,r=t===0,n=this.editor.getOption(84).cycle;if((e<2||r)&&!n){this.cancel();return}this.updateActiveSignature(r&&n?e-1:t-1)}updateActiveSignature(e){this.state.type===1&&(this.state=new $d.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return m1e(this,void 0,void 0,function*(){let t=this.state.type===1||this.state.type===2,r=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;let n=this._pendingTriggers.reduce(g1e);this._pendingTriggers=[];let o={triggerKind:n.triggerKind,triggerCharacter:n.triggerCharacter,isRetrigger:t,activeSignatureHelp:r};if(!this.editor.hasModel())return!1;let s=this.editor.getModel(),a=this.editor.getPosition();this.state=new $d.Pending(Jt(l=>F7(this.providers,s,a,o,l)),r);try{let l=yield this.state.request;return e!==this.triggerId?(l==null||l.dispose(),!1):!l||!l.value.signatures||l.value.signatures.length===0?(l==null||l.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new $d.Active(l.value),this._lastSignatureHelpResult.value=l,this._onChangedHints.fire(this.state.hints),!0)}catch(l){return e===this.triggerId&&(this.state=$d.Default),ft(l),!1}})}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();let e=this.editor.getModel();if(e)for(let t of this.providers.ordered(e)){for(let r of t.signatureHelpTriggerCharacters||[])if(r.length){let n=r.charCodeAt(0);this.triggerChars.add(n),this.retriggerChars.add(n)}for(let r of t.signatureHelpRetriggerCharacters||[])r.length&&this.retriggerChars.add(r.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,r=e.charCodeAt(t);(this.triggerChars.has(r)||this.isTriggered&&this.retriggerChars.has(r))&&this.trigger({triggerKind:Is.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){e.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:Is.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:Is.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(84).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}};w1.DEFAULT_DELAY=120});var MY=N(()=>{});var NY=N(()=>{MY()});var b1e,z7,B7,yo,v1e,_1e,x1,RY=N(()=>{Ht();Io();N_();Zr();ei();ke();Ni();zr();NY();es();kd();DS();He();wt();is();tn();Sl();An();b1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},z7=function(i,e){return function(t,r){e(t,r,i)}},yo=Ae,v1e=Pi("parameter-hints-next",pt.chevronDown,b("parameterHintsNextIcon","Icon for show next parameter hint.")),_1e=Pi("parameter-hints-previous",pt.chevronUp,b("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),x1=B7=class extends ce{constructor(e,t,r,n,o){super(),this.editor=e,this.model=t,this.renderDisposeables=this._register(new le),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new to({editor:e},o,n)),this.keyVisible=gc.Visible.bindTo(r),this.keyMultipleSignatures=gc.MultipleSignatures.bindTo(r)}createParameterHintDOMNodes(){let e=yo(".editor-widget.parameter-hints-widget"),t=Te(e,yo(".phwrapper"));t.tabIndex=-1;let r=Te(t,yo(".controls")),n=Te(r,yo(".button"+_t.asCSSSelector(_1e))),o=Te(r,yo(".overloads")),s=Te(r,yo(".button"+_t.asCSSSelector(v1e)));this._register(Lt(n,"click",h=>{cu.stop(h),this.previous()})),this._register(Lt(s,"click",h=>{cu.stop(h),this.next()}));let a=yo(".body"),l=new Cf(a,{alwaysConsumeMouseWheel:!0});this._register(l),t.appendChild(l.getDomNode());let c=Te(a,yo(".signature")),d=Te(a,yo(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:o,docs:d,scrollbar:l},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(h=>{this.visible&&this.editor.layoutContentWidget(this)}));let u=()=>{if(!this.domNodes)return;let h=this.editor.getOption(49);this.domNodes.element.style.fontSize=`${h.fontSize}px`,this.domNodes.element.style.lineHeight=`${h.lineHeight/h.fontSize}`};u(),this._register(ci.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(h=>h.hasChanged(49)).on(u,null)),this._register(this.editor.onDidLayoutChange(h=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{var e;(e=this.domNodes)===null||e===void 0||e.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,(e=this.domNodes)===null||e===void 0||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;let r=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",r),this.keyMultipleSignatures.set(r),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";let n=e.signatures[e.activeSignature];if(!n)return;let o=Te(this.domNodes.signature,yo(".code")),s=this.editor.getOption(49);o.style.fontSize=`${s.fontSize}px`,o.style.fontFamily=s.fontFamily;let a=n.parameters.length>0,l=(t=n.activeParameter)!==null&&t!==void 0?t:e.activeParameter;if(a)this.renderParameters(o,n,l);else{let u=Te(o,yo("span"));u.textContent=n.label}let c=n.parameters[l];if(c!=null&&c.documentation){let u=yo("span.documentation");if(typeof c.documentation=="string")u.textContent=c.documentation;else{let h=this.renderMarkdownDocs(c.documentation);u.appendChild(h.element)}Te(this.domNodes.docs,yo("p",{},u))}if(n.documentation!==void 0)if(typeof n.documentation=="string")Te(this.domNodes.docs,yo("p",{},n.documentation));else{let u=this.renderMarkdownDocs(n.documentation);Te(this.domNodes.docs,u.element)}let d=this.hasDocs(n,c);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,c){let u="",h=n.parameters[l];Array.isArray(h.label)?u=n.label.substring(h.label[0],h.label[1]):u=h.label,h.documentation&&(u+=typeof h.documentation=="string"?`, ${h.documentation}`:`, ${h.documentation.value}`),n.documentation&&(u+=typeof n.documentation=="string"?`, ${n.documentation}`:`, ${n.documentation.value}`),this.announcedLabel!==u&&(ar(b("hint","{0}, hint",u)),this.announcedLabel=u)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){let t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var r;(r=this.domNodes)===null||r===void 0||r.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&typeof t.documentation=="string"&&Nc(t.documentation).length>0||t&&typeof t.documentation=="object"&&Nc(t.documentation).value.length>0||e.documentation&&typeof e.documentation=="string"&&Nc(e.documentation).length>0||e.documentation&&typeof e.documentation=="object"&&Nc(e.documentation.value).length>0)}renderParameters(e,t,r){let[n,o]=this.getParameterLabelOffsets(t,r),s=document.createElement("span");s.textContent=t.label.substring(0,n);let a=document.createElement("span");a.textContent=t.label.substring(n,o),a.className="parameter active";let l=document.createElement("span");l.textContent=t.label.substring(o),Te(e,s,a,l)}getParameterLabelOffsets(e,t){let r=e.parameters[t];if(r){if(Array.isArray(r.label))return r.label;if(r.label.length){let n=new RegExp(`(\\W|^)${cl(r.label)}(?=\\W|$)`,"g");n.test(e.label);let o=n.lastIndex-r.label.length;return o>=0?[o,n.lastIndex]:[0,0]}else return[0,0]}else return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return B7.ID}updateMaxHeight(){if(!this.domNodes)return;let t=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=t;let r=this.domNodes.element.getElementsByClassName("phwrapper");r.length&&(r[0].style.maxHeight=t)}};x1.ID="editor.widget.parameterHintsWidget";x1=B7=b1e([z7(2,it),z7(3,tr),z7(4,er)],x1);je("editorHoverWidget.highlightForeground",{dark:fa,light:fa,hcDark:fa,hcLight:fa},b("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."))});var y1e,PY,H7,Eh,U7,j7,W7,V7=N(()=>{F3();ke();lt();ti();fn();Pt();DY();DS();He();wt();Ut();RY();y1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},PY=function(i,e){return function(t,r){e(t,r,i)}},Eh=H7=class extends ce{static get(e){return e.getContribution(H7.ID)}constructor(e,t,r){super(),this.editor=e,this.model=this._register(new w1(e,r.signatureHelpProvider)),this._register(this.model.onChangedHints(n=>{var o;n?(this.widget.value.show(),this.widget.value.render(n)):(o=this.widget.rawValue)===null||o===void 0||o.hide()})),this.widget=new rf(()=>this._register(t.createInstance(x1,this.editor,this.model)))}cancel(){this.model.cancel()}previous(){var e;(e=this.widget.rawValue)===null||e===void 0||e.previous()}next(){var e;(e=this.widget.rawValue)===null||e===void 0||e.next()}trigger(e){this.model.trigger(e,0)}};Eh.ID="editor.controller.parameterHints";Eh=H7=y1e([PY(1,Ke),PY(2,Se)],Eh);U7=class extends de{constructor(){super({id:"editor.action.triggerParameterHints",label:b("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:F.hasSignatureHelpProvider,kbOpts:{kbExpr:F.editorTextFocus,primary:3082,weight:100}})}run(e,t){let r=Eh.get(t);r==null||r.trigger({triggerKind:Is.Invoke})}};Ue(Eh.ID,Eh,2);ee(U7);j7=100+75,W7=Fi.bindToContribution(Eh.get);We(new W7({id:"closeParameterHints",precondition:gc.Visible,handler:i=>i.cancel(),kbOpts:{weight:j7,kbExpr:F.focus,primary:9,secondary:[1033]}}));We(new W7({id:"showPrevParameterHint",precondition:fe.and(gc.Visible,gc.MultipleSignatures),handler:i=>i.previous(),kbOpts:{weight:j7,kbExpr:F.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}}));We(new W7({id:"showNextParameterHint",precondition:fe.and(gc.Visible,gc.MultipleSignatures),handler:i=>i.next(),kbOpts:{weight:j7,kbExpr:F.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))});var OY=N(()=>{});var FY=N(()=>{OY()});var w1e,q7,C1,MS,zY=N(()=>{ke();FY();di();He();wt();jr();tn();rn();w1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},q7=function(i,e){return function(t,r){e(t,r,i)}},C1=new ht("renameInputVisible",!1,b("renameInputVisible","Whether the rename input widget is visible")),MS=class{constructor(e,t,r,n,o){this._editor=e,this._acceptKeybindings=t,this._themeService=r,this._keybindingService=n,this._disposables=new le,this.allowEditorOverflow=!0,this._visibleContextKey=C1.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(49)&&this._updateFont()})),this._disposables.add(r.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",b("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,r,n,o;if(!this._input||!this._domNode)return;let s=e.getColor(p_),a=e.getColor(m_);this._domNode.style.backgroundColor=String((t=e.getColor(bl))!==null&&t!==void 0?t:""),this._domNode.style.boxShadow=s?` 0 0 8px 2px ${s}`:"",this._domNode.style.border=a?`1px solid ${a}`:"",this._domNode.style.color=String((r=e.getColor(fO))!==null&&r!==void 0?r:""),this._input.style.backgroundColor=String((n=e.getColor(hO))!==null&&n!==void 0?n:"");let l=e.getColor(pO);this._input.style.borderWidth=l?"1px":"0px",this._input.style.borderStyle=l?"solid":"none",this._input.style.borderColor=(o=l==null?void 0:l.toString())!==null&&o!==void 0?o:"none"}_updateFont(){if(!this._input||!this._label)return;let e=this._editor.getOption(49);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=`${e.fontSize}px`,this._label.style.fontSize=`${e.fontSize*.8}px`}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}beforeRender(){var e,t;let[r,n]=this._acceptKeybindings;return this._label.innerText=b({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",(e=this._keybindingService.lookupKeybinding(r))===null||e===void 0?void 0:e.getLabel(),(t=this._keybindingService.lookupKeybinding(n))===null||t===void 0?void 0:t.getLabel()),null}afterRender(e){e||this.cancelInput(!0)}acceptInput(e){var t;(t=this._currentAcceptInput)===null||t===void 0||t.call(this,e)}cancelInput(e){var t;(t=this._currentCancelInput)===null||t===void 0||t.call(this,e)}getInput(e,t,r,n,o,s){this._domNode.classList.toggle("preview",o),this._position=new Ie(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",r.toString()),this._input.setAttribute("selectionEnd",n.toString()),this._input.size=Math.max((e.endColumn-e.startColumn)*1.1,20);let a=new le;return new Promise(l=>{this._currentCancelInput=c=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l(c),!0),this._currentAcceptInput=c=>{if(this._input.value.trim().length===0||this._input.value===t){this.cancelInput(!0);return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l({newName:this._input.value,wantsPreview:o&&c})},a.add(s.onCancellationRequested(()=>this.cancelInput(!0))),a.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!document.hasFocus()))),this._show()}).finally(()=>{a.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};MS=w1e([q7(2,br),q7(3,Kt),q7(4,it)],MS)});function C1e(i,e,t,r){return Ih(this,void 0,void 0,function*(){let n=new S1(e,t,i),o=yield n.resolveRenameLocation(st.None);return o!=null&&o.rejectReason?{edits:[],rejectReason:o.rejectReason}:n.provideRenameEdits(r,st.None)})}var x1e,Th,Ih,K7,S1,Ah,$7,G7,Y7=N(()=>{Io();jt();ki();qt();ke();zr();Ir();yu();lt();tg();In();di();et();ti();sne();M0();He();X3();wt();Ut();Yv();Mo();$c();dl();zY();Pt();x1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Th=function(i,e){return function(t,r){e(t,r,i)}},Ih=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},S1=class{constructor(e,t,r){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=r.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return Ih(this,void 0,void 0,function*(){let t=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?t.join(` -`):void 0}:{range:B.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join(` -`):void 0}})}provideRenameEdits(e,t){return Ih(this,void 0,void 0,function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)})}_provideRenameEdits(e,t,r,n){return Ih(this,void 0,void 0,function*(){let o=this._providers[t];if(!o)return{edits:[],rejectReason:r.join(` -`)};let s=yield o.provideRenameEdits(this.model,this.position,e,n);if(s){if(s.rejectReason)return this._provideRenameEdits(e,t+1,r.concat(s.rejectReason),n)}else return this._provideRenameEdits(e,t+1,r.concat(b("no result","No result.")),n);return s})}};Ah=K7=class{static get(e){return e.getContribution(K7.ID)}constructor(e,t,r,n,o,s,a,l){this.editor=e,this._instaService=t,this._notificationService=r,this._bulkEditService=n,this._progressService=o,this._logService=s,this._configService=a,this._languageFeaturesService=l,this._disposableStore=new le,this._cts=new zi,this._renameInputField=this._disposableStore.add(this._instaService.createInstance(MS,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return Ih(this,void 0,void 0,function*(){if(this._cts.dispose(!0),this._cts=new zi,!this.editor.hasModel())return;let r=this.editor.getPosition(),n=new S1(this.editor.getModel(),r,this._languageFeaturesService.renameProvider);if(!n.hasProvider())return;let o=new ga(this.editor,5,void 0,this._cts.token),s;try{let m=n.resolveRenameLocation(o.token);this._progressService.showWhile(m,250),s=yield m}catch(m){(e=qr.get(this.editor))===null||e===void 0||e.showMessage(m||b("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),r);return}finally{o.dispose()}if(!s)return;if(s.rejectReason){(t=qr.get(this.editor))===null||t===void 0||t.showMessage(s.rejectReason,r);return}if(o.token.isCancellationRequested)return;let a=new ga(this.editor,5,s.range,this._cts.token),l=this.editor.getSelection(),c=0,d=s.text.length;!B.isEmpty(l)&&!B.spansMultipleLines(l)&&B.containsRange(s.range,l)&&(c=Math.max(0,l.startColumn-s.range.startColumn),d=Math.min(s.range.endColumn,l.endColumn)-s.range.startColumn);let u=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),h=yield this._renameInputField.getInput(s.range,s.text,c,d,u,a.token);if(typeof h=="boolean"){h&&this.editor.focus(),a.dispose();return}this.editor.focus();let f=Vc(n.provideRenameEdits(h.newName,a.token),a.token).then(m=>Ih(this,void 0,void 0,function*(){if(!(!m||!this.editor.hasModel())){if(m.rejectReason){this._notificationService.info(m.rejectReason);return}this.editor.setSelection(B.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(m,{editor:this.editor,showPreview:h.wantsPreview,label:b("label","Renaming '{0}' to '{1}'",s==null?void 0:s.text,h.newName),code:"undoredo.rename",quotableLabel:b("quotableLabel","Renaming {0} to {1}",s==null?void 0:s.text,h.newName),respectAutoSaveConfig:!0}).then(g=>{g.ariaSummary&&ar(b("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",s.text,h.newName,g.ariaSummary))}).catch(g=>{this._notificationService.error(b("rename.failedApply","Rename failed to apply edits")),this._logService.error(g)})}}),m=>{this._notificationService.error(b("rename.failed","Rename failed to compute edits")),this._logService.error(m)}).finally(()=>{a.dispose()});return this._progressService.showWhile(f,250),f})}acceptRenameInput(e){this._renameInputField.acceptInput(e)}cancelRenameInput(){this._renameInputField.cancelInput(!0)}};Ah.ID="editor.contrib.renameController";Ah=K7=x1e([Th(1,Ke),Th(2,Ri),Th(3,Kc),Th(4,vl),Th(5,Hc),Th(6,hz),Th(7,Se)],Ah);$7=class extends de{constructor(){super({id:"editor.action.rename",label:b("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:fe.and(F.writable,F.hasRenameProvider),kbOpts:{kbExpr:F.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){let r=e.get(ai),[n,o]=Array.isArray(t)&&t||[void 0,void 0];return yt.isUri(n)&&Ie.isIPosition(o)?r.openCodeEditor({resource:n},r.getActiveCodeEditor()).then(s=>{s&&(s.setPosition(o),s.invokeWithinContext(a=>(this.reportTelemetry(a,s),this.run(a,s))))},ft):super.runCommand(e,t)}run(e,t){let r=Ah.get(t);return r?r.run():Promise.resolve()}};Ue(Ah.ID,Ah,4);ee($7);G7=Fi.bindToContribution(Ah.get);We(new G7({id:"acceptRenameInput",precondition:C1,handler:i=>i.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:fe.and(F.focus,fe.not("isComposing")),primary:3}}));We(new G7({id:"acceptRenameInputWithPreview",precondition:fe.and(C1,fe.has("config.editor.rename.enablePreview")),handler:i=>i.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:fe.and(F.focus,fe.not("isComposing")),primary:1024+3}}));We(new G7({id:"cancelRenameInput",precondition:C1,handler:i=>i.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:F.focus,primary:9,secondary:[1033]}}));$n("_executeDocumentRenameProvider",function(i,e,t,...r){let[n]=r;Bt(typeof n=="string");let{renameProvider:o}=i.get(Se);return C1e(o,e,t,n)});$n("_executePrepareRename",function(i,e,t){return Ih(this,void 0,void 0,function*(){let{renameProvider:r}=i.get(Se),o=yield new S1(e,t,r).resolveRenameLocation(st.None);if(o!=null&&o.rejectReason)throw new Error(o.rejectReason);return o})});Jr.as(af.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:b("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})});function S1e(i){for(let e=0,t=i.length;e{pre();Tn()});function k1(i){return i&&!!i.data}function J7(i){return i&&Array.isArray(i.edits)}function eD(i,e){return i.has(e)}function T1e(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:[]}function tD(i,e,t,r,n){return Gd(this,void 0,void 0,function*(){let o=T1e(i,e),s=yield Promise.all(o.map(a=>Gd(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?r:null,n)}catch(d){c=d,l=null}return(!l||!k1(l)&&!J7(l))&&(l=null),new Q7(a,l,c)})));for(let a of s){if(a.error)throw a.error;if(a.tokens)return a}return s.length>0?s[0]:null})}function I1e(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:null}function HY(i,e){return i.has(e)}function UY(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:[]}function NS(i,e,t,r){return Gd(this,void 0,void 0,function*(){let n=UY(i,e),o=yield Promise.all(n.map(s=>Gd(this,void 0,void 0,function*(){let a;try{a=yield s.provideDocumentRangeSemanticTokens(e,t,r)}catch(l){Xt(l),a=null}return(!a||!k1(a))&&(a=null),new Z7(s,a)})));for(let s of o)if(s.tokens)return s;return o.length>0?o[0]:null})}var Gd,Q7,Z7,iD=N(()=>{ki();qt();Ir();Xo();Vi();zr();BY();et();Pt();Gd=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};Q7=class{constructor(e,t,r){this.provider=e,this.tokens=t,this.error=r}};Z7=class{constructor(e,t){this.provider=e,this.tokens=t}};Dt.registerCommand("_provideDocumentSemanticTokensLegend",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t]=e;Bt(t instanceof yt);let r=i.get(Di).getModel(t);if(!r)return;let{documentSemanticTokensProvider:n}=i.get(Se),o=I1e(n,r);return o?o[0].getLegend():i.get(_i).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));Dt.registerCommand("_provideDocumentSemanticTokens",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t]=e;Bt(t instanceof yt);let r=i.get(Di).getModel(t);if(!r)return;let{documentSemanticTokensProvider:n}=i.get(Se);if(!eD(n,r))return i.get(_i).executeCommand("_provideDocumentRangeSemanticTokens",t,r.getFullModelRange());let o=yield tD(n,r,null,null,st.None);if(!o)return;let{provider:s,tokens:a}=o;if(!a||!k1(a))return;let l=X7({id:0,type:"full",data:a.data});return a.resultId&&s.releaseDocumentSemanticTokens(a.resultId),l}));Dt.registerCommand("_provideDocumentRangeSemanticTokensLegend",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(t instanceof yt);let n=i.get(Di).getModel(t);if(!n)return;let{documentRangeSemanticTokensProvider:o}=i.get(Se),s=UY(o,n);if(s.length===0)return;if(s.length===1)return s[0].getLegend();if(!r||!B.isIRange(r))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),s[0].getLegend();let a=yield NS(o,n,B.lift(r),st.None);if(a)return a.provider.getLegend()}));Dt.registerCommand("_provideDocumentRangeSemanticTokens",(i,...e)=>Gd(void 0,void 0,void 0,function*(){let[t,r]=e;Bt(t instanceof yt),Bt(B.isIRange(r));let n=i.get(Di).getModel(t);if(!n)return;let{documentRangeSemanticTokensProvider:o}=i.get(Se),s=yield NS(o,n,B.lift(r),st.None);if(!(!s||!s.tokens))return X7({id:0,type:"full",data:s.tokens.data})}))});function T1(i,e,t){var r;let n=(r=t.getValue(E1,{overrideIdentifier:i.getLanguageId(),resource:i.uri}))===null||r===void 0?void 0:r.enabled;return typeof n=="boolean"?n:e.getColorTheme().semanticHighlighting}var E1,rD=N(()=>{E1="editor.semanticHighlighting"});var jY,Ja,Yd,nD,I1,oD,sD=N(()=>{ke();qt();Xo();Sr();jt();ki();rn();fz();iD();Ds();al();Pt();pz();j_();rD();jY=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Ja=function(i,e){return function(t,r){e(t,r,i)}},nD=class extends ce{constructor(e,t,r,n,o,s){super(),this._watchers=Object.create(null);let a=d=>{this._watchers[d.uri.toString()]=new I1(d,e,r,o,s)},l=(d,u)=>{u.dispose(),delete this._watchers[d.uri.toString()]},c=()=>{for(let d of t.getModels()){let u=this._watchers[d.uri.toString()];T1(d,r,n)?u||a(d):u&&l(d,u)}};this._register(t.onModelAdded(d=>{T1(d,r,n)&&a(d)})),this._register(t.onModelRemoved(d=>{let u=this._watchers[d.uri.toString()];u&&l(d,u)})),this._register(n.onDidChangeConfiguration(d=>{d.affectsConfiguration(E1)&&c()})),this._register(r.onDidColorThemeChange(c))}dispose(){for(let e of Object.values(this._watchers))e.dispose();super.dispose()}};nD=jY([Ja(0,dg),Ja(1,Di),Ja(2,br),Ja(3,Mt),Ja(4,lr),Ja(5,Se)],nD);I1=Yd=class extends ce{constructor(e,t,r,n,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=n.for(this._provider,"DocumentSemanticTokens",{min:Yd.REQUEST_MIN_DELAY,max:Yd.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new ui(()=>this._fetchDocumentSemanticTokensNow(),Yd.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeAttached(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));let s=()=>{ji(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(let a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>{if(this._currentDocumentRequestCancellationTokenSource){this._providersChangedDuringRequest=!0;return}this._fetchDocumentSemanticTokens.schedule(0)}))};s(),this._register(this._provider.onDidChange(()=>{s(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(r.onDidColorThemeChange(a=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),ji(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[],this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!eD(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;let e=new zi,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,r=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,n=tD(this._provider,this._model,t,r,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;let o=[],s=this._model.onDidChangeContent(l=>{o.push(l)}),a=new mr(!1);n.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,o);else{let{provider:c,tokens:d}=l,u=this._semanticTokensStylingService.getStyling(c);this._setDocumentSemanticTokens(c,d||null,u,o)}},l=>{l&&(Yo(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||ft(l),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),(o.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,r,n,o){o=Math.min(o,r.length-n,e.length-t);for(let s=0;s{(n.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!r){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),s();return}if(J7(t)){if(!o){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:o.data};else{let a=0;for(let h of t.edits)a+=(h.data?h.data.length:0)-h.deleteCount;let l=o.data,c=new Uint32Array(l.length+a),d=l.length,u=c.length;for(let h=t.edits.length-1;h>=0;h--){let f=t.edits[h];if(f.start>l.length){r.warnInvalidEditStart(o.resultId,t.resultId,h,f.start,l.length),this._model.tokenization.setSemanticTokens(null,!0);return}let m=d-(f.start+f.deleteCount);m>0&&(Yd._copy(l,d-m,c,u-m,m),u-=m),f.data&&(Yd._copy(f.data,0,c,u-f.data.length,f.data.length),u-=f.data.length),d=f.start}d>0&&Yd._copy(l,0,c,0,d),t={resultId:t.resultId,data:c}}}if(k1(t)){this._currentDocumentResponse=new oD(e,t.resultId,t.data);let a=ny(t,r,this._model.getLanguageId());if(n.length>0)for(let l of n)for(let c of a)for(let d of l.changes)c.applyEdit(d.range,d.text);this._model.tokenization.setSemanticTokens(a,!0)}else this._model.tokenization.setSemanticTokens(null,!0);s()}};I1.REQUEST_MIN_DELAY=300;I1.REQUEST_MAX_DELAY=2e3;I1=Yd=jY([Ja(1,dg),Ja(2,br),Ja(3,lr),Ja(4,Se)],I1);oD=class{constructor(e,t,r){this.provider=e,this.resultId=t,this.data=r}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}};Yc(nD)});var A1e,A1,L1,aD=N(()=>{jt();ke();lt();iD();rD();fz();Sr();rn();Ds();al();Pt();pz();A1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},A1=function(i,e){return function(t,r){e(t,r,i)}},L1=class extends ce{constructor(e,t,r,n,o,s){super(),this._semanticTokensStylingService=t,this._themeService=r,this._configurationService=n,this._editor=e,this._provider=s.documentRangeSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new ui(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];let a=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{a()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),a()})),this._register(this._editor.onDidChangeModelContent(l=>{this._cancelAll(),a()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),a()})),this._register(this._configurationService.onDidChangeConfiguration(l=>{l.affectsConfiguration(E1)&&(this._cancelAll(),a())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),a()})),a()}_cancelAll(){for(let e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,r=this._outstandingRequests.length;tthis._requestRange(e,r)))}_requestRange(e,t){let r=e.getVersionId(),n=Jt(s=>Promise.resolve(NS(this._provider,e,t,s))),o=new mr(!1);return n.then(s=>{if(this._debounceInformation.update(e,o.elapsed()),!s||!s.tokens||e.isDisposed()||e.getVersionId()!==r)return;let{provider:a,tokens:l}=s,c=this._semanticTokensStylingService.getStyling(a);e.tokenization.setPartialSemanticTokens(t,ny(l,c,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(n),()=>this._removeOutstandingRequest(n)),n}};L1.ID="editor.contrib.viewportSemanticTokens";L1=A1e([A1(1,dg),A1(2,br),A1(3,Mt),A1(4,lr),A1(5,Se)],L1);Ue(L1.ID,L1,1)});var RS,WY=N(()=>{Ni();et();RS=class{constructor(e=!0){this.selectSubwords=e}provideSelectionRanges(e,t){let r=[];for(let n of t){let o=[];r.push(o),this.selectSubwords&&this._addInWordRanges(o,e,n),this._addWordRanges(o,e,n),this._addWhitespaceLine(o,e,n),o.push({range:e.getFullModelRange()})}return r}_addInWordRanges(e,t,r){let n=t.getWordAtPosition(r);if(!n)return;let{word:o,startColumn:s}=n,a=r.column-s,l=a,c=a,d=0;for(;l>=0;l--){let u=o.charCodeAt(l);if(l!==a&&(u===95||u===45))break;if(B3(u)&&H3(d))break;d=u}for(l+=1;c0&&t.getLineFirstNonWhitespaceColumn(r.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(r.lineNumber)===0&&e.push({range:new B(r.lineNumber,1,r.lineNumber,t.getLineMaxColumn(r.lineNumber))})}}});function VY(i,e,t,r,n){return OS(this,void 0,void 0,function*(){let o=i.all(e).concat(new RS(r.selectSubwords));o.length===1&&o.unshift(new Nd);let s=[],a=[];for(let l of o)s.push(Promise.resolve(l.provideSelectionRanges(e,t,n)).then(c=>{if(Ki(c)&&c.length===t.length)for(let d=0;d{if(l.length===0)return[];l.sort((h,f)=>Ie.isBefore(h.getStartPosition(),f.getStartPosition())?1:Ie.isBefore(f.getStartPosition(),h.getStartPosition())||Ie.isBefore(h.getEndPosition(),f.getEndPosition())?-1:Ie.isBefore(f.getEndPosition(),h.getEndPosition())?1:0);let c=[],d;for(let h of l)(!d||B.containsRange(h,d)&&!B.equalsRange(h,d))&&(c.push(h),d=h);if(!r.selectLeadingAndTrailingWhitespace)return c;let u=[c[0]];for(let h=1;h{mi();ki();qt();lt();di();et();Ar();ti();oL();WY();He();Ji();Vi();Pt();ra();zr();Ir();L1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},D1e=function(i,e){return function(t,r){e(t,r,i)}},OS=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},cD=class i{constructor(e,t){this.index=e,this.ranges=t}mov(e){let t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;let r=new i(t,this.ranges);return r.ranges[t].equalsRange(this.ranges[this.index])?r.mov(e):r}},Yp=lD=class{static get(e){return e.getContribution(lD.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){var e;(e=this._selectionListener)===null||e===void 0||e.dispose()}run(e){return OS(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;let t=this._editor.getSelections(),r=this._editor.getModel();if(this._state||(yield VY(this._languageFeaturesService.selectionRangeProvider,r,t.map(o=>o.getPosition()),this._editor.getOption(111),st.None).then(o=>{var s;if(!(!Ki(o)||o.length!==t.length)&&!(!this._editor.hasModel()||!ks(this._editor.getSelections(),t,(a,l)=>a.equalsSelection(l)))){for(let a=0;al.containsPosition(t[a].getStartPosition())&&l.containsPosition(t[a].getEndPosition())),o[a].unshift(t[a]);this._state=o.map(a=>new cD(0,a)),(s=this._selectionListener)===null||s===void 0||s.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var a;this._ignoreSelection||((a=this._selectionListener)===null||a===void 0||a.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(o=>o.mov(e));let n=this._state.map(o=>Qe.fromPositions(o.ranges[o.index].getStartPosition(),o.ranges[o.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(n)}finally{this._ignoreSelection=!1}})}};Yp.ID="editor.contrib.smartSelectController";Yp=lD=L1e([D1e(1,Se)],Yp);PS=class extends de{constructor(e,t){super(t),this._forward=e}run(e,t){return OS(this,void 0,void 0,function*(){let r=Yp.get(t);r&&(yield r.run(this._forward))})}},dD=class extends PS{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:b("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"1_basic",title:b({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}};Dt.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");uD=class extends PS{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:b("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:F.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:Me.MenubarSelectionMenu,group:"1_basic",title:b({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}};Ue(Yp.ID,Yp,4);ee(dD);ee(uD);Dt.registerCommand("_executeSelectionRangeProvider",function(i,...e){return OS(this,void 0,void 0,function*(){let[t,r]=e;Bt(yt.isUri(t));let n=i.get(Se).selectionRangeProvider,o=yield i.get(Cr).createModelReference(t);try{return VY(n,o.object.textEditorModel,r,{selectLeadingAndTrailingWhitespace:!0,selectSubwords:!0},st.None)}finally{o.dispose()}})})});var qY,KY=N(()=>{He();qY=Object.freeze({View:{value:b("view","View"),original:"View"},Help:{value:b("help","Help"),original:"Help"},Test:{value:b("test","Test"),original:"Test"},File:{value:b("file","File"),original:"File"},Preferences:{value:b("preferences","Preferences"),original:"Preferences"},Developer:{value:b({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer"),original:"Developer"}})});var $Y=N(()=>{});var GY=N(()=>{$Y()});var M1e,D1,YY,XY,FS,fD,pD,QY=N(()=>{Ht();ck();ke();An();GY();ene();Ap();di();zP();$F();GF();hb();nA();eA();M1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},D1=class{constructor(e,t,r,n=null){this.startLineNumbers=e,this.endLineNumbers=t,this.lastLineRelativePosition=r,this.showEndForLine=n}},YY=xf("stickyScrollViewLayer",{createHTML:i=>i}),XY="data-sticky-line-index",FS=class extends ce{constructor(e){super(),this._editor=e,this._foldingIconStore=new le,this._rootDomNode=document.createElement("div"),this._lineNumbersDomNode=document.createElement("div"),this._linesDomNodeScrollable=document.createElement("div"),this._linesDomNode=document.createElement("div"),this._lineHeight=this._editor.getOption(65),this._stickyLines=[],this._lineNumbers=[],this._lastLineRelativePosition=0,this._minContentWidthInPx=0,this._isOnGlyphMargin=!1,this._lineNumbersDomNode.className="sticky-widget-line-numbers",this._lineNumbersDomNode.setAttribute("role","none"),this._linesDomNode.className="sticky-widget-lines",this._linesDomNode.setAttribute("role","list"),this._linesDomNodeScrollable.className="sticky-widget-lines-scrollable",this._linesDomNodeScrollable.appendChild(this._linesDomNode),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof Wo),this._rootDomNode.appendChild(this._lineNumbersDomNode),this._rootDomNode.appendChild(this._linesDomNodeScrollable);let t=()=>{this._linesDomNode.style.left=this._editor.getOption(113).scrollWithEditor?`-${this._editor.getScrollLeft()}px`:"0px"};this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(113)&&t(),r.hasChanged(65)&&(this._lineHeight=this._editor.getOption(65))})),this._register(this._editor.onDidScrollChange(r=>{r.scrollLeftChanged&&t(),r.scrollWidthChanged&&this._updateWidgetWidth()})),this._register(this._editor.onDidChangeModel(()=>{t(),this._updateWidgetWidth()})),this._register(this._foldingIconStore),t(),this._register(this._editor.onDidLayoutChange(r=>{this._updateWidgetWidth()})),this._updateWidgetWidth()}get lineNumbers(){return this._lineNumbers}get lineNumberCount(){return this._lineNumbers.length}getCurrentLines(){return this._lineNumbers}setState(e){if(this._clearStickyWidget(),!e||!this._editor._getViewModel())return;if(e.startLineNumbers.length*this._lineHeight+e.lastLineRelativePosition>0){this._lastLineRelativePosition=e.lastLineRelativePosition;let r=[...e.startLineNumbers];e.showEndForLine!==null&&(r[e.showEndForLine]=e.endLineNumbers[e.showEndForLine]),this._lineNumbers=r}else this._lastLineRelativePosition=0,this._lineNumbers=[];this._renderRootNode()}_updateWidgetWidth(){let e=this._editor.getLayoutInfo(),r=this._editor.getOption(71).side==="left"?e.contentLeft-e.minimap.minimapCanvasOuterWidth:e.contentLeft;this._lineNumbersDomNode.style.width=`${r}px`,this._linesDomNodeScrollable.style.setProperty("--vscode-editorStickyScroll-scrollableWidth",`${this._editor.getScrollWidth()-e.verticalScrollbarWidth}px`),this._rootDomNode.style.width=`${e.width-e.minimap.minimapCanvasOuterWidth-e.verticalScrollbarWidth}px`}_clearStickyWidget(){this._stickyLines=[],this._foldingIconStore.clear(),qn(this._lineNumbersDomNode),qn(this._linesDomNode),this._rootDomNode.style.display="none"}_useFoldingOpacityTransition(e){this._lineNumbersDomNode.style.setProperty("--vscode-editorStickyScroll-foldingOpacityTransition",`opacity ${e?.5:0}s`)}_setFoldingIconsVisibility(e){for(let t of this._stickyLines){let r=t.foldingIcon;r&&r.setVisible(e?!0:r.isCollapsed)}}_renderRootNode(){var e;return M1e(this,void 0,void 0,function*(){let t=yield(e=fs.get(this._editor))===null||e===void 0?void 0:e.getFoldingModel(),r=this._editor.getLayoutInfo();for(let[s,a]of this._lineNumbers.entries()){let l=this._renderChildNode(s,a,r,t);this._linesDomNode.appendChild(l.lineDomNode),this._lineNumbersDomNode.appendChild(l.lineNumberDomNode),this._stickyLines.push(l)}t&&(this._setFoldingHoverListeners(),this._useFoldingOpacityTransition(!this._isOnGlyphMargin));let n=this._lineNumbers.length*this._lineHeight+this._lastLineRelativePosition;if(n===0){this._clearStickyWidget();return}this._rootDomNode.style.display="block",this._lineNumbersDomNode.style.height=`${n}px`,this._linesDomNodeScrollable.style.height=`${n}px`,this._rootDomNode.style.height=`${n}px`,this._editor.getOption(71).side==="left"?this._rootDomNode.style.marginLeft=r.minimap.minimapCanvasOuterWidth+"px":this._rootDomNode.style.marginLeft="0px",this._updateMinContentWidth(),this._editor.layoutOverlayWidget(this)})}_setFoldingHoverListeners(){this._editor.getOption(108)==="mouseover"&&(this._foldingIconStore.add(Lt(this._lineNumbersDomNode,bi.MOUSE_ENTER,t=>{this._isOnGlyphMargin=!0,this._setFoldingIconsVisibility(!0)})),this._foldingIconStore.add(Lt(this._lineNumbersDomNode,bi.MOUSE_LEAVE,()=>{this._isOnGlyphMargin=!1,this._useFoldingOpacityTransition(!0),this._setFoldingIconsVisibility(!1)})))}_renderChildNode(e,t,r,n){let o=this._editor._getViewModel(),s=o.coordinatesConverter.convertModelPositionToViewPosition(new Ie(t,1)).lineNumber,a=o.getViewLineRenderingData(s),l=this._editor.getOption(71).side,c=this._editor.getOption(66),d;try{d=ag.filter(a.inlineDecorations,s,a.minColumn,a.maxColumn)}catch(te){d=[]}let u=new G_(!0,!0,a.content,a.continuesWithWrappedLine,a.isBasicASCII,a.containsRTL,0,a.tokens,d,a.tabSize,a.startVisibleColumn,1,1,1,500,"none",!0,!0,null),h=new i_(2e3),f=Y_(u,h),m;YY?m=YY.createHTML(h.build()):m=h.build();let g=document.createElement("span");g.className="sticky-line-content",g.classList.add(`stickyLine${t}`),g.style.lineHeight=`${this._lineHeight}px`,g.innerHTML=m;let w=document.createElement("span");w.className="sticky-line-number",w.style.lineHeight=`${this._lineHeight}px`;let _=l==="left"?r.contentLeft-r.minimap.minimapCanvasOuterWidth:r.contentLeft;w.style.width=`${_}px`;let E=document.createElement("span");c.renderType===1||c.renderType===3&&t%10===0?E.innerText=t.toString():c.renderType===2&&(E.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),E.className="sticky-line-number-inner",E.style.lineHeight=`${this._lineHeight}px`,E.style.width=`${r.lineNumbersWidth}px`,E.style.float="left",l==="left"?E.style.paddingLeft=`${r.lineNumbersLeft-r.minimap.minimapCanvasOuterWidth}px`:l==="right"&&(E.style.paddingLeft=`${r.lineNumbersLeft}px`),w.appendChild(E);let L=this._renderFoldingIconForLine(w,n,e,t);this._editor.applyFontInfo(g),this._editor.applyFontInfo(E),g.setAttribute("role","listitem"),g.setAttribute(XY,String(e)),g.tabIndex=0,w.style.lineHeight=`${this._lineHeight}px`,g.style.lineHeight=`${this._lineHeight}px`,w.style.height=`${this._lineHeight}px`,g.style.height=`${this._lineHeight}px`;let A=e===this._lineNumbers.length-1,O="0",U="1";g.style.zIndex=A?O:U,w.style.zIndex=A?O:U;let Y=`${e*this._lineHeight+this._lastLineRelativePosition+(L!=null&&L.isCollapsed?1:0)}px`,oe=`${e*this._lineHeight}px`;return g.style.top=A?Y:oe,w.style.top=A?Y:oe,new fD(t,g,w,L,f.characterMapping)}_renderFoldingIconForLine(e,t,r,n){let o=this._editor.getOption(108);if(!t||o==="never")return;let s=t.regions,a=s.findRange(n),l=s.getStartLineNumber(a);if(!(n===l))return;let d=s.isCollapsed(a),u=new pD(d,this._lineHeight);return e.append(u.domNode),u.setVisible(this._isOnGlyphMargin?!0:d||o==="always"),this._foldingIconStore.add(Lt(u.domNode,bi.CLICK,()=>{x2(t,Number.MAX_VALUE,[n]),u.isCollapsed=!d;let h=(d?this._editor.getTopForLineNumber(l):this._editor.getTopForLineNumber(s.getEndLineNumber(a)))-this._lineHeight*r+1;this._editor.setScrollTop(h)})),u}_updateMinContentWidth(){this._minContentWidthInPx=0;for(let e of this._stickyLines)e.lineDomNode.scrollWidth>this._minContentWidthInPx&&(this._minContentWidthInPx=e.lineDomNode.scrollWidth);this._minContentWidthInPx+=this._editor.getLayoutInfo().verticalScrollbarWidth}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}getMinContentWidthInPx(){return this._minContentWidthInPx}focusLineWithIndex(e){0<=e&&e0)return null;let t=this._getRenderedStickyLineFromChildDomNode(e);if(!t)return null;let r=ez(t.characterMapping,e,0);return new Ie(t.lineNumber,r)}getLineNumberFromChildDomNode(e){var t,r;return(r=(t=this._getRenderedStickyLineFromChildDomNode(e))===null||t===void 0?void 0:t.lineNumber)!==null&&r!==void 0?r:null}_getRenderedStickyLineFromChildDomNode(e){let t=this.getStickyLineIndexFromChildDomNode(e);return t===null||t<0||t>=this._stickyLines.length?null:this._stickyLines[t]}getStickyLineIndexFromChildDomNode(e){for(;e&&e!==this._rootDomNode;){let t=e.getAttribute(XY);if(t)return parseInt(t,10);e=e.parentElement}return null}},fD=class{constructor(e,t,r,n,o){this.lineNumber=e,this.lineDomNode=t,this.lineNumberDomNode=r,this.foldingIcon=n,this.characterMapping=o}},pD=class{constructor(e,t){this.isCollapsed=e,this.dimension=t,this.domNode=document.createElement("div"),this.domNode.style.width=`${t}px`,this.domNode.style.height=`${t}px`,this.domNode.className=_t.asClassName(e?cb:lb)}setVisible(e){this.domNode.style.cursor=e?"pointer":"default",this.domNode.style.opacity=e?"1":"0"}}});var N1e,mD,R1e,Xd,Xp,M1,N1,Lh,gD,R1=N(()=>{mi();ki();qt();Jh();df();di();et();Ds();Ut();hl();Xo();ke();Pt();N1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},mD=function(i,e){return function(t,r){e(t,r,i)}},R1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Xd=class{remove(){var e;(e=this.parent)===null||e===void 0||e.children.delete(this.id)}static findId(e,t){let r;typeof e=="string"?r=`${t.id}/${e}`:(r=`${t.id}/${e.name}`,t.children.get(r)!==void 0&&(r=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let n=r;for(let o=0;t.children.get(n)!==void 0;o++)n=`${r}_${o}`;return n}static empty(e){return e.children.size===0}},Xp=class extends Xd{constructor(e,t,r){super(),this.id=e,this.parent=t,this.symbol=r,this.children=new Map}},M1=class extends Xd{constructor(e,t,r,n){super(),this.id=e,this.parent=t,this.label=r,this.order=n,this.children=new Map}},N1=class i extends Xd{static create(e,t,r){let n=new zi(r),o=new i(t.uri),s=e.ordered(t),a=s.map((c,d)=>{var u;let h=Xd.findId(`provider_${d}`,o),f=new M1(h,o,(u=c.displayName)!==null&&u!==void 0?u:"Unknown Outline Provider",d);return Promise.resolve(c.provideDocumentSymbols(t,n.token)).then(m=>{for(let g of m||[])i._makeOutlineElement(g,f);return f},m=>(Xt(m),f)).then(m=>{Xd.empty(m)?m.remove():o._groups.set(h,m)})}),l=e.onDidChange(()=>{let c=e.ordered(t);ks(c,s)||n.cancel()});return Promise.all(a).then(()=>n.token.isCancellationRequested&&!r.isCancellationRequested?i.create(e,t,r):o._compact()).finally(()=>{l.dispose()})}static _makeOutlineElement(e,t){let r=Xd.findId(e,t),n=new Xp(r,t,e);if(e.children)for(let o of e.children)i._makeOutlineElement(o,n);t.children.set(n.id,n)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(let[t,r]of this._groups)r.children.size===0?this._groups.delete(t):e+=1;if(e!==1)this.children=this._groups;else{let t=kn.first(this._groups.values());for(let[,r]of t.children)r.parent=this,this.children.set(r.id,r)}return this}getTopLevelSymbols(){let e=[];for(let t of this.children.values())t instanceof Xp?e.push(t.symbol):e.push(...kn.map(t.children.values(),r=>r.symbol));return e.sort((t,r)=>B.compareRangesUsingStarts(t.range,r.range))}asListOfDocumentSymbols(){let e=this.getTopLevelSymbols(),t=[];return i._flattenDocumentSymbols(t,e,""),t.sort((r,n)=>Ie.compare(B.getStartPosition(r.range),B.getStartPosition(n.range))||Ie.compare(B.getEndPosition(n.range),B.getEndPosition(r.range)))}static _flattenDocumentSymbols(e,t,r){for(let n of t)e.push({kind:n.kind,tags:n.tags,name:n.name,detail:n.detail,containerName:n.containerName||r,range:n.range,selectionRange:n.selectionRange,children:void 0}),n.children&&i._flattenDocumentSymbols(e,n.children,n.name)}},Lh=Qr("IOutlineModelService"),gD=class{constructor(e,t,r){this._languageFeaturesService=e,this._disposables=new le,this._cache=new sa(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(r.onModelRemoved(n=>{this._cache.delete(n.id)}))}dispose(){this._disposables.dispose()}getOrCreate(e,t){return R1e(this,void 0,void 0,function*(){let r=this._languageFeaturesService.documentSymbolProvider,n=r.ordered(e),o=this._cache.get(e.id);if(!o||o.versionId!==e.getVersionId()||!ks(o.provider,n)){let a=new zi;o={versionId:e.getVersionId(),provider:n,promiseCnt:0,source:a,promise:N1.create(r,e,a.token),model:void 0},this._cache.set(e.id,o);let l=Date.now();o.promise.then(c=>{o.model=c,this._debounceInformation.update(e,Date.now()-l)}).catch(c=>{this._cache.delete(e.id)})}if(o.model)return o.model;o.promiseCnt+=1;let s=t.onCancellationRequested(()=>{--o.promiseCnt===0&&(o.source.cancel(),this._cache.delete(e.id))});try{return yield o.promise}finally{s.dispose()}})}};gD=N1e([mD(0,Se),mD(1,lr),mD(2,Di)],gD);en(Lh,gD,1)});var bc,Dh,P1,bD=N(()=>{bc=class{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}},Dh=class{constructor(e,t,r){this.range=e,this.children=t,this.parent=r}},P1=class{constructor(e,t,r,n){this.uri=e,this.version=t,this.element=r,this.outlineProviderId=n}}});var US,F1,ZY,O1,Qd,zS,BS,vD,HS,_D,yD,JY=N(()=>{ke();Pt();R1();jt();hb();sA();iA();Hr();qt();bD();Jh();US=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},F1=function(i,e){return function(t,r){e(t,r,i)}},ZY=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i.OUTLINE_MODEL="outlineModel",i.FOLDING_PROVIDER_MODEL="foldingProviderModel",i.INDENTATION_MODEL="indentationModel"})(O1||(O1={}));(function(i){i[i.VALID=0]="VALID",i[i.INVALID=1]="INVALID",i[i.CANCELED=2]="CANCELED"})(Qd||(Qd={}));zS=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._languageConfigurationService=t,this._languageFeaturesService=r,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=this._register(new Do(300)),this._updateOperation=this._register(new le);let o=new vD(r),s=new yD(this._editor,r),a=new _D(this._editor,t);switch(n){case O1.OUTLINE_MODEL:this._modelProviders.push(o),this._modelProviders.push(s),this._modelProviders.push(a);break;case O1.FOLDING_PROVIDER_MODEL:this._modelProviders.push(s),this._modelProviders.push(a);break;case O1.INDENTATION_MODEL:this._modelProviders.push(a);break}}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}update(e,t,r){return ZY(this,void 0,void 0,function*(){return this._updateOperation.clear(),this._updateOperation.add({dispose:()=>{this._cancelModelPromise(),this._updateScheduler.cancel()}}),this._cancelModelPromise(),yield this._updateScheduler.trigger(()=>ZY(this,void 0,void 0,function*(){for(let n of this._modelProviders){let{statusPromise:o,modelPromise:s}=n.computeStickyModel(e,t,r);this._modelPromise=s;let a=yield o;if(this._modelPromise!==s)return null;switch(a){case Qd.CANCELED:return this._updateOperation.clear(),null;case Qd.VALID:return n.stickyModel}}return null})).catch(n=>(ft(n),null))})}};zS=US([F1(1,Ot),F1(2,Se)],zS);BS=class{constructor(){this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,Qd.INVALID}computeStickyModel(e,t,r){if(r.isCancellationRequested||!this.isProviderValid(e))return{statusPromise:this._invalid(),modelPromise:null};let n=Jt(o=>this.createModelFromProvider(e,t,o));return{statusPromise:n.then(o=>this.isModelValid(o)?r.isCancellationRequested?Qd.CANCELED:(this._stickyModel=this.createStickyModel(e,t,r,o),Qd.VALID):this._invalid()).then(void 0,o=>(ft(o),Qd.CANCELED)),modelPromise:n}}isModelValid(e){return!0}isProviderValid(e){return!0}},vD=class extends BS{constructor(e){super(),this._languageFeaturesService=e}createModelFromProvider(e,t,r){return N1.create(this._languageFeaturesService.documentSymbolProvider,e,r)}createStickyModel(e,t,r,n){var o;let{stickyOutlineElement:s,providerID:a}=this._stickyModelFromOutlineModel(n,(o=this._stickyModel)===null||o===void 0?void 0:o.outlineProviderId);return new P1(e.uri,t,s,a)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let r;if(kn.first(e.children.values())instanceof M1){let a=kn.find(e.children.values(),l=>l.id===t);if(a)r=a.children;else{let l="",c=-1,d;for(let[u,h]of e.children.entries()){let f=this._findSumOfRangesOfGroup(h);f>c&&(d=h,c=f,l=h.id)}t=l,r=d.children}}else r=e.children;let n=[],o=Array.from(r.values()).sort((a,l)=>{let c=new bc(a.symbol.range.startLineNumber,a.symbol.range.endLineNumber),d=new bc(l.symbol.range.startLineNumber,l.symbol.range.endLineNumber);return this._comparator(c,d)});for(let a of o)n.push(this._stickyModelFromOutlineElement(a,a.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new Dh(void 0,n,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){let r=[];for(let o of e.children.values())if(o.symbol.selectionRange.startLineNumber!==o.symbol.range.endLineNumber)if(o.symbol.selectionRange.startLineNumber!==t)r.push(this._stickyModelFromOutlineElement(o,o.symbol.selectionRange.startLineNumber));else for(let s of o.children.values())r.push(this._stickyModelFromOutlineElement(s,o.symbol.selectionRange.startLineNumber));r.sort((o,s)=>this._comparator(o.range,s.range));let n=new bc(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new Dh(n,r,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(let r of e.children.values())t+=this._findSumOfRangesOfGroup(r);return e instanceof Xp?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};vD=US([F1(0,Se)],vD);HS=class extends BS{constructor(e){super(),this._foldingLimitReporter=new ub(e)}createStickyModel(e,t,r,n){let o=this._fromFoldingRegions(n);return new P1(e.uri,t,o,void 0)}isModelValid(e){return e!==null}_fromFoldingRegions(e){let t=e.length,r=[],n=new Dh(void 0,[],void 0);for(let o=0;o0}createModelFromProvider(e,t,r){let n=fs.getFoldingRangeProviders(this._languageFeaturesService,e);return new oh(e,n,()=>this.createModelFromProvider(e,t,r),this._foldingLimitReporter,void 0).compute(r)}};yD=US([F1(1,Se)],yD)});var P1e,eX,tX,wD,jS,iX=N(()=>{ke();Pt();ki();jt();mi();ei();Hr();JY();P1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},eX=function(i,e){return function(t,r){e(t,r,i)}},tX=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},wD=class{constructor(e,t,r){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=r}},jS=class extends ce{constructor(e,t,r){super(),this._languageFeaturesService=t,this._languageConfigurationService=r,this._onDidChangeStickyScroll=this._register(new Je),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._options=null,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=this._register(new le),this._updateSoon=this._register(new ui(()=>this.update(),50)),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(113)&&this.readConfiguration()})),this.readConfiguration()}readConfiguration(){this._stickyModelProvider=null,this._sessionStore.clear(),this._options=this._editor.getOption(113),this._options.enabled&&(this._stickyModelProvider=this._sessionStore.add(new zS(this._editor,this._languageConfigurationService,this._languageFeaturesService,this._options.defaultModel)),this._sessionStore.add(this._editor.onDidChangeModel(()=>{this._model=null,this._onDidChangeStickyScroll.fire(),this.update()})),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this.update())),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this.update())),this.update())}getVersionId(){var e;return(e=this._model)===null||e===void 0?void 0:e.version}update(){var e;return tX(this,void 0,void 0,function*(){(e=this._cts)===null||e===void 0||e.dispose(!0),this._cts=new zi,yield this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()})}updateStickyModel(e){return tX(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._stickyModelProvider){this._model=null;return}let t=this._editor.getModel(),r=t.getVersionId(),n=yield this._stickyModelProvider.update(t,r,e);e.isCancellationRequested||(this._model=n)})}updateIndex(e){return e===-1?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,r,n,o){if(t.children.length===0)return;let s=o,a=[];for(let d=0;dd-u)),c=this.updateIndex(pu(a,e.startLineNumber+n,(d,u)=>d-u));for(let d=l;d<=c;d++){let u=t.children[d];if(!u)return;if(u.range){let h=u.range.startLineNumber,f=u.range.endLineNumber;e.startLineNumber<=f+1&&h-1<=e.endLineNumber&&h!==s&&(s=h,r.push(new wD(h,f-1,n+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,u,r,n+1,h))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,u,r,n,o)}}getCandidateStickyLinesIntersecting(e){var t,r;if(!(!((t=this._model)===null||t===void 0)&&t.element))return[];let n=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,n,0,-1);let o=(r=this._editor._getViewModel())===null||r===void 0?void 0:r.getHiddenAreas();if(o)for(let s of o)n=n.filter(a=>!(a.startLineNumber>=s.startLineNumber&&a.endLineNumber<=s.endLineNumber+1));return n}};jS=P1e([eX(1,Se),eX(2,Ot)],jS)});var O1e,Qp,rX,xD,bs,CD=N(()=>{ke();Pt();QY();iX();Ut();yl();Ji();wt();ti();i1();et();IC();N8();di();ki();Hr();Ds();Ht();bD();J9();O1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qp=function(i,e){return function(t,r){e(t,r,i)}},rX=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bs=xD=class extends ce{constructor(e,t,r,n,o,s,a){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=r,this._instaService=n,this._contextKeyService=a,this._sessionStore=new le,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._endLineNumbers=[],this._showEndForLine=null,this._stickyScrollWidget=new FS(this._editor),this._stickyLineCandidateProvider=new jS(this._editor,r,o),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new D1([],[],0),this._readConfiguration();let l=this._stickyScrollWidget.getDomNode();this._register(this._editor.onDidChangeConfiguration(d=>{(d.hasChanged(113)||d.hasChanged(71)||d.hasChanged(65)||d.hasChanged(108))&&this._readConfiguration()})),this._register(Lt(l,bi.CONTEXT_MENU,d=>rX(this,void 0,void 0,function*(){this._onContextMenu(d)}))),this._stickyScrollFocusedContextKey=F.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=F.stickyScrollVisible.bindTo(this._contextKeyService);let c=this._register(xs(l));this._register(c.onDidBlur(d=>{this._positionRevealed===!1&&l.clientHeight===0?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()})),this._register(c.onDidFocus(d=>{this.focus()})),this._registerMouseListeners(),this._register(Lt(l,bi.MOUSE_DOWN,d=>{this._onMouseDown=!0}))}static get(e){return e.getContribution(xD.ID)}_disposeFocusStickyScrollStore(){var e;this._stickyScrollFocusedContextKey.set(!1),(e=this._focusDisposableStore)===null||e===void 0||e.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown){this._onMouseDown=!1,this._editor.focus();return}this._stickyScrollFocusedContextKey.get()!==!0&&(this._focused=!0,this._focusDisposableStore=new le,this._stickyScrollFocusedContextKey.set(!0),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}focusNext(){this._focusedStickyElementIndex0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex)}goToFocused(){let e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._reveaInEditor(e,()=>this._editor.revealPosition(e))}_revealLineInCenterIfOutsideViewport(e){this._reveaInEditor(e,()=>this._editor.revealLineInCenterIfOutsideViewport(e.lineNumber,0))}_reveaInEditor(e,t){this._focused&&this._disposeFocusStickyScrollStore(),this._positionRevealed=!0,t(),this._editor.setSelection(B.fromPositions(e)),this._editor.focus()}_registerMouseListeners(){let e=this._register(new le),t=this._register(new Qa(this._editor,{extractLineNumberFromMouseEvent:o=>{let s=this._stickyScrollWidget.getEditorPositionFromNode(o.target.element);return s?s.lineNumber:0}})),r=o=>{if(!this._editor.hasModel()||o.target.type!==12||o.target.detail!==this._stickyScrollWidget.getId())return null;let s=o.target.element;if(!s||s.innerText!==s.innerHTML)return null;let a=this._stickyScrollWidget.getEditorPositionFromNode(s);return a?{range:new B(a.lineNumber,a.column,a.lineNumber,a.column+s.innerText.length),textElement:s}:null},n=this._stickyScrollWidget.getDomNode();this._register(To(n,bi.CLICK,o=>{if(o.ctrlKey||o.altKey||o.metaKey||!o.leftButton)return;if(o.shiftKey){let a=this._stickyScrollWidget.getStickyLineIndexFromChildDomNode(o.target);if(a===null)return;let l=new Ie(this._endLineNumbers[a],1);this._revealLineInCenterIfOutsideViewport(l);return}let s=this._stickyScrollWidget.getEditorPositionFromNode(o.target);if(!s){let a=this._stickyScrollWidget.getLineNumberFromChildDomNode(o.target);if(a===null)return;s=new Ie(a,1)}this._revealPosition(s)})),this._register(To(n,bi.MOUSE_MOVE,o=>{if(o.shiftKey){let s=this._stickyScrollWidget.getStickyLineIndexFromChildDomNode(o.target);if(s===null||this._showEndForLine!==null&&this._showEndForLine===s)return;this._showEndForLine=s,this._renderStickyScroll();return}this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(Lt(n,bi.MOUSE_LEAVE,o=>{this._showEndForLine!==null&&(this._showEndForLine=null,this._renderStickyScroll())})),this._register(t.onMouseMoveOrRelevantKeyDown(([o,s])=>{let a=r(o);if(!a||!o.hasTriggerModifier||!this._editor.hasModel()){e.clear();return}let{range:l,textElement:c}=a;if(!l.equalsRange(this._stickyRangeProjectedOnEditor))this._stickyRangeProjectedOnEditor=l,e.clear();else if(c.style.textDecoration==="underline")return;let d=new zi;e.add(ri(()=>d.dispose(!0)));let u;mh(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new Ie(l.startLineNumber,l.startColumn+1),d.token).then(h=>{if(!d.token.isCancellationRequested)if(h.length!==0){this._candidateDefinitionsLength=h.length;let f=c;u!==f?(e.clear(),u=f,u.style.textDecoration="underline",e.add(ri(()=>{u.style.textDecoration="none"}))):u||(u=f,u.style.textDecoration="underline",e.add(ri(()=>{u.style.textDecoration="none"})))}else e.clear()})})),this._register(t.onCancel(()=>{e.clear()})),this._register(t.onExecute(o=>rX(this,void 0,void 0,function*(){if(o.target.type!==12||o.target.detail!==this._stickyScrollWidget.getId())return;let s=this._stickyScrollWidget.getEditorPositionFromNode(o.target.element);s&&(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:s.lineNumber,column:1})),this._instaService.invokeFunction(dS,o,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor}))})))}_onContextMenu(e){let t=new Vv(e);this._contextMenuService.showContextMenu({menuId:Me.StickyScrollContext,getAnchor:()=>t})}_readConfiguration(){let e=this._editor.getOption(113);if(e.enabled===!1){this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),this._enabled=!1;return}else e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange(r=>{r.scrollTopChanged&&(this._showEndForLine=null,this._renderStickyScroll())})),this._sessionStore.add(this._editor.onDidLayoutChange(()=>this._onDidResize())),this._sessionStore.add(this._editor.onDidChangeModelTokens(r=>this._onTokensChange(r))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll(()=>{this._showEndForLine=null,this._renderStickyScroll()})),this._enabled=!0);this._editor.getOption(66).renderType===2&&this._sessionStore.add(this._editor.onDidChangeCursorPosition(()=>{this._showEndForLine=null,this._renderStickyScroll()}))}_needsUpdate(e){let t=this._stickyScrollWidget.getCurrentLines();for(let r of t)for(let n of e.ranges)if(r>=n.fromLineNumber&&r<=n.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll()}_onDidResize(){let t=this._editor.getLayoutInfo().height/this._editor.getOption(65);this._maxStickyLines=Math.round(t*.25)}_renderStickyScroll(){let e=this._editor.getModel();if(!e||e.isTooLargeForTokenization()){this._stickyScrollWidget.setState(void 0);return}let t=this._stickyLineCandidateProvider.getVersionId();if(t===void 0||t===e.getVersionId())if(this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(this._widgetState.startLineNumbers.length!==0),!this._focused)this._stickyScrollWidget.setState(this._widgetState);else if(this._focusedStickyElementIndex===-1)this._stickyScrollWidget.setState(this._widgetState),this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1,this._focusedStickyElementIndex!==-1&&this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex);else{let r=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];this._stickyScrollWidget.setState(this._widgetState),this._stickyScrollWidget.lineNumberCount===0?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(r)||(this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumberCount-1),this._stickyScrollWidget.focusLineWithIndex(this._focusedStickyElementIndex))}}findScrollWidgetState(){let e=this._editor.getOption(65),t=Math.min(this._maxStickyLines,this._editor.getOption(113).maxLineCount),r=this._editor.getScrollTop(),n=0,o=[],s=[],a=this._editor.getVisibleRanges();if(a.length!==0){let l=new bc(a[0].startLineNumber,a[a.length-1].endLineNumber),c=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(l);for(let d of c){let u=d.startLineNumber,h=d.endLineNumber,f=d.nestingDepth;if(h-u>0){let m=(f-1)*e,g=f*e,w=this._editor.getBottomForLineNumber(u)-r,_=this._editor.getTopForLineNumber(h)-r,E=this._editor.getBottomForLineNumber(h)-r;if(m>_&&m<=E){o.push(u),s.push(h+1),n=E-g;break}else g>w&&g<=E&&(o.push(u),s.push(h+1));if(o.length===t)break}}}return this._endLineNumbers=s,new D1(o,s,n,this._showEndForLine)}dispose(){super.dispose(),this._sessionStore.dispose()}};bs.ID="store.contrib.stickyScrollController";bs=xD=O1e([Qp(1,rs),Qp(2,Se),Qp(3,Ke),Qp(4,Ot),Qp(5,lr),Qp(6,it)],bs)});var F1e,WS,YS,VS,qS,KS,$S,GS,nX=N(()=>{lt();He();KY();Ji();Sr();wt();ti();CD();F1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},WS=class extends Jo{constructor(){super({id:"editor.action.toggleStickyScroll",title:{value:b("toggleStickyScroll","Toggle Sticky Scroll"),mnemonicTitle:b({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Sticky Scroll"),original:"Toggle Sticky Scroll"},category:qY.View,toggled:{condition:fe.equals("config.editor.stickyScroll.enabled",!0),title:b("stickyScroll","Sticky Scroll"),mnemonicTitle:b({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:Me.CommandPalette},{id:Me.MenubarAppearanceMenu,group:"4_editor",order:3},{id:Me.StickyScrollContext}]})}run(e){return F1e(this,void 0,void 0,function*(){let t=e.get(Mt),r=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",r)})}},YS=100,VS=class extends oa{constructor(){super({id:"editor.action.focusStickyScroll",title:{value:b("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:b({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll"),original:"Focus Sticky Scroll"},precondition:fe.and(fe.has("config.editor.stickyScroll.enabled"),F.stickyScrollVisible),menu:[{id:Me.CommandPalette}]})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.focus()}},qS=class extends oa{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:{value:b("selectNextStickyScrollLine.title","Select next sticky scroll line"),original:"Select next sticky scroll line"},precondition:F.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:18}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.focusNext()}},KS=class extends oa{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:{value:b("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),original:"Select previous sticky scroll line"},precondition:F.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:16}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.focusPrevious()}},$S=class extends oa{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:{value:b("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),original:"Go to focused sticky scroll line"},precondition:F.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:3}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.goToFocused()}},GS=class extends oa{constructor(){super({id:"editor.action.selectEditor",title:{value:b("selectEditor.title","Select Editor"),original:"Select Editor"},precondition:F.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:YS,primary:9}})}runEditorCommand(e,t){var r;(r=bs.get(t))===null||r===void 0||r.selectEditor()}}});var SD=N(()=>{lt();nX();CD();Ji();Ue(bs.ID,bs,1);Si(WS);Si(VS);Si(KS);Si(qS);Si($S);Si(GS)});var ID,Nh,z1e,Mh,kD,ED,TD,XS,AD=N(()=>{ki();pl();Jh();ke();lt();In();et();Pt();aL();uh();rL();sL();Zm();Ut();ID=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Nh=function(i,e){return function(t,r){e(t,r,i)}},z1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},kD=class{constructor(e,t,r,n,o,s){this.range=e,this.insertText=t,this.filterText=r,this.additionalTextEdits=n,this.command=o,this.completion=s}},ED=class extends U9{constructor(e,t,r,n,o,s){super(o.disposable),this.model=e,this.line=t,this.word=r,this.completionModel=n,this._suggestMemoryService=s}canBeReused(e,t,r){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===r.startColumn&&this.word.endColumn=0&&l.resolve(st.None)}return t}};ED=ID([Nh(5,Ep)],ED);TD=class{constructor(e,t,r,n){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=r,this._suggestMemoryService=n}provideInlineCompletions(e,t,r,n){var o;return z1e(this,void 0,void 0,function*(){if(r.selectedSuggestionInfo)return;let s=this._getEditorOption(87,e);if(Ga.isAllOff(s))return;e.tokenization.tokenizeIfCheap(t.lineNumber);let a=e.tokenization.getLineTokens(t.lineNumber),l=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(Ga.valueFor(s,l)!=="inline")return;let c=e.getWordAtPosition(t),d;if(c!=null&&c.word||(d=this._getTriggerCharacterInfo(e,t)),!(c!=null&&c.word)&&!d||(c||(c=e.getWordUntilPosition(t)),c.endColumn!==t.column))return;let u,h=e.getValueInRange(new B(t.lineNumber,1,t.lineNumber,t.column));if(!d&&(!((o=this._lastResult)===null||o===void 0)&&o.canBeReused(e,t.lineNumber,c))){let f=new Rb(h,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=f,this._lastResult.acquire(),u=this._lastResult}else{let f=yield wb(this._languageFeatureService.completionProvider,e,t,new nc(void 0,void 0,d==null?void 0:d.providers),d&&{triggerKind:1,triggerCharacter:d.ch},n),m;f.needsClipboard&&(m=yield this._clipboardService.readText());let g=new Ip(f.items,t.column,new Rb(h,0),Rd.None,this._getEditorOption(116,e),this._getEditorOption(110,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},m);u=new ED(e,t.lineNumber,c,g,f,this._suggestMemoryService)}return this._lastResult=u,u})}handleItemDidShow(e,t){t.completion.resolve(st.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var r;let n=e.getValueInRange(B.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),o=new Set;for(let s of this._languageFeatureService.completionProvider.all(e))!((r=s.triggerCharacters)===null||r===void 0)&&r.includes(n)&&o.add(s);if(o.size!==0)return{providers:o,ch:n}}};TD=ID([Nh(1,Se),Nh(2,As),Nh(3,Ep)],TD);XS=Mh=class{constructor(e,t,r,n){if(++Mh._counter===1){let o=n.createInstance(TD,(s,a)=>{var l;return((l=r.listCodeEditors().find(d=>d.getModel()===a))!==null&&l!==void 0?l:e).getOption(s)});Mh._disposable=t.inlineCompletionsProvider.register("*",o)}}dispose(){var e;--Mh._counter===0&&((e=Mh._disposable)===null||e===void 0||e.dispose(),Mh._disposable=void 0)}};XS._counter=0;XS=Mh=ID([Nh(1,Se),Nh(2,ai),Nh(3,Ke)],XS);Ue("suggest.inlineCompletionsProvider",XS,0)});var oX=N(()=>{});var sX=N(()=>{oX()});var aX=N(()=>{});var lX=N(()=>{aX()});var cX=N(()=>{});var dX=N(()=>{cX()});var B1e,H1e,QS,uX=N(()=>{Ht();Mre();Z9();oF();ei();ke();is();dX();B1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},H1e=function(i,e){return function(t,r){e(t,r,i)}},QS=class extends ce{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,r={},n){var o;super(),this._link=t,this._enabled=!0,this.el=Te(e,Ae("a.monaco-link",{tabIndex:(o=t.tabIndex)!==null&&o!==void 0?o:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");let s=this._register(new x_(this.el,"click")),a=this._register(new x_(this.el,"keypress")),l=ci.chain(a.event).map(u=>new Wv(u)).filter(u=>u.keyCode===3).event,c=this._register(new x_(this.el,nF.Tap)).event;this._register(I_.addTarget(this.el));let d=ci.any(s.event,l,c);this._register(d(u=>{this.enabled&&(cu.stop(u,!0),r!=null&&r.opener?r.opener(this._link.href):n.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}};QS=B1e([H1e(3,tr)],QS)});var hX,fX,U1e,ZS,LD,pX=N(()=>{lX();Ht();ng();Fc();ke();kd();Ut();uX();Sl();An();hX=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},fX=function(i,e){return function(t,r){e(t,r,i)}},U1e=26,ZS=class extends ce{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(LD))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show(Object.assign(Object.assign({},e),{onClose:()=>{var t;this.hide(),(t=e.onClose)===null||t===void 0||t.call(e)}})),this._editor.setBanner(this.banner.element,U1e)}};ZS=hX([fX(1,Ke)],ZS);LD=class extends ce{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(to,{}),this.element=Ae("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){if(e.ariaLabel)return e.ariaLabel;if(typeof e.message=="string")return e.message}getBannerMessage(e){if(typeof e=="string"){let t=Ae("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){qn(this.element)}show(e){qn(this.element);let t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);let r=Te(this.element,Ae("div.icon-container"));r.setAttribute("aria-hidden","true"),e.icon&&r.appendChild(Ae(`div${_t.asCSSSelector(e.icon)}`));let n=Te(this.element,Ae("div.message-container"));if(n.setAttribute("aria-hidden","true"),n.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=Te(this.element,Ae("div.message-actions-container")),e.actions)for(let s of e.actions)this._register(this.instantiationService.createInstance(QS,this.messageActionsContainer,Object.assign(Object.assign({},s),{tabIndex:-1}),{}));let o=Te(this.element,Ae("div.action-container"));this.actionBar=this._register(new Ls(o)),this.actionBar.push(this._register(new Qo("banner.close","Close Banner",_t.asClassName(V_),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};LD=hX([fX(0,Ke)],LD)});function W1e(i,e){return{nonBasicASCII:e.nonBasicASCII===C_?!i:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===C_?!i:e.includeComments,includeStrings:e.includeStrings===C_?!i:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}function PD(i){return`U+${i.toString(16).padStart(4,"0")}`}function DD(i){let e=`\`${PD(i)}\``;return U3.isInvisibleCharacter(i)||(e+=` "${`${V1e(i)}`}"`),e}function V1e(i){return i===96?"`` ` ``":"`"+String.fromCodePoint(i)+"`"}function mX(i,e){return Nk.computeUnicodeHighlightReason(i,e)}function q1e(i,e){return $r(this,void 0,void 0,function*(){let t=i.getValue(ma.allowedCharacters),r;typeof t=="object"&&t?r=t:r={};for(let n of e)r[String.fromCodePoint(n)]=!0;yield i.updateValue(ma.allowedCharacters,r,2)})}function K1e(i,e){var t;return $r(this,void 0,void 0,function*(){let r=(t=i.inspect(ma.allowedLocales).user)===null||t===void 0?void 0:t.value,n;typeof r=="object"&&r?n=Object.assign({},r):n={};for(let o of e)n[o]=!0;yield i.updateValue(ma.allowedLocales,n,2)})}function $1e(i){throw new Error(`Unexpected value: ${i}`)}var zD,Zp,$r,j1e,Jp,MD,ND,RD,em,OD,FD,Zd,tm,im,z1,BD=N(()=>{jt();Zr();Es();ke();Tn();Ni();sX();lt();eg();Ur();ane();q_();es();tne();rc();ZC();pX();He();Sr();Ut();is();wl();Sl();lne();zD=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Zp=function(i,e){return function(t,r){e(t,r,i)}},$r=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},j1e=Pi("extensions-warning-message",pt.warning,b("warningIcon","Icon shown with a warning message in the extensions editor.")),Jp=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=r,this._highlighter=null,this._bannerClosed=!1,this._updateState=o=>{if(o&&o.hasMore){if(this._bannerClosed)return;let s=Math.max(o.ambiguousCharacterCount,o.nonBasicAsciiCharacterCount,o.invisibleCharacterCount),a;if(o.nonBasicAsciiCharacterCount>=s)a={message:b("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new im};else if(o.ambiguousCharacterCount>=s)a={message:b("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Zd};else if(o.invisibleCharacterCount>=s)a={message:b("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new tm};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:a.message,icon:j1e,actions:[{label:a.command.shortLabel,href:`command:${a.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(n.createInstance(ZS,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(123),this._register(r.onDidChangeTrust(o=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(o=>{o.hasChanged(123)&&(this._options=e.getOption(123),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;let e=W1e(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(r=>r===!1))return;let t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(r=>r.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(r=>r==="_os"?new Intl.NumberFormat().resolvedOptions().locale:r==="_vscode"?X9:r)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new MD(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new ND(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Jp.ID="editor.contrib.unicodeHighlighter";Jp=zD([Zp(1,kl),Zp(2,mz),Zp(3,Ke)],Jp);MD=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._options=t,this._updateState=r,this._editorWorkerService=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new ui(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);let r=[];if(!t.hasMore)for(let n of t.ranges)r.push({range:n,options:em.instance.getDecorationFromOptions(this._options)});this._decorations.set(r)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel();if(!kk(t,e))return null;let r=t.getValueInRange(e.range);return{reason:mX(r,this._options),inComment:Ek(t,e),inString:Tk(t,e)}}};MD=zD([Zp(3,kl)],MD);ND=class extends ce{constructor(e,t,r){super(),this._editor=e,this._options=t,this._updateState=r,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new ui(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._editor.getVisibleRanges(),t=[],r={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(let n of e){let o=Nk.computeUnicodeHighlights(this._model,this._options,n);for(let s of o.ranges)r.ranges.push(s);r.ambiguousCharacterCount+=r.ambiguousCharacterCount,r.invisibleCharacterCount+=r.invisibleCharacterCount,r.nonBasicAsciiCharacterCount+=r.nonBasicAsciiCharacterCount,r.hasMore=r.hasMore||o.hasMore}if(!r.hasMore)for(let n of r.ranges)t.push({range:n,options:em.instance.getDecorationFromOptions(this._options)});this._updateState(r),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel(),r=t.getValueInRange(e.range);return kk(t,e)?{reason:mX(r,this._options),inComment:Ek(t,e),inString:Tk(t,e)}:null}},RD=class{constructor(e,t,r){this._editor=e,this._languageService=t,this._openerService=r,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];let r=this._editor.getModel(),n=this._editor.getContribution(Jp.ID);if(!n)return[];let o=[],s=new Set,a=300;for(let l of t){let c=n.getDecorationInfo(l);if(!c)continue;let u=r.getValueInRange(l.range).codePointAt(0),h=DD(u),f;switch(c.reason.kind){case 0:{$v(c.reason.confusableWith)?f=b("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",h,DD(c.reason.confusableWith.codePointAt(0))):f=b("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",h,DD(c.reason.confusableWith.codePointAt(0)));break}case 1:f=b("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",h);break;case 2:f=b("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",h);break}if(s.has(f))continue;s.add(f);let m={codePoint:u,reason:c.reason,inComment:c.inComment,inString:c.inString},g=b("unicodeHighlight.adjustSettings","Adjust settings"),w=`command:${z1.ID}?${encodeURIComponent(JSON.stringify(m))}`,_=new $i("",!0).appendMarkdown(f).appendText(" ").appendLink(w,g);o.push(new ro(this,l.range,[_],!1,a++))}return o}renderHoverParts(e,t){return d8(e,t,this._editor,this._languageService,this._openerService)}};RD=zD([Zp(1,er),Zp(2,tr)],RD);em=class{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){let r=`${e}${t}`,n=this.map.get(r);return n||(n=mt.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(r,n)),n}};em.instance=new em;OD=class extends de{constructor(){super({id:Zd.ID,label:b("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.includeComments,!1,2)})}},FD=class extends de{constructor(){super({id:Zd.ID,label:b("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.includeStrings,!1,2)})}},Zd=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.ambiguousCharacters,!1,2)})}};Zd.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";tm=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.invisibleCharacters,!1,2)})}};tm.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";im=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=b("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,r){return $r(this,void 0,void 0,function*(){let n=e==null?void 0:e.get(Mt);n&&this.runAction(n)})}runAction(e){return $r(this,void 0,void 0,function*(){yield e.updateValue(ma.nonBasicASCII,!1,2)})}};im.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";z1=class i extends de{constructor(){super({id:i.ID,label:b("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,r){return $r(this,void 0,void 0,function*(){let{codePoint:n,reason:o,inString:s,inComment:a}=r,l=String.fromCodePoint(n),c=e.get(nn),d=e.get(Mt);function u(m){return U3.isInvisibleCharacter(m)?b("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",PD(m)):b("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${PD(m)} "${l}"`)}let h=[];if(o.kind===0)for(let m of o.notAmbiguousInLocales)h.push({label:b("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',m),run:()=>$r(this,void 0,void 0,function*(){K1e(d,[m])})});if(h.push({label:u(n),run:()=>q1e(d,[n])}),a){let m=new OD;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(s){let m=new FD;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}if(o.kind===0){let m=new Zd;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(o.kind===1){let m=new tm;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(o.kind===2){let m=new im;h.push({label:m.label,run:()=>$r(this,void 0,void 0,function*(){return m.runAction(d)})})}else $1e(o);let f=yield c.pick(h,{title:b("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});f&&(yield f.run())})}};z1.ID="editor.action.unicodeHighlight.showExcludeOptions";ee(Zd);ee(tm);ee(im);ee(z1);Ue(Jp.ID,Jp,1);Uo.register(RD)});function X1e(i,e,t){i.setModelProperty(e.uri,bX,t)}function Q1e(i,e){return i.getModelProperty(e.uri,bX)}var G1e,gX,Y1e,bX,B1,HD=N(()=>{ke();Lo();lt();In();He();Rk();G1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},gX=function(i,e){return function(t,r){e(t,r,i)}},Y1e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},bX="ignoreUnusualLineTerminators";B1=class extends ce{constructor(e,t,r){super(),this._editor=e,this._dialogService=t,this._codeEditorService=r,this._isPresentingDialog=!1,this._config=this._editor.getOption(124),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(124)&&(this._config=this._editor.getOption(124),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(n=>{n.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}_checkForUnusualLineTerminators(){return Y1e(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;let e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||Q1e(this._codeEditorService,e)===!0||this._editor.getOption(89))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let r;try{this._isPresentingDialog=!0,r=yield this._dialogService.confirm({title:b("unusualLineTerminators.title","Unusual Line Terminators"),message:b("unusualLineTerminators.message","Detected unusual line terminators"),detail:b("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",Dn(e.uri)),primaryButton:b({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:b("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!r.confirmed){X1e(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())})}};B1.ID="editor.contrib.unusualLineTerminatorsDetector";B1=G1e([gX(1,Ef),gX(2,ai)],B1);Ue(B1.ID,B1,1)});function _X(i,e,t,r){let n=i.ordered(e);return u_(n.map(o=>()=>Promise.resolve(o.provideDocumentHighlights(e,t,r)).then(void 0,Xt)),Ki)}function J1e(i,e,t,r){return i.has(e)?new jD(e,t,r,i):new WD(e,t,r)}var Z1e,vX,UD,t4,JS,jD,WD,VD,Rh,e4,qD,KD,$D,GD=N(()=>{Io();mi();jt();ki();qt();ke();lt();et();ti();fn();He();wt();Pt();y7();Jh();Z1e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},vX=function(i,e){return function(t,r){e(t,r,i)}},t4=new ht("hasWordHighlights",!1);JS=class{constructor(e,t,r){this._model=e,this._selection=t,this._wordSeparators=r,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=Jt(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){let r=e.getWordAtPosition(t.getPosition());return r?new B(t.startLineNumber,r.startColumn,t.startLineNumber,r.endColumn):null}isValid(e,t,r){let n=t.startLineNumber,o=t.startColumn,s=t.endColumn,a=this._getCurrentWordRange(e,t),l=!!(this._wordRange&&this._wordRange.equalsRange(a));for(let c=0,d=r.length;!l&&c=s&&(l=!0)}return l}cancel(){this.result.cancel()}},jD=class extends JS{constructor(e,t,r,n){super(e,t,r),this._providers=n}_compute(e,t,r,n){return _X(this._providers,e,t.getPosition(),n).then(o=>o||[])}},WD=class extends JS{constructor(e,t,r){super(e,t,r),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,r,n){return hf(250,n).then(()=>{if(!t.isEmpty())return[];let o=e.getWordAtPosition(t.getPosition());return!o||o.word.length>1e3?[]:e.findMatches(o.word,!0,!1,!0,r,!1).map(a=>({range:a.range,kind:Qm.Text}))})}isValid(e,t,r){let n=t.isEmpty();return this._selectionIsEmpty!==n?!1:super.isValid(e,t,r)}};$n("_executeDocumentHighlights",(i,e,t)=>{let r=i.get(Se);return _X(r.documentHighlightProvider,e,t,st.None)});VD=class{constructor(e,t,r,n){this.toUnhook=new le,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this.linkedHighlighters=r,this._hasWordHighlights=t4.bindTo(n),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(79),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(o=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(o)})),this.toUnhook.add(e.onDidChangeModelContent(o=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(o=>{let s=this.editor.getOption(79);this.occurrencesHighlight!==s&&(this.occurrencesHighlight=s,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(B.compareRangesUsingStarts)}moveNext(){let e=this._getSortedHighlights(),r=(e.findIndex(o=>o.containsPosition(this.editor.getPosition()))+1)%e.length,n=e[r];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let o=this._getWord();if(o){let s=this.editor.getModel().getLineContent(n.startLineNumber);ar(`${s}, ${r+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),r=(e.findIndex(o=>o.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,n=e[r];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(n.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(n);let o=this._getWord();if(o){let s=this.editor.getModel().getLineContent(n.startLineNumber);ar(`${s}, ${r+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){if(!this.occurrencesHighlight){this._stopAll();return}if(e.reason!==3){this._stopAll();return}this._run()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,r=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:r})}_run(){let e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber){this._stopAll();return}let t=e.startColumn,r=e.endColumn,n=this._getWord();if(!n||n.startColumn>t||n.endColumn{s===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=a||[],this._beginRenderDecorations())},ft)}}_beginRenderDecorations(){let e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;let e=[];for(let t of this.workerRequestValue)t.range&&e.push({range:t.range,options:EY(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations());for(let t of this.linkedHighlighters())(t==null?void 0:t.editor.getModel())===this.editor.getModel()&&(t._stopAll(),t.decorations.set(e),t._hasWordHighlights.set(t.hasDecorations()))}dispose(){this._stopAll(),this.toUnhook.dispose()}},Rh=UD=class extends ce{static get(e){return e.getContribution(UD.ID)}constructor(e,t,r){super(),this.wordHighlighter=null,this.linkedContributions=new Set;let n=()=>{e.hasModel()&&(this.wordHighlighter=new VD(e,r.documentHighlightProvider,()=>kn.map(this.linkedContributions,o=>o.wordHighlighter),t))};this._register(e.onDidChangeModel(o=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),n()})),n()}saveViewState(){return!!(this.wordHighlighter&&this.wordHighlighter.hasDecorations())}moveNext(){var e;(e=this.wordHighlighter)===null||e===void 0||e.moveNext()}moveBack(){var e;(e=this.wordHighlighter)===null||e===void 0||e.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};Rh.ID="editor.contrib.wordHighlighter";Rh=UD=Z1e([vX(1,it),vX(2,Se)],Rh);e4=class extends de{constructor(e,t){super(t),this._isNext=e}run(e,t){let r=Rh.get(t);r&&(this._isNext?r.moveNext():r.moveBack())}},qD=class extends e4{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:b("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:t4,kbOpts:{kbExpr:F.editorTextFocus,primary:65,weight:100}})}},KD=class extends e4{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:b("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:t4,kbOpts:{kbExpr:F.editorTextFocus,primary:1089,weight:100}})}},$D=class extends de{constructor(){super({id:"editor.action.wordHighlight.trigger",label:b("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:t4.toNegated(),kbOpts:{kbExpr:F.editorTextFocus,primary:0,weight:100}})}run(e,t,r){let n=Rh.get(t);n&&n.restoreViewState(!0)}};Ue(Rh.ID,Rh,0);ee(qD);ee(KD);ee($D)});var Ph,el,tl,YD,XD,QD,ZD,JD,eM,tM,iM,rM,nM,oM,sM,aM,lM,cM,dM,Oh,H1,U1,uM,hM,fM,pM,mM,gM,bM,i4=N(()=>{lt();Zv();eg();dre();TP();hre();di();et();Ar();ti();Hr();He();X_();wt();lz();Ph=class extends Fi{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,r){if(!t.hasModel())return;let n=Uc(t.getOption(128)),o=t.getModel(),a=t.getSelections().map(l=>{let c=new Ie(l.positionLineNumber,l.positionColumn),d=this._move(n,o,c,this._wordNavigationType);return this._moveTo(l,d,this._inSelectionMode)});if(o.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>kP.fromModelSelection(l))),a.length===1){let l=new Ie(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,r){return r?new Qe(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new Qe(t.lineNumber,t.column,t.lineNumber,t.column)}},el=class extends Ph{_move(e,t,r,n){return sf.moveWordLeft(e,t,r,n)}},tl=class extends Ph{_move(e,t,r,n){return sf.moveWordRight(e,t,r,n)}},YD=class extends el{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}},XD=class extends el{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}},QD=class extends el{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:fe.and(F.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}},ZD=class extends el{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}},JD=class extends el{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}},eM=class extends el{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:fe.and(F.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}},tM=class extends el{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},iM=class extends el{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},rM=class extends tl{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}},nM=class extends tl{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:fe.and(F.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}},oM=class extends tl{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}},sM=class extends tl{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}},aM=class extends tl{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:fe.and(F.textInputFocus,(e=fe.and(lg,cg))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}},lM=class extends tl{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}},cM=class extends tl{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},dM=class extends tl{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,r,n){return super._move(Uc(Jm.wordSeparators.defaultValue),t,r,n)}},Oh=class extends Fi{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,r){let n=e.get(Ot);if(!t.hasModel())return;let o=Uc(t.getOption(128)),s=t.getModel(),a=t.getSelections(),l=t.getOption(6),c=t.getOption(10),d=n.getLanguageConfiguration(s.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),h=a.map(f=>{let m=this._delete({wordSeparators:o,model:s,selection:f,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(8),autoClosingBrackets:l,autoClosingQuotes:c,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new ul(m,"")});t.pushUndoStop(),t.executeCommands(this.id,h),t.pushUndoStop()}},H1=class extends Oh{_delete(e,t){let r=sf.deleteWordLeft(e,t);return r||new B(1,1,1,1)}},U1=class extends Oh{_delete(e,t){let r=sf.deleteWordRight(e,t);if(r)return r;let n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new B(n,o,n,o)}},uM=class extends H1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:F.writable})}},hM=class extends H1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:F.writable})}},fM=class extends H1{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},pM=class extends U1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:F.writable})}},mM=class extends U1{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:F.writable})}},gM=class extends U1{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},bM=class extends de{constructor(){super({id:"deleteInsideWord",precondition:F.writable,label:b("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,r){if(!t.hasModel())return;let n=Uc(t.getOption(128)),o=t.getModel(),a=t.getSelections().map(l=>{let c=sf.deleteInsideWord(n,o,l);return new ul(c,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}};We(new YD);We(new XD);We(new QD);We(new ZD);We(new JD);We(new eM);We(new rM);We(new nM);We(new oM);We(new sM);We(new aM);We(new lM);We(new tM);We(new iM);We(new cM);We(new dM);We(new uM);We(new hM);We(new fM);We(new pM);We(new mM);We(new gM);ee(bM)});var vM,_M,r4,yM,wM,n4,xM,CM,SM=N(()=>{lt();TP();et();ti();i4();Vi();vM=class extends Oh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){let r=Om.deleteWordPartLeft(e);return r||new B(1,1,1,1)}},_M=class extends Oh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:F.writable,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){let r=Om.deleteWordPartRight(e);if(r)return r;let n=e.model.getLineCount(),o=e.model.getLineMaxColumn(n);return new B(n,o,n,o)}},r4=class extends Ph{_move(e,t,r,n){return Om.moveWordPartLeft(e,t,r)}},yM=class extends r4{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:783},weight:100}})}};Dt.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");wM=class extends r4{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}};Dt.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");n4=class extends Ph{_move(e,t,r,n){return Om.moveWordPartRight(e,t,r)}},xM=class extends n4{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},CM=class extends n4{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:F.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}};We(new vM);We(new _M);We(new yM);We(new wM);We(new xM);We(new CM)});var j1,kM=N(()=>{Es();ke();lt();M0();He();j1=class extends ce{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let e=qr.get(this.editor);if(e&&this.editor.hasModel()){let t=this.editor.getOptions().get(90);t||(this.editor.isSimpleWidget?t=new $i(b("editor.simple.readonly","Cannot edit in read-only input")):t=new $i(b("editor.readonly","Cannot edit in read-only editor"))),e.showMessage(t,this.editor.getPosition())}}};j1.ID="editor.contrib.readOnlyMessageController";Ue(j1.ID,j1,2)});var yX=N(()=>{});var wX=N(()=>{yX()});var IM=Qi(W1=>{wX();Ht();ca();ke();lt();fn();Cre();Are();es();gz();xu();var eve=W1&&W1.__decorate||function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},xX=W1&&W1.__param||function(i,e){return function(t,r){e(t,r,i)}},EM,rm=EM=class extends ce{static get(e){return e.getContribution(EM.ID)}constructor(e,t,r){super(),this._editor=e,this._languageService=r,this._widget=null,this._register(this._editor.onDidChangeModel(n=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(n=>this.stop())),this._register(_f.onDidChange(n=>this.stop())),this._register(this._editor.onKeyUp(n=>n.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new o4(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};rm.ID="editor.contrib.inspectTokens";rm=EM=eve([xX(1,oy),xX(2,er)],rm);var TM=class extends de{constructor(){super({id:"editor.action.inspectTokens",label:bz.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){let r=rm.get(t);r==null||r.launch()}};function tve(i){let e="";for(let t=0,r=i.length;tKO,tokenize:(n,o,s)=>$O(e,s),tokenizeEncoded:(n,o,s)=>GO(r,s)}}var o4=class i extends ce{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=ive(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(r=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return i._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),r=0;for(let l=t.tokens1.length-1;l>=0;l--){let c=t.tokens1[l];if(e.column-1>=c.offset){r=l;break}}let n=0;for(let l=t.tokens2.length>>>1;l>=0;l--)if(e.column-1>=t.tokens2[l<<1]){n=l;break}let o=this._model.getLineContent(e.lineNumber),s="";if(r{He();dl();ke();jr();ug();wl();rve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CX=function(i,e){return function(t,r){e(t,r,i)}},q1=V1=class{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=Jr.as(xa.Quickaccess)}provide(e){let t=new le;return t.add(e.onDidAccept(()=>{let[r]=e.selectedItems;r&&this.quickInputService.quickAccess.show(r.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(r=>{let n=this.registry.getQuickAccessProvider(r.substr(V1.PREFIX.length));n&&n.prefix&&n.prefix!==V1.PREFIX&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(r=>r.prefix!==V1.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((t,r)=>t.prefix.localeCompare(r.prefix)).flatMap(t=>this.createPicks(t))}createPicks(e){return e.helpEntries.map(t=>{let r=t.prefix||e.prefix,n=r||"\u2026";return{prefix:r,label:n,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:b("helpPickAriaLabel","{0}, {1}",n,t.description),description:t.description}})}};q1.PREFIX="?";q1=V1=rve([CX(0,nn),CX(1,Kt)],q1)});var AM=N(()=>{dl();ug();xu();SX();Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:q1,prefix:"",helpEntries:[{description:vz.helpQuickAccessActionLabel}]})});var nm,LM=N(()=>{H9();ke();_k();qc();zO();rn();Io();nm=class{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var r;let n=new le;e.canAcceptInBackground=!!(!((r=this.options)===null||r===void 0)&&r.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let o=n.add(new Wi);return o.value=this.doProvide(e,t),n.add(this.onDidActiveTextEditorControlChange(()=>{o.value=void 0,o.value=this.doProvide(e,t)})),n}doProvide(e,t){var r;let n=new le,o=this.activeTextEditorControl;if(o&&this.canProvideWithTextEditor(o)){let s={editor:o},a=K_(o);if(a){let l=(r=o.saveViewState())!==null&&r!==void 0?r:void 0;n.add(a.onDidChangeCursorPosition(()=>{var c;l=(c=o.saveViewState())!==null&&c!==void 0?c:void 0})),s.restoreViewState=()=>{l&&o===this.activeTextEditorControl&&o.restoreViewState(l)},n.add(Ov(t.onCancellationRequested)(()=>{var c;return(c=s.restoreViewState)===null||c===void 0?void 0:c.call(s)}))}n.add(ri(()=>this.clearDecorations(o))),n.add(this.provideWithTextEditor(s,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();let r=e.getModel();r&&"getLineContent"in r&&uu(`${r.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return OF(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(r=>{let n=[];this.rangeHighlightDecorationId&&(n.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),n.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);let o=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:Ei(y_),position:Gn.Full}}}],[s,a]=r.deltaDecorations(n,o);this.rangeHighlightDecorationId={rangeHighlightId:s,overviewRulerDecorationId:a}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(r=>{r.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}});var K1,kX=N(()=>{ke();_k();LM();He();K1=class i extends nm{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){let t=b("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,ce.None}provideWithTextEditor(e,t,r){let n=e.editor,o=new le;o.add(t.onDidAccept(l=>{let[c]=t.selectedItems;if(c){if(!this.isValidLineNumber(n,c.lineNumber))return;this.gotoLocation(e,{range:this.toRange(c.lineNumber,c.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));let s=()=>{let l=this.parsePosition(n,t.value.trim().substr(i.PREFIX.length)),c=this.getPickLabel(n,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:c}],t.ariaLabel=c,!this.isValidLineNumber(n,l.lineNumber)){this.clearDecorations(n);return}let d=this.toRange(l.lineNumber,l.column);n.revealRangeInCenter(d,0),this.addDecorations(n,d)};s(),o.add(t.onDidChangeValue(()=>s()));let a=K_(n);return a&&a.getOptions().get(66).renderType===2&&(a.updateOptions({lineNumbers:"on"}),o.add(ri(()=>a.updateOptions({lineNumbers:"relative"})))),o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let r=t.split(/,|:|#/).map(o=>parseInt(o,10)).filter(o=>!isNaN(o)),n=this.lineCount(e)+1;return{lineNumber:r[0]>0?r[0]:n+r[0],column:r[1]}}getPickLabel(e,t,r){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,r)?b("gotoLineColumnLabel","Go to line {0} and character {1}.",t,r):b("gotoLineLabel","Go to line {0}.",t);let n=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?b("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",n.lineNumber,n.column,o):b("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",n.lineNumber,n.column)}isValidLineNumber(e,t){return!t||typeof t!="number"?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,r){if(!r||typeof r!="number")return!1;let n=this.getModel(e);if(!n)return!1;let o={lineNumber:t,column:r};return n.validatePosition(o).equals(o)}lineCount(e){var t,r;return(r=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&r!==void 0?r:0}};K1.PREFIX=":"});var nve,ove,$1,G1,DM=N(()=>{kX();dl();ug();In();xu();ei();lt();ti();wl();nve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},ove=function(i,e){return function(t,r){e(t,r,i)}},$1=class extends K1{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=ci.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};$1=nve([ove(0,ai)],$1);G1=class i extends de{constructor(){super({id:i.ID,label:Pk.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(nn).quickAccess.show($1.PREFIX)}};G1.ID="editor.action.gotoLine";ee(G1);Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:$1,prefix:$1.PREFIX,helpEntries:[{description:Pk.gotoLineActionLabel,commandId:G1.ID}]})});function a4(i,e,t=0,r=0){let n=e;return n.values&&n.values.length>1?sve(i,n.values,t,r):AX(i,e,t,r)}function sve(i,e,t,r){let n=0,o=[];for(let s of e){let[a,l]=AX(i,s,t,r);if(typeof a!="number")return IX;n+=a,o.push(...l)}return[n,ave(o)]}function AX(i,e,t,r){let n=l_(e.original,e.originalLowercase,t,i,i.toLowerCase(),r,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return n?[n[0],gu(n)]:IX}function ave(i){let e=i.sort((n,o)=>n.start-o.start),t=[],r;for(let n of e)!r||!lve(r,n)?(r=n,t.push(n)):(r.start=Math.min(r.start,n.start),r.end=Math.max(r.end,n.end));return t}function lve(i,e){return!(i.end=0,s=EX(i),a,l=i.split(LX);if(l.length>1)for(let c of l){let d=EX(c),{pathNormalized:u,normalized:h,normalizedLowercase:f}=TX(c);h&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:u,normalized:h,normalizedLowercase:f,expectContiguousMatch:d}))}return{original:i,originalLowercase:e,pathNormalized:t,normalized:r,normalizedLowercase:n,values:a,containsPathSeparator:o,expectContiguousMatch:s}}function TX(i){let e;Rc?e=i.replace(/\//g,qv):e=i.replace(/\\/g,qv);let t=pP(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function MM(i){return Array.isArray(i)?s4(i.map(e=>e.original).join(LX)):s4(i.original)}var IX,uvt,LX,DX=N(()=>{pl();tP();Tn();Ni();IX=[void 0,[]];uvt=Object.freeze({score:0});LX=" "});var cve,MX,Y1,om,Ys,NM,RM,NX=N(()=>{jt();ki();Zr();An();DX();ke();Ni();et();fn();R1();LM();He();Pt();mi();cve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},MX=function(i,e){return function(t,r){e(t,r,i)}},Y1=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Ys=om=class extends nm{constructor(e,t,r=Object.create(null)){super(r),this._languageFeaturesService=e,this._outlineModelService=t,this.options=r,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,b("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),ce.None}provideWithTextEditor(e,t,r){let n=e.editor,o=this.getModel(n);return o?this._languageFeaturesService.documentSymbolProvider.has(o)?this.doProvideWithEditorSymbols(e,o,t,r):this.doProvideWithoutEditorSymbols(e,o,t,r):ce.None}doProvideWithoutEditorSymbols(e,t,r,n){let o=new le;return this.provideLabelPick(r,b("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),Y1(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,o))||n.isCancellationRequested||o.add(this.doProvideWithEditorSymbols(e,t,r,n))}),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return Y1(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let r=new f_,n=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(n.dispose(),r.complete(!0))}));return t.add(ri(()=>r.complete(!1))),r.p})}doProvideWithEditorSymbols(e,t,r,n){var o;let s=e.editor,a=new le;a.add(r.onDidAccept(u=>{let[h]=r.selectedItems;h&&h.range&&(this.gotoLocation(e,{range:h.range.selection,keyMods:r.keyMods,preserveFocus:u.inBackground}),u.inBackground||r.hide())})),a.add(r.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:r.keyMods,forceSideBySide:!0}),r.hide())}));let l=this.getDocumentSymbols(t,n),c,d=u=>Y1(this,void 0,void 0,function*(){c==null||c.dispose(!0),r.busy=!1,c=new zi(n),r.busy=!0;try{let h=s4(r.value.substr(om.PREFIX.length).trim()),f=yield this.doGetSymbolPicks(l,h,void 0,c.token);if(n.isCancellationRequested)return;if(f.length>0){if(r.items=f,u&&h.original.length===0){let m=MP(f,g=>!!(g.type!=="separator"&&g.range&&B.containsPosition(g.range.decoration,u)));m&&(r.activeItems=[m])}}else h.original.length>0?this.provideLabelPick(r,b("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(r,b("noSymbolResults","No editor symbols"))}finally{n.isCancellationRequested||(r.busy=!1)}});return a.add(r.onDidChangeValue(()=>d(void 0))),d((o=s.getSelection())===null||o===void 0?void 0:o.getPosition()),a.add(r.onDidChangeActive(()=>{let[u]=r.activeItems;u&&u.range&&(s.revealRangeInCenter(u.range.selection,0),this.addDecorations(s,u.range.decoration))})),a}doGetSymbolPicks(e,t,r,n){var o,s;return Y1(this,void 0,void 0,function*(){let a=yield e;if(n.isCancellationRequested)return[];let l=t.original.indexOf(om.SCOPE_PREFIX)===0,c=l?1:0,d,u;t.values&&t.values.length>1?(d=MM(t.values[0]),u=MM(t.values.slice(1))):d=t;let h,f=(s=(o=this.options)===null||o===void 0?void 0:o.openSideBySideDirection)===null||s===void 0?void 0:s.call(o);f&&(h=[{iconClass:f==="right"?_t.asClassName(pt.splitHorizontal):_t.asClassName(pt.splitVertical),tooltip:f==="right"?b("openToSide","Open to the Side"):b("openToBottom","Open to the Bottom")}]);let m=[];for(let _=0;_c){let Pe=!1;if(d!==t&&([Y,oe]=a4(A,Object.assign(Object.assign({},t),{values:void 0}),c,O),typeof Y=="number"&&(Pe=!0)),typeof Y!="number"&&([Y,oe]=a4(A,d,c,O),typeof Y!="number"))continue;if(!Pe&&u){if(U&&u.original.length>0&&([te,Z]=a4(U,u)),typeof te!="number")continue;typeof Y=="number"&&(Y+=te)}}let ve=E.tags&&E.tags.indexOf(1)>=0;m.push({index:_,kind:E.kind,score:Y,label:A,ariaLabel:WO(E.name,E.kind),description:U,highlights:ve?void 0:{label:oe,description:Z},range:{selection:B.collapseToStart(E.selectionRange),decoration:E.range},strikethrough:ve,buttons:h})}let g=m.sort((_,E)=>l?this.compareByKindAndScore(_,E):this.compareByScore(_,E)),w=[];if(l){let A=function(){E&&typeof _=="number"&&L>0&&(E.label=nf(RM[_]||NM,L))},_,E,L=0;for(let O of g)_!==O.kind?(A(),_=O.kind,L=1,E={type:"separator"},w.push(E)):L++,w.push(O);A()}else g.length>0&&(w=[{label:b("symbols","symbols ({0})",m.length),type:"separator"},...g]);return w})}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){let r=RM[e.kind]||NM,n=RM[t.kind]||NM,o=r.localeCompare(n);return o===0?this.compareByScore(e,t):o}getDocumentSymbols(e,t){return Y1(this,void 0,void 0,function*(){let r=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:r.asListOfDocumentSymbols()})}};Ys.PREFIX="@";Ys.SCOPE_PREFIX=":";Ys.PREFIX_BY_CATEGORY=`${om.PREFIX}${om.SCOPE_PREFIX}`;Ys=om=cve([MX(0,Se),MX(1,Lh)],Ys);NM=b("property","properties ({0})"),RM={5:b("method","methods ({0})"),11:b("function","functions ({0})"),8:b("_constructor","constructors ({0})"),12:b("variable","variables ({0})"),4:b("class","classes ({0})"),22:b("struct","structs ({0})"),23:b("event","events ({0})"),24:b("operator","operators ({0})"),10:b("interface","interfaces ({0})"),2:b("namespace","namespaces ({0})"),3:b("package","packages ({0})"),25:b("typeParameter","type parameters ({0})"),1:b("modules","modules ({0})"),6:b("property","properties ({0})"),9:b("enum","enumerations ({0})"),21:b("enumMember","enumeration members ({0})"),14:b("string","strings ({0})"),0:b("file","files ({0})"),17:b("array","arrays ({0})"),15:b("number","numbers ({0})"),16:b("boolean","booleans ({0})"),18:b("object","objects ({0})"),19:b("key","keys ({0})"),7:b("field","fields ({0})"),13:b("constant","constants ({0})")}});var dve,PM,OM,X1,FM=N(()=>{D0();Lx();NX();dl();ug();In();xu();ei();lt();ti();wl();R1();Pt();dve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},PM=function(i,e){return function(t,r){e(t,r,i)}},OM=class extends Ys{constructor(e,t,r){super(t,r),this.editorService=e,this.onDidActiveTextEditorControlChange=ci.None}get activeTextEditorControl(){var e;return(e=this.editorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}};OM=dve([PM(0,ai),PM(1,Se),PM(2,Lh)],OM);X1=class i extends de{constructor(){super({id:i.ID,label:sy.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:F.hasDocumentSymbolProvider,kbOpts:{kbExpr:F.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(nn).quickAccess.show(Ys.PREFIX,{itemActivation:xF.NONE})}};X1.ID="editor.action.quickOutline";ee(X1);Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:OM,prefix:Ys.PREFIX,helpEntries:[{description:sy.quickOutlineActionLabel,prefix:Ys.PREFIX,commandId:X1.ID},{description:sy.quickOutlineByCategoryActionLabel,prefix:Ys.PREFIX_BY_CATEGORY}]})});function zM(i,e){return e&&(i.stack||i.stacktrace)?b("stackTrace.format","{0}: {1}",PX(i),RX(i.stack)||RX(i.stacktrace)):PX(i)}function RX(i){return Array.isArray(i)?i.join(` -`):i}function PX(i){return i.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${i.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof i.code=="string"&&typeof i.errno=="number"&&typeof i.syscall=="string"?b("nodeExceptionMessage","A system error occurred ({0})",i.message):i.message||b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function BM(i=null,e=!1){if(!i)return b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(i)){let t=hn(i),r=BM(t[0],e);return t.length>1?b("error.moreErrors","{0} ({1} errors in total)",r,t.length):r}if(Bv(i))return i;if(i.detail){let t=i.detail;if(t.error)return zM(t.error,e);if(t.exception)return zM(t.exception,e)}return i.stack?zM(i,e):i.message?i.message:b("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var OX=N(()=>{mi();zr();He()});function HM(i){let e=i;return Array.isArray(e.items)}function FX(i){let e=i;return!!e.picks&&e.additionalPicks instanceof Promise}var Q1,sm,l4,zX=N(()=>{jt();ki();ke();zr();Q1=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};(function(i){i[i.NO_ACTION=0]="NO_ACTION",i[i.CLOSE_PICKER=1]="CLOSE_PICKER",i[i.REFRESH_PICKER=2]="REFRESH_PICKER",i[i.REMOVE_ITEM=3]="REMOVE_ITEM"})(sm||(sm={}));l4=class extends ce{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,r){var n;let o=new le;e.canAcceptInBackground=!!(!((n=this.options)===null||n===void 0)&&n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let s,a=o.add(new Wi),l=()=>Q1(this,void 0,void 0,function*(){let c=a.value=new le;s==null||s.dispose(!0),e.busy=!1,s=new zi(t);let d=s.token,u=e.value.substr(this.prefix.length).trim(),h=this._getPicks(u,c,d,r),f=(g,w)=>{var _;let E,L;if(HM(g)?(E=g.items,L=g.active):E=g,E.length===0){if(w)return!1;(u.length>0||e.hideInput)&&(!((_=this.options)===null||_===void 0)&&_.noResultsPick)&&(G9(this.options.noResultsPick)?E=[this.options.noResultsPick(u)]:E=[this.options.noResultsPick])}return e.items=E,L&&(e.activeItems=[L]),!0},m=g=>Q1(this,void 0,void 0,function*(){let w=!1,_=!1;yield Promise.all([(()=>Q1(this,void 0,void 0,function*(){typeof g.mergeDelay=="number"&&(yield hf(g.mergeDelay),d.isCancellationRequested)||_||(w=f(g.picks,!0))}))(),(()=>Q1(this,void 0,void 0,function*(){e.busy=!0;try{let E=yield g.additionalPicks;if(d.isCancellationRequested)return;let L,A;HM(g.picks)?(L=g.picks.items,A=g.picks.active):L=g.picks;let O,U;if(HM(E)?(O=E.items,U=E.active):O=E,O.length>0||!w){let Y;if(!A&&!U){let oe=e.activeItems[0];oe&&L.indexOf(oe)!==-1&&(Y=oe)}f({items:[...L,...O],active:A||U||Y})}}finally{d.isCancellationRequested||(e.busy=!1),_=!0}}))()])});if(h!==null)if(FX(h))yield m(h);else if(!(h instanceof Promise))f(h);else{e.busy=!0;try{let g=yield h;if(d.isCancellationRequested)return;FX(g)?yield m(g):f(g)}finally{d.isCancellationRequested||(e.busy=!1)}}});return o.add(e.onDidChangeValue(()=>l())),l(),o.add(e.onDidAccept(c=>{let[d]=e.selectedItems;typeof(d==null?void 0:d.accept)=="function"&&(c.inBackground||e.hide(),d.accept(e.keyMods,c))})),o.add(e.onDidTriggerItemButton(({button:c,item:d})=>Q1(this,void 0,void 0,function*(){var u,h;if(typeof d.trigger=="function"){let f=(h=(u=d.buttons)===null||u===void 0?void 0:u.indexOf(c))!==null&&h!==void 0?h:-1;if(f>=0){let m=d.trigger(f,e.keyMods),g=typeof m=="number"?m:yield m;if(t.isCancellationRequested)return;switch(g){case sm.NO_ACTION:break;case sm.CLOSE_PICKER:e.hide();break;case sm.REFRESH_PICKER:l();break;case sm.REMOVE_ITEM:{let w=e.items.indexOf(d);if(w!==-1){let _=e.items.slice(),E=_.splice(w,1),L=e.activeItems.filter(O=>O!==E[0]),A=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=_,L&&(e.activeItems=L),e.keepScrollPosition=A}break}}}}}))),o}}});var BX,Fh,UM,Z1,hr,am,zh,HX=N(()=>{OX();qt();pl();ke();df();He();Vi();Sr();Rk();Ut();jr();zX();wu();Bc();BX=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Fh=function(i,e){return function(t,r){e(t,r,i)}},UM=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},am=Z1=class extends l4{constructor(e,t,r,n,o,s){super(Z1.PREFIX,e),this.instantiationService=t,this.keybindingService=r,this.commandService=n,this.telemetryService=o,this.dialogService=s,this.commandsHistory=this._register(this.instantiationService.createInstance(zh)),this.options=e}_getPicks(e,t,r,n){var o,s,a,l;return UM(this,void 0,void 0,function*(){let c=yield this.getCommandPicks(r);if(r.isCancellationRequested)return[];let d=[];for(let g of c){let w=(o=Z1.WORD_FILTER(e,g.label))!==null&&o!==void 0?o:void 0,_=g.commandAlias&&(s=Z1.WORD_FILTER(e,g.commandAlias))!==null&&s!==void 0?s:void 0;w||_?(g.highlights={label:w,detail:this.options.showAlias?_:void 0},d.push(g)):e===g.commandId&&d.push(g)}let u=new Map;for(let g of d){let w=u.get(g.label);w?(g.description=g.commandId,w.description=w.commandId):u.set(g.label,g)}d.sort((g,w)=>{let _=this.commandsHistory.peek(g.commandId),E=this.commandsHistory.peek(w.commandId);if(_&&E)return _>E?-1:1;if(_)return-1;if(E)return 1;if(this.options.suggestedCommandIds){let L=this.options.suggestedCommandIds.has(g.commandId),A=this.options.suggestedCommandIds.has(w.commandId);if(L&&A)return 0;if(L)return-1;if(A)return 1}return g.label.localeCompare(w.label)});let h=[],f=!1,m=!!this.options.suggestedCommandIds;for(let g=0;gUM(this,void 0,void 0,function*(){let g=yield this.getAdditionalCommandPicks(c,d,e,r);return r.isCancellationRequested?[]:g.map(w=>this.toCommandPick(w,n))}))()}:h})}toCommandPick(e,t){if(e.type==="separator")return e;let r=this.keybindingService.lookupKeybinding(e.commandId),n=r?b("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,r.getAriaLabel()):e.label;return Object.assign(Object.assign({},e),{ariaLabel:n,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:r,accept:()=>UM(this,void 0,void 0,function*(){var o,s;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:(o=t==null?void 0:t.from)!==null&&o!==void 0?o:"quick open"});try{!((s=e.args)===null||s===void 0)&&s.length?yield this.commandService.executeCommand(e.commandId,...e.args):yield this.commandService.executeCommand(e.commandId)}catch(a){Yo(a)||this.dialogService.error(b("canNotRun","Command '{0}' resulted in an error",e.label),BM(a))}})})}};am.PREFIX=">";am.WORD_FILTER=UP(jP,qP,WP);am=Z1=BX([Fh(1,Ke),Fh(2,Kt),Fh(3,_i),Fh(4,Ln),Fh(5,Ef)],am);zh=hr=class extends ce{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.updateConfiguration(e)))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=hr.getConfiguredCommandHistoryLength(this.configurationService),hr.cache&&hr.cache.limit!==this.configuredCommandsHistoryLength&&(hr.cache.limit=this.configuredCommandsHistoryLength,hr.saveState(this.storageService)))}load(){let e=this.storageService.get(hr.PREF_KEY_CACHE,0),t;if(e)try{t=JSON.parse(e)}catch(n){}let r=hr.cache=new sa(this.configuredCommandsHistoryLength,1);if(t){let n;t.usesLRU?n=t.entries:n=t.entries.sort((o,s)=>o.value-s.value),n.forEach(o=>r.set(o.key,o.value))}hr.counter=this.storageService.getNumber(hr.PREF_KEY_COUNTER,0,hr.counter)}push(e){hr.cache&&(hr.cache.set(e,hr.counter++),hr.saveState(this.storageService))}peek(e){var t;return(t=hr.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!hr.cache)return;let t={usesLRU:!0,entries:[]};hr.cache.forEach((r,n)=>t.entries.push({key:n,value:r})),e.store(hr.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(hr.PREF_KEY_COUNTER,hr.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,r;let o=(r=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||r===void 0?void 0:r.history;return typeof o=="number"?o:hr.DEFAULT_COMMANDS_HISTORY_LENGTH}};zh.DEFAULT_COMMANDS_HISTORY_LENGTH=50;zh.PREF_KEY_CACHE="commandPalette.mru.cache";zh.PREF_KEY_COUNTER="commandPalette.mru.counter";zh.counter=1;zh=hr=BX([Fh(0,Yn),Fh(1,Mt)],zh)});var c4,UX=N(()=>{vre();HX();c4=class extends am{constructor(e,t,r,n,o,s){super(e,t,r,n,o,s)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let r of e.getSupportedActions())t.push({commandId:r.id,commandAlias:r.alias,label:GP(r.label)||r.id});return t}}});var uve,lm,jX,J1,ev,jM=N(()=>{dl();ug();xu();In();UX();Ut();jr();Vi();Bc();Rk();lt();ti();wl();uve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},lm=function(i,e){return function(t,r){e(t,r,i)}},jX=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},J1=class extends c4{get activeTextEditorControl(){var e;return(e=this.codeEditorService.getFocusedCodeEditor())!==null&&e!==void 0?e:void 0}constructor(e,t,r,n,o,s){super({showAlias:!1},e,r,n,o,s),this.codeEditorService=t}getCommandPicks(){return jX(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}hasAdditionalCommandPicks(){return!1}getAdditionalCommandPicks(){return jX(this,void 0,void 0,function*(){return[]})}};J1=uve([lm(0,Ke),lm(1,ai),lm(2,Kt),lm(3,_i),lm(4,Ln),lm(5,Ef)],J1);ev=class i extends de{constructor(){super({id:i.ID,label:Ok.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:F.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(nn).quickAccess.show(J1.PREFIX)}};ev.ID="editor.action.quickCommand";ee(ev);Jr.as(xa.Quickaccess).registerQuickAccessProvider({ctor:J1,prefix:J1.PREFIX,helpEntries:[{description:Ok.quickCommandHelp,commandId:ev.ID}]})});var hve,cm,WM,VM=N(()=>{lt();In();ML();Sr();wt();Ut();Mo();wu();hve=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},cm=function(i,e){return function(t,r){e(t,r,i)}},WM=class extends Xa{constructor(e,t,r,n,o,s,a){super(!0,e,t,r,n,o,s,a)}};WM=hve([cm(1,it),cm(2,ai),cm(3,Ri),cm(4,Ke),cm(5,Yn),cm(6,Mt)],WM);Ue(Xa.ID,WM,4)});function wve(){return import("./jsonMode-ILQOKGQC.js")}var fve,pve,mve,gve,WX,bve,tv,vve,_ve,yve,VX,qM=N(()=>{Ns();Ns();fve=Object.defineProperty,pve=Object.getOwnPropertyDescriptor,mve=Object.getOwnPropertyNames,gve=Object.prototype.hasOwnProperty,WX=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of mve(e))!gve.call(i,n)&&n!==t&&fve(i,n,{get:()=>e[n],enumerable:!(r=pve(e,n))||r.enumerable});return i},bve=(i,e,t)=>(WX(i,e,"default"),t&&WX(t,e,"default")),tv={};bve(tv,Ms);vve=class{constructor(i,e,t){xr(this,"_onDidChange",new tv.Emitter);xr(this,"_diagnosticsOptions");xr(this,"_modeConfiguration");xr(this,"_languageId");this._languageId=i,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(i){this._diagnosticsOptions=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},_ve={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},yve={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},VX=new vve("json",_ve,yve);tv.languages.json={jsonDefaults:VX};tv.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});tv.languages.onLanguage("json",()=>{wve().then(i=>i.setupMode(VX))})});function ie(i){let e=i.id;KX[e]=i,iv.languages.register(i);let t=$X.getOrCreate(e);iv.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),iv.languages.onLanguageEncountered(e,async()=>{let r=await t.load();iv.languages.setLanguageConfiguration(e,r.conf)})}var xve,Cve,Sve,kve,qX,Eve,iv,KX,KM,$X,Ge=N(()=>{Ns();xve=Object.defineProperty,Cve=Object.getOwnPropertyDescriptor,Sve=Object.getOwnPropertyNames,kve=Object.prototype.hasOwnProperty,qX=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Sve(e))!kve.call(i,n)&&n!==t&&xve(i,n,{get:()=>e[n],enumerable:!(r=Cve(e,n))||r.enumerable});return i},Eve=(i,e,t)=>(qX(i,e,"default"),t&&qX(t,e,"default")),iv={};Eve(iv,Ms);KX={},KM={},$X=class{constructor(i){xr(this,"_languageId");xr(this,"_loadingTriggered");xr(this,"_lazyLoadPromise");xr(this,"_lazyLoadPromiseResolve");xr(this,"_lazyLoadPromiseReject");this._languageId=i,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(i){return KM[i]||(KM[i]=new $X(i)),KM[i]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,KX[this._languageId].loader().then(i=>this._lazyLoadPromiseResolve(i),i=>this._lazyLoadPromiseReject(i))),this._lazyLoadPromise}}});var $M=N(()=>{Ge();ie({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>import("./elixir-I7MUXEB2.js")})});var GM=N(()=>{Ge();ie({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>import("./markdown-GNMXFE7H.js")})});var YM=N(()=>{Ge();ie({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>import("./javascript-6A7FQGGU.js")})});var XM=N(()=>{Ge();ie({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>import("./sql-5LBGPTDB.js")})});var QM=N(()=>{Ge();ie({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>import("./css-MRJBVA6L.js")})});var ZM=N(()=>{Ge();ie({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>import("./html-CMHOMJOM.js")})});var JM=N(()=>{Ge();ie({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\import("./xml-5NTT7CCO.js")})});var eN=N(()=>{Ge();ie({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>import("./dockerfile-QFITLKOJ.js")})});var nQ=Qi(()=>{});var u4=Qi((d4,oQ)=>{(function(i,e){typeof d4=="object"?oQ.exports=d4=e():typeof define=="function"&&define.amd?define([],e):i.CryptoJS=e()})(d4,function(){var i=i||function(e,t){var r;if(typeof window!="undefined"&&window.crypto&&(r=window.crypto),typeof self!="undefined"&&self.crypto&&(r=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(r=globalThis.crypto),!r&&typeof window!="undefined"&&window.msCrypto&&(r=window.msCrypto),!r&&typeof global!="undefined"&&global.crypto&&(r=global.crypto),!r&&typeof lu=="function")try{r=nQ()}catch(_){}var n=function(){if(r){if(typeof r.getRandomValues=="function")try{return r.getRandomValues(new Uint32Array(1))[0]}catch(_){}if(typeof r.randomBytes=="function")try{return r.randomBytes(4).readInt32LE()}catch(_){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function _(){}return function(E){var L;return _.prototype=E,L=new _,_.prototype=null,L}}(),s={},a=s.lib={},l=a.Base=function(){return{extend:function(_){var E=o(this);return _&&E.mixIn(_),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var _=this.extend();return _.init.apply(_,arguments),_},init:function(){},mixIn:function(_){for(var E in _)_.hasOwnProperty(E)&&(this[E]=_[E]);_.hasOwnProperty("toString")&&(this.toString=_.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=a.WordArray=l.extend({init:function(_,E){_=this.words=_||[],E!=t?this.sigBytes=E:this.sigBytes=_.length*4},toString:function(_){return(_||u).stringify(this)},concat:function(_){var E=this.words,L=_.words,A=this.sigBytes,O=_.sigBytes;if(this.clamp(),A%4)for(var U=0;U>>2]>>>24-U%4*8&255;E[A+U>>>2]|=Y<<24-(A+U)%4*8}else for(var oe=0;oe>>2]=L[oe>>>2];return this.sigBytes+=O,this},clamp:function(){var _=this.words,E=this.sigBytes;_[E>>>2]&=4294967295<<32-E%4*8,_.length=e.ceil(E/4)},clone:function(){var _=l.clone.call(this);return _.words=this.words.slice(0),_},random:function(_){for(var E=[],L=0;L<_;L+=4)E.push(n());return new c.init(E,_)}}),d=s.enc={},u=d.Hex={stringify:function(_){for(var E=_.words,L=_.sigBytes,A=[],O=0;O>>2]>>>24-O%4*8&255;A.push((U>>>4).toString(16)),A.push((U&15).toString(16))}return A.join("")},parse:function(_){for(var E=_.length,L=[],A=0;A>>3]|=parseInt(_.substr(A,2),16)<<24-A%8*4;return new c.init(L,E/2)}},h=d.Latin1={stringify:function(_){for(var E=_.words,L=_.sigBytes,A=[],O=0;O>>2]>>>24-O%4*8&255;A.push(String.fromCharCode(U))}return A.join("")},parse:function(_){for(var E=_.length,L=[],A=0;A>>2]|=(_.charCodeAt(A)&255)<<24-A%4*8;return new c.init(L,E)}},f=d.Utf8={stringify:function(_){try{return decodeURIComponent(escape(h.stringify(_)))}catch(E){throw new Error("Malformed UTF-8 data")}},parse:function(_){return h.parse(unescape(encodeURIComponent(_)))}},m=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(_){typeof _=="string"&&(_=f.parse(_)),this._data.concat(_),this._nDataBytes+=_.sigBytes},_process:function(_){var E,L=this._data,A=L.words,O=L.sigBytes,U=this.blockSize,Y=U*4,oe=O/Y;_?oe=e.ceil(oe):oe=e.max((oe|0)-this._minBufferSize,0);var te=oe*U,Z=e.min(te*4,O);if(te){for(var ve=0;ve{(function(i,e){typeof h4=="object"?sQ.exports=h4=e(u4()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(h4,function(i){return function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,s=t.algo,a=[];(function(){for(var f=0;f<64;f++)a[f]=e.abs(e.sin(f+1))*4294967296|0})();var l=s.MD5=o.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(f,m){for(var g=0;g<16;g++){var w=m+g,_=f[w];f[w]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var E=this._hash.words,L=f[m+0],A=f[m+1],O=f[m+2],U=f[m+3],Y=f[m+4],oe=f[m+5],te=f[m+6],Z=f[m+7],ve=f[m+8],Pe=f[m+9],Ee=f[m+10],Oe=f[m+11],Xe=f[m+12],dt=f[m+13],be=f[m+14],we=f[m+15],X=E[0],R=E[1],ne=E[2],me=E[3];X=c(X,R,ne,me,L,7,a[0]),me=c(me,X,R,ne,A,12,a[1]),ne=c(ne,me,X,R,O,17,a[2]),R=c(R,ne,me,X,U,22,a[3]),X=c(X,R,ne,me,Y,7,a[4]),me=c(me,X,R,ne,oe,12,a[5]),ne=c(ne,me,X,R,te,17,a[6]),R=c(R,ne,me,X,Z,22,a[7]),X=c(X,R,ne,me,ve,7,a[8]),me=c(me,X,R,ne,Pe,12,a[9]),ne=c(ne,me,X,R,Ee,17,a[10]),R=c(R,ne,me,X,Oe,22,a[11]),X=c(X,R,ne,me,Xe,7,a[12]),me=c(me,X,R,ne,dt,12,a[13]),ne=c(ne,me,X,R,be,17,a[14]),R=c(R,ne,me,X,we,22,a[15]),X=d(X,R,ne,me,A,5,a[16]),me=d(me,X,R,ne,te,9,a[17]),ne=d(ne,me,X,R,Oe,14,a[18]),R=d(R,ne,me,X,L,20,a[19]),X=d(X,R,ne,me,oe,5,a[20]),me=d(me,X,R,ne,Ee,9,a[21]),ne=d(ne,me,X,R,we,14,a[22]),R=d(R,ne,me,X,Y,20,a[23]),X=d(X,R,ne,me,Pe,5,a[24]),me=d(me,X,R,ne,be,9,a[25]),ne=d(ne,me,X,R,U,14,a[26]),R=d(R,ne,me,X,ve,20,a[27]),X=d(X,R,ne,me,dt,5,a[28]),me=d(me,X,R,ne,O,9,a[29]),ne=d(ne,me,X,R,Z,14,a[30]),R=d(R,ne,me,X,Xe,20,a[31]),X=u(X,R,ne,me,oe,4,a[32]),me=u(me,X,R,ne,ve,11,a[33]),ne=u(ne,me,X,R,Oe,16,a[34]),R=u(R,ne,me,X,be,23,a[35]),X=u(X,R,ne,me,A,4,a[36]),me=u(me,X,R,ne,Y,11,a[37]),ne=u(ne,me,X,R,Z,16,a[38]),R=u(R,ne,me,X,Ee,23,a[39]),X=u(X,R,ne,me,dt,4,a[40]),me=u(me,X,R,ne,L,11,a[41]),ne=u(ne,me,X,R,U,16,a[42]),R=u(R,ne,me,X,te,23,a[43]),X=u(X,R,ne,me,Pe,4,a[44]),me=u(me,X,R,ne,Xe,11,a[45]),ne=u(ne,me,X,R,we,16,a[46]),R=u(R,ne,me,X,O,23,a[47]),X=h(X,R,ne,me,L,6,a[48]),me=h(me,X,R,ne,Z,10,a[49]),ne=h(ne,me,X,R,be,15,a[50]),R=h(R,ne,me,X,oe,21,a[51]),X=h(X,R,ne,me,Xe,6,a[52]),me=h(me,X,R,ne,U,10,a[53]),ne=h(ne,me,X,R,Ee,15,a[54]),R=h(R,ne,me,X,A,21,a[55]),X=h(X,R,ne,me,ve,6,a[56]),me=h(me,X,R,ne,we,10,a[57]),ne=h(ne,me,X,R,te,15,a[58]),R=h(R,ne,me,X,dt,21,a[59]),X=h(X,R,ne,me,Y,6,a[60]),me=h(me,X,R,ne,Oe,10,a[61]),ne=h(ne,me,X,R,O,15,a[62]),R=h(R,ne,me,X,Pe,21,a[63]),E[0]=E[0]+X|0,E[1]=E[1]+R|0,E[2]=E[2]+ne|0,E[3]=E[3]+me|0},_doFinalize:function(){var f=this._data,m=f.words,g=this._nDataBytes*8,w=f.sigBytes*8;m[w>>>5]|=128<<24-w%32;var _=e.floor(g/4294967296),E=g;m[(w+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,m[(w+64>>>9<<4)+14]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,f.sigBytes=(m.length+1)*4,this._process();for(var L=this._hash,A=L.words,O=0;O<4;O++){var U=A[O];A[O]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360}return L},clone:function(){var f=o.clone.call(this);return f._hash=this._hash.clone(),f}});function c(f,m,g,w,_,E,L){var A=f+(m&g|~m&w)+_+L;return(A<>>32-E)+m}function d(f,m,g,w,_,E,L){var A=f+(m&w|g&~w)+_+L;return(A<>>32-E)+m}function u(f,m,g,w,_,E,L){var A=f+(m^g^w)+_+L;return(A<>>32-E)+m}function h(f,m,g,w,_,E,L){var A=f+(g^(m|~w))+_+L;return(A<>>32-E)+m}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),i.MD5})});var cQ=Qi((f4,lQ)=>{(function(i,e){typeof f4=="object"?lQ.exports=f4=e(u4()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(f4,function(i){return function(e){var t=i,r=t.lib,n=r.WordArray,o=r.Hasher,s=t.algo,a=[],l=[];(function(){function u(g){for(var w=e.sqrt(g),_=2;_<=w;_++)if(!(g%_))return!1;return!0}function h(g){return(g-(g|0))*4294967296|0}for(var f=2,m=0;m<64;)u(f)&&(m<8&&(a[m]=h(e.pow(f,1/2))),l[m]=h(e.pow(f,1/3)),m++),f++})();var c=[],d=s.SHA256=o.extend({_doReset:function(){this._hash=new n.init(a.slice(0))},_doProcessBlock:function(u,h){for(var f=this._hash.words,m=f[0],g=f[1],w=f[2],_=f[3],E=f[4],L=f[5],A=f[6],O=f[7],U=0;U<64;U++){if(U<16)c[U]=u[h+U]|0;else{var Y=c[U-15],oe=(Y<<25|Y>>>7)^(Y<<14|Y>>>18)^Y>>>3,te=c[U-2],Z=(te<<15|te>>>17)^(te<<13|te>>>19)^te>>>10;c[U]=oe+c[U-7]+Z+c[U-16]}var ve=E&L^~E&A,Pe=m&g^m&w^g&w,Ee=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),Oe=(E<<26|E>>>6)^(E<<21|E>>>11)^(E<<7|E>>>25),Xe=O+Oe+ve+l[U]+c[U],dt=Ee+Pe;O=A,A=L,L=E,E=_+Xe|0,_=w,w=g,g=m,m=Xe+dt|0}f[0]=f[0]+m|0,f[1]=f[1]+g|0,f[2]=f[2]+w|0,f[3]=f[3]+_|0,f[4]=f[4]+E|0,f[5]=f[5]+L|0,f[6]=f[6]+A|0,f[7]=f[7]+O|0},_doFinalize:function(){var u=this._data,h=u.words,f=this._nDataBytes*8,m=u.sigBytes*8;return h[m>>>5]|=128<<24-m%32,h[(m+64>>>9<<4)+14]=e.floor(f/4294967296),h[(m+64>>>9<<4)+15]=f,u.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});t.SHA256=o._createHelper(d),t.HmacSHA256=o._createHmacHelper(d)}(Math),i.SHA256})});var uQ=Qi((p4,dQ)=>{(function(i,e){typeof p4=="object"?dQ.exports=p4=e(u4()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(p4,function(i){return function(){var e=i,t=e.lib,r=t.WordArray,n=e.enc,o=n.Base64={stringify:function(a){var l=a.words,c=a.sigBytes,d=this._map;a.clamp();for(var u=[],h=0;h>>2]>>>24-h%4*8&255,m=l[h+1>>>2]>>>24-(h+1)%4*8&255,g=l[h+2>>>2]>>>24-(h+2)%4*8&255,w=f<<16|m<<8|g,_=0;_<4&&h+_*.75>>6*(3-_)&63));var E=d.charAt(64);if(E)for(;u.length%4;)u.push(E);return u.join("")},parse:function(a){var l=a.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var u=0;u>>6-h%4*2,g=f|m;d[u>>>2]|=g<<24-u%4*8,u++}return r.create(d,u)}}(),i.enc.Base64})});var VQ=Qi(T4=>{"use strict";Object.defineProperty(T4,"__esModule",{value:!0});T4.default=void 0;var Oi=(Ns(),Qh(Ms)),n_e=(Z3(),Qh(gre));function o_e(i,e){return c_e(i)||l_e(i,e)||a_e(i,e)||s_e()}function s_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a_e(i,e){if(i){if(typeof i=="string")return OQ(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return OQ(i,e)}}function OQ(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=new Array(e);t"\x80"&&(i.toUpperCase()!=i.toLowerCase()||h_e.test(i))}function E4(i,e){if(!(this instanceof E4))return new E4(i,e);this.line=i,this.ch=e}function p_e(i,e,t){i.dispatch(e,t)}function hv(i){return function(){}}var zQ,BQ;String.prototype.normalize?(zQ=function(e){return e.normalize("NFD").toLowerCase()},BQ=function(e){return e.normalize("NFD")}):(zQ=function(e){return e.toLowerCase()},BQ=function(e){return e});var jQ=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};jQ.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.post},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(e,t,r){if(typeof e=="string"){var n=function(l){return r?l.toLowerCase():l},o=this.string.substr(this.pos,e.length);if(n(o)==n(e))return t!==!1&&(this.pos+=e.length),!0}else{var s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};function vs(i){return new E4(i.lineNumber-1,i.column-1)}function Gr(i){return new Oi.Position(i.line+1,i.ch+1)}var m_e=function(){function i(e,t,r,n){HQ(this,i),this.cm=e,this.id=t,this.lineNumber=r+1,this.column=n+1,e.marks[this.id]=this}return UQ(i,[{key:"clear",value:function(){delete this.cm.marks[this.id]}},{key:"find",value:function(){return vs(this)}}]),i}();function WQ(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=!0,r=Oi.KeyCode[i.keyCode];i.key&&(r=i.key,t=!1);var n=r,o=e;switch(i.keyCode){case Oi.KeyCode.Shift:case Oi.KeyCode.Meta:case Oi.KeyCode.Alt:case Oi.KeyCode.Ctrl:return n;case Oi.KeyCode.Escape:o=!0,n="Esc";break;case Oi.KeyCode.Space:o=!0;break}return r.startsWith("Key")||r.startsWith("KEY_")?n=r[r.length-1].toLowerCase():r.startsWith("Digit")?n=r.slice(5,6):r.startsWith("Numpad")?n=r.slice(6,7):r.endsWith("Arrow")?(o=!0,n=r.substring(0,r.length-5)):(r.startsWith("US_")||r.startsWith("Bracket")||!n)&&(n=i.browserEvent.key),!o&&!i.altKey&&!i.ctrlKey&&!i.metaKey?n=i.key||i.browserEvent.key:(i.altKey&&(n="Alt-".concat(n)),i.ctrlKey&&(n="Ctrl-".concat(n)),i.metaKey&&(n="Meta-".concat(n)),i.shiftKey&&(n="Shift-".concat(n))),n.length===1&&t&&(n="'".concat(n,"'")),n}var sr=function(){function i(e){HQ(this,i),g_e.call(this),this.editor=e,this.state={keyMap:"vim"},this.marks={},this.$uid=0,this.disposables=[],this.listeners={},this.curOp={},this.attached=!1,this.statusBar=null,this.options={},this.addLocalListeners(),this.ctxInsert=this.editor.createContextKey("insertMode",!0)}return UQ(i,[{key:"attach",value:function(){i.keyMap.vim.attach(this)}},{key:"addLocalListeners",value:function(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.handleCursorChange),this.editor.onDidChangeModelContent(this.handleChange),this.editor.onKeyDown(this.handleKeyDown))}},{key:"handleReplaceMode",value:function(t,r){var n=!1,o=t,s=this.editor.getPosition(),a=new Oi.Range(s.lineNumber,s.column,s.lineNumber,s.column+1),l=!0;if(t.startsWith("'"))o=t[1];else if(o==="Enter")o=` -`;else if(o==="Backspace"){var c=this.replaceStack.pop();if(!c)return;n=!0,o=c,a=new Oi.Range(s.lineNumber,s.column,s.lineNumber,s.column-1)}else return;r.preventDefault(),r.stopPropagation(),this.replaceStack||(this.replaceStack=[]),n||this.replaceStack.push(this.editor.getModel().getValueInRange(a)),this.editor.executeEdits("vim",[{text:o,range:a,forceMoveMarkers:l}]),n&&this.editor.setPosition(a.getStartPosition())}},{key:"setOption",value:function(t,r){this.state[t]=r,t==="theme"&&Oi.editor.setTheme(r)}},{key:"getConfiguration",value:function(){var t=this.editor,r=u_e;return typeof t.getConfiguration=="function"?t.getConfiguration():("EditorOption"in Oi.editor&&(r=Oi.editor.EditorOption),{readOnly:t.getOption(r.readOnly),viewInfo:{cursorWidth:t.getOption(r.cursorWidth)},fontInfo:t.getOption(r.fontInfo)})}},{key:"getOption",value:function(t){return t==="readOnly"?this.getConfiguration().readOnly:t==="firstLineNumber"?this.firstLine()+1:t==="indentWithTabs"?!this.editor.getModel().getOptions().insertSpaces:typeof this.editor.getConfiguration=="function"?this.editor.getRawConfiguration()[t]:this.editor.getRawOptions()[t]}},{key:"dispatch",value:function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;on&&(t=n-1),this.editor.getModel().getLineContent(t+1)}},{key:"getAnchorForSelection",value:function(t){if(t.isEmpty())return t.getPosition();var r=t.getDirection();return r===Oi.SelectionDirection.LTR?t.getStartPosition():t.getEndPosition()}},{key:"getHeadForSelection",value:function(t){if(t.isEmpty())return t.getPosition();var r=t.getDirection();return r===Oi.SelectionDirection.LTR?t.getEndPosition():t.getStartPosition()}},{key:"getCursor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!t)return vs(this.editor.getPosition());var r=this.editor.getSelection(),n;return r.isEmpty()?n=r.getPosition():t==="anchor"?n=this.getAnchorForSelection(r):n=this.getHeadForSelection(r),vs(n)}},{key:"getRange",value:function(t,r){var n=Gr(t),o=Gr(r);return this.editor.getModel().getValueInRange(Oi.Range.fromPositions(n,o))}},{key:"getSelection",value:function(){var t=[],r=this.editor;return r.getSelections().map(function(n){t.push(r.getModel().getValueInRange(n))}),t.join(` -`)}},{key:"replaceRange",value:function(t,r,n){var o=Gr(r),s=n?Gr(n):o;this.editor.executeEdits("vim",[{text:t,range:Oi.Range.fromPositions(o,s)}]),this.pushUndoStop()}},{key:"pushUndoStop",value:function(){this.editor.pushUndoStop()}},{key:"setCursor",value:function(t,r){var n=t;vN(t)!=="object"&&(n={},n.line=t,n.ch=r);var o=this.editor.getModel().validatePosition(Gr(n));this.editor.setPosition(Gr(n)),this.editor.revealPosition(o)}},{key:"somethingSelected",value:function(){return!this.editor.getSelection().isEmpty()}},{key:"operation",value:function(t,r){return t()}},{key:"listSelections",value:function(){var t=this,r=this.editor.getSelections();return!r.length||this.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:r.map(function(n){var o=n.getPosition(),s=n.getStartPosition(),a=n.getEndPosition();return{anchor:t.clipPos(vs(t.getAnchorForSelection(n))),head:t.clipPos(vs(t.getHeadForSelection(n)))}})}},{key:"focus",value:function(){this.editor.focus()}},{key:"setSelections",value:function(t,r){var n=!!this.editor.getSelections().length,o=t.map(function(l,c){var d=l.anchor,u=l.head;return n?Oi.Selection.fromPositions(Gr(d),Gr(u)):Oi.Selection.fromPositions(Gr(u),Gr(d))});if(r&&o[r]&&o.push(o.splice(r,1)[0]),!!o.length){var s=o[0],a;s.getDirection()===Oi.SelectionDirection.LTR?a=s.getEndPosition():a=s.getStartPosition(),this.editor.setSelections(o),this.editor.revealPosition(a)}}},{key:"setSelection",value:function(t,r){var n=Oi.Range.fromPositions(Gr(t),Gr(r));this.editor.setSelection(n)}},{key:"getSelections",value:function(){var t=this.editor;return t.getSelections().map(function(r){return t.getModel().getValueInRange(r)})}},{key:"replaceSelections",value:function(t){var r=this.editor;r.getSelections().forEach(function(n,o){r.executeEdits("vim",[{range:n,text:t[o],forceMoveMarkers:!1}])})}},{key:"toggleOverwrite",value:function(t){t?(this.enterVimMode(),this.replaceMode=!0):(this.leaveVimMode(),this.replaceMode=!1,this.replaceStack=[])}},{key:"charCoords",value:function(t,r){return{top:t.line,left:t.ch}}},{key:"coordsChar",value:function(t,r){}},{key:"clipPos",value:function(t){var r=this.editor.getModel().validatePosition(Gr(t));return vs(r)}},{key:"setBookmark",value:function(t,r){var n=new m_e(this,this.$uid++,t.line,t.ch);return(!r||!r.insertLeft)&&(n.$insertRight=!0),this.marks[n.id]=n,n}},{key:"getScrollInfo",value:function(){var t=this.editor,r=t.getVisibleRanges(),n=o_e(r,1),o=n[0];return{left:0,top:o.startLineNumber-1,height:t.getModel().getLineCount(),clientHeight:o.endLineNumber-o.startLineNumber+1}}},{key:"triggerEditorAction",value:function(t){this.editor.trigger("vim",t)}},{key:"dispose",value:function(){this.dispatch("dispose"),this.removeOverlay(),i.keyMap.vim&&i.keyMap.vim.detach(this),this.disposables.forEach(function(t){return t.dispose()})}},{key:"getInputField",value:function(){}},{key:"getWrapperElement",value:function(){}},{key:"enterVimMode",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.ctxInsert.set(!1);var r=this.getConfiguration();this.initialCursorWidth=r.viewInfo.cursorWidth||0,this.editor.updateOptions({cursorWidth:r.fontInfo.typicalFullwidthCharacterWidth,cursorBlinking:"solid"})}},{key:"leaveVimMode",value:function(){this.ctxInsert.set(!0),this.editor.updateOptions({cursorWidth:this.initialCursorWidth||0,cursorBlinking:"blink"})}},{key:"virtualSelectionMode",value:function(){return this.inVirtualSelectionMode}},{key:"markText",value:function(){return{clear:function(){},find:function(){}}}},{key:"getUserVisibleLines",value:function(){var t=this.editor.getVisibleRanges();if(!t.length)return{top:0,bottom:0};var r={top:1/0,bottom:0};return t.reduce(function(n,o){return o.startLineNumbern.bottom&&(n.bottom=o.endLineNumber),n},r),r.top-=1,r.bottom-=1,r}},{key:"findPosV",value:function(t,r,n){var o=this.editor,s=r,a=n,l=Gr(t);if(n==="page"){var c=o.getLayoutInfo().height,d=this.getConfiguration().fontInfo.lineHeight;s=s*Math.floor(c/d),a="line"}return a==="line"&&(l.lineNumber+=s),vs(l)}},{key:"findMatchingBracket",value:function(t){var r=Gr(t),n=this.editor.getModel(),o;if(n.bracketPairs)o=n.bracketPairs.matchBracket(r);else{var s;o=(s=n.matchBracket)===null||s===void 0?void 0:s.call(n,r)}return!o||o.length!==2?{to:null}:{to:vs(o[1].getStartPosition())}}},{key:"findFirstNonWhiteSpaceCharacter",value:function(t){return this.editor.getModel().getLineFirstNonWhitespaceColumn(t+1)-1}},{key:"scrollTo",value:function(t,r){!t&&!r||t||(r<0&&(r=this.editor.getPosition().lineNumber-r),this.editor.setScrollTop(this.editor.getTopForLineNumber(r+1)))}},{key:"moveCurrentLineTo",value:function(t){var r,n=this.editor,o=n.getPosition(),s=Oi.Range.fromPositions(o,o);switch(t){case"top":n.revealRangeAtTop(s);return;case"center":n.revealRangeInCenter(s);return;case"bottom":(r=n._revealRange)===null||r===void 0||r.call(n,s,d_e.Bottom);return}}},{key:"getSearchCursor",value:function(t,r){var n=!1,o=!1;t instanceof RegExp&&!t.global&&(n=!t.ignoreCase,t=t.source,o=!0),r.ch==null&&(r.ch=Number.MAX_VALUE);var s=Gr(r),a=this,l=this.editor,c=null,d=l.getModel(),u=d.findMatches(t,!1,o,n)||[];return{getMatches:function(){return u},findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},jumpTo:function(f){if(!u||!u.length)return!1;var m=u[f];return c=m.range,a.highlightRanges([c],"currentFindMatch"),a.highlightRanges(u.map(function(g){return g.range}).filter(function(g){return!g.equalsRange(c)})),c},find:function(f){if(!u||!u.length)return!1;var m;if(f){var g=c?c.getStartPosition():s;if(m=d.findPreviousMatch(t,g,o,n),!m||!m.range.getStartPosition().isBeforeOrEqual(g))return!1}else{var w=c?d.getPositionAt(d.getOffsetAt(c.getStartPosition())+1):s;if(m=d.findNextMatch(t,w,o,n),!m||!w.isBeforeOrEqual(m.range.getStartPosition()))return!1}return c=m.range,a.highlightRanges([c],"currentFindMatch"),a.highlightRanges(u.map(function(_){return _.range}).filter(function(_){return!_.equalsRange(c)})),c},from:function(){return c&&vs(c.getStartPosition())},to:function(){return c&&vs(c.getEndPosition())},replace:function(f){c&&(l.executeEdits("vim",[{range:c,text:f,forceMoveMarkers:!0}]),c.setEndPosition(l.getPosition()),l.setPosition(c.getStartPosition()))}}}},{key:"highlightRanges",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"findMatch",n="decoration".concat(r);return this[n]=this.editor.deltaDecorations(this[n]||[],t.map(function(o){return{range:o,options:{stickiness:Oi.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,zIndex:13,className:r,showIfCollapsed:!0}}})),this[n]}},{key:"addOverlay",value:function(t,r,n){var o=t.query,s=!1,a=!1;o&&o instanceof RegExp&&!o.global&&(a=!0,s=!o.ignoreCase,o=o.source);var l=this.editor.getModel().findNextMatch(o,this.editor.getPosition(),a,s);!l||!l.range||this.highlightRanges([l.range])}},{key:"removeOverlay",value:function(){var t=this;["currentFindMatch","findMatch"].forEach(function(r){t.editor.deltaDecorations(t["decoration".concat(r)]||[],[])})}},{key:"scrollIntoView",value:function(t){t&&this.editor.revealPosition(Gr(t))}},{key:"moveH",value:function(t,r){if(r==="char"){var n=this.editor.getPosition();this.editor.setPosition(new Oi.Position(n.lineNumber,n.column+t))}}},{key:"scanForBracket",value:function(t,r,n,o){for(var s=o.bracketRegex,a=Gr(t),l=this.editor.getModel(),c=(r===-1?l.findPreviousMatch:l.findNextMatch).bind(l),d=[],u=0;;){if(u>10)return;var h=c(s.source,a,!0,!0,null,!0),f=h.matches[0];if(h===void 0)return;var m=i.matchingBrackets[f];if(m&&m.charAt(1)===">"==r>0)d.push(f);else if(d.length===0){var g=h.range.getStartPosition();return{pos:vs(g)}}else d.pop();a=l.getPositionAt(l.getOffsetAt(h.range.getStartPosition())+r),u+=1}}},{key:"indexFromPos",value:function(t){return this.editor.getModel().getOffsetAt(Gr(t))}},{key:"posFromIndex",value:function(t){return vs(this.editor.getModel().getPositionAt(t))}},{key:"indentLine",value:function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=this.editor,o;n._getViewModel?o=n._getViewModel().cursorConfig:o=n._getCursors().context.config;var s=new Oi.Position(t+1,1),a=Oi.Selection.fromPositions(s,s);n.executeCommand("vim",new n_e.ShiftCommand(a,{isUnshift:!r,tabSize:o.tabSize,indentSize:o.indentSize,insertSpaces:o.insertSpaces,useTabStops:o.useTabStops,autoIndent:o.autoIndent}))}},{key:"setStatusBar",value:function(t){this.statusBar=t}},{key:"openDialog",value:function(t,r,n){if(this.statusBar)return this.statusBar.setSec(t,r,n)}},{key:"openNotification",value:function(t){this.statusBar&&this.statusBar.showNotification(t)}},{key:"smartIndent",value:function(){this.editor.getAction("editor.action.formatSelection").run()}},{key:"moveCursorTo",value:function(t){var r=this.editor.getPosition();t==="start"?r.column=1:t==="end"&&(r.column=this.editor.getModel().getLineMaxColumn(r.lineNumber)),this.editor.setPosition(r)}},{key:"execCommand",value:function(t){switch(t){case"goLineLeft":this.moveCursorTo("start");break;case"goLineRight":this.moveCursorTo("end");break;case"indentAuto":this.smartIndent();break}}}]),i}();sr.Pos=E4;sr.signal=p_e;sr.on=hv("on");sr.off=hv("off");sr.addClass=hv("addClass");sr.rmClass=hv("rmClass");sr.defineOption=hv("defineOption");sr.keyMap={default:function(e){return function(t){return!0}}};sr.matchingBrackets={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};sr.isWordChar=f_e;sr.keyName=WQ;sr.StringStream=jQ;sr.e_stop=function(i){return i.stopPropagation?i.stopPropagation():i.cancelBubble=!0,sr.e_preventDefault(i),!1};sr.e_preventDefault=function(i){return i.preventDefault?(i.preventDefault(),i.browserEvent&&i.browserEvent.preventDefault()):i.returnValue=!1,!1};sr.commands={redo:function(e){e.editor.getModel().redo()},undo:function(e){e.editor.getModel().undo()},newlineAndIndent:function(e){e.triggerEditorAction("editor.action.insertLineAfter")}};sr.lookupKey=function i(e,t,r){typeof t=="string"&&(t=sr.keyMap[t]);var n=typeof t=="function"?t(e):t[e];if(n===!1)return"nothing";if(n==="...")return"multi";if(n!=null&&r(n))return"handled";if(t.fallthrough){if(!Array.isArray(t.fallthrough))return i(e,t.fallthrough,r);for(var o=0;o{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.default=pm.Vim=void 0;var ut=v_e(VQ());function v_e(i){return i&&i.__esModule?i:{default:i}}function I4(i){"@babel/helpers - typeof";return I4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I4(i)}var Ve=ut.default.Pos;function __e(i,e){var t=i.state.vim;if(!t||t.insertMode)return e.head;var r=t.sel.head;if(!r)return e.head;if(!(t.visualBlock&&e.head.line!=r.line))return e.from()==e.anchor&&!e.empty()&&e.head.line==r.line&&e.head.ch!=r.ch?new Ve(e.head.line,e.head.ch-1):e.head}var xn=[{keys:"",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"g",type:"keyToKey",toKeys:"gk"},{keys:"g",type:"keyToKey",toKeys:"gj"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],qQ=xn.length,KQ=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}],$Q=function(){function e(S){S.setOption("disableInput",!0),S.setOption("showCursorWhenSelecting",!1),ut.default.signal(S,"vim-mode-change",{mode:"normal"}),S.on("cursorActivity",P9),we(S),S.enterVimMode()}function t(S){S.setOption("disableInput",!1),S.off("cursorActivity",P9),S.state.vim=null,Rv&&clearTimeout(Rv),S.leaveVimMode()}function r(S,p){S.attached=!1,this==ut.default.keyMap.vim&&(S.options.$customCursor=null),(!p||p.attach!=n)&&t(S)}function n(S,p){this==ut.default.keyMap.vim&&(S.attached=!0,S.curOp&&(S.curOp.selectionChanged=!0),S.options.$customCursor=__e),(!p||p.attach!=n)&&e(S)}ut.default.defineOption("vimMode",!1,function(S,p,y){p&&S.getOption("keyMap")!="vim"?S.setOption("keyMap","vim"):!p&&y!=ut.default.Init&&/^vim/.test(S.getOption("keyMap"))&&S.setOption("keyMap","default")});function o(S,p){if(p){if(this[S])return this[S];var y=l(S);if(!y)return!1;var C=me.findKey(p,y);return typeof C=="function"&&ut.default.signal(p,"vim-keypress",y),C}}var s={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},a={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function l(S){if(S.charAt(0)=="'")return S.charAt(1);if(S==="AltGraph")return!1;var p=S.split(/-(?!$)/),y=p[p.length-1];if(p.length==1&&p[0].length==1)return!1;if(p.length==2&&p[0]=="Shift"&&y.length==1)return!1;for(var C=!1,k=0;k"):!1}var c=/[\d]/,d=[ut.default.isWordChar,function(S){return S&&!ut.default.isWordChar(S)&&!/\s/.test(S)}],u=[function(S){return/\S/.test(S)}];function h(S,p){for(var y=[],C=S;C"]),_=[].concat(f,m,g,["-",'"',".",":","_","/"]),E;try{E=new RegExp("^[\\p{Lu}]$","u")}catch(S){E=/^[A-Z]$/}function L(S,p){return p>=S.firstLine()&&p<=S.lastLine()}function A(S){return/^[a-z]$/.test(S)}function O(S){return"()[]{}".indexOf(S)!=-1}function U(S){return c.test(S)}function Y(S){return E.test(S)}function oe(S){return/^\s*$/.test(S)}function te(S){return".?!".indexOf(S)!=-1}function Z(S,p){for(var y=0;yC?y=C:y0?1:-1,xe,ye=V.getCursor();do if(y+=Ce,se=I[(p+y)%p],se&&(xe=se.find())&&!ge(ye,xe))break;while(yk)}return se}function W(V,Q){var se=y,Ce=H(V,Q);return y=se,Ce&&Ce.find()}return{cachedCursor:void 0,add:M,find:W,move:H}},dt=function(p){return p?{changes:p.changes,expectCursorActivityForChange:p.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function be(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=dt()}be.prototype={exitMacroRecordMode:function(){var p=X.macroModeState;p.onRecordingDone&&p.onRecordingDone(),p.onRecordingDone=void 0,p.isRecording=!1},enterMacroRecordMode:function(p,y){var C=X.registerController.getRegister(y);C&&(C.clear(),this.latestRegister=y,p.openDialog&&(this.onRecordingDone=p.openDialog(document.createTextNode("(recording)["+y+"]"),null,{bottom:!0})),this.isRecording=!0)}};function we(S){return S.state.vim||(S.state.vim={inputState:new G,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),S.state.vim}var X;function R(){X={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Xe(),macroModeState:new be,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new Ai({}),searchHistoryController:new Et,exCommandHistoryController:new Et};for(var S in ve){var p=ve[S];p.value=p.defaultValue}}var ne,me={buildKeyMap:function(){},getRegisterController:function(){return X.registerController},resetVimGlobalState_:R,getVimGlobalState_:function(){return X},maybeInitVimState_:we,suppressErrorLogging:!1,InsertModeKey:L3,map:function(p,y,C){ia.map(p,y,C)},unmap:function(p,y){return ia.unmap(p,y)},noremap:function(p,y,C){function k(xe){return xe?[xe]:["normal","insert","visual"]}for(var I=k(C),M=xn.length,H=qQ,W=M-H;W=0;I--){var M=k[I];if(p!==M.context)if(M.context)this._mapCommand(M);else{var H=["normal","insert","visual"];for(var W in H)if(H[W]!==p){var V={};for(var Q in M)V[Q]=M[Q];V.context=H[W],this._mapCommand(V)}}}},setOption:Ee,getOption:Oe,defineOption:Pe,defineEx:function(p,y,C){if(!y)y=p;else if(p.indexOf(y)!==0)throw new Error('(Vim.defineEx) "'+y+'" is not a prefix of "'+p+'", command not registered');M9[p]=C,ia.commandMap_[y]={name:p,shortName:y,type:"api"}},handleKey:function(p,y,C){var k=this.findKey(p,y,C);if(typeof k=="function")return k()},findKey:function(p,y,C){var k=we(p);function I(){var se=X.macroModeState;if(se.isRecording){if(y=="q")return se.exitMacroRecordMode(),Tt(p),!0;C!="mapping"&&ire(se,y)}}function M(){if(y==""){if(k.visualMode)Js(p);else if(k.insertMode)km(p);else return;return Tt(p),!0}}function H(se){for(var Ce;se;)Ce=/<\w+-.+?>|<\w+>|./.exec(se),y=Ce[0],se=se.substring(Ce.index+y.length),me.handleKey(p,y,"mapping")}function W(){if(M())return!0;for(var se=k.inputState.keyBuffer=k.inputState.keyBuffer+y,Ce=y.length==1,xe=Ii.matchCommand(se,xn,k.inputState,"insert");se.length>1&&xe.type!="full";){var se=k.inputState.keyBuffer=se.slice(1),ye=Ii.matchCommand(se,xn,k.inputState,"insert");ye.type!="none"&&(xe=ye)}if(xe.type=="none")return Tt(p),!1;if(xe.type=="partial")return ne&&window.clearTimeout(ne),ne=window.setTimeout(function(){k.insertMode&&k.inputState.keyBuffer&&Tt(p)},Oe("insertModeEscKeysTimeout")),!Ce;if(ne&&window.clearTimeout(ne),Ce){for(var Ze=p.listSelections(),tt=0;tt0||this.motionRepeat.length>0)&&(S=1,this.prefixRepeat.length>0&&(S*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(S*=parseInt(this.motionRepeat.join(""),10))),S};function Tt(S,p){S.state.vim.inputState=new G,ut.default.signal(S,"vim-command-done",p)}function Ft(S,p,y){this.clear(),this.keyBuffer=[S||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!p,this.blockwise=!!y}Ft.prototype={setText:function(p,y,C){this.keyBuffer=[p||""],this.linewise=!!y,this.blockwise=!!C},pushText:function(p,y){y&&(this.linewise||this.keyBuffer.push(` -`),this.linewise=!0),this.keyBuffer.push(p)},pushInsertModeChanges:function(p){this.insertModeChanges.push(dt(p))},pushSearchQuery:function(p){this.searchQueries.push(p)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}};function li(S,p){var y=X.registerController.registers;if(!S||S.length!=1)throw Error("Register name must be 1 character");if(y[S])throw Error("Register already defined "+S);y[S]=p,_.push(S)}function Ai(S){this.registers=S,this.unnamedRegister=S['"']=new Ft,S["."]=new Ft,S[":"]=new Ft,S["/"]=new Ft}Ai.prototype={pushText:function(p,y,C,k,I){if(p!=="_"){k&&C.charAt(C.length-1)!==` +`,a+=`commit_chars: ${(r=e.completion.commitCharacters)===null||r===void 0?void 0:r.join("")} +`,s=new sn().appendCodeblock("empty",a),o=`Provider: ${e.provider._debugDisplayName}`}if(!t&&!pg(e)){this.clearContents();return}if(this.domNode.classList.remove("no-docs","no-type"),o){let a=o.length>1e5?`${o.substr(0,1e5)}\u2026`:o;this._type.textContent=a,this._type.title=a,gr(this._type),this._type.classList.toggle("auto-wrap",!/\r?\n^\s+/gmi.test(a))}else mr(this._type),this._type.title="",jn(this._type),this.domNode.classList.add("no-type");if(mr(this._docs),typeof s=="string")this._docs.classList.remove("markdown-docs"),this._docs.textContent=s;else if(s){this._docs.classList.add("markdown-docs"),mr(this._docs);let a=this._markdownRenderer.render(s);this._docs.appendChild(a.element),this._renderDisposeable.add(a),this._renderDisposeable.add(this._markdownRenderer.onDidRenderAsync(()=>{this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}))}this.domNode.style.userSelect="text",this.domNode.tabIndex=-1,this._close.onmousedown=a=>{a.preventDefault(),a.stopPropagation()},this._close.onclick=a=>{a.preventDefault(),a.stopPropagation(),this._onDidClose.fire()},this._body.scrollTop=0,this.layout(this._size.width,this._type.clientHeight+this._docs.clientHeight),this._onDidChangeContents.fire(this)}clearContents(){this.domNode.classList.add("no-docs"),this._type.textContent="",this._docs.textContent=""}get size(){return this._size}layout(e,t){let n=new Di(e,t);Di.equals(n,this._size)||(this._size=n,pR(this.domNode,e,t)),this._scrollbar.scanDomNode()}scrollDown(e=8){this._body.scrollTop+=e}scrollUp(e=8){this._body.scrollTop-=e}scrollTop(){this._body.scrollTop=0}scrollBottom(){this._body.scrollTop=this._body.scrollHeight}pageDown(){this.scrollDown(80)}pageUp(){this.scrollUp(80)}set borderWidth(e){this._borderWidth=e}get borderWidth(){return this._borderWidth}};S2=oge([sge(1,Be)],S2);w2=class{constructor(e,t){this.widget=e,this._editor=t,this._disposables=new re,this._added=!1,this._preferAlignAtTop=!0,this._resizable=new wp,this._resizable.domNode.classList.add("suggest-details-container"),this._resizable.domNode.appendChild(e.domNode),this._resizable.enableSashes(!1,!0,!0,!1);let n,r,o=0,s=0;this._disposables.add(this._resizable.onDidWillResize(()=>{n=this._topLeft,r=this._resizable.size})),this._disposables.add(this._resizable.onDidResize(a=>{if(n&&r){this.widget.layout(a.dimension.width,a.dimension.height);let l=!1;a.west&&(s=r.width-a.dimension.width,l=!0),a.north&&(o=r.height-a.dimension.height,l=!0),l&&this._applyTopLeft({top:n.top+o,left:n.left+s})}a.done&&(n=void 0,r=void 0,o=0,s=0,this._userSize=a.dimension)})),this._disposables.add(this.widget.onDidChangeContents(()=>{var a;this._anchorBox&&this._placeAtAnchor(this._anchorBox,(a=this._userSize)!==null&&a!==void 0?a:this.widget.size,this._preferAlignAtTop)}))}dispose(){this._resizable.dispose(),this._disposables.dispose(),this.hide()}getId(){return"suggest.details"}getDomNode(){return this._resizable.domNode}getPosition(){return null}show(){this._added||(this._editor.addOverlayWidget(this),this.getDomNode().style.position="fixed",this._added=!0)}hide(e=!1){this._resizable.clearSashHoverState(),this._added&&(this._editor.removeOverlayWidget(this),this._added=!1,this._anchorBox=void 0,this._topLeft=void 0),e&&(this._userSize=void 0,this.widget.clearContents())}placeAtAnchor(e,t){var n;let r=e.getBoundingClientRect();this._anchorBox=r,this._preferAlignAtTop=t,this._placeAtAnchor(this._anchorBox,(n=this._userSize)!==null&&n!==void 0?n:this.widget.size,t)}_placeAtAnchor(e,t,n){var r;let o=b_(document.body),s=this.widget.getLayoutInfo(),a=new Di(220,2*s.lineHeight),l=e.top,c=function(){let N=o.width-(e.left+e.width+s.borderWidth+s.horizontalPadding),A=-s.borderWidth+e.left+e.width,B=new Di(N,o.height-e.top-s.borderHeight-s.verticalPadding),j=B.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:l,left:A,fit:N-t.width,maxSizeTop:B,maxSizeBottom:j,minSize:a.with(Math.min(N,a.width))}}(),d=function(){let N=e.left-s.borderWidth-s.horizontalPadding,A=Math.max(s.horizontalPadding,e.left-t.width-s.borderWidth),B=new Di(N,o.height-e.top-s.borderHeight-s.verticalPadding),j=B.with(void 0,e.top+e.height-s.borderHeight-s.verticalPadding);return{top:l,left:A,fit:N-t.width,maxSizeTop:B,maxSizeBottom:j,minSize:a.with(Math.min(N,a.width))}}(),u=function(){let N=e.left,A=-s.borderWidth+e.top+e.height,B=new Di(e.width-s.borderHeight,o.height-e.top-e.height-s.verticalPadding);return{top:A,left:N,fit:B.height-t.height,maxSizeBottom:B,maxSizeTop:B,minSize:a.with(B.width)}}(),h=[c,d,u],p=(r=h.find(N=>N.fit>=0))!==null&&r!==void 0?r:h.sort((N,A)=>A.fit-N.fit)[0],m=e.top+e.height-s.borderHeight,g,b=t.height,S=Math.max(p.maxSizeTop.height,p.maxSizeBottom.height);b>S&&(b=S);let k;n?b<=p.maxSizeTop.height?(g=!0,k=p.maxSizeTop):(g=!1,k=p.maxSizeBottom):b<=p.maxSizeBottom.height?(g=!1,k=p.maxSizeBottom):(g=!0,k=p.maxSizeTop),this._applyTopLeft({left:p.left,top:g?p.top:m-b}),this.getDomNode().style.position="fixed",this._resizable.enableSashes(!g,p===c,g,p!==c),this._resizable.minSize=p.minSize,this._resizable.maxSize=k,this._resizable.layout(b,Math.min(k.width,t.width)),this.widget.layout(this._resizable.size.width,this._resizable.size.height)}_applyTopLeft(e){this._topLeft=e,this.getDomNode().style.left=`${this._topLeft.left}px`,this.getDomNode().style.top=`${this._topLeft.top}px`}}});var Zs,sT=M(()=>{(function(i){i[i.FILE=0]="FILE",i[i.FOLDER=1]="FOLDER",i[i.ROOT_FOLDER=2]="ROOT_FOLDER"})(Zs||(Zs={}))});function mg(i,e,t,n){let r=n===Zs.ROOT_FOLDER?["rootfolder-icon"]:n===Zs.FOLDER?["folder-icon"]:["file-icon"];if(t){let o;if(t.scheme===Ao.data)o=Om.parseMetaData(t).get(Om.META_DATA_LABEL);else{let s=t.path.match(age);s?(o=x2(s[2].toLowerCase()),s[1]&&r.push(`${x2(s[1].toLowerCase())}-name-dir-icon`)):o=x2(t.authority.toLowerCase())}if(n===Zs.FOLDER)r.push(`${o}-name-folder-icon`);else{if(o){if(r.push(`${o}-name-file-icon`),r.push("name-file-icon"),o.length<=255){let a=o.split(".");for(let l=1;l{Im();ao();_w();sT();age=/(?:\/|^)(?:([^\/]+)\/)?([^\/]+)$/});function cT(i){return`suggest-aria-id:${i}`}function lT(i){return i.replace(/\r\n|\r|\n/g,"")}var cge,aT,gg,dge,uge,T2,y$=M(()=>{Bt();nF();or();Kr();Gt();Cl();Ce();Sn();br();b$();ts();os();Re();sT();Ll();ar();oT();cge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},aT=function(i,e){return function(t,n){e(t,n,i)}};dge=Ti("suggest-more-info",ct.chevronRight,v("suggestMoreInfoIcon","Icon for more information in the suggest widget.")),uge=new(gg=class E2{extract(e,t){if(e.textLabel.match(E2._regexStrict))return t[0]=e.textLabel,!0;if(e.completion.detail&&e.completion.detail.match(E2._regexStrict))return t[0]=e.completion.detail,!0;if(typeof e.completion.documentation=="string"){let n=E2._regexRelaxed.exec(e.completion.documentation);if(n&&(n.index===0||n.index+n[0].length===e.completion.documentation.length))return t[0]=n[0],!0}return!1}},gg._regexRelaxed=/(#([\da-fA-F]{3}){1,2}|(rgb|hsl)a\(\s*(\d{1,3}%?\s*,\s*){3}(1|0?\.\d+)\)|(rgb|hsl)\(\s*\d{1,3}%?(\s*,\s*\d{1,3}%?){2}\s*\))/,gg._regexStrict=new RegExp(`^${gg._regexRelaxed.source}$`,"i"),gg),T2=class{constructor(e,t,n,r){this._editor=e,this._modelService=t,this._languageService=n,this._themeService=r,this._onDidToggleDetails=new $e,this.onDidToggleDetails=this._onDidToggleDetails.event,this.templateId="suggestion"}dispose(){this._onDidToggleDetails.dispose()}renderTemplate(e){let t=new re,n=e;n.classList.add("show-file-icons");let r=me(e,fe(".icon")),o=me(r,fe("span.colorspan")),s=me(e,fe(".contents")),a=me(s,fe(".main")),l=me(a,fe(".icon-label.codicon")),c=me(a,fe("span.left")),d=me(a,fe("span.right")),u=new xb(c,{supportHighlights:!0,supportIcons:!0});t.add(u);let h=me(c,fe("span.signature-label")),p=me(c,fe("span.qualifier-label")),m=me(d,fe("span.details-label")),g=me(d,fe("span.readMore"+gt.asCSSSelector(dge)));g.title=v("readMore","Read More");let b=()=>{let S=this._editor.getOptions(),k=S.get(48),N=k.getMassagedFontFamily(),A=k.fontFeatureSettings,B=S.get(115)||k.fontSize,j=S.get(116)||k.lineHeight,z=k.fontWeight,J=k.letterSpacing,ae=`${B}px`,Le=`${j}px`,he=`${J}px`;n.style.fontSize=ae,n.style.fontWeight=z,n.style.letterSpacing=he,a.style.fontFamily=N,a.style.fontFeatureSettings=A,a.style.lineHeight=Le,r.style.height=Le,r.style.width=Le,g.style.height=Le,g.style.width=Le};return b(),t.add(this._editor.onDidChangeConfiguration(S=>{(S.hasChanged(48)||S.hasChanged(115)||S.hasChanged(116))&&b()})),{root:n,left:c,right:d,icon:r,colorspan:o,iconLabel:u,iconContainer:l,parametersLabel:h,qualifierLabel:p,detailsLabel:m,readMore:g,disposables:t}}renderElement(e,t,n){let{completion:r}=e;n.root.id=cT(t),n.colorspan.style.backgroundColor="";let o={labelEscapeNewLines:!0,matches:ru(e.score)},s=[];if(r.kind===19&&uge.extract(e,s))n.icon.className="icon customcolor",n.iconContainer.className="icon hide",n.colorspan.style.backgroundColor=s[0];else if(r.kind===20&&this._themeService.getFileIconTheme().hasFileIcons){n.icon.className="icon hide",n.iconContainer.className="icon hide";let a=mg(this._modelService,this._languageService,ft.from({scheme:"fake",path:e.textLabel}),Zs.FILE),l=mg(this._modelService,this._languageService,ft.from({scheme:"fake",path:r.detail}),Zs.FILE);o.extraClasses=a.length>l.length?a:l}else r.kind===23&&this._themeService.getFileIconTheme().hasFolderIcons?(n.icon.className="icon hide",n.iconContainer.className="icon hide",o.extraClasses=[mg(this._modelService,this._languageService,ft.from({scheme:"fake",path:e.textLabel}),Zs.FOLDER),mg(this._modelService,this._languageService,ft.from({scheme:"fake",path:r.detail}),Zs.FOLDER)].flat()):(n.icon.className="icon hide",n.iconContainer.className="",n.iconContainer.classList.add("suggest-icon",...gt.asClassNameArray(qm.toIcon(r.kind))));r.tags&&r.tags.indexOf(1)>=0&&(o.extraClasses=(o.extraClasses||[]).concat(["deprecated"]),o.matches=[]),n.iconLabel.setLabel(e.textLabel,void 0,o),typeof r.label=="string"?(n.parametersLabel.textContent="",n.detailsLabel.textContent=lT(r.detail||""),n.root.classList.add("string-label")):(n.parametersLabel.textContent=lT(r.label.detail||""),n.detailsLabel.textContent=lT(r.label.description||""),n.root.classList.remove("string-label")),this._editor.getOption(114).showInlineDetails?gr(n.detailsLabel):jn(n.detailsLabel),pg(e)?(n.right.classList.add("can-expand-details"),gr(n.readMore),n.readMore.onmousedown=a=>{a.stopPropagation(),a.preventDefault()},n.readMore.onclick=a=>{a.stopPropagation(),a.preventDefault(),this._onDidToggleDetails.fire()}):(n.right.classList.remove("can-expand-details"),jn(n.readMore),n.readMore.onmousedown=null,n.readMore.onclick=null)}disposeTemplate(e){e.disposables.dispose()}};T2=cge([aT(1,Si),aT(2,Qi),aT(3,pn)],T2)});var hge,k2,fge,I2,pge,dT,xp,hT,C$=M(()=>{Bt();d0();SP();Dt();At();Gt();Ce();Soe();wi();u$();Sp();f$();V5();Re();pt();Et();cu();_r();Tw();ar();rT();Zu();oT();y$();rb();hge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},k2=function(i,e){return function(t,n){e(t,n,i)}},fge=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};Oe("editorSuggestWidget.background",{dark:xl,light:xl,hcDark:xl,hcLight:xl},v("editorSuggestWidgetBackground","Background color of the suggest widget."));Oe("editorSuggestWidget.border",{dark:su,light:su,hcDark:su,hcLight:su},v("editorSuggestWidgetBorder","Border color of the suggest widget."));I2=Oe("editorSuggestWidget.foreground",{dark:_a,light:_a,hcDark:_a,hcLight:_a},v("editorSuggestWidgetForeground","Foreground color of the suggest widget."));Oe("editorSuggestWidget.selectedForeground",{dark:Um,light:Um,hcDark:Um,hcLight:Um},v("editorSuggestWidgetSelectedForeground","Foreground color of the selected entry in the suggest widget."));Oe("editorSuggestWidget.selectedIconForeground",{dark:jm,light:jm,hcDark:jm,hcLight:jm},v("editorSuggestWidgetSelectedIconForeground","Icon foreground color of the selected entry in the suggest widget."));pge=Oe("editorSuggestWidget.selectedBackground",{dark:Wm,light:Wm,hcDark:Wm,hcLight:Wm},v("editorSuggestWidgetSelectedBackground","Background color of the selected entry in the suggest widget."));Oe("editorSuggestWidget.highlightForeground",{dark:ba,light:ba,hcDark:ba,hcLight:ba},v("editorSuggestWidgetHighlightForeground","Color of the match highlights in the suggest widget."));Oe("editorSuggestWidget.focusHighlightForeground",{dark:zm,light:zm,hcDark:zm,hcLight:zm},v("editorSuggestWidgetFocusHighlightForeground","Color of the match highlights in the suggest widget when an item is focused."));Oe("editorSuggestWidgetStatus.foreground",{dark:Or(I2,.5),light:Or(I2,.5),hcDark:Or(I2,.5),hcLight:Or(I2,.5)},v("editorSuggestWidgetStatusForeground","Foreground color of the suggest widget status."));dT=class{constructor(e,t){this._service=e,this._key=`suggestWidget.size/${t.getEditorType()}/${t instanceof Vo}`}restore(){var e;let t=(e=this._service.get(this._key,0))!==null&&e!==void 0?e:"";try{let n=JSON.parse(t);if(Di.is(n))return Di.lift(n)}catch(n){}}store(e){this._service.store(this._key,JSON.stringify(e),0,1)}reset(){this._service.remove(this._key,0)}},xp=class uT{constructor(e,t,n,r,o){this.editor=e,this._storageService=t,this._state=0,this._isAuto=!1,this._pendingLayout=new Hi,this._pendingShowDetails=new Hi,this._ignoreFocusEvents=!1,this._forceRenderingAbove=!1,this._explainMode=!1,this._showTimeout=new ss,this._disposables=new re,this._onDidSelect=new ZS,this._onDidFocus=new ZS,this._onDidHide=new $e,this._onDidShow=new $e,this.onDidSelect=this._onDidSelect.event,this.onDidFocus=this._onDidFocus.event,this.onDidHide=this._onDidHide.event,this.onDidShow=this._onDidShow.event,this._onDetailsKeydown=new $e,this.onDetailsKeyDown=this._onDetailsKeydown.event,this.element=new wp,this.element.domNode.classList.add("editor-widget","suggest-widget"),this._contentWidget=new hT(this,e),this._persistedSize=new dT(t,e);class s{constructor(p,m,g=!1,b=!1){this.persistedSize=p,this.currentSize=m,this.persistHeight=g,this.persistWidth=b}}let a;this._disposables.add(this.element.onDidWillResize(()=>{this._contentWidget.lockPreference(),a=new s(this._persistedSize.restore(),this.element.size)})),this._disposables.add(this.element.onDidResize(h=>{var p,m,g,b;if(this._resize(h.dimension.width,h.dimension.height),a&&(a.persistHeight=a.persistHeight||!!h.north||!!h.south,a.persistWidth=a.persistWidth||!!h.east||!!h.west),!!h.done){if(a){let{itemHeight:S,defaultSize:k}=this.getLayoutInfo(),N=Math.round(S/2),{width:A,height:B}=this.element.size;(!a.persistHeight||Math.abs(a.currentSize.height-B)<=N)&&(B=(m=(p=a.persistedSize)===null||p===void 0?void 0:p.height)!==null&&m!==void 0?m:k.height),(!a.persistWidth||Math.abs(a.currentSize.width-A)<=N)&&(A=(b=(g=a.persistedSize)===null||g===void 0?void 0:g.width)!==null&&b!==void 0?b:k.width),this._persistedSize.store(new Di(A,B))}this._contentWidget.unlockPreference(),a=void 0}})),this._messageElement=me(this.element.domNode,fe(".message")),this._listElement=me(this.element.domNode,fe(".tree"));let l=o.createInstance(S2,this.editor);l.onDidClose(this.toggleDetails,this,this._disposables),this._details=new w2(l,this.editor);let c=()=>this.element.domNode.classList.toggle("no-icons",!this.editor.getOption(114).showIcons);c();let d=o.createInstance(T2,this.editor);this._disposables.add(d),this._disposables.add(d.onDidToggleDetails(()=>this.toggleDetails())),this._list=new ib("SuggestWidget",this._listElement,{getHeight:h=>this.getLayoutInfo().itemHeight,getTemplateId:h=>"suggestion"},[d],{alwaysConsumeMouseWheel:!0,useShadows:!1,mouseSupport:!1,multipleSelectionSupport:!1,accessibilityProvider:{getRole:()=>"option",getWidgetAriaLabel:()=>v("suggest","Suggest"),getWidgetRole:()=>"listbox",getAriaLabel:h=>{let p=h.textLabel;if(typeof h.completion.label!="string"){let{detail:S,description:k}=h.completion.label;S&&k?p=v("label.full","{0}{1}, {2}",p,S,k):S?p=v("label.detail","{0}{1}",p,S):k&&(p=v("label.desc","{0}, {1}",p,k))}if(!h.isResolved||!this._isDetailsVisible())return p;let{documentation:m,detail:g}=h.completion,b=Mo("{0}{1}",g||"",m?typeof m=="string"?m:m.value:"");return v("ariaCurrenttSuggestionReadDetails","{0}, docs: {1}",p,b)}}}),this._list.style(kP({listInactiveFocusBackground:pge,listInactiveFocusOutline:va})),this._status=o.createInstance(C2,this.element.domNode,nl);let u=()=>this.element.domNode.classList.toggle("with-status-bar",this.editor.getOption(114).showStatusBar);u(),this._disposables.add(r.onDidColorThemeChange(h=>this._onThemeChange(h))),this._onThemeChange(r.getColorTheme()),this._disposables.add(this._list.onMouseDown(h=>this._onListMouseDownOrTap(h))),this._disposables.add(this._list.onTap(h=>this._onListMouseDownOrTap(h))),this._disposables.add(this._list.onDidChangeSelection(h=>this._onListSelection(h))),this._disposables.add(this._list.onDidChangeFocus(h=>this._onListFocus(h))),this._disposables.add(this.editor.onDidChangeCursorSelection(()=>this._onCursorSelectionChanged())),this._disposables.add(this.editor.onDidChangeConfiguration(h=>{h.hasChanged(114)&&(u(),c())})),this._ctxSuggestWidgetVisible=nt.Visible.bindTo(n),this._ctxSuggestWidgetDetailsVisible=nt.DetailsVisible.bindTo(n),this._ctxSuggestWidgetMultipleSuggestions=nt.MultipleSuggestions.bindTo(n),this._ctxSuggestWidgetHasFocusedSuggestion=nt.HasFocusedSuggestion.bindTo(n),this._disposables.add(es(this._details.widget.domNode,"keydown",h=>{this._onDetailsKeydown.fire(h)})),this._disposables.add(this.editor.onMouseDown(h=>this._onEditorMouseDown(h)))}dispose(){var e;this._details.widget.dispose(),this._details.dispose(),this._list.dispose(),this._status.dispose(),this._disposables.dispose(),(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._pendingLayout.dispose(),this._pendingShowDetails.dispose(),this._showTimeout.dispose(),this._contentWidget.dispose(),this.element.dispose()}_onEditorMouseDown(e){this._details.widget.domNode.contains(e.target.element)?this._details.widget.domNode.focus():this.element.domNode.contains(e.target.element)&&this.editor.focus()}_onCursorSelectionChanged(){this._state!==0&&this._contentWidget.layout()}_onListMouseDownOrTap(e){typeof e.element=="undefined"||typeof e.index=="undefined"||(e.browserEvent.preventDefault(),e.browserEvent.stopPropagation(),this._select(e.element,e.index))}_onListSelection(e){e.elements.length&&this._select(e.elements[0],e.indexes[0])}_select(e,t){let n=this._completionModel;n&&(this._onDidSelect.fire({item:e,index:t,model:n}),this.editor.focus())}_onThemeChange(e){this._details.widget.borderWidth=au(e.type)?2:1}_onListFocus(e){var t;if(this._ignoreFocusEvents)return;if(!e.elements.length){this._currentSuggestionDetails&&(this._currentSuggestionDetails.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=void 0),this.editor.setAriaOptions({activeDescendant:void 0}),this._ctxSuggestWidgetHasFocusedSuggestion.set(!1);return}if(!this._completionModel)return;this._ctxSuggestWidgetHasFocusedSuggestion.set(!0);let n=e.elements[0],r=e.indexes[0];n!==this._focusedItem&&((t=this._currentSuggestionDetails)===null||t===void 0||t.cancel(),this._currentSuggestionDetails=void 0,this._focusedItem=n,this._list.reveal(r),this._currentSuggestionDetails=Kt(o=>fge(this,void 0,void 0,function*(){let s=wl(()=>{this._isDetailsVisible()&&this.showDetails(!0)},250),a=o.onCancellationRequested(()=>s.dispose()),l=yield n.resolve(o);return s.dispose(),a.dispose(),l})),this._currentSuggestionDetails.then(()=>{r>=this._list.length||n!==this._list.element(r)||(this._ignoreFocusEvents=!0,this._list.splice(r,1,[n]),this._list.setFocus([r]),this._ignoreFocusEvents=!1,this._isDetailsVisible()?this.showDetails(!1):this.element.domNode.classList.remove("docs-side"),this.editor.setAriaOptions({activeDescendant:cT(r)}))}).catch(lt)),this._onDidFocus.fire({item:n,index:r,model:this._completionModel})}_setState(e){if(this._state!==e)switch(this._state=e,this.element.domNode.classList.toggle("frozen",e===4),this.element.domNode.classList.remove("message"),e){case 0:jn(this._messageElement,this._listElement,this._status.element),this._details.hide(!0),this._status.hide(),this._contentWidget.hide(),this._ctxSuggestWidgetVisible.reset(),this._ctxSuggestWidgetMultipleSuggestions.reset(),this._ctxSuggestWidgetHasFocusedSuggestion.reset(),this._showTimeout.cancel(),this.element.domNode.classList.remove("visible"),this._list.splice(0,this._list.length),this._focusedItem=void 0,this._cappedHeight=void 0,this._explainMode=!1;break;case 1:this.element.domNode.classList.add("message"),this._messageElement.textContent=uT.LOADING_MESSAGE,jn(this._listElement,this._status.element),gr(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 2:this.element.domNode.classList.add("message"),this._messageElement.textContent=uT.NO_SUGGESTIONS_MESSAGE,jn(this._listElement,this._status.element),gr(this._messageElement),this._details.hide(),this._show(),this._focusedItem=void 0;break;case 3:jn(this._messageElement),gr(this._listElement,this._status.element),this._show();break;case 4:jn(this._messageElement),gr(this._listElement,this._status.element),this._show();break;case 5:jn(this._messageElement),gr(this._listElement,this._status.element),this._details.show(),this._show();break}}_show(){this._status.show(),this._contentWidget.show(),this._layout(this._persistedSize.restore()),this._ctxSuggestWidgetVisible.set(!0),this._showTimeout.cancelAndSet(()=>{this.element.domNode.classList.add("visible"),this._onDidShow.fire(this)},100)}showTriggered(e,t){this._state===0&&(this._contentWidget.setPosition(this.editor.getPosition()),this._isAuto=!!e,this._isAuto||(this._loadingTimeout=wl(()=>this._setState(1),t)))}showSuggestions(e,t,n,r,o){var s,a;if(this._contentWidget.setPosition(this.editor.getPosition()),(s=this._loadingTimeout)===null||s===void 0||s.dispose(),(a=this._currentSuggestionDetails)===null||a===void 0||a.cancel(),this._currentSuggestionDetails=void 0,this._completionModel!==e&&(this._completionModel=e),n&&this._state!==2&&this._state!==0){this._setState(4);return}let l=this._completionModel.items.length,c=l===0;if(this._ctxSuggestWidgetMultipleSuggestions.set(l>1),c){this._setState(r?0:2),this._completionModel=void 0;return}this._focusedItem=void 0,this._onDidFocus.pause(),this._onDidSelect.pause();try{this._list.splice(0,this._list.length,this._completionModel.items),this._setState(n?4:3),this._list.reveal(t,0),this._list.setFocus(o?[]:[t])}finally{this._onDidFocus.resume(),this._onDidSelect.resume()}this._pendingLayout.value=nw(()=>{this._pendingLayout.clear(),this._layout(this.element.size),this._details.widget.domNode.classList.remove("focused")})}focusSelected(){this._list.length>0&&this._list.setFocus([0])}selectNextPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageDown(),!0;case 1:return!this._isAuto;default:return this._list.focusNextPage(),!0}}selectNext(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusNext(1,!0),!0}}selectLast(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollBottom(),!0;case 1:return!this._isAuto;default:return this._list.focusLast(),!0}}selectPreviousPage(){switch(this._state){case 0:return!1;case 5:return this._details.widget.pageUp(),!0;case 1:return!this._isAuto;default:return this._list.focusPreviousPage(),!0}}selectPrevious(){switch(this._state){case 0:return!1;case 1:return!this._isAuto;default:return this._list.focusPrevious(1,!0),!1}}selectFirst(){switch(this._state){case 0:return!1;case 5:return this._details.widget.scrollTop(),!0;case 1:return!this._isAuto;default:return this._list.focusFirst(),!0}}getFocusedItem(){if(this._state!==0&&this._state!==2&&this._state!==1&&this._completionModel&&this._list.getFocus().length>0)return{item:this._list.getFocusedElements()[0],index:this._list.getFocus()[0],model:this._completionModel}}toggleDetailsFocus(){this._state===5?(this._setState(3),this._details.widget.domNode.classList.remove("focused")):this._state===3&&this._isDetailsVisible()&&(this._setState(5),this._details.widget.domNode.classList.add("focused"))}toggleDetails(){this._isDetailsVisible()?(this._pendingShowDetails.clear(),this._ctxSuggestWidgetDetailsVisible.set(!1),this._setDetailsVisible(!1),this._details.hide(),this.element.domNode.classList.remove("shows-details")):(pg(this._list.getFocusedElements()[0])||this._explainMode)&&(this._state===3||this._state===5||this._state===4)&&(this._ctxSuggestWidgetDetailsVisible.set(!0),this._setDetailsVisible(!0),this.showDetails(!1))}showDetails(e){this._pendingShowDetails.value=nw(()=>{this._pendingShowDetails.clear(),this._details.show(),e?this._details.widget.renderLoading():this._details.widget.renderItem(this._list.getFocusedElements()[0],this._explainMode),this._positionDetails(),this.editor.focus(),this.element.domNode.classList.add("shows-details")})}toggleExplainMode(){this._list.getFocusedElements()[0]&&(this._explainMode=!this._explainMode,this._isDetailsVisible()?this.showDetails(!1):this.toggleDetails())}resetPersistedSize(){this._persistedSize.reset()}hideWidget(){var e;this._pendingLayout.clear(),this._pendingShowDetails.clear(),(e=this._loadingTimeout)===null||e===void 0||e.dispose(),this._setState(0),this._onDidHide.fire(this),this.element.clearSashHoverState();let t=this._persistedSize.restore(),n=Math.ceil(this.getLayoutInfo().itemHeight*4.3);t&&t.heightc&&(l=c);let d=this._completionModel?this._completionModel.stats.pLabelLen*s.typicalHalfwidthCharacterWidth:l,u=s.statusBarHeight+this._list.contentHeight+s.borderHeight,h=s.itemHeight+s.statusBarHeight,p=wn(this.editor.getDomNode()),m=this.editor.getScrolledVisiblePosition(this.editor.getPosition()),g=p.top+m.top+m.height,b=Math.min(o.height-g-s.verticalPadding,u),S=p.top+m.top-s.verticalPadding,k=Math.min(S,u),N=Math.min(Math.max(k,b)+s.borderHeight,u);a===((t=this._cappedHeight)===null||t===void 0?void 0:t.capped)&&(a=this._cappedHeight.wanted),aN&&(a=N);let A=150;a>b||this._forceRenderingAbove&&S>A?(this._contentWidget.setPreference(1),this.element.enableSashes(!0,!0,!1,!1),N=k):(this._contentWidget.setPreference(2),this.element.enableSashes(!1,!0,!0,!1),N=b),this.element.preferredSize=new Di(d,s.defaultSize.height),this.element.maxSize=new Di(c,N),this.element.minSize=new Di(220,h),this._cappedHeight=a===u?{wanted:(r=(n=this._cappedHeight)===null||n===void 0?void 0:n.wanted)!==null&&r!==void 0?r:e.height,capped:a}:void 0}this._resize(l,a)}_resize(e,t){let{width:n,height:r}=this.element.maxSize;e=Math.min(n,e),t=Math.min(r,t);let{statusBarHeight:o}=this.getLayoutInfo();this._list.layout(t-o,e),this._listElement.style.height=`${t-o}px`,this.element.layout(t,e),this._contentWidget.layout(),this._positionDetails()}_positionDetails(){var e;this._isDetailsVisible()&&this._details.placeAtAnchor(this.element.domNode,((e=this._contentWidget.getPosition())===null||e===void 0?void 0:e.preference[0])===2)}getLayoutInfo(){let e=this.editor.getOption(48),t=yP(this.editor.getOption(116)||e.lineHeight,8,1e3),n=!this.editor.getOption(114).showStatusBar||this._state===2||this._state===1?0:t,r=this._details.widget.borderWidth,o=2*r;return{itemHeight:t,statusBarHeight:n,borderWidth:r,borderHeight:o,typicalHalfwidthCharacterWidth:e.typicalHalfwidthCharacterWidth,verticalPadding:22,horizontalPadding:14,defaultSize:new Di(430,n+12*t+o)}}_isDetailsVisible(){return this._storageService.getBoolean("expandSuggestionDocs",0,!1)}_setDetailsVisible(e){this._storageService.store("expandSuggestionDocs",e,0,0)}forceRenderingAbove(){this._forceRenderingAbove||(this._forceRenderingAbove=!0,this._layout(this._persistedSize.restore()))}stopForceRenderingAbove(){this._forceRenderingAbove=!1}};xp.LOADING_MESSAGE=v("suggestWidget.loading","Loading...");xp.NO_SUGGESTIONS_MESSAGE=v("suggestWidget.noSuggestions","No suggestions.");xp=hge([k2(1,$r),k2(2,Ke),k2(3,pn),k2(4,Be)],xp);hT=class{constructor(e,t){this._widget=e,this._editor=t,this.allowEditorOverflow=!0,this.suppressMouseDown=!1,this._preferenceLocked=!1,this._added=!1,this._hidden=!1}dispose(){this._added&&(this._added=!1,this._editor.removeContentWidget(this))}getId(){return"editor.widget.suggestWidget"}getDomNode(){return this._widget.element.domNode}show(){this._hidden=!1,this._added||(this._added=!0,this._editor.addContentWidget(this))}hide(){this._hidden||(this._hidden=!0,this.layout())}layout(){this._editor.layoutContentWidget(this)}getPosition(){return this._hidden||!this._position||!this._preference?null:{position:this._position,preference:[this._preference]}}beforeRender(){let{height:e,width:t}=this._widget.element.size,{borderWidth:n,horizontalPadding:r}=this._widget.getLayoutInfo();return new Di(t+2*n+r,e+2*n)}afterRender(e){this._widget._afterRender(e)}setPreference(e){this._preferenceLocked||(this._preference=e)}lockPreference(){this._preferenceLocked=!0}unlockPreference(){this._preferenceLocked=!1}setPosition(e){this._position=e}}});var mge,Ep,gge,fT,Ko,pT,vg,wo,Er,A2=M(()=>{Lo();oi();Dt();gi();At();Gt();Wre();Ce();nr();ml();Mi();sb();et();Ea();ri();qe();Vt();vp();Ju();J7();r$();Re();zi();pt();Et();S_();Zu();o$();s$();l$();c$();C$();Hc();ao();AP();mge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Ep=function(i,e){return function(t,n){e(t,n,i)}},gge=!1,fT=class{constructor(e,t){if(this._model=e,this._position=t,e.getLineMaxColumn(t.lineNumber)!==t.column){let r=e.getOffsetAt(t),o=e.getPositionAt(r+1);this._marker=e.deltaDecorations([],[{range:P.fromPositions(t,o),options:{description:"suggest-line-suffix",stickiness:1}}])}}dispose(){this._marker&&!this._model.isDisposed()&&this._model.deltaDecorations(this._marker,[])}delta(e){if(this._model.isDisposed()||this._position.lineNumber!==e.lineNumber)return 0;if(this._marker){let t=this._model.getDecorationRange(this._marker[0]);return this._model.getOffsetAt(t.getStartPosition())-this._model.getOffsetAt(e)}else return this._model.getLineMaxColumn(e.lineNumber)-e.column}},Ko=class S${static get(e){return e.getContribution(S$.ID)}constructor(e,t,n,r,o,s,a){this._memoryService=t,this._commandService=n,this._contextKeyService=r,this._instantiationService=o,this._logService=s,this._telemetryService=a,this._lineSuffix=new Hi,this._toDispose=new re,this._selectors=new pT(u=>u.priority),this._telemetryGate=0,this.editor=e,this.model=o.createInstance(y2,this.editor),this._selectors.register({priority:0,select:(u,h,p)=>this._memoryService.select(u,h,p)});let l=nt.InsertMode.bindTo(r);l.set(e.getOption(114).insertMode),this.model.onDidTrigger(()=>l.set(e.getOption(114).insertMode)),this.widget=this._toDispose.add(new B_(()=>{let u=this._instantiationService.createInstance(xp,this.editor);this._toDispose.add(u),this._toDispose.add(u.onDidSelect(b=>this._insertSuggestion(b,0),this));let h=new b2(this.editor,u,this.model,b=>this._insertSuggestion(b,2));this._toDispose.add(h);let p=nt.MakesTextEdit.bindTo(this._contextKeyService),m=nt.HasInsertAndReplaceRange.bindTo(this._contextKeyService),g=nt.CanResolve.bindTo(this._contextKeyService);return this._toDispose.add(Ft(()=>{p.reset(),m.reset(),g.reset()})),this._toDispose.add(u.onDidFocus(({item:b})=>{let S=this.editor.getPosition(),k=b.editStart.column,N=S.column,A=!0;this.editor.getOption(1)==="smart"&&this.model.state===2&&!b.completion.additionalTextEdits&&!(b.completion.insertTextRules&4)&&N-k===b.completion.insertText.length&&(A=this.editor.getModel().getValueInRange({startLineNumber:S.lineNumber,startColumn:k,endLineNumber:S.lineNumber,endColumn:N})!==b.completion.insertText),p.set(A),m.set(!Se.equals(b.editInsertEnd,b.editReplaceEnd)),g.set(!!b.provider.resolveCompletionItem||!!b.completion.documentation||b.completion.detail!==b.completion.label)})),this._toDispose.add(u.onDetailsKeyDown(b=>{if(b.toKeyCodeChord().equals(new iw(!0,!1,!1,!1,33))||zn&&b.toKeyCodeChord().equals(new iw(!1,!1,!1,!0,33))){b.stopPropagation();return}b.toKeyCodeChord().isModifierKey()||this.editor.focus()})),u})),this._overtypingCapturer=this._toDispose.add(new B_(()=>this._toDispose.add(new fg(this.editor,this.model)))),this._alternatives=this._toDispose.add(new B_(()=>this._toDispose.add(new Sd(this.editor,this._contextKeyService)))),this._toDispose.add(o.createInstance(yp,e)),this._toDispose.add(this.model.onDidTrigger(u=>{this.widget.value.showTriggered(u.auto,u.shy?250:50),this._lineSuffix.value=new fT(this.editor.getModel(),u.position)})),this._toDispose.add(this.model.onDidSuggest(u=>{if(u.triggerOptions.shy)return;let h=-1;for(let m of this._selectors.itemsOrderedByPriorityDesc)if(h=m.select(this.editor.getModel(),this.editor.getPosition(),u.completionModel.items),h!==-1)break;h===-1&&(h=0);let p=!1;if(u.triggerOptions.auto){let m=this.editor.getOption(114);m.selectionMode==="never"||m.selectionMode==="always"?p=m.selectionMode==="never":m.selectionMode==="whenTriggerCharacter"?p=u.triggerOptions.triggerKind!==1:m.selectionMode==="whenQuickSuggestion"&&(p=u.triggerOptions.triggerKind===1&&!u.triggerOptions.refilter)}this.widget.value.showSuggestions(u.completionModel,h,u.isFrozen,u.triggerOptions.auto,p)})),this._toDispose.add(this.model.onDidCancel(u=>{u.retrigger||this.widget.value.hideWidget()})),this._toDispose.add(this.editor.onDidBlurEditorWidget(()=>{gge||(this.model.cancel(),this.model.clear())}));let c=nt.AcceptSuggestionsOnEnter.bindTo(r),d=()=>{let u=this.editor.getOption(1);c.set(u==="on"||u==="smart")};this._toDispose.add(this.editor.onDidChangeConfiguration(()=>d())),d()}dispose(){this._alternatives.dispose(),this._toDispose.dispose(),this.widget.dispose(),this.model.dispose(),this._lineSuffix.dispose()}_insertSuggestion(e,t){if(!e||!e.item){this._alternatives.value.reset(),this.model.cancel(),this.model.clear();return}if(!this.editor.hasModel())return;let n=en.get(this.editor);if(!n)return;let r=this.editor.getModel(),o=r.getAlternativeVersionId(),{item:s}=e,a=[],l=new Ri;t&1||this.editor.pushUndoStop();let c=this.getOverwriteInfo(s,!!(t&8));if(this._memoryService.memorize(r,this.editor.getPosition(),s),Array.isArray(s.completion.additionalTextEdits)){this.model.cancel();let u=xa.capture(this.editor);this.editor.executeEdits("suggestController.additionalTextEdits.sync",s.completion.additionalTextEdits.map(h=>qt.replaceMove(P.lift(h.range),h.text))),u.restoreRelativeVerticalPositionOfCursor(this.editor)}else if(!s.isResolved){let u=new Ln(!0),h,p=r.onDidChangeContent(S=>{if(S.isFlush){l.cancel(),p.dispose();return}for(let k of S.changes){let N=P.getEndPosition(k.range);(!h||Se.isBefore(N,h))&&(h=N)}}),m=t;t|=2;let g=!1,b=this.editor.onWillType(()=>{b.dispose(),g=!0,m&2||this.editor.pushUndoStop()});a.push(s.resolve(l.token).then(()=>{if(!s.completion.additionalTextEdits||l.token.isCancellationRequested||h&&s.completion.additionalTextEdits.some(k=>Se.isBefore(h,P.getStartPosition(k.range))))return!1;g&&this.editor.pushUndoStop();let S=xa.capture(this.editor);return this.editor.executeEdits("suggestController.additionalTextEdits.async",s.completion.additionalTextEdits.map(k=>qt.replaceMove(P.lift(k.range),k.text))),S.restoreRelativeVerticalPositionOfCursor(this.editor),(g||!(m&2))&&this.editor.pushUndoStop(),!0}).then(S=>{this._logService.trace("[suggest] async resolving of edits DONE (ms, applied?)",u.elapsed(),S),p.dispose(),b.dispose()}))}let{insertText:d}=s.completion;s.completion.insertTextRules&4||(d=Wo.escape(d)),this.model.cancel(),n.insert(d,{overwriteBefore:c.overwriteBefore,overwriteAfter:c.overwriteAfter,undoStopBefore:!1,undoStopAfter:!1,adjustWhitespace:!(s.completion.insertTextRules&1),clipboardText:e.model.clipboardText,overtypingCapturer:this._overtypingCapturer.value}),t&2||this.editor.pushUndoStop(),s.completion.command&&(s.completion.command.id===vg.id?this.model.trigger({auto:!0,retrigger:!0}):a.push(this._commandService.executeCommand(s.completion.command.id,...s.completion.command.arguments?[...s.completion.command.arguments]:[]).catch(u=>{s.completion.extensionId?Ut(u):lt(u)}))),t&4&&this._alternatives.value.set(e,u=>{for(l.cancel();r.canUndo();){o!==r.getAlternativeVersionId()&&r.undo(),this._insertSuggestion(u,3|(t&8?8:0));break}}),this._alertCompletionItem(s),Promise.all(a).finally(()=>{this._reportSuggestionAcceptedTelemetry(s,r,e),this.model.clear(),l.dispose()})}_reportSuggestionAcceptedTelemetry(e,t,n){var r;if(this._telemetryGate++%100!==0)return;let o=e.extensionId?e.extensionId.value:((r=n.item.provider._debugDisplayName)!==null&&r!==void 0?r:"unknown").split("(",1)[0].toLowerCase();this._telemetryService.publicLog2("suggest.acceptedSuggestion",{providerId:o,kind:e.completion.kind,basenameHash:lb(Nr(t.uri)).toString(16),languageId:t.getLanguageId(),fileExtension:cO(t.uri)})}getOverwriteInfo(e,t){Lt(this.editor.hasModel());let n=this.editor.getOption(114).insertMode==="replace";t&&(n=!n);let r=e.position.column-e.editStart.column,o=(n?e.editReplaceEnd.column:e.editInsertEnd.column)-e.position.column,s=this.editor.getPosition().column-e.position.column,a=this._lineSuffix.value?this._lineSuffix.value.delta(this.editor.getPosition()):0;return{overwriteBefore:r+s,overwriteAfter:o+a}}_alertCompletionItem(e){if(ji(e.completion.additionalTextEdits)){let t=v("aria.alert.snippet","Accepting '{0}' made {1} additional edits",e.textLabel,e.completion.additionalTextEdits.length);Ni(t)}}triggerSuggest(e,t,n){this.editor.hasModel()&&(this.model.trigger({auto:t!=null?t:!1,completionOptions:{providerFilter:e,kindFilter:n?new Set:void 0}}),this.editor.revealPosition(this.editor.getPosition(),0),this.editor.focus())}triggerSuggestAndAcceptBest(e){if(!this.editor.hasModel())return;let t=this.editor.getPosition(),n=()=>{t.equals(this.editor.getPosition())&&this._commandService.executeCommand(e.fallback)},r=o=>{if(o.completion.insertTextRules&4||o.completion.additionalTextEdits)return!0;let s=this.editor.getPosition(),a=o.editStart.column,l=s.column;return l-a!==o.completion.insertText.length?!0:this.editor.getModel().getValueInRange({startLineNumber:s.lineNumber,startColumn:a,endLineNumber:s.lineNumber,endColumn:l})!==o.completion.insertText};li.once(this.model.onDidTrigger)(o=>{let s=[];li.any(this.model.onDidTrigger,this.model.onDidCancel)(()=>{Vi(s),n()},void 0,s),this.model.onDidSuggest(({completionModel:a})=>{if(Vi(s),a.items.length===0){n();return}let l=this._memoryService.select(this.editor.getModel(),this.editor.getPosition(),a.items),c=a.items[l];if(!r(c)){n();return}this.editor.pushUndoStop(),this._insertSuggestion({index:l,item:c,model:a},7)},void 0,s)}),this.model.trigger({auto:!1,shy:!0}),this.editor.revealPosition(t,0),this.editor.focus()}acceptSelectedSuggestion(e,t){let n=this.widget.value.getFocusedItem(),r=0;e&&(r|=4),t&&(r|=8),this._insertSuggestion(n,r)}acceptNextSuggestion(){this._alternatives.value.next()}acceptPrevSuggestion(){this._alternatives.value.prev()}cancelSuggestWidget(){this.model.cancel(),this.model.clear(),this.widget.value.hideWidget()}focusSuggestion(){this.widget.value.focusSelected()}selectNextSuggestion(){this.widget.value.selectNext()}selectNextPageSuggestion(){this.widget.value.selectNextPage()}selectLastSuggestion(){this.widget.value.selectLast()}selectPrevSuggestion(){this.widget.value.selectPrevious()}selectPrevPageSuggestion(){this.widget.value.selectPreviousPage()}selectFirstSuggestion(){this.widget.value.selectFirst()}toggleSuggestionDetails(){this.widget.value.toggleDetails()}toggleExplainMode(){this.widget.value.toggleExplainMode()}toggleSuggestionFocus(){this.widget.value.toggleDetailsFocus()}resetWidgetSize(){this.widget.value.resetPersistedSize()}forceRenderingAbove(){this.widget.value.forceRenderingAbove()}stopForceRenderingAbove(){this.widget.isInitialized&&this.widget.value.stopForceRenderingAbove()}registerSelector(e){return this._selectors.register(e)}};Ko.ID="editor.contrib.suggestController";Ko=mge([Ep(1,bp),Ep(2,ui),Ep(3,Ke),Ep(4,Be),Ep(5,zc),Ep(6,Dr)],Ko);pT=class{constructor(e){this.prioritySelector=e,this._items=new Array}register(e){if(this._items.indexOf(e)!==-1)throw new Error("Value is already registered");return this._items.push(e),this._items.sort((t,n)=>this.prioritySelector(n)-this.prioritySelector(t)),{dispose:()=>{let t=this._items.indexOf(e);t>=0&&this._items.splice(t,1)}}}get itemsOrderedByPriorityDesc(){return this._items}},vg=class i extends se{constructor(){super({id:i.id,label:v("suggest.trigger.label","Trigger Suggest"),alias:"Trigger Suggest",precondition:ce.and(O.writable,O.hasCompletionItemProvider,nt.Visible.toNegated()),kbOpts:{kbExpr:O.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[521,2087]},weight:100}})}run(e,t,n){let r=Ko.get(t);if(!r)return;let o;n&&typeof n=="object"&&n.auto===!0&&(o=!0),r.triggerSuggest(void 0,o,void 0)}};vg.id="editor.action.triggerSuggest";Ae(Ko.ID,Ko,2);X(vg);wo=100+90,Er=xi.bindToContribution(Ko.get);Ne(new Er({id:"acceptSelectedSuggestion",precondition:ce.and(nt.Visible,nt.HasFocusedSuggestion),handler(i){i.acceptSelectedSuggestion(!0,!1)},kbOpts:[{primary:2,kbExpr:ce.and(nt.Visible,O.textInputFocus),weight:wo},{primary:3,kbExpr:ce.and(nt.Visible,O.textInputFocus,nt.AcceptSuggestionsOnEnter,nt.MakesTextEdit),weight:wo}],menuOpts:[{menuId:nl,title:v("accept.insert","Insert"),group:"left",order:1,when:nt.HasInsertAndReplaceRange.toNegated()},{menuId:nl,title:v("accept.insert","Insert"),group:"left",order:1,when:ce.and(nt.HasInsertAndReplaceRange,nt.InsertMode.isEqualTo("insert"))},{menuId:nl,title:v("accept.replace","Replace"),group:"left",order:1,when:ce.and(nt.HasInsertAndReplaceRange,nt.InsertMode.isEqualTo("replace"))}]}));Ne(new Er({id:"acceptAlternativeSelectedSuggestion",precondition:ce.and(nt.Visible,O.textInputFocus,nt.HasFocusedSuggestion),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:1027,secondary:[1026]},handler(i){i.acceptSelectedSuggestion(!1,!0)},menuOpts:[{menuId:nl,group:"left",order:2,when:ce.and(nt.HasInsertAndReplaceRange,nt.InsertMode.isEqualTo("insert")),title:v("accept.replace","Replace")},{menuId:nl,group:"left",order:2,when:ce.and(nt.HasInsertAndReplaceRange,nt.InsertMode.isEqualTo("replace")),title:v("accept.insert","Insert")}]}));St.registerCommandAlias("acceptSelectedSuggestionOnEnter","acceptSelectedSuggestion");Ne(new Er({id:"hideSuggestWidget",precondition:nt.Visible,handler:i=>i.cancelSuggestWidget(),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:9,secondary:[1033]}}));Ne(new Er({id:"selectNextSuggestion",precondition:ce.and(nt.Visible,ce.or(nt.MultipleSuggestions,nt.HasFocusedSuggestion.negate())),handler:i=>i.selectNextSuggestion(),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:18,secondary:[2066],mac:{primary:18,secondary:[2066,300]}}}));Ne(new Er({id:"selectNextPageSuggestion",precondition:ce.and(nt.Visible,ce.or(nt.MultipleSuggestions,nt.HasFocusedSuggestion.negate())),handler:i=>i.selectNextPageSuggestion(),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:12,secondary:[2060]}}));Ne(new Er({id:"selectLastSuggestion",precondition:ce.and(nt.Visible,ce.or(nt.MultipleSuggestions,nt.HasFocusedSuggestion.negate())),handler:i=>i.selectLastSuggestion()}));Ne(new Er({id:"selectPrevSuggestion",precondition:ce.and(nt.Visible,ce.or(nt.MultipleSuggestions,nt.HasFocusedSuggestion.negate())),handler:i=>i.selectPrevSuggestion(),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:16,secondary:[2064],mac:{primary:16,secondary:[2064,302]}}}));Ne(new Er({id:"selectPrevPageSuggestion",precondition:ce.and(nt.Visible,ce.or(nt.MultipleSuggestions,nt.HasFocusedSuggestion.negate())),handler:i=>i.selectPrevPageSuggestion(),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:11,secondary:[2059]}}));Ne(new Er({id:"selectFirstSuggestion",precondition:ce.and(nt.Visible,ce.or(nt.MultipleSuggestions,nt.HasFocusedSuggestion.negate())),handler:i=>i.selectFirstSuggestion()}));Ne(new Er({id:"focusSuggestion",precondition:ce.and(nt.Visible,nt.HasFocusedSuggestion.negate()),handler:i=>i.focusSuggestion(),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}}}));Ne(new Er({id:"focusAndAcceptSuggestion",precondition:ce.and(nt.Visible,nt.HasFocusedSuggestion.negate()),handler:i=>{i.focusSuggestion(),i.acceptSelectedSuggestion(!0,!1)}}));Ne(new Er({id:"toggleSuggestionDetails",precondition:ce.and(nt.Visible,nt.HasFocusedSuggestion),handler:i=>i.toggleSuggestionDetails(),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:2058,secondary:[2087],mac:{primary:266,secondary:[2087]}},menuOpts:[{menuId:nl,group:"right",order:1,when:ce.and(nt.DetailsVisible,nt.CanResolve),title:v("detail.more","show less")},{menuId:nl,group:"right",order:1,when:ce.and(nt.DetailsVisible.toNegated(),nt.CanResolve),title:v("detail.less","show more")}]}));Ne(new Er({id:"toggleExplainMode",precondition:nt.Visible,handler:i=>i.toggleExplainMode(),kbOpts:{weight:100,primary:2138}}));Ne(new Er({id:"toggleSuggestionFocus",precondition:nt.Visible,handler:i=>i.toggleSuggestionFocus(),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:2570,mac:{primary:778}}}));Ne(new Er({id:"insertBestCompletion",precondition:ce.and(O.textInputFocus,ce.equals("config.editor.tabCompletion","on"),yp.AtEnd,nt.Visible.toNegated(),Sd.OtherSuggestions.toNegated(),en.InSnippetMode.toNegated()),handler:(i,e)=>{i.triggerSuggestAndAcceptBest(g_(e)?Object.assign({fallback:"tab"},e):{fallback:"tab"})},kbOpts:{weight:wo,primary:2}}));Ne(new Er({id:"insertNextSuggestion",precondition:ce.and(O.textInputFocus,ce.equals("config.editor.tabCompletion","on"),Sd.OtherSuggestions,nt.Visible.toNegated(),en.InSnippetMode.toNegated()),handler:i=>i.acceptNextSuggestion(),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:2}}));Ne(new Er({id:"insertPrevSuggestion",precondition:ce.and(O.textInputFocus,ce.equals("config.editor.tabCompletion","on"),Sd.OtherSuggestions,nt.Visible.toNegated(),en.InSnippetMode.toNegated()),handler:i=>i.acceptPrevSuggestion(),kbOpts:{weight:wo,kbExpr:O.textInputFocus,primary:1026}}));X(class extends se{constructor(){super({id:"editor.action.resetSuggestSize",label:v("suggest.reset.label","Reset Suggest Widget Size"),alias:"Reset Suggest Widget Size",precondition:void 0})}run(i,e){var t;(t=Ko.get(e))===null||t===void 0||t.resetWidgetSize()}})});function vge(i,e){return i===e?!0:!i||!e?!1:i.equals(e)}var L2,M2,w$=M(()=>{Gt();Ce();ri();qe();br();Ju();$7();A2();Ys();O7();oi();L2=class extends oe{get selectedItem(){return this._selectedItem}constructor(e,t,n){super(),this.editor=e,this.suggestControllerPreselector=t,this.checkModelVersion=n,this.isSuggestWidgetVisible=!1,this.isShiftKeyPressed=!1,this._isActive=!1,this._currentSuggestItemInfo=void 0,this._selectedItem=Gs("suggestWidgetInlineCompletionProvider.selectedItem",void 0),this._register(e.onKeyDown(o=>{o.shiftKey&&!this.isShiftKeyPressed&&(this.isShiftKeyPressed=!0,this.update(this._isActive))})),this._register(e.onKeyUp(o=>{o.shiftKey&&this.isShiftKeyPressed&&(this.isShiftKeyPressed=!1,this.update(this._isActive))}));let r=Ko.get(this.editor);if(r){this._register(r.registerSelector({priority:100,select:(a,l,c)=>{var d;dn(b=>this.checkModelVersion(b));let u=this.editor.getModel();if(!u)return-1;let h=(d=this.suggestControllerPreselector())===null||d===void 0?void 0:d.removeCommonPrefix(u);if(!h)return-1;let p=Se.lift(l),m=c.map((b,S)=>{let N=M2.fromSuggestion(r,u,p,b,this.isShiftKeyPressed).toSingleTextEdit().removeCommonPrefix(u),A=h.augments(N);return{index:S,valid:A,prefixLength:N.text.length,suggestItem:b}}).filter(b=>b&&b.valid&&b.prefixLength>0),g=qR(m,VR(b=>b.prefixLength,KR));return g?g.index:-1}}));let o=!1,s=()=>{o||(o=!0,this._register(r.widget.value.onDidShow(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})),this._register(r.widget.value.onDidHide(()=>{this.isSuggestWidgetVisible=!1,this.update(!1)})),this._register(r.widget.value.onDidFocus(()=>{this.isSuggestWidgetVisible=!0,this.update(!0)})))};this._register(li.once(r.model.onDidTrigger)(a=>{s()}))}this.update(this._isActive)}update(e){let t=this.getSuggestItemInfo();(this._isActive!==e||!vge(this._currentSuggestItemInfo,t))&&(this._isActive=e,this._currentSuggestItemInfo=t,dn(n=>{this.checkModelVersion(n),this._selectedItem.set(this._isActive?this._currentSuggestItemInfo:void 0,n)}))}getSuggestItemInfo(){let e=Ko.get(this.editor);if(!e||!this.isSuggestWidgetVisible)return;let t=e.widget.value.getFocusedItem(),n=this.editor.getPosition(),r=this.editor.getModel();if(!(!t||!n||!r))return M2.fromSuggestion(e,r,n,t.item,this.isShiftKeyPressed)}stopForceRenderingAbove(){let e=Ko.get(this.editor);e==null||e.stopForceRenderingAbove()}forceRenderingAbove(){let e=Ko.get(this.editor);e==null||e.forceRenderingAbove()}},M2=class i{static fromSuggestion(e,t,n,r,o){let{insertText:s}=r.completion,a=!1;if(r.completion.insertTextRules&4){let c=new Wo().parse(s);c.children.length<100&&gp.adjustWhitespace(t,n,!0,c),s=c.toString(),a=!0}let l=e.getOverwriteInfo(r,o);return new i(P.fromPositions(n.delta(0,-l.overwriteBefore),n.delta(0,Math.max(l.overwriteAfter,0))),s,r.completion.kind,a)}constructor(e,t,n,r){this.range=e,this.insertText=t,this.completionItemKind=n,this.isSnippetText=r}equals(e){return this.range.equalsRange(e.range)&&this.insertText===e.insertText&&this.completionItemKind===e.completionItemKind&&this.isSnippetText===e.isSnippetText}toSelectedSuggestionInfo(){return new ZO(this.range,this.insertText,this.completionItemKind,this.isSnippetText)}toSingleTextEdit(){return new Xu(this.range,this.insertText)}}});var _ge,ih,Tr,D2=M(()=>{Lo();Gt();Ce();Ys();Yu();R_();ri();Rs();xt();Jy();IG();Zy();a2();t$();w$();joe();zi();Wn();pt();Et();_ge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},ih=function(i,e){return function(t,n){e(t,n,i)}},Tr=class x$ extends oe{static get(e){return e.getContribution(x$.ID)}constructor(e,t,n,r,o,s,a,l){super(),this.editor=e,this.instantiationService=t,this.contextKeyService=n,this.configurationService=r,this.commandService=o,this.debounceService=s,this.languageFeaturesService=a,this.audioCueService=l,this.model=G0("inlineCompletionModel",void 0),this.textModelVersionId=Gs("textModelVersionId",-1),this.cursorPosition=Gs("cursorPosition",new Se(1,1)),this.suggestWidgetAdaptor=this._register(new L2(this.editor,()=>{var u,h;return(h=(u=this.model.get())===null||u===void 0?void 0:u.selectedInlineCompletion.get())===null||h===void 0?void 0:h.toSingleTextEdit(void 0)},u=>this.updateObservables(u,So.Other))),this._enabled=$s(this.editor.onDidChangeConfiguration,()=>this.editor.getOption(60).enabled),this.ghostTextWidget=this._register(this.instantiationService.createInstance(n2,this.editor,{ghostText:this.model.map((u,h)=>u==null?void 0:u.ghostText.read(h)),minReservedLineCount:$y(0),targetTextModel:this.model.map(u=>u==null?void 0:u.textModel)})),this._debounceValue=this.debounceService.for(this.languageFeaturesService.inlineCompletionsProvider,"InlineCompletionsDebounce",{min:50,max:50}),this._register(new In(this.contextKeyService,this.model)),this._register(li.runAndSubscribe(e.onDidChangeModel,()=>dn(u=>{this.model.set(void 0,u),this.updateObservables(u,So.Other);let h=e.getModel();if(h){let p=t.createInstance(m2,h,this.suggestWidgetAdaptor.selectedItem,this.cursorPosition,this.textModelVersionId,this._debounceValue,$s(e.onDidChangeConfiguration,()=>e.getOption(114).preview),$s(e.onDidChangeConfiguration,()=>e.getOption(114).previewMode),$s(e.onDidChangeConfiguration,()=>e.getOption(60).mode),this._enabled);this.model.set(p,u)}})));let c=u=>{var h;return u.isUndoing?So.Undo:u.isRedoing?So.Redo:!((h=this.model.get())===null||h===void 0)&&h.isAcceptingPartially?So.AcceptWord:So.Other};this._register(e.onDidChangeModelContent(u=>dn(h=>this.updateObservables(h,c(u))))),this._register(e.onDidChangeCursorPosition(u=>dn(h=>{var p;this.updateObservables(h,So.Other),u.reason===3&&((p=this.model.get())===null||p===void 0||p.stop(h))}))),this._register(e.onDidType(()=>dn(u=>{var h;this.updateObservables(u,So.Other),this._enabled.get()&&((h=this.model.get())===null||h===void 0||h.trigger(u))}))),this._register(this.commandService.onDidExecuteCommand(u=>{new Set([ef.Tab.id,ef.DeleteLeft.id,ef.DeleteRight.id,Yy,"acceptSelectedSuggestion"]).has(u.commandId)&&e.hasTextFocus()&&this._enabled.get()&&dn(p=>{var m;(m=this.model.get())===null||m===void 0||m.trigger(p)})})),this._register(this.editor.onDidBlurEditorWidget(()=>{this.configurationService.getValue("editor.inlineSuggest.keepOnBlur")||e.getOption(60).keepOnBlur||Qs.dropDownVisible||dn(u=>{var h;(h=this.model.get())===null||h===void 0||h.stop(u)})})),this._register(un("forceRenderingAbove",u=>{var h;let p=(h=this.model.read(u))===null||h===void 0?void 0:h.state.read(u);p!=null&&p.suggestItem?p.ghostText.lineCount>=2&&this.suggestWidgetAdaptor.forceRenderingAbove():this.suggestWidgetAdaptor.stopForceRenderingAbove()})),this._register(Ft(()=>{this.suggestWidgetAdaptor.stopForceRenderingAbove()}));let d;this._register(un("play audio cue & read suggestion",u=>{let h=this.model.read(u),p=h==null?void 0:h.state.read(u);if(!h||!p||!p.completion){d=void 0;return}if(p.completion.semanticId!==d){if(d=p.completion.semanticId,h.isNavigatingCurrentInlineCompletion)return;this.audioCueService.playAudioCue(oF.inlineSuggestion).then(()=>{if(this.editor.getOption(6)){let m=h.textModel.getLineContent(p.ghostText.lineNumber);Ni(p.ghostText.renderForScreenReader(m))}})}})),this._register(new s2(this.editor,this.model,this.instantiationService))}updateObservables(e,t){var n,r;let o=this.editor.getModel();this.textModelVersionId.set((n=o==null?void 0:o.getVersionId())!==null&&n!==void 0?n:-1,e,t),this.cursorPosition.set((r=this.editor.getPosition())!==null&&r!==void 0?r:new Se(1,1),e)}shouldShowHoverAt(e){var t;let n=(t=this.model.get())===null||t===void 0?void 0:t.ghostText.get();return n?n.parts.some(r=>e.containsPosition(new Se(n.lineNumber,r.column))):!1}shouldShowHoverAtViewZone(e){return this.ghostTextWidget.ownsViewZone(e)}};Tr.ID="editor.contrib.inlineCompletionsController";Tr=_ge([ih(1,Be),ih(2,Ke),ih(3,Mt),ih(4,ui),ih(5,an),ih(6,be),ih(7,rF)],Tr)});var Ed,_g,bg,N2,R2,O2,P2,yg,Cg,E$=M(()=>{Ys();et();Vt();Jy();Zy();D2();Re();Xi();Wn();pt();Ed=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},_g=class i extends se{constructor(){super({id:i.ID,label:v("action.inlineSuggest.showNext","Show Next Inline Suggestion"),alias:"Show Next Inline Suggestion",precondition:ce.and(O.writable,In.inlineSuggestionVisible),kbOpts:{weight:100,primary:606}})}run(e,t){var n;return Ed(this,void 0,void 0,function*(){let r=Tr.get(t);(n=r==null?void 0:r.model.get())===null||n===void 0||n.next()})}};_g.ID=Qy;bg=class i extends se{constructor(){super({id:i.ID,label:v("action.inlineSuggest.showPrevious","Show Previous Inline Suggestion"),alias:"Show Previous Inline Suggestion",precondition:ce.and(O.writable,In.inlineSuggestionVisible),kbOpts:{weight:100,primary:604}})}run(e,t){var n;return Ed(this,void 0,void 0,function*(){let r=Tr.get(t);(n=r==null?void 0:r.model.get())===null||n===void 0||n.previous()})}};bg.ID=Xy;N2=class extends se{constructor(){super({id:"editor.action.inlineSuggest.trigger",label:v("action.inlineSuggest.trigger","Trigger Inline Suggestion"),alias:"Trigger Inline Suggestion",precondition:O.writable})}run(e,t){var n;return Ed(this,void 0,void 0,function*(){let r=Tr.get(t);(n=r==null?void 0:r.model.get())===null||n===void 0||n.triggerExplicitly()})}},R2=class extends se{constructor(){super({id:"editor.action.inlineSuggest.acceptNextWord",label:v("action.inlineSuggest.acceptNextWord","Accept Next Word Of Inline Suggestion"),alias:"Accept Next Word Of Inline Suggestion",precondition:ce.and(O.writable,In.inlineSuggestionVisible),kbOpts:{weight:100+1,primary:2065},menuOpts:[{menuId:xe.InlineSuggestionToolbar,title:v("acceptWord","Accept Word"),group:"primary",order:2}]})}run(e,t){var n;return Ed(this,void 0,void 0,function*(){let r=Tr.get(t);(n=r==null?void 0:r.model.get())===null||n===void 0||n.acceptNextWord(r.editor)})}},O2=class extends se{constructor(){super({id:"editor.action.inlineSuggest.acceptNextLine",label:v("action.inlineSuggest.acceptNextLine","Accept Next Line Of Inline Suggestion"),alias:"Accept Next Line Of Inline Suggestion",precondition:ce.and(O.writable,In.inlineSuggestionVisible),kbOpts:{weight:100+1},menuOpts:[{menuId:xe.InlineSuggestionToolbar,title:v("acceptLine","Accept Line"),group:"secondary",order:2}]})}run(e,t){var n;return Ed(this,void 0,void 0,function*(){let r=Tr.get(t);(n=r==null?void 0:r.model.get())===null||n===void 0||n.acceptNextLine(r.editor)})}},P2=class extends se{constructor(){super({id:Yy,label:v("action.inlineSuggest.accept","Accept Inline Suggestion"),alias:"Accept Inline Suggestion",precondition:In.inlineSuggestionVisible,menuOpts:[{menuId:xe.InlineSuggestionToolbar,title:v("accept","Accept"),group:"primary",order:1}],kbOpts:{primary:2,weight:200,kbExpr:ce.and(In.inlineSuggestionVisible,O.tabMovesFocus.toNegated(),In.inlineSuggestionHasIndentationLessThanTabSize)}})}run(e,t){var n;return Ed(this,void 0,void 0,function*(){let r=Tr.get(t);r&&((n=r.model.get())===null||n===void 0||n.accept(r.editor),r.editor.focus())})}},yg=class i extends se{constructor(){super({id:i.ID,label:v("action.inlineSuggest.hide","Hide Inline Suggestion"),alias:"Hide Inline Suggestion",precondition:In.inlineSuggestionVisible,kbOpts:{weight:100,primary:9}})}run(e,t){return Ed(this,void 0,void 0,function*(){let n=Tr.get(t);dn(r=>{var o;(o=n==null?void 0:n.model.get())===null||o===void 0||o.stop(r)})})}};yg.ID="editor.action.inlineSuggest.hide";Cg=class i extends rs{constructor(){super({id:i.ID,title:v("action.inlineSuggest.alwaysShowToolbar","Always Show Toolbar"),f1:!1,precondition:void 0,menu:[{id:xe.InlineSuggestionToolbar,group:"secondary",order:10}],toggled:ce.equals("config.editor.inlineSuggest.showToolbar","always")})}run(e,t){return Ed(this,void 0,void 0,function*(){let n=e.get(Mt),o=n.getValue("editor.inlineSuggest.showToolbar")==="always"?"onHover":"always";n.updateValue("editor.inlineSuggest.showToolbar",o)})}};Cg.ID="editor.action.inlineSuggest.toggleAlwaysShowToolbar"});var bge,Sg,mT,F2,T$=M(()=>{Bt();Sl();Ce();Ys();qe();os();lc();D2();a2();th();Re();qw();Et();cs();Hc();bge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Sg=function(i,e){return function(t,n){e(t,n,i)}},mT=class{constructor(e,t,n){this.owner=e,this.range=t,this.controller=n}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},F2=class{constructor(e,t,n,r,o,s){this._editor=e,this._languageService=t,this._openerService=n,this.accessibilityService=r,this._instantiationService=o,this._telemetryService=s,this.hoverOrdinal=4}suggestHoverAnchor(e){let t=Tr.get(this._editor);if(!t)return null;let n=e.target;if(n.type===8){let r=n.detail;if(t.shouldShowHoverAtViewZone(r.viewZoneId))return new yd(1e3,this,P.fromPositions(this._editor.getModel().validatePosition(r.positionBefore||r.position)),e.event.posx,e.event.posy,!1)}return n.type===7&&t.shouldShowHoverAt(n.range)?new yd(1e3,this,n.range,e.event.posx,e.event.posy,!1):n.type===6&&n.detail.mightBeForeignElement&&t.shouldShowHoverAt(n.range)?new yd(1e3,this,n.range,e.event.posx,e.event.posy,!1):null}computeSync(e,t){if(this._editor.getOption(60).showToolbar==="always")return[];let n=Tr.get(this._editor);return n&&n.shouldShowHoverAt(e.range)?[new mT(this,e.range,n)]:[]}renderHoverParts(e,t){let n=new re,r=t[0];this._telemetryService.publicLog2("inlineCompletionHover.shown"),this.accessibilityService.isScreenReaderOptimized()&&this.renderScreenReaderText(e,r,n);let o=r.controller.model.get(),s=this._instantiationService.createInstance(Qs,this._editor,!1,$y(null),o.selectedInlineCompletionIndex,o.inlineCompletionsCount,o.selectedInlineCompletion.map(a=>{var l;return(l=a==null?void 0:a.inlineCompletion.source.inlineCompletions.commands)!==null&&l!==void 0?l:[]}));return e.fragment.appendChild(s.getDomNode()),o.triggerExplicitly(),n.add(s),n}renderScreenReaderText(e,t,n){let r=fe,o=r("div.hover-row.markdown-hover"),s=me(o,r("div.hover-contents",{"aria-live":"assertive"})),a=n.add(new to({editor:this._editor},this._languageService,this._openerService)),l=c=>{n.add(a.onDidRenderAsync(()=>{s.className="hover-contents code-hover-contents",e.onContentsChanged()}));let d=v("inlineSuggestionFollows","Suggestion:"),u=n.add(a.render(new sn().appendText(d).appendCodeblock("text",c)));s.replaceChildren(u.element)};n.add(un("update hover",c=>{var d;let u=(d=t.controller.model.read(c))===null||d===void 0?void 0:d.ghostText.read(c);if(u){let h=this._editor.getModel().getLineContent(u.lineNumber);l(u.renderForScreenReader(h))}else Zd(s)})),e.fragment.appendChild(o)}};F2=bge([Sg(1,Qi),Sg(2,Ji),Sg(3,Sb),Sg(4,Be),Sg(5,Dr)],F2)});var gT=M(()=>{et();lc();E$();T$();D2();Xi();Ae(Tr.ID,Tr,3);X(N2);X(_g);X(bg);X(R2);X(O2);X(P2);X(yg);mi(Cg);jo.register(F2)});var k$=M(()=>{});var I$=M(()=>{k$()});var A$=M(()=>{});var L$=M(()=>{A$()});var M$,yge,Cge,vT,_T,B2,H2,D$=M(()=>{Bt();Hw();ma();_P();Ce();Cw();L$();qe();qn();M$=new ut(new Ls(0,122,204)),yge={showArrow:!0,showFrame:!0,className:"",frameColor:M$,arrowColor:M$,keepEditorSelection:!1},Cge="vs.editor.contrib.zoneWidget",vT=class{constructor(e,t,n,r,o,s,a,l){this.id="",this.domNode=e,this.afterLineNumber=t,this.afterColumn=n,this.heightInLines=r,this.showInHiddenAreas=a,this.ordinal=l,this._onDomNodeTop=o,this._onComputedHeight=s}onDomNodeTop(e){this._onDomNodeTop(e)}onComputedHeight(e){this._onComputedHeight(e)}},_T=class{constructor(e,t){this._id=e,this._domNode=t}getId(){return this._id}getDomNode(){return this._domNode}getPosition(){return null}},B2=class i{constructor(e){this._editor=e,this._ruleName=i._IdGenerator.nextId(),this._decorations=this._editor.createDecorationsCollection(),this._color=null,this._height=-1}dispose(){this.hide(),rw(this._ruleName)}set color(e){this._color!==e&&(this._color=e,this._updateStyle())}set height(e){this._height!==e&&(this._height=e,this._updateStyle())}_updateStyle(){rw(this._ruleName),gR(`.monaco-editor ${this._ruleName}`,`border-style: solid; border-color: transparent; border-bottom-color: ${this._color}; border-width: ${this._height}px; bottom: -${this._height}px; margin-left: -${this._height}px; `)}show(e){e.column===1&&(e={lineNumber:e.lineNumber,column:2}),this._decorations.set([{range:P.fromPositions(e),options:{description:"zone-widget-arrow",className:this._ruleName,stickiness:1}}])}hide(){this._decorations.clear()}};B2._IdGenerator=new gP(".arrow-decoration-");H2=class{constructor(e,t={}){this._arrow=null,this._overlayWidget=null,this._resizeSash=null,this._viewZone=null,this._disposables=new re,this.container=null,this._isShowing=!1,this.editor=e,this._positionMarkerId=this.editor.createDecorationsCollection(),this.options=mO(t),sf(this.options,yge,!1),this.domNode=document.createElement("div"),this.options.isAccessible||(this.domNode.setAttribute("aria-hidden","true"),this.domNode.setAttribute("role","presentation")),this._disposables.add(this.editor.onDidLayoutChange(n=>{let r=this._getWidth(n);this.domNode.style.width=r+"px",this.domNode.style.left=this._getLeft(n)+"px",this._onWidth(r)}))}dispose(){this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this._viewZone&&this.editor.changeViewZones(e=>{this._viewZone&&e.removeZone(this._viewZone.id),this._viewZone=null}),this._positionMarkerId.clear(),this._disposables.dispose()}create(){this.domNode.classList.add("zone-widget"),this.options.className&&this.domNode.classList.add(this.options.className),this.container=document.createElement("div"),this.container.classList.add("zone-widget-container"),this.domNode.appendChild(this.container),this.options.showArrow&&(this._arrow=new B2(this.editor),this._disposables.add(this._arrow)),this._fillContainer(this.container),this._initSash(),this._applyStyles()}style(e){e.frameColor&&(this.options.frameColor=e.frameColor),e.arrowColor&&(this.options.arrowColor=e.arrowColor),this._applyStyles()}_applyStyles(){if(this.container&&this.options.frameColor){let e=this.options.frameColor.toString();this.container.style.borderTopColor=e,this.container.style.borderBottomColor=e}if(this._arrow&&this.options.arrowColor){let e=this.options.arrowColor.toString();this._arrow.color=e}}_getWidth(e){return e.width-e.minimap.minimapWidth-e.verticalScrollbarWidth}_getLeft(e){return e.minimap.minimapWidth>0&&e.minimap.minimapLeft===0?e.minimap.minimapWidth:0}_onViewZoneTop(e){this.domNode.style.top=e+"px"}_onViewZoneHeight(e){var t;if(this.domNode.style.height=`${e}px`,this.container){let n=e-this._decoratingElementsHeight();this.container.style.height=`${n}px`;let r=this.editor.getLayoutInfo();this._doLayout(n,this._getWidth(r))}(t=this._resizeSash)===null||t===void 0||t.layout()}get position(){let e=this._positionMarkerId.getRange(0);if(e)return e.getStartPosition()}show(e,t){let n=P.isIRange(e)?P.lift(e):P.fromPositions(e);this._isShowing=!0,this._showImpl(n,t),this._isShowing=!1,this._positionMarkerId.set([{range:n,options:dt.EMPTY}])}hide(){var e;this._viewZone&&(this.editor.changeViewZones(t=>{this._viewZone&&t.removeZone(this._viewZone.id)}),this._viewZone=null),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),(e=this._arrow)===null||e===void 0||e.hide(),this._positionMarkerId.clear()}_decoratingElementsHeight(){let e=this.editor.getOption(64),t=0;if(this.options.showArrow){let n=Math.round(e/3);t+=2*n}if(this.options.showFrame){let n=Math.round(e/9);t+=2*n}return t}_showImpl(e,t){let n=e.getStartPosition(),r=this.editor.getLayoutInfo(),o=this._getWidth(r);this.domNode.style.width=`${o}px`,this.domNode.style.left=this._getLeft(r)+"px";let s=document.createElement("div");s.style.overflow="hidden";let a=this.editor.getOption(64);if(!this.options.allowUnlimitedHeight){let h=Math.max(12,this.editor.getLayoutInfo().height/a*.8);t=Math.min(t,h)}let l=0,c=0;if(this._arrow&&this.options.showArrow&&(l=Math.round(a/3),this._arrow.height=l,this._arrow.show(n)),this.options.showFrame&&(c=Math.round(a/9)),this.editor.changeViewZones(h=>{this._viewZone&&h.removeZone(this._viewZone.id),this._overlayWidget&&(this.editor.removeOverlayWidget(this._overlayWidget),this._overlayWidget=null),this.domNode.style.top="-1000px",this._viewZone=new vT(s,n.lineNumber,n.column,t,p=>this._onViewZoneTop(p),p=>this._onViewZoneHeight(p),this.options.showInHiddenAreas,this.options.ordinal),this._viewZone.id=h.addZone(this._viewZone),this._overlayWidget=new _T(Cge+this._viewZone.id,this.domNode),this.editor.addOverlayWidget(this._overlayWidget)}),this.container&&this.options.showFrame){let h=this.options.frameWidth?this.options.frameWidth:c;this.container.style.borderTopWidth=h+"px",this.container.style.borderBottomWidth=h+"px"}let d=t*a-this._decoratingElementsHeight();this.container&&(this.container.style.top=l+"px",this.container.style.height=d+"px",this.container.style.overflow="hidden"),this._doLayout(d,o),this.options.keepEditorSelection||this.editor.setSelection(e);let u=this.editor.getModel();if(u){let h=u.validateRange(new P(e.startLineNumber,1,e.endLineNumber+1,1));this.revealRange(h,h.startLineNumber===u.getLineCount())}}revealRange(e,t){t?this.editor.revealLineNearTop(e.endLineNumber,0):this.editor.revealRange(e,0)}setCssClass(e,t){this.container&&(t&&this.container.classList.remove(t),this.container.classList.add(e))}_onWidth(e){}_doLayout(e,t){}_relayout(e){this._viewZone&&this._viewZone.heightInLines!==e&&this.editor.changeViewZones(t=>{this._viewZone&&(this._viewZone.heightInLines=e,t.layoutZone(this._viewZone.id))})}_initSash(){if(this._resizeSash)return;this._resizeSash=this._disposables.add(new Al(this.domNode,this,{orientation:1})),this.options.isResizeable||(this._resizeSash.state=0);let e;this._disposables.add(this._resizeSash.onDidStart(t=>{this._viewZone&&(e={startY:t.startY,heightInLines:this._viewZone.heightInLines})})),this._disposables.add(this._resizeSash.onDidEnd(()=>{e=void 0})),this._disposables.add(this._resizeSash.onDidChange(t=>{if(e){let n=(t.currentY-e.startY)/this.editor.getOption(64),r=n<0?Math.ceil(n):Math.floor(n),o=e.heightInLines+r;o>5&&o<35&&this._relayout(o)}}))}getHorizontalSashLeft(){return 0}getHorizontalSashTop(){return(this.domNode.style.height===null?0:parseInt(this.domNode.style.height))-this._decoratingElementsHeight()/2}getHorizontalSashWidth(){let e=this.editor.getLayoutInfo();return e.width-e.minimap.minimapWidth}}});function O$(i){let e=i.get(ei).getFocusedCodeEditor();return e instanceof Vo?e.getParentEditor():e}var N$,R$,bT,Pn,wg,Sge,Tp,P$,z2,U2,F$,B$,pYe,mYe,gYe,vYe,Td,_Ye,bYe,yYe,CYe,SYe,nh=M(()=>{Bt();gf();Pc();or();Kr();ma();Gt();Cw();I$();et();Lr();Sp();D$();Re();yb();pt();bl();Et();_r();N$=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},R$=function(i,e){return function(t,n){e(t,n,i)}},bT=rr("IPeekViewService");sr(bT,class{constructor(){this._widgets=new Map}addExclusiveWidget(i,e){let t=this._widgets.get(i);t&&(t.listener.dispose(),t.widget.dispose());let n=()=>{let r=this._widgets.get(i);r&&r.widget===e&&(r.listener.dispose(),this._widgets.delete(i))};this._widgets.set(i,{widget:e,listener:e.onDidClose(n)})}},1);(function(i){i.inPeekEditor=new rt("inReferenceSearchEditor",!0,v("inReferenceSearchEditor","Whether the current code editor is embedded inside peek")),i.notInPeekEditor=i.inPeekEditor.toNegated()})(Pn||(Pn={}));wg=class{constructor(e,t){e instanceof Vo&&Pn.inPeekEditor.bindTo(t)}dispose(){}};wg.ID="editor.contrib.referenceController";wg=N$([R$(1,Ke)],wg);Ae(wg.ID,wg,0);Sge={headerBackgroundColor:ut.white,primaryHeadingColor:ut.fromHex("#333333"),secondaryHeadingColor:ut.fromHex("#6c6c6cb3")},Tp=class extends H2{constructor(e,t,n){super(e,t),this.instantiationService=n,this._onDidClose=new $e,this.onDidClose=this._onDidClose.event,sf(this.options,Sge,!1)}dispose(){this.disposed||(this.disposed=!0,super.dispose(),this._onDidClose.fire(this))}style(e){let t=this.options;e.headerBackgroundColor&&(t.headerBackgroundColor=e.headerBackgroundColor),e.primaryHeadingColor&&(t.primaryHeadingColor=e.primaryHeadingColor),e.secondaryHeadingColor&&(t.secondaryHeadingColor=e.secondaryHeadingColor),super.style(e)}_applyStyles(){super._applyStyles();let e=this.options;this._headElement&&e.headerBackgroundColor&&(this._headElement.style.backgroundColor=e.headerBackgroundColor.toString()),this._primaryHeading&&e.primaryHeadingColor&&(this._primaryHeading.style.color=e.primaryHeadingColor.toString()),this._secondaryHeading&&e.secondaryHeadingColor&&(this._secondaryHeading.style.color=e.secondaryHeadingColor.toString()),this._bodyElement&&e.frameColor&&(this._bodyElement.style.borderColor=e.frameColor.toString())}_fillContainer(e){this.setCssClass("peekview-widget"),this._headElement=fe(".head"),this._bodyElement=fe(".body"),this._fillHead(this._headElement),this._fillBody(this._bodyElement),e.appendChild(this._headElement),e.appendChild(this._bodyElement)}_fillHead(e,t){this._titleElement=fe(".peekview-title"),this.options.supportOnTitleClick&&(this._titleElement.classList.add("clickable"),es(this._titleElement,"click",o=>this._onTitleClick(o))),me(this._headElement,this._titleElement),this._fillTitleIcon(this._titleElement),this._primaryHeading=fe("span.filename"),this._secondaryHeading=fe("span.dirname"),this._metaHeading=fe("span.meta"),me(this._titleElement,this._primaryHeading,this._secondaryHeading,this._metaHeading);let n=fe(".peekview-actions");me(this._headElement,n);let r=this._getActionBarOptions();this._actionbarWidget=new Oo(n,r),this._disposables.add(this._actionbarWidget),t||this._actionbarWidget.push(new is("peekview.close",v("label.close","Close"),gt.asClassName(ct.close),!0,()=>(this.dispose(),Promise.resolve())),{label:!1,icon:!0})}_fillTitleIcon(e){}_getActionBarOptions(){return{actionViewItemProvider:YP.bind(void 0,this.instantiationService),orientation:0}}_onTitleClick(e){}setTitle(e,t){this._primaryHeading&&this._secondaryHeading&&(this._primaryHeading.innerText=e,this._primaryHeading.setAttribute("title",e),t?this._secondaryHeading.innerText=t:mr(this._secondaryHeading))}setMetaTitle(e){this._metaHeading&&(e?(this._metaHeading.innerText=e,gr(this._metaHeading)):jn(this._metaHeading))}_doLayout(e,t){if(!this._isShowing&&e<0){this.dispose();return}let n=Math.ceil(this.editor.getOption(64)*1.2),r=Math.round(e-(n+2));this._doLayoutHead(n,t),this._doLayoutBody(r,t)}_doLayoutHead(e,t){this._headElement&&(this._headElement.style.height=`${e}px`,this._headElement.style.lineHeight=this._headElement.style.height)}_doLayoutBody(e,t){this._bodyElement&&(this._bodyElement.style.height=`${e}px`)}};Tp=N$([R$(2,Be)],Tp);P$=Oe("peekViewTitle.background",{dark:"#252526",light:"#F3F3F3",hcDark:ut.black,hcLight:ut.white},v("peekViewTitleBackground","Background color of the peek view title area.")),z2=Oe("peekViewTitleLabel.foreground",{dark:ut.white,light:ut.black,hcDark:ut.white,hcLight:_a},v("peekViewTitleForeground","Color of the peek view title.")),U2=Oe("peekViewTitleDescription.foreground",{dark:"#ccccccb3",light:"#616161",hcDark:"#FFFFFF99",hcLight:"#292929"},v("peekViewTitleInfoForeground","Color of the peek view title info.")),F$=Oe("peekView.border",{dark:Bm,light:Bm,hcDark:as,hcLight:as},v("peekViewBorder","Color of the peek view borders and arrow.")),B$=Oe("peekViewResult.background",{dark:"#252526",light:"#F3F3F3",hcDark:ut.black,hcLight:ut.white},v("peekViewResultsBackground","Background color of the peek view result list.")),pYe=Oe("peekViewResult.lineForeground",{dark:"#bbbbbb",light:"#646465",hcDark:ut.white,hcLight:_a},v("peekViewResultsMatchForeground","Foreground color for line nodes in the peek view result list.")),mYe=Oe("peekViewResult.fileForeground",{dark:ut.white,light:"#1E1E1E",hcDark:ut.white,hcLight:_a},v("peekViewResultsFileForeground","Foreground color for file nodes in the peek view result list.")),gYe=Oe("peekViewResult.selectionBackground",{dark:"#3399ff33",light:"#3399ff33",hcDark:null,hcLight:null},v("peekViewResultsSelectionBackground","Background color of the selected entry in the peek view result list.")),vYe=Oe("peekViewResult.selectionForeground",{dark:ut.white,light:"#6C6C6C",hcDark:ut.white,hcLight:_a},v("peekViewResultsSelectionForeground","Foreground color of the selected entry in the peek view result list.")),Td=Oe("peekViewEditor.background",{dark:"#001F33",light:"#F2F8FC",hcDark:ut.black,hcLight:ut.white},v("peekViewEditorBackground","Background color of the peek view editor.")),_Ye=Oe("peekViewEditorGutter.background",{dark:Td,light:Td,hcDark:Td,hcLight:Td},v("peekViewEditorGutterBackground","Background color of the gutter in the peek view editor.")),bYe=Oe("peekViewEditorStickyScroll.background",{dark:Td,light:Td,hcDark:Td,hcLight:Td},v("peekViewEditorStickScrollBackground","Background color of sticky scroll in the peek view editor.")),yYe=Oe("peekViewResult.matchHighlightBackground",{dark:"#ea5c004d",light:"#ea5c004d",hcDark:null,hcLight:null},v("peekViewResultsMatchHighlight","Match highlight color in the peek view result list.")),CYe=Oe("peekViewEditor.matchHighlightBackground",{dark:"#ff8f0099",light:"#f5d802de",hcDark:null,hcLight:null},v("peekViewEditorMatchHighlight","Match highlight color in the peek view editor.")),SYe=Oe("peekViewEditor.matchHighlightBorder",{dark:null,light:null,hcDark:va,hcLight:va},v("peekViewEditorMatchHighlightBorder","Match highlight border in the peek view editor."))});var xge,qo,yT,pc,Ur,kp=M(()=>{At();Gt();_P();Ce();tf();ao();wi();qe();Re();xge=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},qo=class{constructor(e,t,n,r){this.isProviderFirst=e,this.parent=t,this.link=n,this._rangeCallback=r,this.id=vP.nextId()}get uri(){return this.link.uri}get range(){var e,t;return(t=(e=this._range)!==null&&e!==void 0?e:this.link.targetSelectionRange)!==null&&t!==void 0?t:this.link.range}set range(e){this._range=e,this._rangeCallback(this)}get ariaMessage(){var e;let t=(e=this.parent.getPreview(this))===null||e===void 0?void 0:e.preview(this.range);return t?v({key:"aria.oneReference.preview",comment:["Placeholders are: 0: filename, 1:line number, 2: column number, 3: preview snippet of source code"]},"{0} in {1} on line {2} at column {3}",t.value,Nr(this.uri),this.range.startLineNumber,this.range.startColumn):v("aria.oneReference","in {0} on line {1} at column {2}",Nr(this.uri),this.range.startLineNumber,this.range.startColumn)}},yT=class{constructor(e){this._modelReference=e}dispose(){this._modelReference.dispose()}preview(e,t=8){let n=this._modelReference.object.textEditorModel;if(!n)return;let{startLineNumber:r,startColumn:o,endLineNumber:s,endColumn:a}=e,l=n.getWordUntilPosition({lineNumber:r,column:o-t}),c=new P(r,l.startColumn,r,o),d=new P(s,a,s,1073741824),u=n.getValueInRange(c).replace(/^\s+/,""),h=n.getValueInRange(e),p=n.getValueInRange(d).replace(/\s+$/,"");return{value:u+h+p,highlight:{start:u.length,end:u.length+h.length}}}},pc=class{constructor(e,t){this.parent=e,this.uri=t,this.children=[],this._previews=new QR}dispose(){Vi(this._previews.values()),this._previews.clear()}getPreview(e){return this._previews.get(e.uri)}get ariaMessage(){let e=this.children.length;return e===1?v("aria.fileReferences.1","1 symbol in {0}, full path {1}",Nr(this.uri),this.uri.fsPath):v("aria.fileReferences.N","{0} symbols in {1}, full path {2}",e,Nr(this.uri),this.uri.fsPath)}resolve(e){return xge(this,void 0,void 0,function*(){if(this._previews.size!==0)return this;for(let t of this.children)if(!this._previews.has(t.uri))try{let n=yield e.createModelReference(t.uri);this._previews.set(t.uri,new yT(n))}catch(n){lt(n)}return this})}},Ur=class i{constructor(e,t){this.groups=[],this.references=[],this._onDidChangeReferenceRange=new $e,this.onDidChangeReferenceRange=this._onDidChangeReferenceRange.event,this._links=e,this._title=t;let[n]=e;e.sort(i._compareReferences);let r;for(let o of e)if((!r||!yw.isEqual(r.uri,o.uri,!0))&&(r=new pc(this,o.uri),this.groups.push(r)),r.children.length===0||i._compareReferences(o,r.children[r.children.length-1])!==0){let s=new qo(n===o,r,o,a=>this._onDidChangeReferenceRange.fire(a));this.references.push(s),r.children.push(s)}}dispose(){Vi(this.groups),this._onDidChangeReferenceRange.dispose(),this.groups.length=0}clone(){return new i(this._links,this._title)}get title(){return this._title}get isEmpty(){return this.groups.length===0}get ariaMessage(){return this.isEmpty?v("aria.result.0","No results found"):this.references.length===1?v("aria.result.1","Found 1 symbol in {0}",this.references[0].uri.fsPath):this.groups.length===1?v("aria.result.n1","Found {0} symbols in {1}",this.references.length,this.groups[0].uri.fsPath):v("aria.result.nm","Found {0} symbols in {1} files",this.references.length,this.groups.length)}nextOrPreviousReference(e,t){let{parent:n}=e,r=n.children.indexOf(e),o=n.children.length,s=n.parent.groups.length;return s===1||t&&r+10?(t?r=(r+1)%o:r=(r+o-1)%o,n.children[r]):(r=n.parent.groups.indexOf(n),t?(r=(r+1)%s,n.parent.groups[r].children[0]):(r=(r+s-1)%s,n.parent.groups[r].children[n.parent.groups[r].children.length-1]))}nearestReference(e,t){let n=this.references.map((r,o)=>({idx:o,prefixLen:Fc(r.uri.toString(),e.toString()),offsetDist:Math.abs(r.range.startLineNumber-t.lineNumber)*100+Math.abs(r.range.startColumn-t.column)})).sort((r,o)=>r.prefixLen>o.prefixLen?-1:r.prefixLeno.offsetDist?1:0)[0];if(n)return this.references[n.idx]}referenceAt(e,t){for(let n of this.references)if(n.uri.toString()===e.toString()&&P.containsPosition(n.range,t))return n}firstReference(){for(let e of this.references)if(e.isProviderFirst)return e;return this.references[0]}static _compareReferences(e,t){return yw.compare(e.uri,t.uri)||P.compareRangesUsingStarts(e.range,t.range)}}});var H$=M(()=>{});var z$=M(()=>{H$()});var G2,$2,j2,W2,V2,K2,CT,Ip,ST,Ap,q2,j$=M(()=>{Bt();Koe();Uoe();nF();Cl();Ce();ao();ca();Re();Et();Gn();Cb();rb();kp();G2=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},$2=function(i,e){return function(t,n){e(t,n,i)}},j2=class{constructor(e){this._resolverService=e}hasChildren(e){return e instanceof Ur||e instanceof pc}getChildren(e){if(e instanceof Ur)return e.groups;if(e instanceof pc)return e.resolve(this._resolverService).then(t=>t.children);throw new Error("bad tree")}};j2=G2([$2(0,xn)],j2);W2=class{getHeight(){return 23}getTemplateId(e){return e instanceof pc?Ip.id:Ap.id}},V2=class{constructor(e){this._keybindingService=e}getKeyboardNavigationLabel(e){var t;if(e instanceof qo){let n=(t=e.parent.getPreview(e))===null||t===void 0?void 0:t.preview(e.range);if(n)return n.value}return Nr(e.uri)}};V2=G2([$2(0,Ht)],V2);K2=class{getId(e){return e instanceof qo?e.id:e.uri}},CT=class extends oe{constructor(e,t){super(),this._labelService=t;let n=document.createElement("div");n.classList.add("reference-file"),this.file=this._register(new xb(n,{supportHighlights:!0})),this.badge=new cF(me(n,fe(".count")),{},EP),e.appendChild(n)}set(e,t){let n=rf(e.uri);this.file.setLabel(this._labelService.getUriBasenameLabel(e.uri),this._labelService.getUriLabel(n,{relative:!0}),{title:this._labelService.getUriLabel(e.uri),matches:t});let r=e.children.length;this.badge.setCount(r),r>1?this.badge.setTitleFormat(v("referencesCount","{0} references",r)):this.badge.setTitleFormat(v("referenceCount","{0} reference",r))}};CT=G2([$2(1,Dl)],CT);Ip=class U${constructor(e){this._instantiationService=e,this.templateId=U$.id}renderTemplate(e){return this._instantiationService.createInstance(CT,e)}renderElement(e,t,n){n.set(e.element,ru(e.filterData))}disposeTemplate(e){e.dispose()}};Ip.id="FileReferencesRenderer";Ip=G2([$2(0,Be)],Ip);ST=class{constructor(e){this.label=new iF(e)}set(e,t){var n;let r=(n=e.parent.getPreview(e))===null||n===void 0?void 0:n.preview(e.range);if(!r||!r.value)this.label.set(`${Nr(e.uri)}:${e.range.startLineNumber+1}:${e.range.startColumn+1}`);else{let{value:o,highlight:s}=r;t&&!yl.isDefault(t)?(this.label.element.classList.toggle("referenceMatch",!1),this.label.set(o,ru(t))):(this.label.element.classList.toggle("referenceMatch",!0),this.label.set(o,[s]))}}},Ap=class i{constructor(){this.templateId=i.id}renderTemplate(e){return new ST(e)}renderElement(e,t,n){n.set(e.element,e.filterData)}disposeTemplate(){}};Ap.id="OneReferenceRenderer";q2=class{getWidgetAriaLabel(){return v("treeAriaLabel","References")}getAriaLabel(e){return e.ariaMessage}}});var Ege,mc,W$,Y2,X2,wT,Q2,V$=M(()=>{Bt();Woe();ma();Gt();Ce();Im();ao();z$();Sp();qe();qn();Kn();_w();os();ca();j$();nh();Re();Et();Gn();Cb();lF();ar();poe();kp();Ege=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},mc=function(i,e){return function(t,n){e(t,n,i)}},W$=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Y2=class i{constructor(e,t){this._editor=e,this._model=t,this._decorations=new Map,this._decorationIgnoreSet=new Set,this._callOnDispose=new re,this._callOnModelChange=new re,this._callOnDispose.add(this._editor.onDidChangeModel(()=>this._onModelChanged())),this._onModelChanged()}dispose(){this._callOnModelChange.dispose(),this._callOnDispose.dispose(),this.removeDecorations()}_onModelChanged(){this._callOnModelChange.clear();let e=this._editor.getModel();if(e){for(let t of this._model.references)if(t.uri.toString()===e.uri.toString()){this._addDecorations(t.parent);return}}}_addDecorations(e){if(!this._editor.hasModel())return;this._callOnModelChange.add(this._editor.getModel().onDidChangeDecorations(()=>this._onDecorationChanged()));let t=[],n=[];for(let r=0,o=e.children.length;r{let o=r.deltaDecorations([],t);for(let s=0;s{o.equals(9)&&(this._keybindingService.dispatchEvent(o,o.target),o.stopPropagation())},!0)),this._tree=this._instantiationService.createInstance(wT,"ReferencesWidget",this._treeContainer,new W2,[this._instantiationService.createInstance(Ip),this._instantiationService.createInstance(Ap)],this._instantiationService.createInstance(j2),n),this._splitView.addView({onDidChange:li.None,element:this._previewContainer,minimumSize:200,maximumSize:Number.MAX_VALUE,layout:o=>{this._preview.layout({height:this._dim.height,width:o})}},Xw.Distribute),this._splitView.addView({onDidChange:li.None,element:this._treeContainer,minimumSize:100,maximumSize:Number.MAX_VALUE,layout:o=>{this._treeContainer.style.height=`${this._dim.height}px`,this._treeContainer.style.width=`${o}px`,this._tree.layout(this._dim.height,o)}},Xw.Distribute),this._disposables.add(this._splitView.onDidSashChange(()=>{this._dim.width&&(this.layoutData.ratio=this._splitView.getViewSize(0)/this._dim.width)},void 0));let r=(o,s)=>{o instanceof qo&&(s==="show"&&this._revealReference(o,!1),this._onDidSelectReference.fire({element:o,kind:s,source:"tree"}))};this._tree.onDidOpen(o=>{o.sideBySide?r(o.element,"side"):o.editorOptions.pinned?r(o.element,"goto"):r(o.element,"show")}),jn(this._treeContainer)}_onWidth(e){this._dim&&this._doLayoutBody(this._dim.height,e)}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._dim=new Di(t,e),this.layoutData.heightInLines=this._viewZone?this._viewZone.heightInLines:this.layoutData.heightInLines,this._splitView.layout(t),this._splitView.resizeView(0,t*this.layoutData.ratio)}setSelection(e){return this._revealReference(e,!0).then(()=>{this._model&&(this._tree.setSelection([e]),this._tree.setFocus([e]))})}setModel(e){return this._disposeOnNewModel.clear(),this._model=e,this._model?this._onNewModel():Promise.resolve()}_onNewModel(){return this._model?this._model.isEmpty?(this.setTitle(""),this._messageContainer.innerText=v("noResults","No results"),gr(this._messageContainer),Promise.resolve(void 0)):(jn(this._messageContainer),this._decorationsManager=new Y2(this._preview,this._model),this._disposeOnNewModel.add(this._decorationsManager),this._disposeOnNewModel.add(this._model.onDidChangeReferenceRange(e=>this._tree.rerender(e))),this._disposeOnNewModel.add(this._preview.onMouseDown(e=>{let{event:t,target:n}=e;if(t.detail!==2)return;let r=this._getFocusedReference();r&&this._onDidSelectReference.fire({element:{uri:r.uri,range:n.range},kind:t.ctrlKey||t.metaKey||t.altKey?"side":"open",source:"editor"})})),this.container.classList.add("results-loaded"),gr(this._treeContainer),gr(this._previewContainer),this._splitView.layout(this._dim.width),this.focusOnReferenceTree(),this._tree.setInput(this._model.groups.length===1?this._model.groups[0]:this._model)):Promise.resolve(void 0)}_getFocusedReference(){let[e]=this._tree.getFocus();if(e instanceof qo)return e;if(e instanceof pc&&e.children.length>0)return e.children[0]}revealReference(e){return W$(this,void 0,void 0,function*(){yield this._revealReference(e,!1),this._onDidSelectReference.fire({element:e,kind:"goto",source:"tree"})})}_revealReference(e,t){return W$(this,void 0,void 0,function*(){if(this._revealedReference===e)return;this._revealedReference=e,e.uri.scheme!==Ao.inMemory?this.setTitle(lO(e.uri),this._uriLabel.getUriLabel(rf(e.uri))):this.setTitle(v("peekView.alternateTitle","References"));let n=this._textModelResolverService.createModelReference(e.uri);this._tree.getInput()===e.parent?this._tree.reveal(e):(t&&this._tree.reveal(e.parent),yield this._tree.expand(e.parent),this._tree.reveal(e));let r=yield n;if(!this._model){r.dispose();return}Vi(this._previewModelReference);let o=r.object;if(o){let s=this._preview.getModel()===o.textEditorModel?0:1,a=P.lift(e.range).collapseToStart();this._previewModelReference=r,this._preview.setModel(o.textEditorModel),this._preview.setSelection(a),this._preview.revealRangeInCenter(a,s)}else this._preview.setModel(this._previewNotAvailableMessage),r.dispose()})}};Q2=Ege([mc(3,pn),mc(4,xn),mc(5,Be),mc(6,bT),mc(7,Dl),mc(8,aP),mc(9,Ht),mc(10,Qi),mc(11,Tt)],Q2)});function oh(i,e){let t=O$(i);if(!t)return;let n=ol.get(t);n&&e(n)}var Tge,Lp,K$,rh,ol,ET=M(()=>{Dt();At();gl();Ce();Lr();ri();qe();nh();Re();zi();Wn();pt();Et();dw();lF();Ro();cu();kp();V$();Tge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Lp=function(i,e){return function(t,n){e(t,n,i)}},K$=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},rh=new rt("referenceSearchVisible",!1,v("referenceSearchVisible","Whether reference peek is visible, like 'Peek References' or 'Peek Definition'")),ol=class xT{static get(e){return e.getContribution(xT.ID)}constructor(e,t,n,r,o,s,a,l){this._defaultTreeKeyboardSupport=e,this._editor=t,this._editorService=r,this._notificationService=o,this._instantiationService=s,this._storageService=a,this._configurationService=l,this._disposables=new re,this._requestIdPool=0,this._ignoreModelChangeEvent=!1,this._referenceSearchVisible=rh.bindTo(n)}dispose(){var e,t;this._referenceSearchVisible.reset(),this._disposables.dispose(),(e=this._widget)===null||e===void 0||e.dispose(),(t=this._model)===null||t===void 0||t.dispose(),this._widget=void 0,this._model=void 0}toggleWidget(e,t,n){let r;if(this._widget&&(r=this._widget.position),this.closeWidget(),r&&e.containsPosition(r))return;this._peekMode=n,this._referenceSearchVisible.set(!0),this._disposables.add(this._editor.onDidChangeModelLanguage(()=>{this.closeWidget()})),this._disposables.add(this._editor.onDidChangeModel(()=>{this._ignoreModelChangeEvent||this.closeWidget()}));let o="peekViewLayout",s=X2.fromJSON(this._storageService.get(o,0,"{}"));this._widget=this._instantiationService.createInstance(Q2,this._editor,this._defaultTreeKeyboardSupport,s),this._widget.setTitle(v("labelLoading","Loading...")),this._widget.show(e),this._disposables.add(this._widget.onDidClose(()=>{t.cancel(),this._widget&&(this._storageService.store(o,JSON.stringify(this._widget.layoutData),0,1),this._widget=void 0),this.closeWidget()})),this._disposables.add(this._widget.onDidSelectReference(l=>{let{element:c,kind:d}=l;if(c)switch(d){case"open":(l.source!=="editor"||!this._configurationService.getValue("editor.stablePeek"))&&this.openReference(c,!1,!1);break;case"side":this.openReference(c,!0,!1);break;case"goto":n?this._gotoReference(c,!0):this.openReference(c,!1,!0);break}}));let a=++this._requestIdPool;t.then(l=>{var c;if(a!==this._requestIdPool||!this._widget){l.dispose();return}return(c=this._model)===null||c===void 0||c.dispose(),this._model=l,this._widget.setModel(this._model).then(()=>{if(this._widget&&this._model&&this._editor.hasModel()){this._model.isEmpty?this._widget.setMetaTitle(""):this._widget.setMetaTitle(v("metaTitle.N","{0} ({1})",this._model.title,this._model.references.length));let d=this._editor.getModel().uri,u=new Se(e.startLineNumber,e.startColumn),h=this._model.nearestReference(d,u);if(h)return this._widget.setSelection(h).then(()=>{this._widget&&this._editor.getOption(84)==="editor"&&this._widget.focusOnPreviewEditor()})}})},l=>{this._notificationService.error(l)})}changeFocusBetweenPreviewAndReferences(){this._widget&&(this._widget.isPreviewEditorFocused()?this._widget.focusOnReferenceTree():this._widget.focusOnPreviewEditor())}goToNextOrPreviousReference(e){return K$(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._model||!this._widget)return;let t=this._widget.position;if(!t)return;let n=this._model.nearestReference(this._editor.getModel().uri,t);if(!n)return;let r=this._model.nextOrPreviousReference(n,e),o=this._editor.hasTextFocus(),s=this._widget.isPreviewEditorFocused();yield this._widget.setSelection(r),yield this._gotoReference(r,!1),o?this._editor.focus():this._widget&&s&&this._widget.focusOnPreviewEditor()})}revealReference(e){return K$(this,void 0,void 0,function*(){!this._editor.hasModel()||!this._model||!this._widget||(yield this._widget.revealReference(e))})}closeWidget(e=!0){var t,n;(t=this._widget)===null||t===void 0||t.dispose(),(n=this._model)===null||n===void 0||n.dispose(),this._referenceSearchVisible.reset(),this._disposables.clear(),this._widget=void 0,this._model=void 0,e&&this._editor.focus(),this._requestIdPool+=1}_gotoReference(e,t){var n;(n=this._widget)===null||n===void 0||n.hide(),this._ignoreModelChangeEvent=!0;let r=P.lift(e.range).collapseToStart();return this._editorService.openCodeEditor({resource:e.uri,options:{selection:r,selectionSource:"code.jump",pinned:t}},this._editor).then(o=>{var s;if(this._ignoreModelChangeEvent=!1,!o||!this._widget){this.closeWidget();return}if(this._editor===o)this._widget.show(r),this._widget.focusOnReferenceTree();else{let a=xT.get(o),l=this._model.clone();this.closeWidget(),o.focus(),a==null||a.toggleWidget(r,Kt(c=>Promise.resolve(l)),(s=this._peekMode)!==null&&s!==void 0?s:!1)}},o=>{this._ignoreModelChangeEvent=!1,lt(o)})}openReference(e,t,n){t||this.closeWidget();let{uri:r,range:o}=e;this._editorService.openCodeEditor({resource:r,options:{selection:o,selectionSource:"code.jump",pinned:n}},this._editor,t)}};ol.ID="editor.contrib.referencesController";ol=Tge([Lp(2,Ke),Lp(3,ei),Lp(4,Ei),Lp(5,Be),Lp(6,$r),Lp(7,Mt)],ol);Do.registerCommandAndKeybindingRule({id:"togglePeekWidgetFocus",weight:100,primary:di(2089,60),when:ce.or(rh,Pn.inPeekEditor),handler(i){oh(i,e=>{e.changeFocusBetweenPreviewAndReferences()})}});Do.registerCommandAndKeybindingRule({id:"goToNextReference",weight:100-10,primary:62,secondary:[70],when:ce.or(rh,Pn.inPeekEditor),handler(i){oh(i,e=>{e.goToNextOrPreviousReference(!0)})}});Do.registerCommandAndKeybindingRule({id:"goToPreviousReference",weight:100-10,primary:1086,secondary:[1094],when:ce.or(rh,Pn.inPeekEditor),handler(i){oh(i,e=>{e.goToNextOrPreviousReference(!1)})}});St.registerCommandAlias("goToNextReferenceFromEmbeddedEditor","goToNextReference");St.registerCommandAlias("goToPreviousReferenceFromEmbeddedEditor","goToPreviousReference");St.registerCommandAlias("closeReferenceSearchEditor","closeReferenceSearch");St.registerCommand("closeReferenceSearch",i=>oh(i,e=>e.closeWidget()));Do.registerKeybindingRule({id:"closeReferenceSearch",weight:100-101,primary:9,secondary:[1033],when:ce.and(Pn.inPeekEditor,ce.not("config.editor.stablePeek"))});Do.registerKeybindingRule({id:"closeReferenceSearch",weight:200+50,primary:9,secondary:[1033],when:ce.and(rh,ce.not("config.editor.stablePeek"))});Do.registerCommandAndKeybindingRule({id:"revealReference",weight:200,primary:3,mac:{primary:3,secondary:[2066]},when:ce.and(rh,Qw,Jw.negate(),Zw.negate()),handler(i){var e;let n=(e=i.get(Eb).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(n)&&n[0]instanceof qo&&oh(i,r=>r.revealReference(n[0]))}});Do.registerCommandAndKeybindingRule({id:"openReferenceToSide",weight:100,primary:2051,mac:{primary:259},when:ce.and(rh,Qw,Jw.negate(),Zw.negate()),handler(i){var e;let n=(e=i.get(Eb).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(n)&&n[0]instanceof qo&&oh(i,r=>r.openReference(n[0],!0,!0))}});St.registerCommand("openReference",i=>{var e;let n=(e=i.get(Eb).lastFocusedList)===null||e===void 0?void 0:e.getFocus();Array.isArray(n)&&n[0]instanceof qo&&oh(i,r=>r.openReference(n[0],!1,!0))})});var q$,xg,IT,Eg,TT,kT,G$=M(()=>{Gt();Ce();ao();et();Lr();qe();Re();pt();bl();Et();Gn();dw();Ro();q$=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},xg=function(i,e){return function(t,n){e(t,n,i)}},IT=new rt("hasSymbols",!1,v("hasSymbols","Whether there are symbol locations that can be navigated via keyboard-only.")),Eg=rr("ISymbolNavigationService"),TT=class{constructor(e,t,n,r){this._editorService=t,this._notificationService=n,this._keybindingService=r,this._currentModel=void 0,this._currentIdx=-1,this._ignoreEditorChange=!1,this._ctxHasSymbols=IT.bindTo(e)}reset(){var e,t;this._ctxHasSymbols.reset(),(e=this._currentState)===null||e===void 0||e.dispose(),(t=this._currentMessage)===null||t===void 0||t.dispose(),this._currentModel=void 0,this._currentIdx=-1}put(e){let t=e.parent.parent;if(t.references.length<=1){this.reset();return}this._currentModel=t,this._currentIdx=t.references.indexOf(e),this._ctxHasSymbols.set(!0),this._showMessage();let n=new kT(this._editorService),r=n.onDidChange(o=>{if(this._ignoreEditorChange)return;let s=this._editorService.getActiveCodeEditor();if(!s)return;let a=s.getModel(),l=s.getPosition();if(!a||!l)return;let c=!1,d=!1;for(let u of t.references)if(nf(u.uri,a.uri))c=!0,d=d||P.containsPosition(u.range,l);else if(c)break;(!c||!d)&&this.reset()});this._currentState=JS(n,r)}revealNext(e){if(!this._currentModel)return Promise.resolve();this._currentIdx+=1,this._currentIdx%=this._currentModel.references.length;let t=this._currentModel.references[this._currentIdx];return this._showMessage(),this._ignoreEditorChange=!0,this._editorService.openCodeEditor({resource:t.uri,options:{selection:P.collapseToStart(t.range),selectionRevealType:3}},e).finally(()=>{this._ignoreEditorChange=!1})}_showMessage(){var e;(e=this._currentMessage)===null||e===void 0||e.dispose();let t=this._keybindingService.lookupKeybinding("editor.gotoNextSymbolFromResult"),n=t?v("location.kb","Symbol {0} of {1}, {2} for next",this._currentIdx+1,this._currentModel.references.length,t.getLabel()):v("location","Symbol {0} of {1}",this._currentIdx+1,this._currentModel.references.length);this._currentMessage=this._notificationService.status(n)}};TT=q$([xg(0,Ke),xg(1,ei),xg(2,Ei),xg(3,Ht)],TT);sr(Eg,TT,1);Ne(new class extends xi{constructor(){super({id:"editor.gotoNextSymbolFromResult",precondition:IT,kbOpts:{weight:100,primary:70}})}runEditorCommand(i,e){return i.get(Eg).revealNext(e)}});Do.registerCommandAndKeybindingRule({id:"editor.gotoNextSymbolFromResult.cancel",weight:100,when:IT,primary:9,handler(i){i.get(Eg).reset()}});kT=class{constructor(e){this._listener=new Map,this._disposables=new re,this._onDidChange=new $e,this.onDidChange=this._onDidChange.event,this._disposables.add(e.onCodeEditorRemove(this._onDidRemoveEditor,this)),this._disposables.add(e.onCodeEditorAdd(this._onDidAddEditor,this)),e.listCodeEditors().forEach(this._onDidAddEditor,this)}dispose(){this._disposables.dispose(),this._onDidChange.dispose(),Vi(this._listener.values())}_onDidAddEditor(e){this._listener.set(e,JS(e.onDidChangeCursorPosition(t=>this._onDidChange.fire({editor:e})),e.onDidChangeModelContent(t=>this._onDidChange.fire({editor:e}))))}_onDidRemoveEditor(e){var t;(t=this._listener.get(e))===null||t===void 0||t.dispose(),this._listener.delete(e)}};kT=q$([xg(0,ei)],kT)});function Tg(i,e,t,n){return AT(this,void 0,void 0,function*(){let o=t.ordered(i).map(a=>Promise.resolve(n(a,i,e)).then(void 0,l=>{Ut(l)})),s=yield Promise.all(o);return vr(s.flat())})}function sh(i,e,t,n){return Tg(e,t,i,(r,o,s)=>r.provideDefinition(o,s,n))}function LT(i,e,t,n){return Tg(e,t,i,(r,o,s)=>r.provideDeclaration(o,s,n))}function MT(i,e,t,n){return Tg(e,t,i,(r,o,s)=>r.provideImplementation(o,s,n))}function DT(i,e,t,n){return Tg(e,t,i,(r,o,s)=>r.provideTypeDefinition(o,s,n))}function kg(i,e,t,n,r){return Tg(e,t,i,(o,s,a)=>AT(this,void 0,void 0,function*(){let l=yield o.provideReferences(s,a,{includeDeclaration:!0},r);if(!n||!l||l.length!==2)return l;let c=yield o.provideReferences(s,a,{includeDeclaration:!1},r);return c&&c.length===1?c:l}))}function Ig(i){return AT(this,void 0,void 0,function*(){let e=yield i(),t=new Ur(e,""),n=t.references.map(r=>r.link);return t.dispose(),n})}var AT,J2=M(()=>{oi();gi();At();et();xt();kp();AT=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};qr("_executeDefinitionProvider",(i,e,t)=>{let n=i.get(be),r=sh(n.definitionProvider,e,t,tt.None);return Ig(()=>r)});qr("_executeTypeDefinitionProvider",(i,e,t)=>{let n=i.get(be),r=DT(n.typeDefinitionProvider,e,t,tt.None);return Ig(()=>r)});qr("_executeDeclarationProvider",(i,e,t)=>{let n=i.get(be),r=LT(n.declarationProvider,e,t,tt.None);return Ig(()=>r)});qr("_executeReferenceProvider",(i,e,t)=>{let n=i.get(be),r=kg(n.referenceProvider,e,t,!1,tt.None);return Ig(()=>r)});qr("_executeImplementationProvider",(i,e,t)=>{let n=i.get(be),r=MT(n.implementationProvider,e,t,tt.None);return Ig(()=>r)})});var Ss,NT,RT,OT,PT,FT,BT,HT,zT,ah,ws,gc,$$,Z2,eC,tC,iC,VT,Ag=M(()=>{ew();Lo();Dt();gl();nr();Mi();Sn();lu();Uw();et();Lr();Sp();ri();qe();Vt();br();ET();kp();G$();u0();nh();Re();Xi();zi();pt();Et();Ro();Gc();J2();xt();Em();Ss=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};ns.appendMenuItem(xe.EditorContext,{submenu:xe.EditorContextPeek,title:v("peek.submenu","Peek"),group:"navigation",order:100});ah=class i{static is(e){return!e||typeof e!="object"?!1:!!(e instanceof i||Se.isIPosition(e.position)&&e.model)}constructor(e,t){this.model=e,this.position=t}},ws=class i extends ua{static all(){return i._allSymbolNavigationCommands.values()}static _patchConfig(e){let t=Object.assign(Object.assign({},e),{f1:!0});if(t.menu)for(let n of so.wrap(t.menu))(n.id===xe.EditorContext||n.id===xe.EditorContextPeek)&&(n.when=ce.and(e.precondition,n.when));return t}constructor(e,t){super(i._patchConfig(t)),this.configuration=e,i._allSymbolNavigationCommands.set(t.id,this)}runEditorCommand(e,t,n,r){if(!t.hasModel())return Promise.resolve(void 0);let o=e.get(Ei),s=e.get(ei),a=e.get(El),l=e.get(Eg),c=e.get(be),d=e.get(Be),u=t.getModel(),h=t.getPosition(),p=ah.is(n)?n:new ah(u,h),m=new Sa(t,5),g=Vc(this._getLocationModel(c,p.model,p.position,m.token),m.token).then(b=>Ss(this,void 0,void 0,function*(){var S;if(!b||m.token.isCancellationRequested)return;Ni(b.ariaMessage);let k;if(b.referenceAt(u.uri,h)){let A=this._getAlternativeCommand(t);!i._activeAlternativeCommands.has(A)&&i._allSymbolNavigationCommands.has(A)&&(k=i._allSymbolNavigationCommands.get(A))}let N=b.references.length;if(N===0){if(!this.configuration.muteMessage){let A=u.getWordAtPosition(h);(S=Qn.get(t))===null||S===void 0||S.showMessage(this._getNoResultFoundMessage(A),h)}}else if(N===1&&k)i._activeAlternativeCommands.add(this.desc.id),d.invokeFunction(A=>k.runEditorCommand(A,t,n,r).finally(()=>{i._activeAlternativeCommands.delete(this.desc.id)}));else return this._onResult(s,l,t,b,r)}),b=>{o.error(b)}).finally(()=>{m.dispose()});return a.showWhile(g,250),g}_onResult(e,t,n,r,o){return Ss(this,void 0,void 0,function*(){let s=this._getGoToPreference(n);if(!(n instanceof Vo)&&(this.configuration.openInPeek||s==="peek"&&r.references.length>1))this._openInPeek(n,r,o);else{let a=r.firstReference(),l=r.references.length>1&&s==="gotoAndPeek",c=yield this._openReference(n,e,a,this.configuration.openToSide,!l);l&&c?this._openInPeek(c,r,o):r.dispose(),s==="goto"&&t.put(a)}})}_openReference(e,t,n,r,o){return Ss(this,void 0,void 0,function*(){let s;if(eP(n)&&(s=n.targetSelectionRange),s||(s=n.range),!s)return;let a=yield t.openCodeEditor({resource:n.uri,options:{selection:P.collapseToStart(s),selectionRevealType:3,selectionSource:"code.jump"}},e,r);if(a){if(o){let l=a.getModel(),c=a.createDecorationsCollection([{range:s,options:{description:"symbol-navigate-action-highlight",className:"symbolHighlight"}}]);setTimeout(()=>{a.getModel()===l&&c.clear()},350)}return a}})}_openInPeek(e,t,n){let r=ol.get(e);r&&e.hasModel()?r.toggleWidget(n!=null?n:e.getSelection(),Kt(o=>Promise.resolve(t)),this.configuration.openInPeek):t.dispose()}};ws._allSymbolNavigationCommands=new Map;ws._activeAlternativeCommands=new Set;gc=class extends ws{_getLocationModel(e,t,n,r){return Ss(this,void 0,void 0,function*(){return new Ur(yield sh(e.definitionProvider,t,n,r),v("def.title","Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?v("noResultWord","No definition found for '{0}'",e.word):v("generic.noResults","No definition found")}_getAlternativeCommand(e){return e.getOption(56).alternativeDefinitionCommand}_getGoToPreference(e){return e.getOption(56).multipleDefinitions}},$$=f_&&!nR()?2118:70;mi((NT=class UT extends gc{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:UT.id,title:{value:v("actions.goToDecl.label","Go to Definition"),original:"Go to Definition",mnemonicTitle:v({key:"miGotoDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Definition")},precondition:ce.and(O.hasDefinitionProvider,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:$$,weight:100},menu:[{id:xe.EditorContext,group:"navigation",order:1.1},{id:xe.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:2}]}),St.registerCommandAlias("editor.action.goToDeclaration",UT.id)}},NT.id="editor.action.revealDefinition",NT));mi((RT=class jT extends gc{constructor(){super({openToSide:!0,openInPeek:!1,muteMessage:!1},{id:jT.id,title:{value:v("actions.goToDeclToSide.label","Open Definition to the Side"),original:"Open Definition to the Side"},precondition:ce.and(O.hasDefinitionProvider,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:di(2089,$$),weight:100}}),St.registerCommandAlias("editor.action.openDeclarationToTheSide",jT.id)}},RT.id="editor.action.revealDefinitionAside",RT));mi((OT=class WT extends gc{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:WT.id,title:{value:v("actions.previewDecl.label","Peek Definition"),original:"Peek Definition"},precondition:ce.and(O.hasDefinitionProvider,Pn.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:582,linux:{primary:3140},weight:100},menu:{id:xe.EditorContextPeek,group:"peek",order:2}}),St.registerCommandAlias("editor.action.previewDeclaration",WT.id)}},OT.id="editor.action.peekDefinition",OT));Z2=class extends ws{_getLocationModel(e,t,n,r){return Ss(this,void 0,void 0,function*(){return new Ur(yield LT(e.declarationProvider,t,n,r),v("decl.title","Declarations"))})}_getNoResultFoundMessage(e){return e&&e.word?v("decl.noResultWord","No declaration found for '{0}'",e.word):v("decl.generic.noResults","No declaration found")}_getAlternativeCommand(e){return e.getOption(56).alternativeDeclarationCommand}_getGoToPreference(e){return e.getOption(56).multipleDeclarations}};mi((PT=class Y$ extends Z2{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:Y$.id,title:{value:v("actions.goToDeclaration.label","Go to Declaration"),original:"Go to Declaration",mnemonicTitle:v({key:"miGotoDeclaration",comment:["&& denotes a mnemonic"]},"Go to &&Declaration")},precondition:ce.and(O.hasDeclarationProvider,O.isInWalkThroughSnippet.toNegated()),menu:[{id:xe.EditorContext,group:"navigation",order:1.3},{id:xe.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}_getNoResultFoundMessage(e){return e&&e.word?v("decl.noResultWord","No declaration found for '{0}'",e.word):v("decl.generic.noResults","No declaration found")}},PT.id="editor.action.revealDeclaration",PT));mi(class extends Z2{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.peekDeclaration",title:{value:v("actions.peekDecl.label","Peek Declaration"),original:"Peek Declaration"},precondition:ce.and(O.hasDeclarationProvider,Pn.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),menu:{id:xe.EditorContextPeek,group:"peek",order:3}})}});eC=class extends ws{_getLocationModel(e,t,n,r){return Ss(this,void 0,void 0,function*(){return new Ur(yield DT(e.typeDefinitionProvider,t,n,r),v("typedef.title","Type Definitions"))})}_getNoResultFoundMessage(e){return e&&e.word?v("goToTypeDefinition.noResultWord","No type definition found for '{0}'",e.word):v("goToTypeDefinition.generic.noResults","No type definition found")}_getAlternativeCommand(e){return e.getOption(56).alternativeTypeDefinitionCommand}_getGoToPreference(e){return e.getOption(56).multipleTypeDefinitions}};mi((FT=class X$ extends eC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:X$.ID,title:{value:v("actions.goToTypeDefinition.label","Go to Type Definition"),original:"Go to Type Definition",mnemonicTitle:v({key:"miGotoTypeDefinition",comment:["&& denotes a mnemonic"]},"Go to &&Type Definition")},precondition:ce.and(O.hasTypeDefinitionProvider,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:0,weight:100},menu:[{id:xe.EditorContext,group:"navigation",order:1.4},{id:xe.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:3}]})}},FT.ID="editor.action.goToTypeDefinition",FT));mi((BT=class Q$ extends eC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Q$.ID,title:{value:v("actions.peekTypeDefinition.label","Peek Type Definition"),original:"Peek Type Definition"},precondition:ce.and(O.hasTypeDefinitionProvider,Pn.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),menu:{id:xe.EditorContextPeek,group:"peek",order:4}})}},BT.ID="editor.action.peekTypeDefinition",BT));tC=class extends ws{_getLocationModel(e,t,n,r){return Ss(this,void 0,void 0,function*(){return new Ur(yield MT(e.implementationProvider,t,n,r),v("impl.title","Implementations"))})}_getNoResultFoundMessage(e){return e&&e.word?v("goToImplementation.noResultWord","No implementation found for '{0}'",e.word):v("goToImplementation.generic.noResults","No implementation found")}_getAlternativeCommand(e){return e.getOption(56).alternativeImplementationCommand}_getGoToPreference(e){return e.getOption(56).multipleImplementations}};mi((HT=class J$ extends tC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:J$.ID,title:{value:v("actions.goToImplementation.label","Go to Implementations"),original:"Go to Implementations",mnemonicTitle:v({key:"miGotoImplementation",comment:["&& denotes a mnemonic"]},"Go to &&Implementations")},precondition:ce.and(O.hasImplementationProvider,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:2118,weight:100},menu:[{id:xe.EditorContext,group:"navigation",order:1.45},{id:xe.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:4}]})}},HT.ID="editor.action.goToImplementation",HT));mi((zT=class Z$ extends tC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:Z$.ID,title:{value:v("actions.peekImplementation.label","Peek Implementations"),original:"Peek Implementations"},precondition:ce.and(O.hasImplementationProvider,Pn.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:3142,weight:100},menu:{id:xe.EditorContextPeek,group:"peek",order:5}})}},zT.ID="editor.action.peekImplementation",zT));iC=class extends ws{_getNoResultFoundMessage(e){return e?v("references.no","No references found for '{0}'",e.word):v("references.noGeneric","No references found")}_getAlternativeCommand(e){return e.getOption(56).alternativeReferenceCommand}_getGoToPreference(e){return e.getOption(56).multipleReferences}};mi(class extends iC{constructor(){super({openToSide:!1,openInPeek:!1,muteMessage:!1},{id:"editor.action.goToReferences",title:{value:v("goToReferences.label","Go to References"),original:"Go to References",mnemonicTitle:v({key:"miGotoReference",comment:["&& denotes a mnemonic"]},"Go to &&References")},precondition:ce.and(O.hasReferenceProvider,Pn.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),keybinding:{when:O.editorTextFocus,primary:1094,weight:100},menu:[{id:xe.EditorContext,group:"navigation",order:1.45},{id:xe.MenubarGoMenu,precondition:null,group:"4_symbol_nav",order:5}]})}_getLocationModel(e,t,n,r){return Ss(this,void 0,void 0,function*(){return new Ur(yield kg(e.referenceProvider,t,n,!0,r),v("ref.title","References"))})}});mi(class extends iC{constructor(){super({openToSide:!1,openInPeek:!0,muteMessage:!1},{id:"editor.action.referenceSearch.trigger",title:{value:v("references.action.label","Peek References"),original:"Peek References"},precondition:ce.and(O.hasReferenceProvider,Pn.notInPeekEditor,O.isInWalkThroughSnippet.toNegated()),menu:{id:xe.EditorContextPeek,group:"peek",order:6}})}_getLocationModel(e,t,n,r){return Ss(this,void 0,void 0,function*(){return new Ur(yield kg(e.referenceProvider,t,n,!1,r),v("ref.title","References"))})}});VT=class extends ws{constructor(e,t,n){super(e,{id:"editor.action.goToLocation",title:{value:v("label.generic","Go to Any Symbol"),original:"Go to Any Symbol"},precondition:ce.and(Pn.notInPeekEditor,O.isInWalkThroughSnippet.toNegated())}),this._references=t,this._gotoMultipleBehaviour=n}_getLocationModel(e,t,n,r){return Ss(this,void 0,void 0,function*(){return new Ur(this._references,v("generic.title","Locations"))})}_getNoResultFoundMessage(e){return e&&v("generic.noResult","No results for '{0}'",e.word)||""}_getGoToPreference(e){var t;return(t=this._gotoMultipleBehaviour)!==null&&t!==void 0?t:e.getOption(56).multipleReferences}_getAlternativeCommand(){return""}};St.registerCommand({id:"editor.action.goToLocations",description:{description:"Go to locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ft},{name:"position",description:"The position at which to start",constraint:Se.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"},{name:"noResultsMessage",description:"Human readable message that shows when locations is empty."}]},handler:(i,e,t,n,r,o,s)=>Ss(void 0,void 0,void 0,function*(){Lt(ft.isUri(e)),Lt(Se.isIPosition(t)),Lt(Array.isArray(n)),Lt(typeof r=="undefined"||typeof r=="string"),Lt(typeof s=="undefined"||typeof s=="boolean");let a=i.get(ei),l=yield a.openCodeEditor({resource:e},a.getFocusedCodeEditor());if(zw(l))return l.setPosition(t),l.revealPositionInCenterIfOutsideViewport(t,0),l.invokeWithinContext(c=>{let d=new class extends VT{_getNoResultFoundMessage(u){return o||super._getNoResultFoundMessage(u)}}({muteMessage:!o,openInPeek:!!s,openToSide:!1},n,r);c.get(Be).invokeFunction(d.run.bind(d),l)})})});St.registerCommand({id:"editor.action.peekLocations",description:{description:"Peek locations from a position in a file",args:[{name:"uri",description:"The text document in which to start",constraint:ft},{name:"position",description:"The position at which to start",constraint:Se.isIPosition},{name:"locations",description:"An array of locations.",constraint:Array},{name:"multiple",description:"Define what to do when having multiple results, either `peek`, `gotoAndPeek`, or `goto"}]},handler:(i,e,t,n,r)=>Ss(void 0,void 0,void 0,function*(){i.get(ui).executeCommand("editor.action.goToLocations",e,t,n,r,void 0,!0)})});St.registerCommand({id:"editor.action.findReferences",handler:(i,e,t)=>{Lt(ft.isUri(e)),Lt(Se.isIPosition(t));let n=i.get(be),r=i.get(ei);return r.openCodeEditor({resource:e},r.getFocusedCodeEditor()).then(o=>{if(!zw(o)||!o.hasModel())return;let s=ol.get(o);if(!s)return;let a=Kt(c=>kg(n.referenceProvider,o.getModel(),Se.lift(t),!1,c).then(d=>new Ur(d,v("ref.title","References")))),l=new P(t.lineNumber,t.column,t.lineNumber,t.column);return Promise.resolve(s.toggleWidget(l,a,!1))})}});St.registerCommandAlias("editor.action.showReferences","editor.action.peekLocations")});var eY=M(()=>{});var tY=M(()=>{eY()});function KT(i,e){return!!i[e]}function iY(i){return i==="altKey"?zn?new Mp(57,"metaKey",6,"altKey"):new Mp(5,"ctrlKey",6,"altKey"):zn?new Mp(6,"altKey",57,"metaKey"):new Mp(6,"altKey",5,"ctrlKey")}var Lg,nC,Mp,sl,Mg=M(()=>{Gt();Ce();nr();Lg=class{constructor(e,t){this.target=e.target,this.isLeftClick=e.event.leftButton,this.isMiddleClick=e.event.middleButton,this.isRightClick=e.event.rightButton,this.hasTriggerModifier=KT(e.event,t.triggerModifier),this.hasSideBySideModifier=KT(e.event,t.triggerSideBySideModifier),this.isNoneOrSingleMouseDown=e.event.detail<=1}},nC=class{constructor(e,t){this.keyCodeIsTriggerKey=e.keyCode===t.triggerKey,this.keyCodeIsSideBySideKey=e.keyCode===t.triggerSideBySideKey,this.hasTriggerModifier=KT(e,t.triggerModifier)}},Mp=class{constructor(e,t,n,r){this.triggerKey=e,this.triggerModifier=t,this.triggerSideBySideKey=n,this.triggerSideBySideModifier=r}equals(e){return this.triggerKey===e.triggerKey&&this.triggerModifier===e.triggerModifier&&this.triggerSideBySideKey===e.triggerSideBySideKey&&this.triggerSideBySideModifier===e.triggerSideBySideModifier}};sl=class extends oe{constructor(e,t){super(),this._onMouseMoveOrRelevantKeyDown=this._register(new $e),this.onMouseMoveOrRelevantKeyDown=this._onMouseMoveOrRelevantKeyDown.event,this._onExecute=this._register(new $e),this.onExecute=this._onExecute.event,this._onCancel=this._register(new $e),this.onCancel=this._onCancel.event,this._editor=e,this._alwaysFireExecuteOnMouseUp=t,this._opts=iY(this._editor.getOption(75)),this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._register(this._editor.onDidChangeConfiguration(n=>{if(n.hasChanged(75)){let r=iY(this._editor.getOption(75));if(this._opts.equals(r))return;this._opts=r,this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._lineNumberOnMouseDown=0,this._onCancel.fire()}})),this._register(this._editor.onMouseMove(n=>this._onEditorMouseMove(new Lg(n,this._opts)))),this._register(this._editor.onMouseDown(n=>this._onEditorMouseDown(new Lg(n,this._opts)))),this._register(this._editor.onMouseUp(n=>this._onEditorMouseUp(new Lg(n,this._opts)))),this._register(this._editor.onKeyDown(n=>this._onEditorKeyDown(new nC(n,this._opts)))),this._register(this._editor.onKeyUp(n=>this._onEditorKeyUp(new nC(n,this._opts)))),this._register(this._editor.onMouseDrag(()=>this._resetHandler())),this._register(this._editor.onDidChangeCursorSelection(n=>this._onDidChangeCursorSelection(n))),this._register(this._editor.onDidChangeModel(n=>this._resetHandler())),this._register(this._editor.onDidChangeModelContent(()=>this._resetHandler())),this._register(this._editor.onDidScrollChange(n=>{(n.scrollTopChanged||n.scrollLeftChanged)&&this._resetHandler()}))}_onDidChangeCursorSelection(e){e.selection&&e.selection.startColumn!==e.selection.endColumn&&this._resetHandler()}_onEditorMouseMove(e){this._lastMouseMoveEvent=e,this._onMouseMoveOrRelevantKeyDown.fire([e,null])}_onEditorMouseDown(e){this._hasTriggerKeyOnMouseDown=e.hasTriggerModifier,this._lineNumberOnMouseDown=e.target.position?e.target.position.lineNumber:0}_onEditorMouseUp(e){let t=e.target.position?e.target.position.lineNumber:0;(this._hasTriggerKeyOnMouseDown&&this._lineNumberOnMouseDown&&this._lineNumberOnMouseDown===t||this._alwaysFireExecuteOnMouseUp)&&this._onExecute.fire(e)}_onEditorKeyDown(e){this._lastMouseMoveEvent&&(e.keyCodeIsTriggerKey||e.keyCodeIsSideBySideKey&&e.hasTriggerModifier)?this._onMouseMoveOrRelevantKeyDown.fire([this._lastMouseMoveEvent,e]):e.hasTriggerModifier&&this._onCancel.fire()}_onEditorKeyUp(e){e.keyCodeIsTriggerKey&&this._onCancel.fire()}_resetHandler(){this._lastMouseMoveEvent=null,this._hasTriggerKeyOnMouseDown=!1,this._onCancel.fire()}}});var kge,qT,nY,kd,oC=M(()=>{Dt();At();Sl();Ce();Mi();tY();lu();et();qe();os();ca();Mg();nh();Re();pt();Ag();J2();xt();qn();kge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},qT=function(i,e){return function(t,n){e(t,n,i)}},nY=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},kd=class rC{constructor(e,t,n,r){this.textModelResolverService=t,this.languageService=n,this.languageFeaturesService=r,this.toUnhook=new re,this.toUnhookForKeyboard=new re,this.currentWordAtPosition=null,this.previousPromise=null,this.editor=e,this.linkDecorations=this.editor.createDecorationsCollection();let o=new sl(e);this.toUnhook.add(o),this.toUnhook.add(o.onMouseMoveOrRelevantKeyDown(([s,a])=>{this.startFindDefinitionFromMouse(s,Un(a))})),this.toUnhook.add(o.onExecute(s=>{this.isEnabled(s)&&this.gotoDefinition(s.target.position,s.hasSideBySideModifier).catch(a=>{lt(a)}).finally(()=>{this.removeLinkDecorations()})})),this.toUnhook.add(o.onCancel(()=>{this.removeLinkDecorations(),this.currentWordAtPosition=null}))}static get(e){return e.getContribution(rC.ID)}startFindDefinitionFromCursor(e){return nY(this,void 0,void 0,function*(){yield this.startFindDefinition(e),this.toUnhookForKeyboard.add(this.editor.onDidChangeCursorPosition(()=>{this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear()})),this.toUnhookForKeyboard.add(this.editor.onKeyDown(t=>{t&&(this.currentWordAtPosition=null,this.removeLinkDecorations(),this.toUnhookForKeyboard.clear())}))})}startFindDefinitionFromMouse(e,t){if(e.target.type===9&&this.linkDecorations.length>0)return;if(!this.editor.hasModel()||!this.isEnabled(e,t)){this.currentWordAtPosition=null,this.removeLinkDecorations();return}let n=e.target.position;this.startFindDefinition(n)}startFindDefinition(e){var t;return nY(this,void 0,void 0,function*(){this.toUnhookForKeyboard.clear();let n=e?(t=this.editor.getModel())===null||t===void 0?void 0:t.getWordAtPosition(e):null;if(!n){this.currentWordAtPosition=null,this.removeLinkDecorations();return}if(this.currentWordAtPosition&&this.currentWordAtPosition.startColumn===n.startColumn&&this.currentWordAtPosition.endColumn===n.endColumn&&this.currentWordAtPosition.word===n.word)return;this.currentWordAtPosition=n;let r=new J_(this.editor,15);this.previousPromise&&(this.previousPromise.cancel(),this.previousPromise=null),this.previousPromise=Kt(a=>this.findDefinition(e,a));let o;try{o=yield this.previousPromise}catch(a){lt(a);return}if(!o||!o.length||!r.validate(this.editor)){this.removeLinkDecorations();return}let s=o[0].originSelectionRange?P.lift(o[0].originSelectionRange):new P(e.lineNumber,n.startColumn,e.lineNumber,n.endColumn);if(o.length>1){let a=s;for(let{originSelectionRange:l}of o)l&&(a=P.plusRange(a,l));this.addDecoration(a,new sn().appendText(v("multipleResults","Click to show {0} definitions.",o.length)))}else{let a=o[0];if(!a.uri)return;this.textModelResolverService.createModelReference(a.uri).then(l=>{if(!l.object||!l.object.textEditorModel){l.dispose();return}let{object:{textEditorModel:c}}=l,{startLineNumber:d}=a.range;if(d<1||d>c.getLineCount()){l.dispose();return}let u=this.getPreviewValue(c,d,a),h=this.languageService.guessLanguageIdByFilepathOrFirstLine(c.uri);this.addDecoration(s,u?new sn().appendCodeblock(h||"",u):void 0),l.dispose()})}})}getPreviewValue(e,t,n){let r=n.range;return r.endLineNumber-r.startLineNumber>=rC.MAX_SOURCE_PREVIEW_LINES&&(r=this.getPreviewRangeBasedOnIndentation(e,t)),this.stripIndentationFromPreviewRange(e,t,r)}stripIndentationFromPreviewRange(e,t,n){let o=e.getLineFirstNonWhitespaceColumn(t);for(let a=t+1;a{let r=!t&&this.editor.getOption(85)&&!this.isInPeekEditor(n);return new gc({openToSide:t,openInPeek:r,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(n)})}isInPeekEditor(e){let t=e.get(Ke);return Pn.inPeekEditor.getValue(t)}dispose(){this.toUnhook.dispose(),this.toUnhookForKeyboard.dispose()}};kd.ID="editor.contrib.gotodefinitionatposition";kd.MAX_SOURCE_PREVIEW_LINES=8;kd=kge([qT(1,xn),qT(2,Qi),qT(3,be)],kd);Ae(kd.ID,kd,2)});var rY,sC,aC,GT,YT,$T,oY=M(()=>{oi();Gt();Ce();XN();wi();Sn();qe();bl();Et();ob();Wn();rY=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},sC=function(i,e){return function(t,n){e(t,n,i)}},aC=class{constructor(e,t,n){this.marker=e,this.index=t,this.total=n}},GT=class{constructor(e,t,n){this._markerService=t,this._configService=n,this._onDidChange=new $e,this.onDidChange=this._onDidChange.event,this._dispoables=new re,this._markers=[],this._nextIdx=-1,ft.isUri(e)?this._resourceFilter=a=>a.toString()===e.toString():e&&(this._resourceFilter=e);let r=this._configService.getValue("problems.sortOrder"),o=(a,l)=>{let c=sw(a.resource.toString(),l.resource.toString());return c===0&&(r==="position"?c=P.compareRangesUsingStarts(a,l)||Dn.compare(a.severity,l.severity):c=Dn.compare(a.severity,l.severity)||P.compareRangesUsingStarts(a,l)),c},s=()=>{this._markers=this._markerService.read({resource:ft.isUri(e)?e:void 0,severities:Dn.Error|Dn.Warning|Dn.Info}),typeof e=="function"&&(this._markers=this._markers.filter(a=>this._resourceFilter(a.resource))),this._markers.sort(o)};s(),this._dispoables.add(t.onMarkerChanged(a=>{(!this._resourceFilter||a.some(l=>this._resourceFilter(l)))&&(s(),this._nextIdx=-1,this._onDidChange.fire())}))}dispose(){this._dispoables.dispose(),this._onDidChange.dispose()}matches(e){return!this._resourceFilter&&!e?!0:!this._resourceFilter||!e?!1:this._resourceFilter(e)}get selected(){let e=this._markers[this._nextIdx];return e&&new aC(e,this._nextIdx+1,this._markers.length)}_initIdx(e,t,n){let r=!1,o=this._markers.findIndex(s=>s.resource.toString()===e.uri.toString());o<0&&(o=iu(this._markers,{resource:e.uri},(s,a)=>sw(s.resource.toString(),a.resource.toString())),o<0&&(o=~o));for(let s=o;sr.resource.toString()===e.toString());if(!(n<0)){for(;n{});var aY=M(()=>{sY()});var lY=M(()=>{});var cY=M(()=>{lY()});var lC,dY=M(()=>{cY();or();Kr();_oe();(function(i){function e(t){switch(t){case Jm.Ignore:return"severity-ignore "+gt.asClassName(ct.info);case Jm.Info:return gt.asClassName(ct.info);case Jm.Warning:return gt.asClassName(ct.warning);case Jm.Error:return gt.asClassName(ct.error);default:return""}}i.className=e})(lC||(lC={}))});var Ige,Dp,XT,lh,uY,hY,fY,QT,Age,cC,Lge,JT,Mge,Dge,mY=M(()=>{Bt();tb();oi();ma();Gt();Ce();ao();wi();aY();qe();nh();Re();yb();Xi();pt();Et();Cb();ob();cs();dY();_r();ar();Ige=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Dp=function(i,e){return function(t,n){e(t,n,i)}},XT=class{constructor(e,t,n,r,o){this._openerService=r,this._labelService=o,this._lines=0,this._longestLineLength=0,this._relatedDiagnostics=new WeakMap,this._disposables=new re,this._editor=t;let s=document.createElement("div");s.className="descriptioncontainer",this._messageBlock=document.createElement("div"),this._messageBlock.classList.add("message"),this._messageBlock.setAttribute("aria-live","assertive"),this._messageBlock.setAttribute("role","alert"),s.appendChild(this._messageBlock),this._relatedBlock=document.createElement("div"),s.appendChild(this._relatedBlock),this._disposables.add(es(this._relatedBlock,"click",a=>{a.preventDefault();let l=this._relatedDiagnostics.get(a.target);l&&n(l)})),this._scrollable=new CP(s,{horizontal:1,vertical:1,useShadows:!1,horizontalScrollbarSize:6,verticalScrollbarSize:6}),e.appendChild(this._scrollable.getDomNode()),this._disposables.add(this._scrollable.onScroll(a=>{s.style.left=`-${a.scrollLeft}px`,s.style.top=`-${a.scrollTop}px`})),this._disposables.add(this._scrollable)}dispose(){Vi(this._disposables)}update(e){let{source:t,message:n,relatedInformation:r,code:o}=e,s=((t==null?void 0:t.length)||0)+2;o&&(typeof o=="string"?s+=o.length:s+=o.value.length);let a=eu(n);this._lines=a.length,this._longestLineLength=0;for(let h of a)this._longestLineLength=Math.max(h.length+s,this._longestLineLength);mr(this._messageBlock),this._messageBlock.setAttribute("aria-label",this.getAriaLabel(e)),this._editor.applyFontInfo(this._messageBlock);let l=this._messageBlock;for(let h of a)l=document.createElement("div"),l.innerText=h,h===""&&(l.style.height=this._messageBlock.style.lineHeight),this._messageBlock.appendChild(l);if(t||o){let h=document.createElement("span");if(h.classList.add("details"),l.appendChild(h),t){let p=document.createElement("span");p.innerText=t,p.classList.add("source"),h.appendChild(p)}if(o)if(typeof o=="string"){let p=document.createElement("span");p.innerText=`(${o})`,p.classList.add("code"),h.appendChild(p)}else{this._codeLink=fe("a.code-link"),this._codeLink.setAttribute("href",`${o.target.toString()}`),this._codeLink.onclick=m=>{this._openerService.open(o.target,{allowCommands:!0}),m.preventDefault(),m.stopPropagation()};let p=me(this._codeLink,fe("span"));p.innerText=o.value,h.appendChild(this._codeLink)}}if(mr(this._relatedBlock),this._editor.applyFontInfo(this._relatedBlock),ji(r)){let h=this._relatedBlock.appendChild(document.createElement("div"));h.style.paddingTop=`${Math.floor(this._editor.getOption(64)*.66)}px`,this._lines+=1;for(let p of r){let m=document.createElement("div"),g=document.createElement("a");g.classList.add("filename"),g.innerText=`${this._labelService.getUriBasenameLabel(p.resource)}(${p.startLineNumber}, ${p.startColumn}): `,g.title=this._labelService.getUriLabel(p.resource),this._relatedDiagnostics.set(g,p);let b=document.createElement("span");b.innerText=p.message,m.appendChild(g),m.appendChild(b),this._lines+=1,h.appendChild(m)}}let c=this._editor.getOption(48),d=Math.ceil(c.typicalFullwidthCharacterWidth*this._longestLineLength*.75),u=c.lineHeight*this._lines;this._scrollable.setScrollDimensions({scrollWidth:d,scrollHeight:u})}layout(e,t){this._scrollable.getDomNode().style.height=`${e}px`,this._scrollable.getDomNode().style.width=`${t}px`,this._scrollable.setScrollDimensions({width:t,height:e})}getHeightInLines(){return Math.min(17,this._lines)}getAriaLabel(e){let t="";switch(e.severity){case Dn.Error:t=v("Error","Error");break;case Dn.Warning:t=v("Warning","Warning");break;case Dn.Info:t=v("Info","Info");break;case Dn.Hint:t=v("Hint","Hint");break}let n=v("marker aria","{0} at {1}. ",t,e.startLineNumber+":"+e.startColumn),r=this._editor.getModel();return r&&e.startLineNumber<=r.getLineCount()&&e.startLineNumber>=1&&(n=`${r.getLineContent(e.startLineNumber)}, ${n}`),n}},lh=class pY extends Tp{constructor(e,t,n,r,o,s,a){super(e,{showArrow:!0,showFrame:!0,isAccessible:!0,frameWidth:1},o),this._themeService=t,this._openerService=n,this._menuService=r,this._contextKeyService=s,this._labelService=a,this._callOnDispose=new re,this._onDidSelectRelatedInformation=new $e,this.onDidSelectRelatedInformation=this._onDidSelectRelatedInformation.event,this._severity=Dn.Warning,this._backgroundColor=ut.white,this._applyTheme(t.getColorTheme()),this._callOnDispose.add(t.onDidColorThemeChange(this._applyTheme.bind(this))),this.create()}_applyTheme(e){this._backgroundColor=e.getColor(Dge);let t=QT,n=Age;this._severity===Dn.Warning?(t=cC,n=Lge):this._severity===Dn.Info&&(t=JT,n=Mge);let r=e.getColor(t),o=e.getColor(n);this.style({arrowColor:r,frameColor:r,headerBackgroundColor:o,primaryHeadingColor:e.getColor(z2),secondaryHeadingColor:e.getColor(U2)})}_applyStyles(){this._parentContainer&&(this._parentContainer.style.backgroundColor=this._backgroundColor?this._backgroundColor.toString():""),super._applyStyles()}dispose(){this._callOnDispose.dispose(),super.dispose()}_fillHead(e){super._fillHead(e),this._disposables.add(this._actionbarWidget.actionRunner.onWillRun(r=>this.editor.focus()));let t=[],n=this._menuService.createMenu(pY.TitleMenu,this._contextKeyService);_b(n,void 0,t),this._actionbarWidget.push(t,{label:!1,icon:!0,index:0}),n.dispose()}_fillTitleIcon(e){this._icon=me(e,fe(""))}_fillBody(e){this._parentContainer=e,e.classList.add("marker-widget"),this._parentContainer.tabIndex=0,this._parentContainer.setAttribute("role","tooltip"),this._container=document.createElement("div"),e.appendChild(this._container),this._message=new XT(this._container,this.editor,t=>this._onDidSelectRelatedInformation.fire(t),this._openerService,this._labelService),this._disposables.add(this._message)}show(){throw new Error("call showAtMarker")}showAtMarker(e,t,n){this._container.classList.remove("stale"),this._message.update(e),this._severity=e.severity,this._applyTheme(this._themeService.getColorTheme());let r=P.lift(e),o=this.editor.getPosition(),s=o&&r.containsPosition(o)?o:r.getStartPosition();super.show(s,this.computeRequiredHeight());let a=this.editor.getModel();if(a){let l=n>1?v("problems","{0} of {1} problems",t,n):v("change","{0} of {1} problem",t,n);this.setTitle(Nr(a.uri),l)}this._icon.className=`codicon ${lC.className(Dn.toSeverity(this._severity))}`,this.editor.revealPositionNearTop(s,0),this.editor.focus()}updateMarker(e){this._container.classList.remove("stale"),this._message.update(e)}showStale(){this._container.classList.add("stale"),this._relayout()}_doLayoutBody(e,t){super._doLayoutBody(e,t),this._heightInPixel=e,this._message.layout(e,t),this._container.style.height=`${e}px`}_onWidth(e){this._message.layout(this._heightInPixel,e)}_relayout(){super._relayout(this.computeRequiredHeight())}computeRequiredHeight(){return 3+this._message.getHeightInLines()}};lh.TitleMenu=new xe("gotoErrorTitleMenu");lh=Ige([Dp(1,pn),Dp(2,Ji),Dp(3,As),Dp(4,Be),Dp(5,Ke),Dp(6,Dl)],lh);uY=K_(kO,IO),hY=K_(AO,LO),fY=K_(Bm,MO),QT=Oe("editorMarkerNavigationError.background",{dark:uY,light:uY,hcDark:as,hcLight:as},v("editorMarkerNavigationError","Editor marker navigation widget error color.")),Age=Oe("editorMarkerNavigationError.headerBackground",{dark:Or(QT,.1),light:Or(QT,.1),hcDark:null,hcLight:null},v("editorMarkerNavigationErrorHeaderBackground","Editor marker navigation widget error heading background.")),cC=Oe("editorMarkerNavigationWarning.background",{dark:hY,light:hY,hcDark:as,hcLight:as},v("editorMarkerNavigationWarning","Editor marker navigation widget warning color.")),Lge=Oe("editorMarkerNavigationWarning.headerBackground",{dark:Or(cC,.1),light:Or(cC,.1),hcDark:"#0C141F",hcLight:Or(cC,.2)},v("editorMarkerNavigationWarningBackground","Editor marker navigation widget warning heading background.")),JT=Oe("editorMarkerNavigationInfo.background",{dark:fY,light:fY,hcDark:as,hcLight:as},v("editorMarkerNavigationInfo","Editor marker navigation widget info color.")),Mge=Oe("editorMarkerNavigationInfo.headerBackground",{dark:Or(JT,.1),light:Or(JT,.1),hcDark:null,hcLight:null},v("editorMarkerNavigationInfoHeaderBackground","Editor marker navigation widget info heading background.")),Dge=Oe("editorMarkerNavigation.background",{dark:Hm,light:Hm,hcDark:Hm,hcLight:Hm},v("editorMarkerNavigationBackground","Editor marker navigation widget background."))});var Nge,dC,gY,vc,Np,ch,Dg,ZT,ek,vY,Rge,hC=M(()=>{or();Ce();et();Lr();ri();qe();Vt();oY();Re();Xi();pt();Et();Ll();mY();Nge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},dC=function(i,e){return function(t,n){e(t,n,i)}},gY=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},vc=class uC{static get(e){return e.getContribution(uC.ID)}constructor(e,t,n,r,o){this._markerNavigationService=t,this._contextKeyService=n,this._editorService=r,this._instantiationService=o,this._sessionDispoables=new re,this._editor=e,this._widgetVisible=vY.bindTo(this._contextKeyService)}dispose(){this._cleanUp(),this._sessionDispoables.dispose()}_cleanUp(){this._widgetVisible.reset(),this._sessionDispoables.clear(),this._widget=void 0,this._model=void 0}_getOrCreateModel(e){if(this._model&&this._model.matches(e))return this._model;let t=!1;return this._model&&(t=!0,this._cleanUp()),this._model=this._markerNavigationService.getMarkerList(e),t&&this._model.move(!0,this._editor.getModel(),this._editor.getPosition()),this._widget=this._instantiationService.createInstance(lh,this._editor),this._widget.onDidClose(()=>this.close(),this,this._sessionDispoables),this._widgetVisible.set(!0),this._sessionDispoables.add(this._model),this._sessionDispoables.add(this._widget),this._sessionDispoables.add(this._editor.onDidChangeCursorPosition(n=>{var r,o,s;(!(!((r=this._model)===null||r===void 0)&&r.selected)||!P.containsPosition((o=this._model)===null||o===void 0?void 0:o.selected.marker,n.position))&&((s=this._model)===null||s===void 0||s.resetIndex())})),this._sessionDispoables.add(this._model.onDidChange(()=>{if(!this._widget||!this._widget.position||!this._model)return;let n=this._model.find(this._editor.getModel().uri,this._widget.position);n?this._widget.updateMarker(n.marker):this._widget.showStale()})),this._sessionDispoables.add(this._widget.onDidSelectRelatedInformation(n=>{this._editorService.openCodeEditor({resource:n.resource,options:{pinned:!0,revealIfOpened:!0,selection:P.lift(n).collapseToStart()}},this._editor),this.close(!1)})),this._sessionDispoables.add(this._editor.onDidChangeModel(()=>this._cleanUp())),this._model}close(e=!0){this._cleanUp(),e&&this._editor.focus()}showAtMarker(e){if(this._editor.hasModel()){let t=this._getOrCreateModel(this._editor.getModel().uri);t.resetIndex(),t.move(!0,this._editor.getModel(),new Se(e.startLineNumber,e.startColumn)),t.selected&&this._widget.showAtMarker(t.selected.marker,t.selected.index,t.selected.total)}}nagivate(e,t){var n,r;return gY(this,void 0,void 0,function*(){if(this._editor.hasModel()){let o=this._getOrCreateModel(t?void 0:this._editor.getModel().uri);if(o.move(e,this._editor.getModel(),this._editor.getPosition()),!o.selected)return;if(o.selected.marker.resource.toString()!==this._editor.getModel().uri.toString()){this._cleanUp();let s=yield this._editorService.openCodeEditor({resource:o.selected.marker.resource,options:{pinned:!1,revealIfOpened:!0,selectionRevealType:2,selection:o.selected.marker}},this._editor);s&&((n=uC.get(s))===null||n===void 0||n.close(),(r=uC.get(s))===null||r===void 0||r.nagivate(e,t))}else this._widget.showAtMarker(o.selected.marker,o.selected.index,o.selected.total)}})}};vc.ID="editor.contrib.markerController";vc=Nge([dC(1,YT),dC(2,Ke),dC(3,ei),dC(4,Be)],vc);Np=class extends se{constructor(e,t,n){super(n),this._next=e,this._multiFile=t}run(e,t){var n;return gY(this,void 0,void 0,function*(){t.hasModel()&&((n=vc.get(t))===null||n===void 0||n.nagivate(this._next,this._multiFile))})}},ch=class i extends Np{constructor(){super(!0,!1,{id:i.ID,label:i.LABEL,alias:"Go to Next Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:578,weight:100},menuOpts:{menuId:lh.TitleMenu,title:i.LABEL,icon:Ti("marker-navigation-next",ct.arrowDown,v("nextMarkerIcon","Icon for goto next marker.")),group:"navigation",order:1}})}};ch.ID="editor.action.marker.next";ch.LABEL=v("markerAction.next.label","Go to Next Problem (Error, Warning, Info)");Dg=class i extends Np{constructor(){super(!1,!1,{id:i.ID,label:i.LABEL,alias:"Go to Previous Problem (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:1602,weight:100},menuOpts:{menuId:lh.TitleMenu,title:i.LABEL,icon:Ti("marker-navigation-previous",ct.arrowUp,v("previousMarkerIcon","Icon for goto previous marker.")),group:"navigation",order:2}})}};Dg.ID="editor.action.marker.prev";Dg.LABEL=v("markerAction.previous.label","Go to Previous Problem (Error, Warning, Info)");ZT=class extends Np{constructor(){super(!0,!0,{id:"editor.action.marker.nextInFiles",label:v("markerAction.nextInFiles.label","Go to Next Problem in Files (Error, Warning, Info)"),alias:"Go to Next Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:66,weight:100},menuOpts:{menuId:xe.MenubarGoMenu,title:v({key:"miGotoNextProblem",comment:["&& denotes a mnemonic"]},"Next &&Problem"),group:"6_problem_nav",order:1}})}},ek=class extends Np{constructor(){super(!1,!0,{id:"editor.action.marker.prevInFiles",label:v("markerAction.previousInFiles.label","Go to Previous Problem in Files (Error, Warning, Info)"),alias:"Go to Previous Problem in Files (Error, Warning, Info)",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:1090,weight:100},menuOpts:{menuId:xe.MenubarGoMenu,title:v({key:"miGotoPreviousProblem",comment:["&& denotes a mnemonic"]},"Previous &&Problem"),group:"6_problem_nav",order:2}})}};Ae(vc.ID,vc,4);X(ch);X(Dg);X(ZT);X(ek);vY=new rt("markersNavigationVisible",!1),Rge=xi.bindToContribution(vc.get);Ne(new Rge({id:"closeMarkersNavigation",precondition:vY,handler:i=>i.close(),kbOpts:{weight:100+50,kbExpr:O.focus,primary:9,secondary:[1033]}}))});var _Y=M(()=>{});var bY=M(()=>{_Y()});var fC,Rp,pC,tk=M(()=>{Bt();sR();tb();Ce();bY();fC=fe,Rp=class extends oe{constructor(){super(),this.containerDomNode=document.createElement("div"),this.containerDomNode.className="monaco-hover",this.containerDomNode.tabIndex=0,this.containerDomNode.setAttribute("role","tooltip"),this.contentsDomNode=document.createElement("div"),this.contentsDomNode.className="monaco-hover-content",this.scrollbar=this._register(new mf(this.contentsDomNode,{consumeMouseWheelIfScrollbarIsNeeded:!0})),this.containerDomNode.appendChild(this.scrollbar.getDomNode())}onContentsChanged(){this.scrollbar.scanDomNode()}},pC=class i extends oe{static render(e,t,n){return new i(e,t,n)}constructor(e,t,n){super(),this.actionContainer=me(e,fC("div.action-container")),this.actionContainer.setAttribute("tabindex","0"),this.action=me(this.actionContainer,fC("a.action")),this.action.setAttribute("role","button"),t.iconClass&&me(this.action,fC(`span.icon.${t.iconClass}`));let r=me(this.action,fC("span"));r.textContent=n?`${t.label} (${n})`:t.label,this._register(Rt(this.actionContainer,on.CLICK,o=>{o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer)})),this._register(Rt(this.actionContainer,on.KEY_DOWN,o=>{let s=new v_(o);(s.equals(3)||s.equals(10))&&(o.stopPropagation(),o.preventDefault(),t.run(this.actionContainer))})),this.setEnabled(!0)}setEnabled(e){e?(this.actionContainer.classList.remove("disabled"),this.actionContainer.removeAttribute("aria-disabled")):(this.actionContainer.classList.add("disabled"),this.actionContainer.setAttribute("aria-disabled","true"))}}});var Oge,Pge,ik,Op,nk=M(()=>{Dt();At();Gt();Ce();Oge=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Pge=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=i[o]&&function(s){return new Promise(function(a,l){s=i[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}},ik=class{constructor(e,t,n){this.value=e,this.isComplete=t,this.hasLoadingMessage=n}},Op=class extends oe{constructor(e,t){super(),this._editor=e,this._computer=t,this._onResult=this._register(new $e),this.onResult=this._onResult.event,this._firstWaitScheduler=this._register(new ii(()=>this._triggerAsyncComputation(),0)),this._secondWaitScheduler=this._register(new ii(()=>this._triggerSyncComputation(),0)),this._loadingMessageScheduler=this._register(new ii(()=>this._triggerLoadingMessage(),0)),this._state=0,this._asyncIterable=null,this._asyncIterableDone=!1,this._result=[]}dispose(){this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),super.dispose()}get _hoverTime(){return this._editor.getOption(58).delay}get _firstWaitTime(){return this._hoverTime/2}get _secondWaitTime(){return this._hoverTime-this._firstWaitTime}get _loadingMessageTime(){return 3*this._hoverTime}_setState(e,t=!0){this._state=e,t&&this._fireResult()}_triggerAsyncComputation(){this._setState(2),this._secondWaitScheduler.schedule(this._secondWaitTime),this._computer.computeAsync?(this._asyncIterableDone=!1,this._asyncIterable=pO(e=>this._computer.computeAsync(e)),Oge(this,void 0,void 0,function*(){var e,t,n,r;try{try{for(var o=!0,s=Pge(this._asyncIterable),a;a=yield s.next(),e=a.done,!e;o=!0){r=a.value,o=!1;let l=r;l&&(this._result.push(l),this._fireResult())}}catch(l){t={error:l}}finally{try{!o&&!e&&(n=s.return)&&(yield n.call(s))}finally{if(t)throw t.error}}this._asyncIterableDone=!0,(this._state===3||this._state===4)&&this._setState(0)}catch(l){lt(l)}})):this._asyncIterableDone=!0}_triggerSyncComputation(){this._computer.computeSync&&(this._result=this._result.concat(this._computer.computeSync())),this._setState(this._asyncIterableDone?0:3)}_triggerLoadingMessage(){this._state===3&&this._setState(4)}_fireResult(){if(this._state===1||this._state===2)return;let e=this._state===0,t=this._state===4;this._onResult.fire(new ik(this._result.slice(0),e,t))}start(e){if(e===0)this._state===0&&(this._setState(1),this._firstWaitScheduler.schedule(this._firstWaitTime),this._loadingMessageScheduler.schedule(this._loadingMessageTime));else switch(this._state){case 0:this._triggerAsyncComputation(),this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break;case 2:this._secondWaitScheduler.cancel(),this._triggerSyncComputation();break}}cancel(){this._firstWaitScheduler.cancel(),this._secondWaitScheduler.cancel(),this._loadingMessageScheduler.cancel(),this._asyncIterable&&(this._asyncIterable.cancel(),this._asyncIterable=null),this._result=[],this._setState(0,!1)}}});function CY(i,e,t,n,r,o){let s=t+r/2,a=n+o/2,l=Math.max(Math.abs(i-s)-r/2,0),c=Math.max(Math.abs(e-a)-o/2,0);return Math.sqrt(l*l+c*c)}var lk,mC,yY,Ng,gC,ok,sk,Id,Rg,ak,ck=M(()=>{Bt();tk();oi();Ce();ri();qe();qn();br();nk();lc();pt();Et();Gn();Zu();Dt();Vt();lk=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},mC=function(i,e){return function(t,n){e(t,n,i)}},yY=fe,Ng=class rk extends oe{constructor(e,t,n){super(),this._editor=e,this._instantiationService=t,this._keybindingService=n,this._widget=this._register(this._instantiationService.createInstance(Id,this._editor)),this._currentResult=null,this._participants=[];for(let r of jo.getAll())this._participants.push(this._instantiationService.createInstance(r,this._editor));this._participants.sort((r,o)=>r.hoverOrdinal-o.hoverOrdinal),this._computer=new ak(this._editor,this._participants),this._hoverOperation=this._register(new Op(this._editor,this._computer)),this._register(this._hoverOperation.onResult(r=>{if(!this._computer.anchor)return;let o=r.hasLoadingMessage?this._addLoadingMessage(r.value):r.value;this._withResult(new gC(this._computer.anchor,o,r.isComplete))})),this._register(es(this._widget.getDomNode(),"keydown",r=>{r.equals(9)&&this.hide()})),this._register(hf.onDidChange(()=>{this._widget.position&&this._currentResult&&(this._widget.clear(),this._setCurrentResult(this._currentResult))}))}maybeShowAt(e){let t=[];for(let r of this._participants)if(r.suggestHoverAnchor){let o=r.suggestHoverAnchor(e);o&&t.push(o)}let n=e.target;if(n.type===6&&t.push(new cp(0,n.range,e.event.posx,e.event.posy)),n.type===7){let r=this._editor.getOption(48).typicalHalfwidthCharacterWidth/2;!n.detail.isAfterLines&&typeof n.detail.horizontalDistanceToText=="number"&&n.detail.horizontalDistanceToTexto.priority-r.priority),this._startShowingOrUpdateHover(t[0],0,0,!1,e))}startShowingAtRange(e,t,n,r){this._startShowingOrUpdateHover(new cp(0,e,void 0,void 0),t,n,r,null)}_startShowingOrUpdateHover(e,t,n,r,o){return!this._widget.position||!this._currentResult?e?(this._startHoverOperationIfNecessary(e,t,n,r,!1),!0):!1:this._editor.getOption(58).sticky&&o&&this._widget.isMouseGettingCloser(o.event.posx,o.event.posy)?(e&&this._startHoverOperationIfNecessary(e,t,n,r,!0),!0):e?e&&this._currentResult.anchor.equals(e)?!0:e.canAdoptVisibleHover(this._currentResult.anchor,this._widget.position)?(this._setCurrentResult(this._currentResult.filter(e)),this._startHoverOperationIfNecessary(e,t,n,r,!1),!0):(this._setCurrentResult(null),this._startHoverOperationIfNecessary(e,t,n,r,!1),!0):(this._setCurrentResult(null),!1)}_startHoverOperationIfNecessary(e,t,n,r,o){this._computer.anchor&&this._computer.anchor.equals(e)||(this._hoverOperation.cancel(),this._computer.anchor=e,this._computer.shouldFocus=r,this._computer.source=n,this._computer.insistOnKeepingHoverVisible=o,this._hoverOperation.start(t))}_setCurrentResult(e){this._currentResult!==e&&(e&&e.messages.length===0&&(e=null),this._currentResult=e,this._currentResult?this._renderMessages(this._currentResult.anchor,this._currentResult.messages):this._widget.hide())}hide(){this._computer.anchor=null,this._hoverOperation.cancel(),this._setCurrentResult(null)}isColorPickerVisible(){return this._widget.isColorPickerVisible}isVisibleFromKeyboard(){return this._widget.isVisibleFromKeyboard}isVisible(){return this._widget.isVisible}containsNode(e){return e?this._widget.getDomNode().contains(e):!1}_addLoadingMessage(e){if(this._computer.anchor){for(let t of this._participants)if(t.createLoadingMessage){let n=t.createLoadingMessage(this._computer.anchor);if(n)return e.slice(0).concat([n])}}return e}_withResult(e){this._widget.position&&this._currentResult&&this._currentResult.isComplete&&(!e.isComplete||this._computer.insistOnKeepingHoverVisible&&e.messages.length===0)||this._setCurrentResult(e)}_renderMessages(e,t){let{showAtPosition:n,showAtSecondaryPosition:r,highlightRange:o}=rk.computeHoverRanges(this._editor,e.range,t),s=new re,a=s.add(new Rg(this._keybindingService)),l=document.createDocumentFragment(),c=null,d={fragment:l,statusBar:a,setColorPicker:h=>c=h,onContentsChanged:()=>this._widget.onContentsChanged(),hide:()=>this.hide()};for(let h of this._participants){let p=t.filter(m=>m.owner===h);p.length>0&&s.add(h.renderHoverParts(d,p))}let u=t.some(h=>h.isBeforeContent);if(a.hasContent&&l.appendChild(a.hoverElement),l.hasChildNodes()){if(o){let h=this._editor.createDecorationsCollection();h.set([{range:o,options:rk._DECORATION_OPTIONS}]),s.add(Ft(()=>{h.clear()}))}this._widget.showAt(l,new sk(c,n,r,this._editor.getOption(58).above,this._computer.shouldFocus,this._computer.source,u,e.initialMousePosX,e.initialMousePosY,s))}else s.dispose()}static computeHoverRanges(e,t,n){let r=1;if(e.hasModel()){let c=e._getViewModel(),d=c.coordinatesConverter,u=d.convertModelRangeToViewRange(t),h=new Se(u.startLineNumber,c.getLineMinColumn(u.startLineNumber));r=d.convertViewPositionToModelPosition(h).column}let o=t.startLineNumber,s=t.startColumn,a=n[0].range,l=null;for(let c of n)a=P.plusRange(a,c.range),c.range.startLineNumber===o&&c.range.endLineNumber===o&&(s=Math.max(Math.min(s,c.range.startColumn),r)),c.forceShowAtRange&&(l=c.range);return{showAtPosition:l?l.getStartPosition():new Se(o,t.startColumn),showAtSecondaryPosition:l?l.getStartPosition():new Se(o,s),highlightRange:a}}focus(){this._widget.focus()}scrollUp(){this._widget.scrollUp()}scrollDown(){this._widget.scrollDown()}scrollLeft(){this._widget.scrollLeft()}scrollRight(){this._widget.scrollRight()}pageUp(){this._widget.pageUp()}pageDown(){this._widget.pageDown()}goToTop(){this._widget.goToTop()}goToBottom(){this._widget.goToBottom()}escape(){this._widget.escape()}};Ng._DECORATION_OPTIONS=dt.register({description:"content-hover-highlight",className:"hoverHighlight"});Ng=lk([mC(1,Be),mC(2,Ht)],Ng);gC=class{constructor(e,t,n){this.anchor=e,this.messages=t,this.isComplete=n}filter(e){let t=this.messages.filter(n=>n.isValidForHoverAnchor(e));return t.length===this.messages.length?this:new ok(this,this.anchor,t,this.isComplete)}},ok=class extends gC{constructor(e,t,n,r){super(t,n,r),this.original=e}filter(e){return this.original.filter(e)}},sk=class{constructor(e,t,n,r,o,s,a,l,c,d){this.colorPicker=e,this.showAtPosition=t,this.showAtSecondaryPosition=n,this.preferAbove=r,this.stoleFocus=o,this.source=s,this.isBeforeContent=a,this.initialMousePosX=l,this.initialMousePosY=c,this.disposables=d,this.closestMouseDistance=void 0}},Id=class SY extends oe{get position(){var e,t;return(t=(e=this._visibleData)===null||e===void 0?void 0:e.showAtPosition)!==null&&t!==void 0?t:null}get isColorPickerVisible(){var e;return!!(!((e=this._visibleData)===null||e===void 0)&&e.colorPicker)}get isVisibleFromKeyboard(){var e;return((e=this._visibleData)===null||e===void 0?void 0:e.source)===1}get isVisible(){var e;return(e=this._hoverVisibleKey.get())!==null&&e!==void 0?e:!1}constructor(e,t){super(),this._editor=e,this._contextKeyService=t,this.allowEditorOverflow=!0,this._hoverVisibleKey=O.hoverVisible.bindTo(this._contextKeyService),this._hoverFocusedKey=O.hoverFocused.bindTo(this._contextKeyService),this._hover=this._register(new Rp),this._focusTracker=this._register(ks(this.getDomNode())),this._horizontalScrollingBy=30,this._visibleData=null,this._register(this._editor.onDidLayoutChange(()=>this._layout())),this._register(this._editor.onDidChangeConfiguration(n=>{n.hasChanged(48)&&this._updateFont()})),this._setVisibleData(null),this._layout(),this._editor.addContentWidget(this),this._register(this._focusTracker.onDidFocus(()=>{this._hoverFocusedKey.set(!0)})),this._register(this._focusTracker.onDidBlur(()=>{this._hoverFocusedKey.set(!1)}))}dispose(){this._editor.removeContentWidget(this),this._visibleData&&this._visibleData.disposables.dispose(),super.dispose()}getId(){return SY.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){if(!this._visibleData)return null;let e=this._visibleData.preferAbove;!e&&this._contextKeyService.getContextKeyValue(nt.Visible.key)&&(e=!0);let t=this._visibleData.isBeforeContent?3:void 0;return{position:this._visibleData.showAtPosition,secondaryPosition:this._visibleData.showAtSecondaryPosition,preference:e?[1,2]:[2,1],positionAffinity:t}}isMouseGettingCloser(e,t){if(!this._visibleData)return!1;if(typeof this._visibleData.initialMousePosX=="undefined"||typeof this._visibleData.initialMousePosY=="undefined")return this._visibleData.initialMousePosX=e,this._visibleData.initialMousePosY=t,!1;let n=wn(this.getDomNode());typeof this._visibleData.closestMouseDistance=="undefined"&&(this._visibleData.closestMouseDistance=CY(this._visibleData.initialMousePosX,this._visibleData.initialMousePosY,n.left,n.top,n.width,n.height));let r=CY(e,t,n.left,n.top,n.width,n.height);return r>this._visibleData.closestMouseDistance+4?!1:(this._visibleData.closestMouseDistance=Math.min(this._visibleData.closestMouseDistance,r),!0)}_setVisibleData(e){this._visibleData&&this._visibleData.disposables.dispose(),this._visibleData=e,this._hoverVisibleKey.set(!!this._visibleData),this._hover.containerDomNode.classList.toggle("hidden",!this._visibleData)}_layout(){let e=Math.max(this._editor.getLayoutInfo().height/4,250),{fontSize:t,lineHeight:n}=this._editor.getOption(48);this._hover.contentsDomNode.style.fontSize=`${t}px`,this._hover.contentsDomNode.style.lineHeight=`${n/t}`,this._hover.contentsDomNode.style.maxHeight=`${e}px`,this._hover.contentsDomNode.style.maxWidth=`${Math.max(this._editor.getLayoutInfo().width*.66,500)}px`}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}showAt(e,t){var n;this._setVisibleData(t),this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._hover.contentsDomNode.style.paddingBottom="",this._updateFont(),this.onContentsChanged(),this._editor.render(),this.onContentsChanged(),t.stoleFocus&&this._hover.containerDomNode.focus(),(n=t.colorPicker)===null||n===void 0||n.layout()}hide(){if(this._visibleData){let e=this._visibleData.stoleFocus;this._setVisibleData(null),this._hoverFocusedKey.set(!1),this._editor.layoutContentWidget(this),e&&this._editor.focus()}}onContentsChanged(){this._editor.layoutContentWidget(this),this._hover.onContentsChanged();let e=this._hover.scrollbar.getScrollDimensions();if(e.scrollWidth>e.width){let n=`${this._hover.scrollbar.options.horizontalScrollbarSize}px`;this._hover.contentsDomNode.style.paddingBottom!==n&&(this._hover.contentsDomNode.style.paddingBottom=n,this._editor.layoutContentWidget(this),this._hover.onContentsChanged())}}clear(){this._hover.contentsDomNode.textContent=""}focus(){this._hover.containerDomNode.focus()}scrollUp(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(48);this._hover.scrollbar.setScrollPosition({scrollTop:e-t.lineHeight})}scrollDown(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._editor.getOption(48);this._hover.scrollbar.setScrollPosition({scrollTop:e+t.lineHeight})}scrollLeft(){let e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e-this._horizontalScrollingBy})}scrollRight(){let e=this._hover.scrollbar.getScrollPosition().scrollLeft;this._hover.scrollbar.setScrollPosition({scrollLeft:e+this._horizontalScrollingBy})}pageUp(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e-t})}pageDown(){let e=this._hover.scrollbar.getScrollPosition().scrollTop,t=this._hover.scrollbar.getScrollDimensions().height;this._hover.scrollbar.setScrollPosition({scrollTop:e+t})}goToTop(){this._hover.scrollbar.setScrollPosition({scrollTop:0})}goToBottom(){this._hover.scrollbar.setScrollPosition({scrollTop:this._hover.scrollbar.getScrollDimensions().scrollHeight})}escape(){this._editor.focus()}};Id.ID="editor.contrib.contentHoverWidget";Id=lk([mC(1,Ke)],Id);Rg=class extends oe{get hasContent(){return this._hasContent}constructor(e){super(),this._keybindingService=e,this._hasContent=!1,this.hoverElement=yY("div.hover-row.status-bar"),this.actionsElement=me(this.hoverElement,yY("div.actions"))}addAction(e){let t=this._keybindingService.lookupKeybinding(e.commandId),n=t?t.getLabel():null;return this._hasContent=!0,this._register(pC.render(this.actionsElement,e,n))}append(e){let t=me(this.actionsElement,e);return this._hasContent=!0,t}};Rg=lk([mC(0,Ht)],Rg);ak=class i{get anchor(){return this._anchor}set anchor(e){this._anchor=e}get shouldFocus(){return this._shouldFocus}set shouldFocus(e){this._shouldFocus=e}get source(){return this._source}set source(e){this._source=e}get insistOnKeepingHoverVisible(){return this._insistOnKeepingHoverVisible}set insistOnKeepingHoverVisible(e){this._insistOnKeepingHoverVisible=e}constructor(e,t){this._editor=e,this._participants=t,this._anchor=null,this._shouldFocus=!1,this._source=0,this._insistOnKeepingHoverVisible=!1}static _getLineDecorations(e,t){if(t.type!==1&&!t.supportsMarkerHover)return[];let n=e.getModel(),r=t.range.startLineNumber;if(r>n.getLineCount())return[];let o=n.getLineMaxColumn(r);return e.getLineDecorations(r).filter(s=>{if(s.options.isWholeLine)return!0;let a=s.range.startLineNumber===r?s.range.startColumn:1,l=s.range.endLineNumber===r?s.range.endColumn:o;if(s.options.showIfCollapsed){if(a>t.range.startColumn+1||t.range.endColumn-1>l)return!1}else if(a>t.range.startColumn||t.range.endColumn>l)return!1;return!0})}computeAsync(e){let t=this._anchor;if(!this._editor.hasModel()||!t)return Rr.EMPTY;let n=i._getLineDecorations(this._editor,t);return Rr.merge(this._participants.map(r=>r.computeAsync?r.computeAsync(t,n,e):Rr.EMPTY))}computeSync(){if(!this._editor.hasModel()||!this._anchor)return[];let e=i._getLineDecorations(this._editor,this._anchor),t=[];for(let n of this._participants)t=t.concat(n.computeSync(this._anchor,e));return vr(t)}}});var wY,dh,dk,xY=M(()=>{Bt();oi();Sl();Ce();th();nk();tk();wY=fe,dh=class i extends oe{constructor(e,t,n){super(),this._renderDisposeables=this._register(new re),this._editor=e,this._isVisible=!1,this._messages=[],this._hover=this._register(new Rp),this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible),this._markdownRenderer=this._register(new to({editor:this._editor},t,n)),this._computer=new dk(this._editor),this._hoverOperation=this._register(new Op(this._editor,this._computer)),this._register(this._hoverOperation.onResult(r=>{this._withResult(r.value)})),this._register(this._editor.onDidChangeModelDecorations(()=>this._onModelDecorationsChanged())),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(48)&&this._updateFont()})),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return i.ID}getDomNode(){return this._hover.containerDomNode}getPosition(){return null}_updateFont(){Array.prototype.slice.call(this._hover.contentsDomNode.getElementsByClassName("code")).forEach(t=>this._editor.applyFontInfo(t))}_onModelDecorationsChanged(){this._isVisible&&(this._hoverOperation.cancel(),this._hoverOperation.start(0))}startShowingAt(e){this._computer.lineNumber!==e&&(this._hoverOperation.cancel(),this.hide(),this._computer.lineNumber=e,this._hoverOperation.start(0))}hide(){this._computer.lineNumber=-1,this._hoverOperation.cancel(),this._isVisible&&(this._isVisible=!1,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible))}_withResult(e){this._messages=e,this._messages.length>0?this._renderMessages(this._computer.lineNumber,this._messages):this.hide()}_renderMessages(e,t){this._renderDisposeables.clear();let n=document.createDocumentFragment();for(let r of t){let o=wY("div.hover-row.markdown-hover"),s=me(o,wY("div.hover-contents")),a=this._renderDisposeables.add(this._markdownRenderer.render(r.value));s.appendChild(a.element),n.appendChild(o)}this._updateContents(n),this._showAt(e)}_updateContents(e){this._hover.contentsDomNode.textContent="",this._hover.contentsDomNode.appendChild(e),this._updateFont()}_showAt(e){this._isVisible||(this._isVisible=!0,this._hover.containerDomNode.classList.toggle("hidden",!this._isVisible));let t=this._editor.getLayoutInfo(),n=this._editor.getTopForLineNumber(e),r=this._editor.getScrollTop(),o=this._editor.getOption(64),s=this._hover.containerDomNode.clientHeight,a=n-r-(s-o)/2;this._hover.containerDomNode.style.left=`${t.glyphMarginLeft+t.glyphMarginWidth}px`,this._hover.containerDomNode.style.top=`${Math.max(Math.round(a),0)}px`}};dh.ID="editor.contrib.modesGlyphHoverWidget";dk=class{get lineNumber(){return this._lineNumber}set lineNumber(e){this._lineNumber=e}constructor(e){this._editor=e,this._lineNumber=-1}computeSync(){let e=r=>({value:r}),t=this._editor.getLineDecorations(this._lineNumber),n=[];if(!t)return n;for(let r of t){if(!r.options.glyphMarginClassName)continue;let o=r.options.glyphMarginHoverMessage;!o||Wc(o)||n.push(...I_(o).map(e))}return n}}});function Bge(i,e,t,n,r){return Fge(this,void 0,void 0,function*(){try{let o=yield Promise.resolve(i.provideHover(t,n,r));if(o&&zge(o))return new uk(i,o,e)}catch(o){Ut(o)}})}function Og(i,e,t,n){let o=i.ordered(e).map((s,a)=>Bge(s,a,e,t,n));return Rr.fromPromises(o).coalesce()}function Hge(i,e,t,n){return Og(i,e,t,n).map(r=>r.hover).toPromise()}function zge(i){let e=typeof i.range!="undefined",t=typeof i.contents!="undefined"&&i.contents&&i.contents.length>0;return e&&t}var Fge,uk,hk=M(()=>{Dt();gi();At();et();xt();Fge=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},uk=class{constructor(e,t,n){this.provider=e,this.hover=t,this.ordinal=n}};qr("_executeHoverProvider",(i,e,t)=>{let n=i.get(be);return Hge(n.hoverProvider,e,t,tt.None)})});function fk(i,e,t,n,r){e.sort((s,a)=>s.ordinal-a.ordinal);let o=new re;for(let s of e)for(let a of s.contents){if(Wc(a))continue;let l=EY("div.hover-row.markdown-hover"),c=me(l,EY("div.hover-contents")),d=o.add(new to({editor:t},n,r));o.add(d.onDidRenderAsync(()=>{c.className="hover-contents code-hover-contents",i.onContentsChanged()}));let u=o.add(d.render(a));c.appendChild(u.element),i.fragment.appendChild(l)}return o}var Uge,vC,EY,io,Pp,_C=M(()=>{Bt();oi();Dt();Sl();Ce();th();ri();qe();os();hk();Re();Wn();cs();xt();Uge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},vC=function(i,e){return function(t,n){e(t,n,i)}},EY=fe,io=class{constructor(e,t,n,r,o){this.owner=e,this.range=t,this.contents=n,this.isBeforeContent=r,this.ordinal=o}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},Pp=class{constructor(e,t,n,r,o){this._editor=e,this._languageService=t,this._openerService=n,this._configurationService=r,this._languageFeaturesService=o,this.hoverOrdinal=3}createLoadingMessage(e){return new io(this,e.range,[new sn().appendText(v("modesContentHover.loading","Loading..."))],!1,2e3)}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];let n=this._editor.getModel(),r=e.range.startLineNumber,o=n.getLineMaxColumn(r),s=[],a=1e3,l=n.getLineLength(r),c=n.getLanguageIdAtPosition(e.range.startLineNumber,e.range.startColumn),d=this._editor.getOption(113),u=this._configurationService.getValue("editor.maxTokenizationLineLength",{overrideIdentifier:c}),h=!1;d>=0&&l>d&&e.range.startColumn>=d&&(h=!0,s.push(new io(this,e.range,[{value:v("stopped rendering","Rendering paused for long line for performance reasons. This can be configured via `editor.stopRenderingLineAfter`.")}],!1,a++))),!h&&typeof u=="number"&&l>=u&&s.push(new io(this,e.range,[{value:v("too many characters","Tokenization is skipped for long lines for performance reasons. This can be configured via `editor.maxTokenizationLineLength`.")}],!1,a++));let p=!1;for(let m of t){let g=m.range.startLineNumber===r?m.range.startColumn:1,b=m.range.endLineNumber===r?m.range.endColumn:o,S=m.options.hoverMessage;if(!S||Wc(S))continue;m.options.beforeContentClassName&&(p=!0);let k=new P(e.range.startLineNumber,g,e.range.startLineNumber,b);s.push(new io(this,k,I_(S),p,a++))}return s}computeAsync(e,t,n){if(!this._editor.hasModel()||e.type!==1)return Rr.EMPTY;let r=this._editor.getModel();if(!this._languageFeaturesService.hoverProvider.has(r))return Rr.EMPTY;let o=new Se(e.range.startLineNumber,e.range.startColumn);return Og(this._languageFeaturesService.hoverProvider,r,o,n).filter(s=>!Wc(s.hover.contents)).map(s=>{let a=s.hover.range?P.lift(s.hover.range):e.range;return new io(this,a,s.hover.contents,!1,s.ordinal)})}renderHoverParts(e,t){return fk(e,t,this._editor,this._languageService,this._openerService)}};Pp=Uge([vC(1,Qi),vC(2,Ji),vC(3,Mt),vC(4,be)],Pp)});var jge,pk,xs,mk,TY,bC,kY=M(()=>{Bt();oi();Dt();At();Ce();ao();qe();xt();Foe();Nu();Q5();gd();hC();Re();ob();cs();Gc();jge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},pk=function(i,e){return function(t,n){e(t,n,i)}},xs=fe,mk=class{constructor(e,t,n){this.owner=e,this.range=t,this.marker=n}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},TY={type:1,filter:{include:Qe.QuickFix},triggerAction:Xn.QuickFixHover},bC=class{constructor(e,t,n,r){this._editor=e,this._markerDecorationsService=t,this._openerService=n,this._languageFeaturesService=r,this.hoverOrdinal=1,this.recentMarkerCodeActionsInfo=void 0}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1&&!e.supportsMarkerHover)return[];let n=this._editor.getModel(),r=e.range.startLineNumber,o=n.getLineMaxColumn(r),s=[];for(let a of t){let l=a.range.startLineNumber===r?a.range.startColumn:1,c=a.range.endLineNumber===r?a.range.endColumn:o,d=this._markerDecorationsService.getMarker(n.uri,a);if(!d)continue;let u=new P(e.range.startLineNumber,l,e.range.startLineNumber,c);s.push(new mk(this,u,d))}return s}renderHoverParts(e,t){if(!t.length)return oe.None;let n=new re;t.forEach(o=>e.fragment.appendChild(this.renderMarkerHover(o,n)));let r=t.length===1?t[0]:t.sort((o,s)=>Dn.compare(o.marker.severity,s.marker.severity))[0];return this.renderMarkerStatusbar(e,r,n),n}renderMarkerHover(e,t){let n=xs("div.hover-row"),r=me(n,xs("div.marker.hover-contents")),{source:o,message:s,code:a,relatedInformation:l}=e.marker;this._editor.applyFontInfo(r);let c=me(r,xs("span"));if(c.style.whiteSpace="pre-wrap",c.innerText=s,o||a)if(a&&typeof a!="string"){let d=xs("span");if(o){let m=me(d,xs("span"));m.innerText=o}let u=me(d,xs("a.code-link"));u.setAttribute("href",a.target.toString()),t.add(Rt(u,"click",m=>{this._openerService.open(a.target,{allowCommands:!0}),m.preventDefault(),m.stopPropagation()}));let h=me(u,xs("span"));h.innerText=a.value;let p=me(r,d);p.style.opacity="0.6",p.style.paddingLeft="6px"}else{let d=me(r,xs("span"));d.style.opacity="0.6",d.style.paddingLeft="6px",d.innerText=o&&a?`${o}(${a})`:o||`(${a})`}if(ji(l))for(let{message:d,resource:u,startLineNumber:h,startColumn:p}of l){let m=me(r,xs("div"));m.style.marginTop="8px";let g=me(m,xs("a"));g.innerText=`${Nr(u)}(${h}, ${p}): `,g.style.cursor="pointer",t.add(Rt(g,"click",S=>{S.stopPropagation(),S.preventDefault(),this._openerService&&this._openerService.open(u,{fromUserGesture:!0,editorOptions:{selection:{startLineNumber:h,startColumn:p}}}).catch(lt)}));let b=me(m,xs("span"));b.innerText=d,this._editor.applyFontInfo(b)}return n}renderMarkerStatusbar(e,t,n){if((t.marker.severity===Dn.Error||t.marker.severity===Dn.Warning||t.marker.severity===Dn.Info)&&e.statusBar.addAction({label:v("view problem","View Problem"),commandId:ch.ID,run:()=>{var r;e.hide(),(r=vc.get(this._editor))===null||r===void 0||r.showAtMarker(t.marker),this._editor.focus()}}),!this._editor.getOption(88)){let r=e.statusBar.append(xs("div"));this.recentMarkerCodeActionsInfo&&(Ow.makeKey(this.recentMarkerCodeActionsInfo.marker)===Ow.makeKey(t.marker)?this.recentMarkerCodeActionsInfo.hasCodeActions||(r.textContent=v("noQuickFixes","No quick fixes available")):this.recentMarkerCodeActionsInfo=void 0);let o=this.recentMarkerCodeActionsInfo&&!this.recentMarkerCodeActionsInfo.hasCodeActions?oe.None:n.add(wl(()=>r.textContent=v("checkingForQuickFixes","Checking for quick fixes..."),200));r.textContent||(r.textContent=String.fromCharCode(160));let s=this.getCodeActions(t.marker);n.add(Ft(()=>s.cancel())),s.then(a=>{if(o.dispose(),this.recentMarkerCodeActionsInfo={marker:t.marker,hasCodeActions:a.validActions.length>0},!this.recentMarkerCodeActionsInfo.hasCodeActions){a.dispose(),r.textContent=v("noQuickFixes","No quick fixes available");return}r.style.display="none";let l=!1;n.add(Ft(()=>{l||a.dispose()})),e.statusBar.addAction({label:v("quick fixes","Quick Fix..."),commandId:Gf,run:c=>{l=!0;let d=Ga.get(this._editor),u=wn(c);e.hide(),d==null||d.showCodeActions(TY,a,{x:u.left,y:u.top,width:u.width,height:u.height})}})},lt)}}getCodeActions(e){return Kt(t=>l0(this._languageFeaturesService.codeActionProvider,this._editor.getModel(),new P(e.startLineNumber,e.startColumn,e.endLineNumber,e.endColumn),TY,wa.None,t))}};bC=jge([pk(1,QP),pk(2,Ji),pk(3,be)],bC)});var IY=M(()=>{});var AY=M(()=>{IY()});var Wge,yC,hr,gk,vk,_k,bk,yk,Ck,Sk,wk,xk,Ek,Tk,CC=M(()=>{gl();Ce();et();qe();Vt();os();oC();ck();xY();Re();Et();cs();_r();ar();lc();_C();kY();a2();Gn();AY();Wge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},yC=function(i,e){return function(t,n){e(t,n,i)}},hr=class LY{static get(e){return e.getContribution(LY.ID)}constructor(e,t,n,r,o){this._editor=e,this._instantiationService=t,this._openerService=n,this._languageService=r,this._keybindingService=o,this._toUnhook=new re,this._isMouseDown=!1,this._hoverClicked=!1,this._contentWidget=null,this._glyphWidget=null,this._hookEvents(),this._didChangeConfigurationHandler=this._editor.onDidChangeConfiguration(s=>{s.hasChanged(58)&&(this._unhookEvents(),this._hookEvents())})}_hookEvents(){let e=()=>this._hideWidgets(),t=this._editor.getOption(58);this._isHoverEnabled=t.enabled,this._isHoverSticky=t.sticky,this._isHoverEnabled?(this._toUnhook.add(this._editor.onMouseDown(n=>this._onEditorMouseDown(n))),this._toUnhook.add(this._editor.onMouseUp(n=>this._onEditorMouseUp(n))),this._toUnhook.add(this._editor.onMouseMove(n=>this._onEditorMouseMove(n))),this._toUnhook.add(this._editor.onKeyDown(n=>this._onKeyDown(n)))):(this._toUnhook.add(this._editor.onMouseMove(n=>this._onEditorMouseMove(n))),this._toUnhook.add(this._editor.onKeyDown(n=>this._onKeyDown(n)))),this._toUnhook.add(this._editor.onMouseLeave(n=>this._onEditorMouseLeave(n))),this._toUnhook.add(this._editor.onDidChangeModel(e)),this._toUnhook.add(this._editor.onDidScrollChange(n=>this._onEditorScrollChanged(n)))}_unhookEvents(){this._toUnhook.clear()}_onEditorScrollChanged(e){(e.scrollTopChanged||e.scrollLeftChanged)&&this._hideWidgets()}_onEditorMouseDown(e){this._isMouseDown=!0;let t=e.target;if(t.type===9&&t.detail===Id.ID){this._hoverClicked=!0;return}t.type===12&&t.detail===dh.ID||(t.type!==12&&(this._hoverClicked=!1),this._hideWidgets())}_onEditorMouseUp(e){this._isMouseDown=!1}_onEditorMouseLeave(e){var t;let n=e.event.browserEvent.relatedTarget;!((t=this._contentWidget)===null||t===void 0)&&t.containsNode(n)||this._hideWidgets()}_onEditorMouseMove(e){var t,n,r,o,s,a,l,c;let d=e.target;if(this._isMouseDown&&this._hoverClicked||this._isHoverSticky&&d.type===9&&d.detail===Id.ID||this._isHoverSticky&&(!((t=this._contentWidget)===null||t===void 0)&&t.containsNode((n=e.event.browserEvent.view)===null||n===void 0?void 0:n.document.activeElement))&&!(!((o=(r=e.event.browserEvent.view)===null||r===void 0?void 0:r.getSelection())===null||o===void 0)&&o.isCollapsed)||!this._isHoverSticky&&d.type===9&&d.detail===Id.ID&&(!((s=this._contentWidget)===null||s===void 0)&&s.isColorPickerVisible())||this._isHoverSticky&&d.type===12&&d.detail===dh.ID||this._isHoverSticky&&(!((a=this._contentWidget)===null||a===void 0)&&a.isVisibleFromKeyboard()))return;if(!this._isHoverEnabled){this._hideWidgets();return}if(this._getOrCreateContentWidget().maybeShowAt(e)){(l=this._glyphWidget)===null||l===void 0||l.hide();return}if(d.type===2&&d.position){(c=this._contentWidget)===null||c===void 0||c.hide(),this._glyphWidget||(this._glyphWidget=new dh(this._editor,this._languageService,this._openerService)),this._glyphWidget.startShowingAt(d.position.lineNumber);return}this._hideWidgets()}_onKeyDown(e){var t;if(!this._editor.hasModel())return;let n=this._keybindingService.softDispatch(e,this._editor.getDomNode()),r=n.kind===1||n.kind===2&&n.commandId==="editor.action.showHover"&&((t=this._contentWidget)===null||t===void 0?void 0:t.isVisible());e.keyCode!==5&&e.keyCode!==6&&e.keyCode!==57&&e.keyCode!==4&&!r&&this._hideWidgets()}_hideWidgets(){var e,t,n;this._isMouseDown&&this._hoverClicked&&(!((e=this._contentWidget)===null||e===void 0)&&e.isColorPickerVisible())||Qs.dropDownVisible||(this._hoverClicked=!1,(t=this._glyphWidget)===null||t===void 0||t.hide(),(n=this._contentWidget)===null||n===void 0||n.hide())}_getOrCreateContentWidget(){return this._contentWidget||(this._contentWidget=this._instantiationService.createInstance(Ng,this._editor)),this._contentWidget}isColorPickerVisible(){var e;return((e=this._contentWidget)===null||e===void 0?void 0:e.isColorPickerVisible())||!1}showContentHover(e,t,n,r){this._getOrCreateContentWidget().startShowingAtRange(e,t,n,r)}focus(){var e;(e=this._contentWidget)===null||e===void 0||e.focus()}scrollUp(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollUp()}scrollDown(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollDown()}scrollLeft(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollLeft()}scrollRight(){var e;(e=this._contentWidget)===null||e===void 0||e.scrollRight()}pageUp(){var e;(e=this._contentWidget)===null||e===void 0||e.pageUp()}pageDown(){var e;(e=this._contentWidget)===null||e===void 0||e.pageDown()}goToTop(){var e;(e=this._contentWidget)===null||e===void 0||e.goToTop()}goToBottom(){var e;(e=this._contentWidget)===null||e===void 0||e.goToBottom()}escape(){var e;(e=this._contentWidget)===null||e===void 0||e.escape()}isHoverVisible(){var e;return(e=this._contentWidget)===null||e===void 0?void 0:e.isVisible()}dispose(){var e,t;this._unhookEvents(),this._toUnhook.dispose(),this._didChangeConfigurationHandler.dispose(),(e=this._glyphWidget)===null||e===void 0||e.dispose(),(t=this._contentWidget)===null||t===void 0||t.dispose()}};hr.ID="editor.contrib.hover";hr=Wge([yC(1,Be),yC(2,Ji),yC(3,Qi),yC(4,Ht)],hr);gk=class extends se{constructor(){super({id:"editor.action.showHover",label:v({key:"showOrFocusHover",comment:["Label for action that will trigger the showing/focusing of a hover in the editor.","If the hover is not visible, it will show the hover.","This allows for users to show the hover without using the mouse.","If the hover is already visible, it will take focus."]},"Show or Focus Hover"),description:{description:"Show or Focus Hover",args:[{name:"args",schema:{type:"object",properties:{focus:{description:"Controls if when triggered with the keyboard, the hover should take focus immediately.",type:"boolean",default:!1}}}}]},alias:"Show or Focus Hover",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:di(2089,2087),weight:100}})}run(e,t,n){if(!t.hasModel())return;let r=hr.get(t);if(!r)return;let o=t.getPosition(),s=new P(o.lineNumber,o.column,o.lineNumber,o.column),a=t.getOption(2)===2||!!(n!=null&&n.focus);r.isHoverVisible()?r.focus():r.showContentHover(s,1,1,a)}},vk=class extends se{constructor(){super({id:"editor.action.showDefinitionPreviewHover",label:v({key:"showDefinitionPreviewHover",comment:["Label for action that will trigger the showing of definition preview hover in the editor.","This allows for users to show the definition preview hover without using the mouse."]},"Show Definition Preview Hover"),alias:"Show Definition Preview Hover",precondition:void 0})}run(e,t){let n=hr.get(t);if(!n)return;let r=t.getPosition();if(!r)return;let o=new P(r.lineNumber,r.column,r.lineNumber,r.column),s=kd.get(t);if(!s)return;s.startFindDefinitionFromCursor(r).then(()=>{n.showContentHover(o,1,1,!0)})}},_k=class extends se{constructor(){super({id:"editor.action.scrollUpHover",label:v({key:"scrollUpHover",comment:["Action that allows to scroll up in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Up Hover"),alias:"Scroll Up Hover",precondition:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:16,weight:100}})}run(e,t){let n=hr.get(t);n&&n.scrollUp()}},bk=class extends se{constructor(){super({id:"editor.action.scrollDownHover",label:v({key:"scrollDownHover",comment:["Action that allows to scroll down in the hover widget with the up arrow when the hover widget is focused."]},"Scroll Down Hover"),alias:"Scroll Down Hover",precondition:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:18,weight:100}})}run(e,t){let n=hr.get(t);n&&n.scrollDown()}},yk=class extends se{constructor(){super({id:"editor.action.scrollLeftHover",label:v({key:"scrollLeftHover",comment:["Action that allows to scroll left in the hover widget with the left arrow when the hover widget is focused."]},"Scroll Left Hover"),alias:"Scroll Left Hover",precondition:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:15,weight:100}})}run(e,t){let n=hr.get(t);n&&n.scrollLeft()}},Ck=class extends se{constructor(){super({id:"editor.action.scrollRightHover",label:v({key:"scrollRightHover",comment:["Action that allows to scroll right in the hover widget with the right arrow when the hover widget is focused."]},"Scroll Right Hover"),alias:"Scroll Right Hover",precondition:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:17,weight:100}})}run(e,t){let n=hr.get(t);n&&n.scrollRight()}},Sk=class extends se{constructor(){super({id:"editor.action.pageUpHover",label:v({key:"pageUpHover",comment:["Action that allows to page up in the hover widget with the page up command when the hover widget is focused."]},"Page Up Hover"),alias:"Page Up Hover",precondition:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:11,secondary:[528],weight:100}})}run(e,t){let n=hr.get(t);n&&n.pageUp()}},wk=class extends se{constructor(){super({id:"editor.action.pageDownHover",label:v({key:"pageDownHover",comment:["Action that allows to page down in the hover widget with the page down command when the hover widget is focused."]},"Page Down Hover"),alias:"Page Down Hover",precondition:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:12,secondary:[530],weight:100}})}run(e,t){let n=hr.get(t);n&&n.pageDown()}},xk=class extends se{constructor(){super({id:"editor.action.goToTopHover",label:v({key:"goToTopHover",comment:["Action that allows to go to the top of the hover widget with the home command when the hover widget is focused."]},"Go To Top Hover"),alias:"Go To Bottom Hover",precondition:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:14,secondary:[2064],weight:100}})}run(e,t){let n=hr.get(t);n&&n.goToTop()}},Ek=class extends se{constructor(){super({id:"editor.action.goToBottomHover",label:v({key:"goToBottomHover",comment:["Action that allows to go to the bottom in the hover widget with the end command when the hover widget is focused."]},"Go To Bottom Hover"),alias:"Go To Bottom Hover",precondition:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:13,secondary:[2066],weight:100}})}run(e,t){let n=hr.get(t);n&&n.goToBottom()}},Tk=class extends se{constructor(){super({id:"editor.action.escapeFocusHover",label:v({key:"escapeFocusHover",comment:["Action that allows to escape from the hover widget with the escape command when the hover widget is focused."]},"Escape Focus Hover"),alias:"Escape Focus Hover",precondition:O.hoverFocused,kbOpts:{kbExpr:O.hoverFocused,primary:9,weight:100}})}run(e,t){let n=hr.get(t);n&&n.escape()}};Ae(hr.ID,hr,2);X(gk);X(vk);X(_k);X(bk);X(yk);X(Ck);X(Sk);X(wk);X(xk);X(Ek);X(Tk);jo.register(Pp);jo.register(bC);df((i,e)=>{let t=i.getColor(UO);t&&(e.addRule(`.monaco-editor .monaco-hover .hover-row:not(:first-child):not(:empty) { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-top: 1px solid ${t.transparent(.5)}; }`),e.addRule(`.monaco-editor .monaco-hover hr { border-bottom: 0px solid ${t.transparent(.5)}; }`))})});function kr(i,e){let t=0;for(let n=0;n{});function DY(i,e,t,n,r){if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return[];let o=e.getLanguageConfiguration(i.getLanguageId()).indentationRules;if(!o)return[];for(n=Math.min(n,i.getLineCount());t<=n&&o.unIndentedLinePattern;){let b=i.getLineContent(t);if(!o.unIndentedLinePattern.test(b))break;t++}if(t>n-1)return[];let{tabSize:s,indentSize:a,insertSpaces:l}=i.getOptions(),c=(b,S)=>(S=S||1,jc.shiftIndent(b,b.length+S,s,a,l)),d=(b,S)=>(S=S||1,jc.unshiftIndent(b,b.length+S,s,a,l)),u=[],h,p=i.getLineContent(t),m=p;if(r!=null){h=r;let b=Ui(p);m=h+p.substring(b.length),o.decreaseIndentPattern&&o.decreaseIndentPattern.test(m)&&(h=d(h),m=h+p.substring(b.length)),p!==m&&u.push(qt.replaceMove(new We(t,1,t,b.length+1),fw(h,a,l)))}else h=Ui(p);let g=h;o.increaseIndentPattern&&o.increaseIndentPattern.test(m)?(g=c(g),h=c(h)):o.indentNextLinePattern&&o.indentNextLinePattern.test(m)&&(g=c(g)),t++;for(let b=t;b<=n;b++){let S=i.getLineContent(b),k=Ui(S),N=g+S.substring(k.length);o.decreaseIndentPattern&&o.decreaseIndentPattern.test(N)&&(g=d(g),h=d(h)),k!==g&&u.push(qt.replaceMove(new We(b,1,b,k.length+1),fw(g,a,l))),!(o.unIndentedLinePattern&&o.unIndentedLinePattern.test(S))&&(o.increaseIndentPattern&&o.increaseIndentPattern.test(N)?(h=c(h),g=h):o.indentNextLinePattern&&o.indentNextLinePattern.test(N)?g=c(g):g=h)}return u}function NY(i,e,t,n){if(i.getLineCount()===1&&i.getLineMaxColumn(1)===1)return;let r="";for(let s=0;s{Ce();wi();et();bw();Ea();qe();Mn();Vt();Kn();ts();kk();Re();kl();qre();XR();Vge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Kge=function(i,e){return function(t,n){e(t,n,i)}};SC=class i extends se{constructor(){super({id:i.ID,label:v("indentationToSpaces","Convert Indentation to Spaces"),alias:"Convert Indentation to Spaces",precondition:O.writable})}run(e,t){let n=t.getModel();if(!n)return;let r=n.getOptions(),o=t.getSelection();if(!o)return;let s=new Mk(o,r.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),n.updateOptions({insertSpaces:!0})}};SC.ID="editor.action.indentationToSpaces";wC=class i extends se{constructor(){super({id:i.ID,label:v("indentationToTabs","Convert Indentation to Tabs"),alias:"Convert Indentation to Tabs",precondition:O.writable})}run(e,t){let n=t.getModel();if(!n)return;let r=n.getOptions(),o=t.getSelection();if(!o)return;let s=new Dk(o,r.tabSize);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop(),n.updateOptions({insertSpaces:!1})}};wC.ID="editor.action.indentationToTabs";Pg=class extends se{constructor(e,t,n){super(n),this.insertSpaces=e,this.displaySizeOnly=t}run(e,t){let n=e.get(lr),r=e.get(Si),o=t.getModel();if(!o)return;let s=r.getCreationOptions(o.getLanguageId(),o.uri,o.isForSimpleWidget),a=o.getOptions(),l=[1,2,3,4,5,6,7,8].map(d=>({id:d.toString(),label:d.toString(),description:d===s.tabSize&&d===a.tabSize?v("configuredTabSize","Configured Tab Size"):d===s.tabSize?v("defaultTabSize","Default Tab Size"):d===a.tabSize?v("currentTabSize","Current Tab Size"):void 0})),c=Math.min(o.getOptions().tabSize-1,7);setTimeout(()=>{n.pick(l,{placeHolder:v({key:"selectTabWidth",comment:["Tab corresponds to the tab key"]},"Select Tab Size for Current File"),activeItem:l[c]}).then(d=>{if(d&&o&&!o.isDisposed()){let u=parseInt(d.label,10);this.displaySizeOnly?o.updateOptions({tabSize:u}):o.updateOptions({tabSize:u,indentSize:u,insertSpaces:this.insertSpaces})}})},50)}},xC=class i extends Pg{constructor(){super(!1,!1,{id:i.ID,label:v("indentUsingTabs","Indent Using Tabs"),alias:"Indent Using Tabs",precondition:void 0})}};xC.ID="editor.action.indentUsingTabs";EC=class i extends Pg{constructor(){super(!0,!1,{id:i.ID,label:v("indentUsingSpaces","Indent Using Spaces"),alias:"Indent Using Spaces",precondition:void 0})}};EC.ID="editor.action.indentUsingSpaces";TC=class i extends Pg{constructor(){super(!0,!0,{id:i.ID,label:v("changeTabDisplaySize","Change Tab Display Size"),alias:"Change Tab Display Size",precondition:void 0})}};TC.ID="editor.action.changeTabDisplaySize";kC=class i extends se{constructor(){super({id:i.ID,label:v("detectIndentation","Detect Indentation from Content"),alias:"Detect Indentation from Content",precondition:void 0})}run(e,t){let n=e.get(Si),r=t.getModel();if(!r)return;let o=n.getCreationOptions(r.getLanguageId(),r.uri,r.isForSimpleWidget);r.detectIndentation(o.insertSpaces,o.tabSize)}};kC.ID="editor.action.detectIndentation";Ik=class extends se{constructor(){super({id:"editor.action.reindentlines",label:v("editor.reindentlines","Reindent Lines"),alias:"Reindent Lines",precondition:O.writable})}run(e,t){let n=e.get(Tt),r=t.getModel();if(!r)return;let o=DY(r,n,1,r.getLineCount());o.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,o),t.pushUndoStop())}},Ak=class extends se{constructor(){super({id:"editor.action.reindentselectedlines",label:v("editor.reindentselectedlines","Reindent Selected Lines"),alias:"Reindent Selected Lines",precondition:O.writable})}run(e,t){let n=e.get(Tt),r=t.getModel();if(!r)return;let o=t.getSelections();if(o===null)return;let s=[];for(let a of o){let l=a.startLineNumber,c=a.endLineNumber;if(l!==c&&a.endColumn===1&&c--,l===1){if(l===c)continue}else l--;let d=DY(r,n,l,c);s.push(...d)}s.length>0&&(t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop())}},Lk=class{constructor(e,t){this._initialSelection=t,this._edits=[],this._selectionId=null;for(let n of e)n.range&&typeof n.text=="string"&&this._edits.push(n)}getEditOperations(e,t){for(let r of this._edits)t.addEditOperation(P.lift(r.range),r.text);let n=!1;Array.isArray(this._edits)&&this._edits.length===1&&this._initialSelection.isEmpty()&&(this._edits[0].range.startColumn===this._initialSelection.endColumn&&this._edits[0].range.startLineNumber===this._initialSelection.endLineNumber?(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!0)):this._edits[0].range.endColumn===this._initialSelection.startColumn&&this._edits[0].range.endLineNumber===this._initialSelection.startLineNumber&&(n=!0,this._selectionId=t.trackSelection(this._initialSelection,!1))),n||(this._selectionId=t.trackSelection(this._initialSelection))}computeCursorState(e,t){return t.getTrackedSelection(this._selectionId)}},Fg=class{constructor(e,t){this.editor=e,this._languageConfigurationService=t,this.callOnDispose=new re,this.callOnModel=new re,this.callOnDispose.add(e.onDidChangeConfiguration(()=>this.update())),this.callOnDispose.add(e.onDidChangeModel(()=>this.update())),this.callOnDispose.add(e.onDidChangeModelLanguage(()=>this.update()))}update(){this.callOnModel.clear(),!(this.editor.getOption(10)<4||this.editor.getOption(53))&&this.editor.hasModel()&&this.callOnModel.add(this.editor.onDidPaste(({range:e})=>{this.trigger(e)}))}trigger(e){let t=this.editor.getSelections();if(t===null||t.length>1)return;let n=this.editor.getModel();if(!n||!n.tokenization.isCheapToTokenize(e.getStartPosition().lineNumber))return;let r=this.editor.getOption(10),{tabSize:o,indentSize:s,insertSpaces:a}=n.getOptions(),l=[],c={shiftIndent:p=>jc.shiftIndent(p,p.length+1,o,s,a),unshiftIndent:p=>jc.unshiftIndent(p,p.length+1,o,s,a)},d=e.startLineNumber;for(;d<=e.endLineNumber;){if(this.shouldIgnoreLine(n,d)){d++;continue}break}if(d>e.endLineNumber)return;let u=n.getLineContent(d);if(!/\S/.test(u.substring(0,e.startColumn-1))){let p=nu(r,n,n.getLanguageId(),d,c,this._languageConfigurationService);if(p!==null){let m=Ui(u),g=kr(p,o),b=kr(m,o);if(g!==b){let S=uh(g,o,a);l.push({range:new P(d,1,d,m.length+1),text:S}),u=S+u.substr(m.length)}else{let S=D_(n,d,this._languageConfigurationService);if(S===0||S===8)return}}}let h=d;for(;dn.tokenization.getLineTokens(g),getLanguageId:()=>n.getLanguageId(),getLanguageIdAtPosition:(g,b)=>n.getLanguageIdAtPosition(g,b)},getLineContent:g=>g===h?u:n.getLineContent(g)},n.getLanguageId(),d+1,c,this._languageConfigurationService);if(m!==null){let g=kr(m,o),b=kr(Ui(n.getLineContent(d+1)),o);if(g!==b){let S=g-b;for(let k=d+1;k<=e.endLineNumber;k++){let N=n.getLineContent(k),A=Ui(N),j=kr(A,o)+S,z=uh(j,o,a);z!==A&&l.push({range:new P(k,1,k,A.length+1),text:z})}}}}if(l.length>0){this.editor.pushUndoStop();let p=new Lk(l,this.editor.getSelection());this.editor.executeCommand("autoIndentOnPaste",p),this.editor.pushUndoStop()}}shouldIgnoreLine(e,t){e.tokenization.forceTokenization(t);let n=e.getLineFirstNonWhitespaceColumn(t);if(n===0)return!0;let r=e.tokenization.getLineTokens(t);if(r.getCount()>0){let o=r.findTokenIndexAtOffset(n);if(o>=0&&r.getStandardTokenType(o)===1)return!0}return!1}dispose(){this.callOnDispose.dispose(),this.callOnModel.dispose()}};Fg.ID="editor.contrib.autoIndentOnPaste";Fg=Vge([Kge(1,Tt)],Fg);Mk=class{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),NY(e,t,this.tabSize,!0)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}},Dk=class{constructor(e,t){this.selection=e,this.tabSize=t,this.selectionId=null}getEditOperations(e,t){this.selectionId=t.trackSelection(this.selection),NY(e,t,this.tabSize,!1)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}};Ae(Fg.ID,Fg,2);X(SC);X(wC);X(xC);X(EC);X(TC);X(kC);X(Ik);X(Ak)});function RY(i){return ft.from({scheme:Ao.command,path:i.id,query:i.arguments&&encodeURIComponent(JSON.stringify(i.arguments))}).toString()}var IC,Bg,Rk,Hg,Ok=M(()=>{At();Ce();ri();qe();Im();Sn();IC=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Bg=class{constructor(e,t){this.range=e,this.direction=t}},Rk=class i{constructor(e,t,n){this.hint=e,this.anchor=t,this.provider=n,this._isResolved=!1}with(e){let t=new i(this.hint,e.anchor,this.provider);return t._isResolved=this._isResolved,t._currentResolve=this._currentResolve,t}resolve(e){return IC(this,void 0,void 0,function*(){if(typeof this.provider.resolveInlayHint=="function"){if(this._currentResolve)return yield this._currentResolve,e.isCancellationRequested?void 0:this.resolve(e);this._isResolved||(this._currentResolve=this._doResolve(e).finally(()=>this._currentResolve=void 0)),yield this._currentResolve}})}_doResolve(e){var t,n;return IC(this,void 0,void 0,function*(){try{let r=yield Promise.resolve(this.provider.resolveInlayHint(this.hint,e));this.hint.tooltip=(t=r==null?void 0:r.tooltip)!==null&&t!==void 0?t:this.hint.tooltip,this.hint.label=(n=r==null?void 0:r.label)!==null&&n!==void 0?n:this.hint.label,this._isResolved=!0}catch(r){Ut(r),this._isResolved=!1}})}},Hg=class i{static create(e,t,n,r){return IC(this,void 0,void 0,function*(){let o=[],s=e.ordered(t).reverse().map(a=>n.map(l=>IC(this,void 0,void 0,function*(){try{let c=yield a.provideInlayHints(t,l,r);c!=null&&c.hints.length&&o.push([c,a])}catch(c){Ut(c)}})));if(yield Promise.all(s.flat()),r.isCancellationRequested||t.isDisposed())throw new c_;return new i(n,o,t)})}constructor(e,t,n){this._disposables=new re,this.ranges=e,this.provider=new Set;let r=[];for(let[o,s]of t){this._disposables.add(o),this.provider.add(s);for(let a of o.hints){let l=n.validatePosition(a.position),c="before",d=i._getRangeAtPosition(n,l),u;d.getStartPosition().isBefore(l)?(u=P.fromPositions(d.getStartPosition(),l),c="after"):(u=P.fromPositions(l,d.getEndPosition()),c="before"),r.push(new Rk(a,new Bg(u,c),s))}}this.items=r.sort((o,s)=>Se.compare(o.hint.position,s.hint.position))}dispose(){this._disposables.dispose()}static _getRangeAtPosition(e,t){let n=t.lineNumber,r=e.getWordAtPosition(t);if(r)return new P(n,r.startColumn,n,r.endColumn);e.tokenization.tokenizeIfCheap(n);let o=e.tokenization.getLineTokens(n),s=t.column-1,a=o.findTokenIndexAtOffset(s),l=o.getStartOffset(a),c=o.getEndOffset(a);return c-l===1&&(l===s&&a>1?(l=o.getStartOffset(a-1),c=o.getEndOffset(a-1)):c===s&&aDR(m)?m.command.id:_d()));for(let m of ws.all())h.has(m.desc.id)&&u.push(new is(m.desc.id,da.label(m.desc,{renderShortTitle:!0}),void 0,!0,()=>zg(this,void 0,void 0,function*(){let g=yield o.createModelReference(d.uri);try{let b=new ah(g.object.textEditorModel,P.getStartPosition(d.range)),S=n.item.anchor.range;yield l.invokeFunction(m.runEditorCommand.bind(m),e,b,S)}finally{g.dispose()}})));if(n.part.command){let{command:m}=n.part;u.push(new Is),u.push(new is(m.id,m.title,void 0,!0,()=>zg(this,void 0,void 0,function*(){var g;try{yield a.executeCommand(m.id,...(g=m.arguments)!==null&&g!==void 0?g:[])}catch(b){c.notify({severity:pf.Error,source:n.item.provider.displayName,message:b})}})))}let p=e.getOption(123);s.showContextMenu({domForShadowRoot:p&&(r=e.getDomNode())!==null&&r!==void 0?r:void 0,getAnchor:()=>{let m=wn(t);return{x:m.left,y:m.top+m.height+8}},getActions:()=>u,onHide:()=>{e.focus()},autoSelectFirstItem:!0})})}function AC(i,e,t,n){return zg(this,void 0,void 0,function*(){let o=yield i.get(xn).createModelReference(n.uri);yield t.invokeWithinContext(s=>zg(this,void 0,void 0,function*(){let a=e.hasSideBySideModifier,l=s.get(Ke),c=Pn.inPeekEditor.getValue(l),d=!a&&t.getOption(85)&&!c;return new gc({openToSide:a,openInPeek:d,muteMessage:!0},{title:{value:"",original:""},id:"",precondition:void 0}).run(s,new ah(o.object.textEditorModel,P.getStartPosition(n.range)),P.lift(n.range))})),o.dispose()})}var zg,Pk=M(()=>{Bt();Pc();gi();b0();qe();ca();Ag();nh();Xi();zi();pt();Tl();Et();Ro();zg=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})}});function Gge(i){let e="\xA0";return i.replace(/[ \t]/g,e)}var qge,Fp,Bp,Fk,PY,Hp,Bk,_c,Uk=M(()=>{Bt();oi();Dt();gi();At();Ce();tf();Mi();Sn();JP();sb();Xm();Ea();qe();br();Kc();qn();Rs();xt();ca();Mg();Ok();Pk();zi();bl();Et();Ro();_r();ar();qge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Fp=function(i,e){return function(t,n){e(t,n,i)}},Bp=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Fk=class i{constructor(){this._entries=new fa(50)}get(e){let t=i._key(e);return this._entries.get(t)}set(e,t){let n=i._key(e);this._entries.set(n,t)}static _key(e){return`${e.uri.toString()}/${e.getVersionId()}`}},PY=rr("IInlayHintsCache");sr(PY,Fk,1);Hp=class{constructor(e,t){this.item=e,this.index=t}get part(){let e=this.item.hint.label;return typeof e=="string"?{label:e}:e[this.index]}},Bk=class{constructor(e,t){this.part=e,this.hasTriggerModifier=t}},_c=class Hk{static get(e){var t;return(t=e.getContribution(Hk.ID))!==null&&t!==void 0?t:void 0}constructor(e,t,n,r,o,s,a){this._editor=e,this._languageFeaturesService=t,this._inlayHintsCache=r,this._commandService=o,this._notificationService=s,this._instaService=a,this._disposables=new re,this._sessionDisposables=new re,this._decorationsMetadata=new Map,this._ruleFactory=new wb(this._editor),this._activeRenderMode=0,this._debounceInfo=n.for(t.inlayHintsProvider,"InlayHint",{min:25}),this._disposables.add(t.inlayHintsProvider.onDidChange(()=>this._update())),this._disposables.add(e.onDidChangeModel(()=>this._update())),this._disposables.add(e.onDidChangeModelLanguage(()=>this._update())),this._disposables.add(e.onDidChangeConfiguration(l=>{l.hasChanged(136)&&this._update()})),this._update()}dispose(){this._sessionDisposables.dispose(),this._removeAllDecorations(),this._disposables.dispose()}_update(){this._sessionDisposables.clear(),this._removeAllDecorations();let e=this._editor.getOption(136);if(e.enabled==="off")return;let t=this._editor.getModel();if(!t||!this._languageFeaturesService.inlayHintsProvider.has(t))return;let n=this._inlayHintsCache.get(t);n&&this._updateHintsDecorators([t.getFullModelRange()],n),this._sessionDisposables.add(Ft(()=>{t.isDisposed()||this._cacheHintsForFastRestore(t)}));let r,o=new Set,s=new ii(()=>Bp(this,void 0,void 0,function*(){let a=Date.now();r==null||r.dispose(!0),r=new Ri;let l=t.onWillDispose(()=>r==null?void 0:r.cancel());try{let c=r.token,d=yield Hg.create(this._languageFeaturesService.inlayHintsProvider,t,this._getHintsRanges(),c);if(s.delay=this._debounceInfo.update(t,Date.now()-a),c.isCancellationRequested){d.dispose();return}for(let u of d.provider)typeof u.onDidChangeInlayHints=="function"&&!o.has(u)&&(o.add(u),this._sessionDisposables.add(u.onDidChangeInlayHints(()=>{s.isScheduled()||s.schedule()})));this._sessionDisposables.add(d),this._updateHintsDecorators(d.ranges,d.items),this._cacheHintsForFastRestore(t)}catch(c){lt(c)}finally{r.dispose(),l.dispose()}}),this._debounceInfo.get(t));if(this._sessionDisposables.add(s),this._sessionDisposables.add(Ft(()=>r==null?void 0:r.dispose(!0))),s.schedule(0),this._sessionDisposables.add(this._editor.onDidScrollChange(a=>{(a.scrollTopChanged||!s.isScheduled())&&s.schedule()})),this._sessionDisposables.add(this._editor.onDidChangeModelContent(a=>{let l=Math.max(s.delay,1250);s.schedule(l)})),e.enabled==="on")this._activeRenderMode=0;else{let a,l;e.enabled==="onUnlessPressed"?(a=0,l=1):(a=1,l=0),this._activeRenderMode=a,this._sessionDisposables.add(_R.getInstance().event(c=>{if(!this._editor.hasModel())return;let d=c.altKey&&c.ctrlKey&&!(c.shiftKey||c.metaKey)?l:a;if(d!==this._activeRenderMode){this._activeRenderMode=d;let u=this._editor.getModel(),h=this._copyInlayHintsWithCurrentAnchor(u);this._updateHintsDecorators([u.getFullModelRange()],h),s.schedule(0)}}))}this._sessionDisposables.add(this._installDblClickGesture(()=>s.schedule(0))),this._sessionDisposables.add(this._installLinkGesture()),this._sessionDisposables.add(this._installContextMenu())}_installLinkGesture(){let e=new re,t=e.add(new sl(this._editor)),n=new re;return e.add(n),e.add(t.onMouseMoveOrRelevantKeyDown(r=>{let[o]=r,s=this._getInlayHintLabelPart(o),a=this._editor.getModel();if(!s||!a){n.clear();return}let l=new Ri;n.add(Ft(()=>l.dispose(!0))),s.item.resolve(l.token),this._activeInlayHintPart=s.part.command||s.part.location?new Bk(s,o.hasTriggerModifier):void 0;let c=a.validatePosition(s.item.hint.position).lineNumber,d=new P(c,1,c,a.getLineMaxColumn(c)),u=this._getInlineHintsForRange(d);this._updateHintsDecorators([d],u),n.add(Ft(()=>{this._activeInlayHintPart=void 0,this._updateHintsDecorators([d],u)}))})),e.add(t.onCancel(()=>n.clear())),e.add(t.onExecute(r=>Bp(this,void 0,void 0,function*(){let o=this._getInlayHintLabelPart(r);if(o){let s=o.part;s.location?this._instaService.invokeFunction(AC,r,this._editor,s.location):iP.is(s.command)&&(yield this._invokeCommand(s.command,o.item))}}))),e}_getInlineHintsForRange(e){let t=new Set;for(let n of this._decorationsMetadata.values())e.containsRange(n.item.anchor.range)&&t.add(n.item);return Array.from(t)}_installDblClickGesture(e){return this._editor.onMouseUp(t=>Bp(this,void 0,void 0,function*(){if(t.event.detail!==2)return;let n=this._getInlayHintLabelPart(t);if(n&&(t.event.preventDefault(),yield n.item.resolve(tt.None),ji(n.item.hint.textEdits))){let r=n.item.hint.textEdits.map(o=>qt.replace(P.lift(o.range),o.text));this._editor.executeEdits("inlayHint.default",r),e()}}))}_installContextMenu(){return this._editor.onContextMenu(e=>Bp(this,void 0,void 0,function*(){if(!(e.event.target instanceof HTMLElement))return;let t=this._getInlayHintLabelPart(e);t&&(yield this._instaService.invokeFunction(OY,this._editor,e.event.target,t))}))}_getInlayHintLabelPart(e){var t;if(e.target.type!==6)return;let n=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;if(n instanceof ff&&(n==null?void 0:n.attachedData)instanceof Hp)return n.attachedData}_invokeCommand(e,t){var n;return Bp(this,void 0,void 0,function*(){try{yield this._commandService.executeCommand(e.id,...(n=e.arguments)!==null&&n!==void 0?n:[])}catch(r){this._notificationService.notify({severity:pf.Error,source:t.provider.displayName,message:r})}})}_cacheHintsForFastRestore(e){let t=this._copyInlayHintsWithCurrentAnchor(e);this._inlayHintsCache.set(e,t)}_copyInlayHintsWithCurrentAnchor(e){let t=new Map;for(let[n,r]of this._decorationsMetadata){if(t.has(r.item))continue;let o=e.getDecorationRange(n);if(o){let s=new Bg(o,r.item.anchor.direction),a=r.item.with({anchor:s});t.set(r.item,a)}}return Array.from(t.values())}_getHintsRanges(){let t=this._editor.getModel(),n=this._editor.getVisibleRangesPlusViewportAboveBelow(),r=[];for(let o of n.sort(P.compareRangesUsingStarts)){let s=t.validateRange(new P(o.startLineNumber-30,o.startColumn,o.endLineNumber+30,o.endColumn));r.length===0||!P.areIntersectingOrTouching(r[r.length-1],s)?r.push(s):r[r.length-1]=P.plusRange(r[r.length-1],s)}return r}_updateHintsDecorators(e,t){var n,r;let o=[],s=(g,b,S,k,N)=>{let A={content:S,inlineClassNameAffectsLetterSpacing:!0,inlineClassName:b.className,cursorStops:k,attachedData:N};o.push({item:g,classNameRef:b,decoration:{range:g.anchor.range,options:{description:"InlayHint",showIfCollapsed:g.anchor.range.isEmpty(),collapseOnReplaceEdit:!g.anchor.range.isEmpty(),stickiness:0,[g.anchor.direction]:this._activeRenderMode===0?A:void 0}}})},a=(g,b)=>{let S=this._ruleFactory.createClassNameRef({width:`${l/3|0}px`,display:"inline-block"});s(g,S,"\u200A",b?ou.Right:ou.None)},{fontSize:l,fontFamily:c,padding:d,isUniform:u}=this._getLayoutInfo(),h="--code-editorInlayHintsFontFamily";this._editor.getContainerDomNode().style.setProperty(h,c);for(let g of t){g.hint.paddingLeft&&a(g,!1);let b=typeof g.hint.label=="string"?[{label:g.hint.label}]:g.hint.label;for(let S=0;SHk._MAX_DECORATORS)break}let p=[];for(let g of e)for(let{id:b}of(r=this._editor.getDecorationsInRange(g))!==null&&r!==void 0?r:[]){let S=this._decorationsMetadata.get(b);S&&(p.push(b),S.classNameRef.dispose(),this._decorationsMetadata.delete(b))}let m=xa.capture(this._editor);this._editor.changeDecorations(g=>{let b=g.deltaDecorations(p,o.map(S=>S.decoration));for(let S=0;Sn)&&(o=n);let s=e.fontFamily||r;return{fontSize:o,fontFamily:s,padding:t,isUniform:!t&&s===r&&o===n}}_removeAllDecorations(){this._editor.removeDecorations(Array.from(this._decorationsMetadata.keys()));for(let e of this._decorationsMetadata.values())e.classNameRef.dispose();this._decorationsMetadata.clear()}};_c.ID="editor.contrib.InlayHints";_c._MAX_DECORATORS=1500;_c=qge([Fp(1,be),Fp(2,an),Fp(3,PY),Fp(4,ui),Fp(5,Ei),Fp(6,Be)],_c);St.registerCommand("_executeInlayHintProvider",(i,...e)=>Bp(void 0,void 0,void 0,function*(){let[t,n]=e;Lt(ft.isUri(t)),Lt(P.isIRange(n));let{inlayHintsProvider:r}=i.get(be),o=yield i.get(xn).createModelReference(t);try{let s=yield Hg.create(r,o.object.textEditorModel,[P.lift(n)],tt.None),a=s.items.map(l=>l.hint);return setTimeout(()=>s.dispose(),0),a}finally{o.dispose()}}))});var $ge,Ug,FY,Yge,LC,MC,BY=M(()=>{Dt();Sl();ri();qn();lc();os();ca();hk();_C();Uk();Wn();cs();xt();Re();nr();Ok();oi();$ge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Ug=function(i,e){return function(t,n){e(t,n,i)}},FY=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Yge=function(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=i[Symbol.asyncIterator],t;return e?e.call(i):(i=typeof __values=="function"?__values(i):i[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=i[o]&&function(s){return new Promise(function(a,l){s=i[o](s),r(a,l,s.done,s.value)})}}function r(o,s,a,l){Promise.resolve(l).then(function(c){o({value:c,done:a})},s)}},LC=class extends yd{constructor(e,t,n,r){super(10,t,e.item.anchor.range,n,r,!0),this.part=e}},MC=class extends Pp{constructor(e,t,n,r,o,s){super(e,t,n,r,s),this._resolverService=o,this.hoverOrdinal=6}suggestHoverAnchor(e){var t;if(!_c.get(this._editor)||e.target.type!==6)return null;let r=(t=e.target.detail.injectedText)===null||t===void 0?void 0:t.options;return r instanceof ff&&r.attachedData instanceof Hp?new LC(r.attachedData,this,e.event.posx,e.event.posy):null}computeSync(){return[]}computeAsync(e,t,n){return e instanceof LC?new Rr(r=>FY(this,void 0,void 0,function*(){var o,s,a,l;let{part:c}=e;if(yield c.item.resolve(n),n.isCancellationRequested)return;let d;typeof c.item.hint.tooltip=="string"?d=new sn().appendText(c.item.hint.tooltip):c.item.hint.tooltip&&(d=c.item.hint.tooltip),d&&r.emitOne(new io(this,e.range,[d],!1,0)),ji(c.item.hint.textEdits)&&r.emitOne(new io(this,e.range,[new sn().appendText(v("hint.dbl","Double-click to insert"))],!1,10001));let u;if(typeof c.part.tooltip=="string"?u=new sn().appendText(c.part.tooltip):c.part.tooltip&&(u=c.part.tooltip),u&&r.emitOne(new io(this,e.range,[u],!1,1)),c.part.location||c.part.command){let b,k=this._editor.getOption(75)==="altKey"?zn?v("links.navigate.kb.meta.mac","cmd + click"):v("links.navigate.kb.meta","ctrl + click"):zn?v("links.navigate.kb.alt.mac","option + click"):v("links.navigate.kb.alt","alt + click");c.part.location&&c.part.command?b=new sn().appendText(v("hint.defAndCommand","Go to Definition ({0}), right click for more",k)):c.part.location?b=new sn().appendText(v("hint.def","Go to Definition ({0})",k)):c.part.command&&(b=new sn(`[${v("hint.cmd","Execute Command")}](${RY(c.part.command)} "${c.part.command.title}") (${k})`,{isTrusted:!0})),b&&r.emitOne(new io(this,e.range,[b],!1,1e4))}let h=yield this._resolveInlayHintLabelPartHover(c,n);try{for(var p=!0,m=Yge(h),g;g=yield m.next(),o=g.done,!o;p=!0){l=g.value,p=!1;let b=l;r.emitOne(b)}}catch(b){s={error:b}}finally{try{!p&&!o&&(a=m.return)&&(yield a.call(m))}finally{if(s)throw s.error}}})):Rr.EMPTY}_resolveInlayHintLabelPartHover(e,t){return FY(this,void 0,void 0,function*(){if(!e.part.location)return Rr.EMPTY;let{uri:n,range:r}=e.part.location,o=yield this._resolverService.createModelReference(n);try{let s=o.object.textEditorModel;return this._languageFeaturesService.hoverProvider.has(s)?Og(this._languageFeaturesService.hoverProvider,s,new Se(r.startLineNumber,r.startColumn),t).filter(a=>!Wc(a.hover.contents)).map(a=>new io(this,e.item.anchor.range,a.hover.contents,!1,2+a.ordinal)):Rr.EMPTY}finally{o.dispose()}})}};MC=$ge([Ug(1,Qi),Ug(2,Ji),Ug(3,Mt),Ug(4,xn),Ug(5,be)],MC)});var jk=M(()=>{et();lc();Uk();BY();Ae(_c.ID,_c,1);jo.register(MC)});var DC,HY=M(()=>{Mn();DC=class{constructor(e,t,n){this._editRange=e,this._originalSelection=t,this._text=n}getEditOperations(e,t){t.addTrackedEditOperation(this._editRange,this._text)}computeCursorState(e,t){let r=t.getInverseEditOperations()[0].range;return this._originalSelection.isEmpty()?new We(r.endLineNumber,Math.min(this._originalSelection.positionColumn,r.endColumn),r.endLineNumber,Math.min(this._originalSelection.positionColumn,r.endColumn)):new We(r.endLineNumber,r.endColumn-this._text.length,r.endLineNumber,r.endColumn)}}});var zY=M(()=>{});var UY=M(()=>{zY()});var qk=Ze(jg=>{Dt();At();lu();et();qe();Mn();Vt();qn();fb();Re();HY();UY();var Xge=jg&&jg.__decorate||function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Qge=jg&&jg.__param||function(i,e){return function(t,n){e(t,n,i)}},Ad=class Wk{static get(e){return e.getContribution(Wk.ID)}constructor(e,t){this.editor=e,this.editorWorkerService=t,this.decorations=this.editor.createDecorationsCollection()}dispose(){}run(e,t){var n;(n=this.currentRequest)===null||n===void 0||n.cancel();let r=this.editor.getSelection(),o=this.editor.getModel();if(!o||!r)return;let s=r;if(s.startLineNumber!==s.endLineNumber)return;let a=new J_(this.editor,5),l=o.uri;return this.editorWorkerService.canNavigateValueSet(l)?(this.currentRequest=Kt(c=>this.editorWorkerService.navigateValueSet(l,s,t)),this.currentRequest.then(c=>{var d;if(!c||!c.range||!c.value||!a.validate(this.editor))return;let u=P.lift(c.range),h=c.range,p=c.value.length-(s.endColumn-s.startColumn);h={startLineNumber:h.startLineNumber,startColumn:h.startColumn,endLineNumber:h.endLineNumber,endColumn:h.startColumn+c.value.length},p>1&&(s=new We(s.startLineNumber,s.startColumn,s.endLineNumber,s.endColumn+p-1));let m=new DC(u,s,c.value);this.editor.pushUndoStop(),this.editor.executeCommand(e,m),this.editor.pushUndoStop(),this.decorations.set([{range:h,options:Wk.DECORATION}]),(d=this.decorationRemover)===null||d===void 0||d.cancel(),this.decorationRemover=of(350),this.decorationRemover.then(()=>this.decorations.clear()).catch(lt)}).catch(lt)):Promise.resolve(void 0)}};Ad.ID="editor.contrib.inPlaceReplaceController";Ad.DECORATION=dt.register({description:"in-place-replace",className:"valueSetReplacement"});Ad=Xge([Qge(1,Ml)],Ad);var Vk=class extends se{constructor(){super({id:"editor.action.inPlaceReplace.up",label:v("InPlaceReplaceAction.previous.label","Replace with Previous Value"),alias:"Replace with Previous Value",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:3159,weight:100}})}run(e,t){let n=Ad.get(t);return n?n.run(this.id,!1):Promise.resolve(void 0)}},Kk=class extends se{constructor(){super({id:"editor.action.inPlaceReplace.down",label:v("InPlaceReplaceAction.next.label","Replace with Next Value"),alias:"Replace with Next Value",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:3161,weight:100}})}run(e,t){let n=Ad.get(t);return n?n.run(this.id,!0):Promise.resolve(void 0)}};Ae(Ad.ID,Ad,4);X(Vk);X(Kk)});var Gk,$k=M(()=>{et();BR();Vt();Re();Gk=class extends se{constructor(){super({id:"expandLineSelection",label:v("expandLineSelection","Expand Line Selection"),alias:"Expand Line Selection",precondition:void 0,kbOpts:{weight:0,kbExpr:O.textInputFocus,primary:2090}})}run(e,t,n){if(n=n||{},!t.hasModel())return;let r=t._getViewModel();r.model.pushStackElement(),r.setCursorStates(n.source,3,Nm.expandLineSelection(r,r.getCursorStates())),r.revealPrimaryCursor(n.source,!0)}};X(Gk)});function Jge(i,e){e.sort((s,a)=>s.lineNumber===a.lineNumber?s.column-a.column:s.lineNumber-a.lineNumber);for(let s=e.length-2;s>=0;s--)e[s].lineNumber===e[s+1].lineNumber&&e.splice(s,1);let t=[],n=0,r=0,o=e.length;for(let s=1,a=i.getLineCount();s<=a;s++){let l=i.getLineContent(s),c=l.length+1,d=0;if(r{wi();Ea();qe();NC=class{constructor(e,t){this._selection=e,this._cursors=t,this._selectionId=null}getEditOperations(e,t){let n=Jge(e,this._cursors);for(let r=0,o=n.length;r{qe();Mn();Wg=class{constructor(e,t,n){this._selection=e,this._isCopyingDown=t,this._noop=n||!1,this._selectionDirection=0,this._selectionId=null,this._startLineNumberDelta=0,this._endLineNumberDelta=0}getEditOperations(e,t){let n=this._selection;this._startLineNumberDelta=0,this._endLineNumberDelta=0,n.startLineNumber{wi();bw();qe();Mn();Xre();Kn();kk();XR();Jre();Zge=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},eve=function(i,e){return function(t,n){e(t,n,i)}},RC=class{constructor(e,t,n,r){this._languageConfigurationService=r,this._selection=e,this._isMovingDown=t,this._autoIndent=n,this._selectionId=null,this._moveEndLineSelectionShrink=!1}getEditOperations(e,t){let n=e.getLineCount();if(this._isMovingDown&&this._selection.endLineNumber===n){this._selectionId=t.trackSelection(this._selection);return}if(!this._isMovingDown&&this._selection.startLineNumber===1){this._selectionId=t.trackSelection(this._selection);return}this._moveEndPositionDown=!1;let r=this._selection;r.startLineNumbere.tokenization.getLineTokens(d),getLanguageId:()=>e.getLanguageId(),getLanguageIdAtPosition:(d,u)=>e.getLanguageIdAtPosition(d,u)},getLineContent:null};if(r.startLineNumber===r.endLineNumber&&e.getLineMaxColumn(r.startLineNumber)===1){let d=r.startLineNumber,u=this._isMovingDown?d+1:d-1;e.getLineMaxColumn(u)===1?t.addEditOperation(new P(1,1,1,1),null):(t.addEditOperation(new P(d,1,d,1),e.getLineContent(u)),t.addEditOperation(new P(u,1,u,e.getLineMaxColumn(u)),null)),r=new We(u,1,u,1)}else{let d,u;if(this._isMovingDown){d=r.endLineNumber+1,u=e.getLineContent(d),t.addEditOperation(new P(d-1,e.getLineMaxColumn(d-1),d,e.getLineMaxColumn(d)),null);let h=u;if(this.shouldAutoIndent(e,r)){let p=this.matchEnterRule(e,l,o,d,r.startLineNumber-1);if(p!==null){let g=Ui(e.getLineContent(d)),b=p+kr(g,o);h=uh(b,o,a)+this.trimLeft(u)}else{c.getLineContent=b=>b===r.startLineNumber?e.getLineContent(d):e.getLineContent(b);let g=nu(this._autoIndent,c,e.getLanguageIdAtPosition(d,1),r.startLineNumber,l,this._languageConfigurationService);if(g!==null){let b=Ui(e.getLineContent(d)),S=kr(g,o),k=kr(b,o);S!==k&&(h=uh(S,o,a)+this.trimLeft(u))}}t.addEditOperation(new P(r.startLineNumber,1,r.startLineNumber,1),h+` +`);let m=this.matchEnterRuleMovingDown(e,l,o,r.startLineNumber,d,h);if(m!==null)m!==0&&this.getIndentEditsOfMovingBlock(e,t,r,o,a,m);else{c.getLineContent=b=>b===r.startLineNumber?h:b>=r.startLineNumber+1&&b<=r.endLineNumber+1?e.getLineContent(b-1):e.getLineContent(b);let g=nu(this._autoIndent,c,e.getLanguageIdAtPosition(d,1),r.startLineNumber+1,l,this._languageConfigurationService);if(g!==null){let b=Ui(e.getLineContent(r.startLineNumber)),S=kr(g,o),k=kr(b,o);if(S!==k){let N=S-k;this.getIndentEditsOfMovingBlock(e,t,r,o,a,N)}}}}else t.addEditOperation(new P(r.startLineNumber,1,r.startLineNumber,1),h+` +`)}else if(d=r.startLineNumber-1,u=e.getLineContent(d),t.addEditOperation(new P(d,1,d+1,1),null),t.addEditOperation(new P(r.endLineNumber,e.getLineMaxColumn(r.endLineNumber),r.endLineNumber,e.getLineMaxColumn(r.endLineNumber)),` +`+u),this.shouldAutoIndent(e,r)){c.getLineContent=p=>p===d?e.getLineContent(r.startLineNumber):e.getLineContent(p);let h=this.matchEnterRule(e,l,o,r.startLineNumber,r.startLineNumber-2);if(h!==null)h!==0&&this.getIndentEditsOfMovingBlock(e,t,r,o,a,h);else{let p=nu(this._autoIndent,c,e.getLanguageIdAtPosition(r.startLineNumber,1),d,l,this._languageConfigurationService);if(p!==null){let m=Ui(e.getLineContent(r.startLineNumber)),g=kr(p,o),b=kr(m,o);if(g!==b){let S=g-b;this.getIndentEditsOfMovingBlock(e,t,r,o,a,S)}}}}}this._selectionId=t.trackSelection(r)}buildIndentConverter(e,t,n){return{shiftIndent:r=>jc.shiftIndent(r,r.length+1,e,t,n),unshiftIndent:r=>jc.unshiftIndent(r,r.length+1,e,t,n)}}parseEnterResult(e,t,n,r,o){if(o){let s=o.indentation;o.indentAction===Rm.None||o.indentAction===Rm.Indent?s=o.indentation+o.appendText:o.indentAction===Rm.IndentOutdent?s=o.indentation:o.indentAction===Rm.Outdent&&(s=t.unshiftIndent(o.indentation)+o.appendText);let a=e.getLineContent(r);if(this.trimLeft(a).indexOf(this.trimLeft(s))>=0){let l=Ui(e.getLineContent(r)),c=Ui(s),d=D_(e,r,this._languageConfigurationService);d!==null&&d&2&&(c=t.unshiftIndent(c));let u=kr(c,n),h=kr(l,n);return u-h}}return null}matchEnterRuleMovingDown(e,t,n,r,o,s){if(Qh(s)>=0){let a=e.getLineMaxColumn(o),l=M_(this._autoIndent,e,new P(o,a,o,a),this._languageConfigurationService);return this.parseEnterResult(e,t,n,r,l)}else{let a=r-1;for(;a>=1;){let d=e.getLineContent(a);if(Qh(d)>=0)break;a--}if(a<1||r>e.getLineCount())return null;let l=e.getLineMaxColumn(a),c=M_(this._autoIndent,e,new P(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(e,t,n,r,c)}}matchEnterRule(e,t,n,r,o,s){let a=o;for(;a>=1;){let d;if(a===o&&s!==void 0?d=s:d=e.getLineContent(a),Qh(d)>=0)break;a--}if(a<1||r>e.getLineCount())return null;let l=e.getLineMaxColumn(a),c=M_(this._autoIndent,e,new P(a,l,a,l),this._languageConfigurationService);return this.parseEnterResult(e,t,n,r,c)}trimLeft(e){return e.replace(/^\s+/,"")}shouldAutoIndent(e,t){if(this._autoIndent<4||!e.tokenization.isCheapToTokenize(t.startLineNumber))return!1;let n=e.getLanguageIdAtPosition(t.startLineNumber,1),r=e.getLanguageIdAtPosition(t.endLineNumber,1);return!(n!==r||this._languageConfigurationService.getLanguageConfiguration(n).indentRulesSupport===null)}getIndentEditsOfMovingBlock(e,t,n,r,o,s){for(let a=n.startLineNumber;a<=n.endLineNumber;a++){let l=e.getLineContent(a),c=Ui(l),u=kr(c,r)+s,h=uh(u,r,o);h!==c&&(t.addEditOperation(new P(a,1,a,c.length+1),h),a===n.endLineNumber&&n.endColumn<=c.length+1&&h===""&&(this._moveEndLineSelectionShrink=!0))}}computeCursorState(e,t){let n=t.getTrackedSelection(this._selectionId);return this._moveEndPositionDown&&(n=n.setEndPosition(n.endLineNumber+1,1)),this._moveEndLineSelectionShrink&&n.startLineNumber=r)return null;let o=[];for(let a=n;a<=r;a++)o.push(i.getLineContent(a));let s=o.slice(0);return s.sort(hh.getCollator().compare),t===!0&&(s=s.reverse()),{startLineNumber:n,endLineNumber:r,before:o,after:s}}function tve(i,e,t){let n=KY(i,e,t);return n?qt.replace(new P(n.startLineNumber,1,n.endLineNumber,i.getLineMaxColumn(n.endLineNumber)),n.after.join(` +`)):null}var hh,qY=M(()=>{Ea();qe();hh=class i{static getCollator(){return i._COLLATOR||(i._COLLATOR=new Intl.Collator),i._COLLATOR}constructor(e,t){this.selection=e,this.descending=t,this.selectionId=null}getEditOperations(e,t){let n=tve(e,this.selection,this.descending);n&&t.addEditOperation(n.range,n.text),this.selectionId=t.trackSelection(this.selection)}computeCursorState(e,t){return t.getTrackedSelection(this.selectionId)}static canRun(e,t,n){if(e===null)return!1;let r=KY(e,t,n);if(!r)return!1;for(let o=0,s=r.before.length;o{gl();R_();et();E_();jY();eoe();Ea();ri();qe();Mn();Vt();WY();VY();qY();Re();Xi();Kn();OC=class extends se{constructor(e,t){super(t),this.down=e}run(e,t){if(!t.hasModel())return;let n=t.getSelections().map((s,a)=>({selection:s,index:a,ignore:!1}));n.sort((s,a)=>P.compareRangesUsingStarts(s.selection,a.selection));let r=n[0];for(let s=1;snew Se(a.positionLineNumber,a.positionColumn)));let o=t.getSelection();if(o===null)return;let s=new NC(o,r);t.pushUndoStop(),t.executeCommands(this.id,[s]),t.pushUndoStop()}};BC.ID="editor.action.trimTrailingWhitespace";nI=class extends se{constructor(){super({id:"editor.action.deleteLines",label:v("lines.delete","Delete Line"),alias:"Delete Line",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:3113,weight:100}})}run(e,t){if(!t.hasModel())return;let n=this._getLinesToRemove(t),r=t.getModel();if(r.getLineCount()===1&&r.getLineMaxColumn(1)===1)return;let o=0,s=[],a=[];for(let l=0,c=n.length;l1&&(u-=1,p=r.getLineMaxColumn(u)),s.push(qt.replace(new We(u,p,h,m),"")),a.push(new We(u-o,d.positionColumn,u-o,d.positionColumn)),o+=d.endLineNumber-d.startLineNumber+1}t.pushUndoStop(),t.executeEdits(this.id,s,a),t.pushUndoStop()}_getLinesToRemove(e){let t=e.getSelections().map(o=>{let s=o.endLineNumber;return o.startLineNumbero.startLineNumber===s.startLineNumber?o.endLineNumber-s.endLineNumber:o.startLineNumber-s.startLineNumber);let n=[],r=t[0];for(let o=1;o=t[o].startLineNumber?r.endLineNumber=t[o].endLineNumber:(n.push(r),r=t[o]);return n.push(r),n}},rI=class extends se{constructor(){super({id:"editor.action.indentLines",label:v("lines.indent","Indent Line"),alias:"Indent Line",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:2142,weight:100}})}run(e,t){let n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,N_.indent(n.cursorConfig,t.getModel(),t.getSelections())),t.pushUndoStop())}},oI=class extends se{constructor(){super({id:"editor.action.outdentLines",label:v("lines.outdent","Outdent Line"),alias:"Outdent Line",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:2140,weight:100}})}run(e,t){ef.Outdent.runEditorCommand(e,t,null)}},sI=class extends se{constructor(){super({id:"editor.action.insertLineBefore",label:v("lines.insertBefore","Insert Line Above"),alias:"Insert Line Above",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:3075,weight:100}})}run(e,t){let n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,N_.lineInsertBefore(n.cursorConfig,t.getModel(),t.getSelections())))}},aI=class extends se{constructor(){super({id:"editor.action.insertLineAfter",label:v("lines.insertAfter","Insert Line Below"),alias:"Insert Line Below",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:2051,weight:100}})}run(e,t){let n=t._getViewModel();n&&(t.pushUndoStop(),t.executeCommands(this.id,N_.lineInsertAfter(n.cursorConfig,t.getModel(),t.getSelections())))}},HC=class extends se{run(e,t){if(!t.hasModel())return;let n=t.getSelection(),r=this._getRangesToDelete(t),o=[];for(let l=0,c=r.length-1;lqt.replace(l,""));t.pushUndoStop(),t.executeEdits(this.id,a,s),t.pushUndoStop()}},lI=class extends HC{constructor(){super({id:"deleteAllLeft",label:v("lines.deleteAllLeft","Delete All Left"),alias:"Delete All Left",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:2049},weight:100}})}_getEndCursorState(e,t){let n=null,r=[],o=0;return t.forEach(s=>{let a;if(s.endColumn===1&&o>0){let l=s.startLineNumber-o;a=new We(l,s.startColumn,l,s.startColumn)}else a=new We(s.startLineNumber,s.startColumn,s.startLineNumber,s.startColumn);o+=s.endLineNumber-s.startLineNumber,s.intersectRanges(e)?n=a:r.push(a)}),n&&r.unshift(n),r}_getRangesToDelete(e){let t=e.getSelections();if(t===null)return[];let n=t,r=e.getModel();return r===null?[]:(n.sort(P.compareRangesUsingStarts),n=n.map(o=>{if(o.isEmpty())if(o.startColumn===1){let s=Math.max(1,o.startLineNumber-1),a=o.startLineNumber===1?1:r.getLineContent(s).length+1;return new P(s,a,o.startLineNumber,1)}else return new P(o.startLineNumber,1,o.startLineNumber,o.startColumn);else return new P(o.startLineNumber,1,o.endLineNumber,o.endColumn)}),n)}},cI=class extends HC{constructor(){super({id:"deleteAllRight",label:v("lines.deleteAllRight","Delete All Right"),alias:"Delete All Right",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:297,secondary:[2068]},weight:100}})}_getEndCursorState(e,t){let n=null,r=[];for(let o=0,s=t.length,a=0;o{if(o.isEmpty()){let s=t.getLineMaxColumn(o.startLineNumber);return o.startColumn===s?new P(o.startLineNumber,o.startColumn,o.startLineNumber+1,1):new P(o.startLineNumber,o.startColumn,o.startLineNumber,s)}return o});return r.sort(P.compareRangesUsingStarts),r}},dI=class extends se{constructor(){super({id:"editor.action.joinLines",label:v("lines.joinLines","Join Lines"),alias:"Join Lines",precondition:O.writable,kbOpts:{kbExpr:O.editorTextFocus,primary:0,mac:{primary:296},weight:100}})}run(e,t){let n=t.getSelections();if(n===null)return;let r=t.getSelection();if(r===null)return;n.sort(P.compareRangesUsingStarts);let o=[],s=n.reduce((h,p)=>h.isEmpty()?h.endLineNumber===p.startLineNumber?(r.equalsSelection(h)&&(r=p),p):p.startLineNumber>h.endLineNumber+1?(o.push(h),p):new We(h.startLineNumber,h.startColumn,p.endLineNumber,p.endColumn):p.startLineNumber>h.endLineNumber?(o.push(h),p):new We(h.startLineNumber,h.startColumn,p.endLineNumber,p.endColumn));o.push(s);let a=t.getModel();if(a===null)return;let l=[],c=[],d=r,u=0;for(let h=0,p=o.length;h=1){let Le=!0;B===""&&(Le=!1),Le&&(B.charAt(B.length-1)===" "||B.charAt(B.length-1)===" ")&&(Le=!1,B=B.replace(/[\s\uFEFF\xA0]+$/g," "));let he=J.substr(ae-1);B+=(Le?" ":"")+he,Le?S=he.length+1:S=he.length}else S=0}let j=new P(g,b,k,N);if(!j.isEmpty()){let z;m.isEmpty()?(l.push(qt.replace(j,B)),z=new We(j.startLineNumber-u,B.length-S+1,g-u,B.length-S+1)):m.startLineNumber===m.endLineNumber?(l.push(qt.replace(j,B)),z=new We(m.startLineNumber-u,m.startColumn,m.endLineNumber-u,m.endColumn)):(l.push(qt.replace(j,B)),z=new We(m.startLineNumber-u,m.startColumn,m.startLineNumber-u,B.length-A)),P.intersectRanges(j,r)!==null?d=z:c.push(z)}u+=j.endLineNumber-j.startLineNumber}c.unshift(d),t.pushUndoStop(),t.executeEdits(this.id,l,c),t.pushUndoStop()}},uI=class extends se{constructor(){super({id:"editor.action.transpose",label:v("editor.transpose","Transpose characters around the cursor"),alias:"Transpose characters around the cursor",precondition:O.writable})}run(e,t){let n=t.getSelections();if(n===null)return;let r=t.getModel();if(r===null)return;let o=[];for(let s=0,a=n.length;s=d){if(c.lineNumber===r.getLineCount())continue;let u=new P(c.lineNumber,Math.max(1,c.column-1),c.lineNumber+1,1),h=r.getValueInRange(u).split("").reverse().join("");o.push(new _l(new We(c.lineNumber,Math.max(1,c.column-1),c.lineNumber+1,1),h))}else{let u=new P(c.lineNumber,Math.max(1,c.column-1),c.lineNumber,c.column+1),h=r.getValueInRange(u).split("").reverse().join("");o.push(new x_(u,h,new We(c.lineNumber,c.column+1,c.lineNumber,c.column+1)))}}t.pushUndoStop(),t.executeCommands(this.id,o),t.pushUndoStop()}},Ld=class extends se{run(e,t){let n=t.getSelections();if(n===null)return;let r=t.getModel();if(r===null)return;let o=t.getOption(126),s=[];for(let a of n)if(a.isEmpty()){let l=a.getStartPosition(),c=t.getConfiguredWordAtPosition(l);if(!c)continue;let d=new P(l.lineNumber,c.startColumn,l.lineNumber,c.endColumn),u=r.getValueInRange(d);s.push(qt.replace(d,this._modifyText(u,o)))}else{let l=r.getValueInRange(a);s.push(qt.replace(a,this._modifyText(l,o)))}t.pushUndoStop(),t.executeEdits(this.id,s),t.pushUndoStop()}},hI=class extends Ld{constructor(){super({id:"editor.action.transformToUppercase",label:v("editor.transformToUppercase","Transform to Uppercase"),alias:"Transform to Uppercase",precondition:O.writable})}_modifyText(e,t){return e.toLocaleUpperCase()}},fI=class extends Ld{constructor(){super({id:"editor.action.transformToLowercase",label:v("editor.transformToLowercase","Transform to Lowercase"),alias:"Transform to Lowercase",precondition:O.writable})}_modifyText(e,t){return e.toLocaleLowerCase()}},bc=class{constructor(e,t){this._pattern=e,this._flags=t,this._actual=null,this._evaluated=!1}get(){if(!this._evaluated){this._evaluated=!0;try{this._actual=new RegExp(this._pattern,this._flags)}catch(e){}}return this._actual}isSupported(){return this.get()!==null}},Vg=class i extends Ld{constructor(){super({id:"editor.action.transformToTitlecase",label:v("editor.transformToTitlecase","Transform to Title Case"),alias:"Transform to Title Case",precondition:O.writable})}_modifyText(e,t){let n=i.titleBoundary.get();return n?e.toLocaleLowerCase().replace(n,r=>r.toLocaleUpperCase()):e}};Vg.titleBoundary=new bc("(^|[^\\p{L}\\p{N}']|((^|\\P{L})'))\\p{L}","gmu");fh=class i extends Ld{constructor(){super({id:"editor.action.transformToSnakecase",label:v("editor.transformToSnakecase","Transform to Snake Case"),alias:"Transform to Snake Case",precondition:O.writable})}_modifyText(e,t){let n=i.caseBoundary.get(),r=i.singleLetters.get();return!n||!r?e:e.replace(n,"$1_$2").replace(r,"$1_$2$3").toLocaleLowerCase()}};fh.caseBoundary=new bc("(\\p{Ll})(\\p{Lu})","gmu");fh.singleLetters=new bc("(\\p{Lu}|\\p{N})(\\p{Lu})(\\p{Ll})","gmu");Kg=class i extends Ld{constructor(){super({id:"editor.action.transformToCamelcase",label:v("editor.transformToCamelcase","Transform to Camel Case"),alias:"Transform to Camel Case",precondition:O.writable})}_modifyText(e,t){let n=i.wordBoundary.get();if(!n)return e;let r=e.split(n);return r.shift()+r.map(s=>s.substring(0,1).toLocaleUpperCase()+s.substring(1)).join("")}};Kg.wordBoundary=new bc("[_\\s-]","gm");ph=class i extends Ld{static isSupported(){return[this.caseBoundary,this.singleLetters,this.underscoreBoundary].every(t=>t.isSupported())}constructor(){super({id:"editor.action.transformToKebabcase",label:v("editor.transformToKebabcase","Transform to Kebab Case"),alias:"Transform to Kebab Case",precondition:O.writable})}_modifyText(e,t){let n=i.caseBoundary.get(),r=i.singleLetters.get(),o=i.underscoreBoundary.get();return!n||!r||!o?e:e.replace(o,"$1-$3").replace(n,"$1-$2").replace(r,"$1-$2").toLocaleLowerCase()}};ph.caseBoundary=new bc("(\\p{Ll})(\\p{Lu})","gmu");ph.singleLetters=new bc("(\\p{Lu}|\\p{N})(\\p{Lu}\\p{Ll})","gmu");ph.underscoreBoundary=new bc("(\\S)(_)(\\S)","gm");X(Yk);X(Xk);X(Qk);X(Jk);X(Zk);X(eI);X(tI);X(iI);X(BC);X(nI);X(rI);X(oI);X(sI);X(aI);X(lI);X(cI);X(dI);X(uI);X(hI);X(fI);fh.caseBoundary.isSupported()&&fh.singleLetters.isSupported()&&X(fh);Kg.wordBoundary.isSupported()&&X(Kg);Vg.titleBoundary.isSupported()&&X(Vg);ph.isSupported()&&X(ph)});var GY=M(()=>{});var $Y=M(()=>{GY()});function XY(i,e,t,n){let r=i.ordered(e);return F_(r.map(o=>()=>mI(this,void 0,void 0,function*(){try{return yield o.provideLinkedEditingRanges(e,t,n)}catch(s){Ut(s);return}})),o=>!!o&&ji(o==null?void 0:o.ranges))}var ive,zC,mI,YY,nve,Md,vI,rve,_rt,bI=M(()=>{oi();Dt();gi();ma();At();Gt();Ce();wi();Sn();et();Lr();ri();qe();Vt();qn();Kn();Re();pt();xt();_r();Rs();ml();$Y();ive=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},zC=function(i,e){return function(t,n){e(t,n,i)}},mI=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},YY=new rt("LinkedEditingInputVisible",!1),nve="linked-editing-decoration",Md=class gI extends oe{static get(e){return e.getContribution(gI.ID)}constructor(e,t,n,r,o){super(),this.languageConfigurationService=r,this._syncRangesToken=0,this._localToDispose=this._register(new re),this._editor=e,this._providers=n.linkedEditingRangeProvider,this._enabled=!1,this._visibleContextKey=YY.bindTo(t),this._debounceInformation=o.for(this._providers,"Linked Editing",{max:200}),this._currentDecorations=this._editor.createDecorationsCollection(),this._languageWordPattern=null,this._currentWordPattern=null,this._ignoreChangeEvent=!1,this._localToDispose=this._register(new re),this._rangeUpdateTriggerPromise=null,this._rangeSyncTriggerPromise=null,this._currentRequest=null,this._currentRequestPosition=null,this._currentRequestModelVersion=null,this._register(this._editor.onDidChangeModel(()=>this.reinitialize(!0))),this._register(this._editor.onDidChangeConfiguration(s=>{(s.hasChanged(67)||s.hasChanged(89))&&this.reinitialize(!1)})),this._register(this._providers.onDidChange(()=>this.reinitialize(!1))),this._register(this._editor.onDidChangeModelLanguage(()=>this.reinitialize(!0))),this.reinitialize(!0)}reinitialize(e){let t=this._editor.getModel(),n=t!==null&&(this._editor.getOption(67)||this._editor.getOption(89))&&this._providers.has(t);if(n===this._enabled&&!e||(this._enabled=n,this.clearRanges(),this._localToDispose.clear(),!n||t===null))return;this._localToDispose.add(li.runAndSubscribe(t.onDidChangeLanguageConfiguration,()=>{this._languageWordPattern=this.languageConfigurationService.getLanguageConfiguration(t.getLanguageId()).getWordDefinition()}));let r=new No(this._debounceInformation.get(t)),o=()=>{var l;this._rangeUpdateTriggerPromise=r.trigger(()=>this.updateRanges(),(l=this._debounceDuration)!==null&&l!==void 0?l:this._debounceInformation.get(t))},s=new No(0),a=l=>{this._rangeSyncTriggerPromise=s.trigger(()=>this._syncRanges(l))};this._localToDispose.add(this._editor.onDidChangeCursorPosition(()=>{o()})),this._localToDispose.add(this._editor.onDidChangeModelContent(l=>{if(!this._ignoreChangeEvent&&this._currentDecorations.length>0){let c=this._currentDecorations.getRange(0);if(c&&l.changes.every(d=>c.intersectRanges(d.range))){a(this._syncRangesToken);return}}o()})),this._localToDispose.add({dispose:()=>{r.dispose(),s.dispose()}}),this.updateRanges()}_syncRanges(e){if(!this._editor.hasModel()||e!==this._syncRangesToken||this._currentDecorations.length===0)return;let t=this._editor.getModel(),n=this._currentDecorations.getRange(0);if(!n||n.startLineNumber!==n.endLineNumber)return this.clearRanges();let r=t.getValueInRange(n);if(this._currentWordPattern){let s=r.match(this._currentWordPattern);if((s?s[0].length:0)!==r.length)return this.clearRanges()}let o=[];for(let s=1,a=this._currentDecorations.length;s1){this.clearRanges();return}let n=this._editor.getModel(),r=n.getVersionId();if(this._currentRequestPosition&&this._currentRequestModelVersion===r){if(t.equals(this._currentRequestPosition))return;if(this._currentDecorations.length>0){let s=this._currentDecorations.getRange(0);if(s&&s.containsPosition(t))return}}this.clearRanges(),this._currentRequestPosition=t,this._currentRequestModelVersion=r;let o=Kt(s=>mI(this,void 0,void 0,function*(){try{let a=new Ln(!1),l=yield XY(this._providers,n,t,s);if(this._debounceInformation.update(n,a.elapsed()),o!==this._currentRequest||(this._currentRequest=null,r!==n.getVersionId()))return;let c=[];l!=null&&l.ranges&&(c=l.ranges),this._currentWordPattern=(l==null?void 0:l.wordPattern)||this._languageWordPattern;let d=!1;for(let h=0,p=c.length;h({range:h,options:gI.DECORATION}));this._visibleContextKey.set(!0),this._currentDecorations.set(u),this._syncRangesToken++}catch(a){Zo(a)||lt(a),(this._currentRequest===o||!this._currentRequest)&&this.clearRanges()}}));return this._currentRequest=o,o})}};Md.ID="editor.contrib.linkedEditing";Md.DECORATION=dt.register({description:"linked-editing",stickiness:0,className:nve});Md=ive([zC(1,Ke),zC(2,be),zC(3,Tt),zC(4,an)],Md);vI=class extends se{constructor(){super({id:"editor.action.linkedEditing",label:v("linkedEditing.label","Start Linked Editing"),alias:"Start Linked Editing",precondition:ce.and(O.writable,O.hasRenameProvider),kbOpts:{kbExpr:O.editorTextFocus,primary:3132,weight:100}})}runCommand(e,t){let n=e.get(ei),[r,o]=Array.isArray(t)&&t||[void 0,void 0];return ft.isUri(r)&&Se.isIPosition(o)?n.openCodeEditor({resource:r},n.getActiveCodeEditor()).then(s=>{s&&(s.setPosition(o),s.invokeWithinContext(a=>(this.reportTelemetry(a,s),this.run(a,s))))},lt):super.runCommand(e,t)}run(e,t){let n=Md.get(t);return n?Promise.resolve(n.updateRanges(!0)):Promise.resolve()}},rve=xi.bindToContribution(Md.get);Ne(new rve({id:"cancelLinkedEditingInput",precondition:YY,handler:i=>i.clearRanges(),kbOpts:{kbExpr:O.editorTextFocus,weight:100+99,primary:9,secondary:[1033]}}));_rt=Oe("editor.linkedEditingBackground",{dark:ut.fromHex("#f00").transparent(.3),light:ut.fromHex("#f00").transparent(.3),hcDark:ut.fromHex("#f00").transparent(.3),hcLight:ut.white},v("editorLinkedEditingBackground","Background color when the editor auto renames on type."));qr("_executeLinkedEditingProvider",(i,e,t)=>{let{linkedEditingRangeProvider:n}=i.get(be);return XY(n,e,t,tt.None)});Ae(Md.ID,Md,1);X(vI)});var QY=M(()=>{});var JY=M(()=>{QY()});function CI(i,e,t){let n=[],r=i.ordered(e).reverse().map((o,s)=>Promise.resolve(o.provideLinks(e,t)).then(a=>{a&&(n[s]=[a,o])},Ut));return Promise.all(r).then(()=>{let o=new UC(vr(n));return t.isCancellationRequested?(o.dispose(),new UC([])):o})}var ZY,yI,UC,eX=M(()=>{oi();gi();At();Ce();Mi();Sn();qe();ts();zi();xt();ZY=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},yI=class{constructor(e,t){this._link=e,this._provider=t}toJSON(){return{range:this.range,url:this.url,tooltip:this.tooltip}}get range(){return this._link.range}get url(){return this._link.url}get tooltip(){return this._link.tooltip}resolve(e){return ZY(this,void 0,void 0,function*(){return this._link.url?this._link.url:typeof this._provider.resolveLink=="function"?Promise.resolve(this._provider.resolveLink(this._link,e)).then(t=>(this._link=t||this._link,this._link.url?this.resolve(e):Promise.reject(new Error("missing")))):Promise.reject(new Error("missing"))})}},UC=class i{constructor(e){this._disposables=new re;let t=[];for(let[n,r]of e){let o=n.links.map(s=>new yI(s,r));t=i._union(t,o),u_(n)&&this._disposables.add(n)}this.links=t}dispose(){this._disposables.dispose(),this.links.length=0}static _union(e,t){let n=[],r,o,s,a;for(r=0,s=0,o=e.length,a=t.length;rZY(void 0,void 0,void 0,function*(){let[t,n]=e;Lt(t instanceof ft),typeof n!="number"&&(n=0);let{linkProvider:r}=i.get(be),o=i.get(Si).getModel(t);if(!o)return[];let s=yield CI(r,o,tt.None);if(!s)return[];for(let l=0;l{Dt();gi();At();Sl();Ce();Im();nr();ao();ml();Sn();JY();et();qn();Rs();xt();Mg();eX();Re();Ro();cs();ove=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},jC=function(i,e){return function(t,n){e(t,n,i)}},sve=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},zp=class iX extends oe{static get(e){return e.getContribution(iX.ID)}constructor(e,t,n,r,o){super(),this.editor=e,this.openerService=t,this.notificationService=n,this.languageFeaturesService=r,this.providers=this.languageFeaturesService.linkProvider,this.debounceInformation=o.for(this.providers,"Links",{min:1e3,max:4e3}),this.computeLinks=this._register(new ii(()=>this.computeLinksNow(),1e3)),this.computePromise=null,this.activeLinksList=null,this.currentOccurrences={},this.activeLinkDecorationId=null;let s=this._register(new sl(e));this._register(s.onMouseMoveOrRelevantKeyDown(([a,l])=>{this._onEditorMouseMove(a,l)})),this._register(s.onExecute(a=>{this.onEditorMouseUp(a)})),this._register(s.onCancel(a=>{this.cleanUpActiveLinkDecoration()})),this._register(e.onDidChangeConfiguration(a=>{a.hasChanged(68)&&(this.updateDecorations([]),this.stop(),this.computeLinks.schedule(0))})),this._register(e.onDidChangeModelContent(a=>{this.editor.hasModel()&&this.computeLinks.schedule(this.debounceInformation.get(this.editor.getModel()))})),this._register(e.onDidChangeModel(a=>{this.currentOccurrences={},this.activeLinkDecorationId=null,this.stop(),this.computeLinks.schedule(0)})),this._register(e.onDidChangeModelLanguage(a=>{this.stop(),this.computeLinks.schedule(0)})),this._register(this.providers.onDidChange(a=>{this.stop(),this.computeLinks.schedule(0)})),this.computeLinks.schedule(0)}computeLinksNow(){return sve(this,void 0,void 0,function*(){if(!this.editor.hasModel()||!this.editor.getOption(68))return;let e=this.editor.getModel();if(this.providers.has(e)){this.activeLinksList&&(this.activeLinksList.dispose(),this.activeLinksList=null),this.computePromise=Kt(t=>CI(this.providers,e,t));try{let t=new Ln(!1);if(this.activeLinksList=yield this.computePromise,this.debounceInformation.update(e,t.elapsed()),e.isDisposed())return;this.updateDecorations(this.activeLinksList.links)}catch(t){lt(t)}finally{this.computePromise=null}}})}updateDecorations(e){let t=this.editor.getOption(75)==="altKey",n=[],r=Object.keys(this.currentOccurrences);for(let s of r){let a=this.currentOccurrences[s];n.push(a.decorationId)}let o=[];if(e)for(let s of e)o.push(WC.decoration(s,t));this.editor.changeDecorations(s=>{let a=s.deltaDecorations(n,o);this.currentOccurrences={},this.activeLinkDecorationId=null;for(let l=0,c=a.length;l{r.activate(o,n),this.activeLinkDecorationId=r.decorationId})}else this.cleanUpActiveLinkDecoration()}cleanUpActiveLinkDecoration(){let e=this.editor.getOption(75)==="altKey";if(this.activeLinkDecorationId){let t=this.currentOccurrences[this.activeLinkDecorationId];t&&this.editor.changeDecorations(n=>{t.deactivate(n,e)}),this.activeLinkDecorationId=null}}onEditorMouseUp(e){if(!this.isEnabled(e))return;let t=this.getLinkOccurrence(e.target.position);t&&this.openLinkOccurrence(t,e.hasSideBySideModifier,!0)}openLinkOccurrence(e,t,n=!1){if(!this.openerService)return;let{link:r}=e;r.resolve(tt.None).then(o=>{if(typeof o=="string"&&this.editor.hasModel()){let s=this.editor.getModel().uri;if(s.scheme===Ao.file&&o.startsWith(`${Ao.file}:`)){let a=ft.parse(o);if(a.scheme===Ao.file){let l=aO(a),c=null;l.startsWith("/./")?c=`.${l.substr(1)}`:l.startsWith("//./")&&(c=`.${l.substr(2)}`),c&&(o=dO(s,c))}}}return this.openerService.open(o,{openToSide:t,fromUserGesture:n,allowContributedOpeners:!0,allowCommands:!0,fromWorkspace:!0})},o=>{let s=o instanceof Error?o.message:o;s==="invalid"?this.notificationService.warn(v("invalid.url","Failed to open this link because it is not well-formed: {0}",r.url.toString())):s==="missing"?this.notificationService.warn(v("missing.url","Failed to open this link because its target is missing.")):lt(o)})}getLinkOccurrence(e){if(!this.editor.hasModel()||!e)return null;let t=this.editor.getModel().getDecorationsInRange({startLineNumber:e.lineNumber,startColumn:e.column,endLineNumber:e.lineNumber,endColumn:e.column},0,!0);for(let n of t){let r=this.currentOccurrences[n.id];if(r)return r}return null}isEnabled(e,t){return!!(e.target.type===6&&(e.hasTriggerModifier||t&&t.keyCodeIsTriggerKey))}stop(){var e;this.computeLinks.cancel(),this.activeLinksList&&((e=this.activeLinksList)===null||e===void 0||e.dispose(),this.activeLinksList=null),this.computePromise&&(this.computePromise.cancel(),this.computePromise=null)}dispose(){super.dispose(),this.stop()}};zp.ID="editor.linkDetector";zp=ove([jC(1,Ji),jC(2,Ei),jC(3,be),jC(4,an)],zp);tX={general:dt.register({description:"detected-link",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link"}),active:dt.register({description:"detected-link-active",stickiness:1,collapseOnReplaceEdit:!0,inlineClassName:"detected-link-active"})},WC=class i{static decoration(e,t){return{range:e.range,options:i._getOptions(e,t,!1)}}static _getOptions(e,t,n){let r=Object.assign({},n?tX.active:tX.general);return r.hoverMessage=ave(e,t),r}constructor(e,t){this.link=e,this.decorationId=t}activate(e,t){e.changeDecorationOptions(this.decorationId,i._getOptions(this.link,t,!0))}deactivate(e,t){e.changeDecorationOptions(this.decorationId,i._getOptions(this.link,t,!1))}};SI=class extends se{constructor(){super({id:"editor.action.openLink",label:v("label","Open Link"),alias:"Open Link",precondition:void 0})}run(e,t){let n=zp.get(t);if(!n||!t.hasModel())return;let r=t.getSelections();for(let o of r){let s=n.getLinkOccurrence(o.getEndPosition());s&&n.openLinkOccurrence(s,!1)}}};Ae(zp.ID,zp,1);X(SI)});var qg,xI=M(()=>{Ce();et();qg=class extends oe{constructor(e){super(),this._editor=e,this._register(this._editor.onMouseDown(t=>{let n=this._editor.getOption(113);n>=0&&t.target.type===6&&t.target.position.column>=n&&this._editor.updateOptions({stopRenderingLineAfter:-1})}))}};qg.ID="editor.contrib.longLinesHelper";Ae(qg.ID,qg,2)});var nX=M(()=>{});var rX=M(()=>{nX()});function oX(i){return i===Gm.Write?uve:i===Gm.Text?hve:mve}function sX(i){return i?pve:fve}var VC,KC,lve,cve,dve,uve,hve,fve,pve,mve,EI=M(()=>{rX();Kc();qn();br();Re();_r();ar();VC=Oe("editor.wordHighlightBackground",{dark:"#575757B8",light:"#57575740",hcDark:null,hcLight:null},v("wordHighlight","Background color of a symbol during read-access, like reading a variable. The color must not be opaque so as not to hide underlying decorations."),!0);Oe("editor.wordHighlightStrongBackground",{dark:"#004972B8",light:"#0e639c40",hcDark:null,hcLight:null},v("wordHighlightStrong","Background color of a symbol during write-access, like writing to a variable. The color must not be opaque so as not to hide underlying decorations."),!0);Oe("editor.wordHighlightTextBackground",{light:VC,dark:VC,hcDark:VC,hcLight:VC},v("wordHighlightText","Background color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0);KC=Oe("editor.wordHighlightBorder",{light:null,dark:null,hcDark:va,hcLight:va},v("wordHighlightBorder","Border color of a symbol during read-access, like reading a variable."));Oe("editor.wordHighlightStrongBorder",{light:null,dark:null,hcDark:va,hcLight:va},v("wordHighlightStrongBorder","Border color of a symbol during write-access, like writing to a variable."));Oe("editor.wordHighlightTextBorder",{light:KC,dark:KC,hcDark:KC,hcLight:KC},v("wordHighlightTextBorder","Border color of a textual occurrence for a symbol."));lve=Oe("editorOverviewRuler.wordHighlightForeground",{dark:"#A0A0A0CC",light:"#A0A0A0CC",hcDark:"#A0A0A0CC",hcLight:"#A0A0A0CC"},v("overviewRulerWordHighlightForeground","Overview ruler marker color for symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),cve=Oe("editorOverviewRuler.wordHighlightStrongForeground",{dark:"#C0A0C0CC",light:"#C0A0C0CC",hcDark:"#C0A0C0CC",hcLight:"#C0A0C0CC"},v("overviewRulerWordHighlightStrongForeground","Overview ruler marker color for write-access symbol highlights. The color must not be opaque so as not to hide underlying decorations."),!0),dve=Oe("editorOverviewRuler.wordHighlightTextForeground",{dark:cf,light:cf,hcDark:cf,hcLight:cf},v("overviewRulerWordHighlightTextForeground","Overview ruler marker color of a textual occurrence for a symbol. The color must not be opaque so as not to hide underlying decorations."),!0),uve=dt.register({description:"word-highlight-strong",stickiness:1,className:"wordHighlightStrong",overviewRuler:{color:vi(cve),position:Gr.Center},minimap:{color:vi(Vm),position:pa.Inline}}),hve=dt.register({description:"word-highlight-text",stickiness:1,className:"wordHighlightText",overviewRuler:{color:vi(dve),position:Gr.Center},minimap:{color:vi(Vm),position:pa.Inline}}),fve=dt.register({description:"selection-highlight-overview",stickiness:1,className:"selectionHighlight",overviewRuler:{color:vi(cf),position:Gr.Center},minimap:{color:vi(Vm),position:pa.Inline}}),pve=dt.register({description:"selection-highlight",stickiness:1,className:"selectionHighlight"}),mve=dt.register({description:"word-highlight",stickiness:1,className:"wordHighlight",overviewRuler:{color:vi(lve),position:Gr.Center},minimap:{color:vi(Vm),position:pa.Inline}});df((i,e)=>{let t=i.getColor(RO);t&&e.addRule(`.monaco-editor .selectionHighlight { background-color: ${t.transparent(.5)}; }`)})});function Nd(i,e){let t=e.filter(n=>!i.find(r=>r.equals(n)));if(t.length>=1){let n=t.map(o=>`line ${o.viewState.position.lineNumber} column ${o.viewState.position.column}`).join(", "),r=t.length===1?v("cursorAdded","Cursor added: {0}",n):v("cursorsAdded","Cursors added: {0}",n);bR(r)}}function cX(i,e,t){let n=aX(i,e[0],!t);for(let r=1,o=e.length;r{Lo();Dt();gl();Ce();et();BR();qe();Mn();Vt();Dy();Re();Xi();pt();xt();EI();Et();gve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},vve=function(i,e){return function(t,n){e(t,n,i)}};TI=class extends se{constructor(){super({id:"editor.action.insertCursorAbove",label:v("mutlicursor.insertAbove","Add Cursor Above"),alias:"Add Cursor Above",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:2576,linux:{primary:1552,secondary:[3088]},weight:100},menuOpts:{menuId:xe.MenubarSelectionMenu,group:"3_multi",title:v({key:"miInsertCursorAbove",comment:["&& denotes a mnemonic"]},"&&Add Cursor Above"),order:2}})}run(e,t,n){if(!t.hasModel())return;let r=!0;n&&n.logicalLine===!1&&(r=!1);let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let s=o.getCursorStates();o.setCursorStates(n.source,3,Nm.addCursorUp(o,s,r)),o.revealTopMostCursor(n.source),Nd(s,o.getCursorStates())}},kI=class extends se{constructor(){super({id:"editor.action.insertCursorBelow",label:v("mutlicursor.insertBelow","Add Cursor Below"),alias:"Add Cursor Below",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:2578,linux:{primary:1554,secondary:[3090]},weight:100},menuOpts:{menuId:xe.MenubarSelectionMenu,group:"3_multi",title:v({key:"miInsertCursorBelow",comment:["&& denotes a mnemonic"]},"A&&dd Cursor Below"),order:3}})}run(e,t,n){if(!t.hasModel())return;let r=!0;n&&n.logicalLine===!1&&(r=!1);let o=t._getViewModel();if(o.cursorConfig.readOnly)return;o.model.pushStackElement();let s=o.getCursorStates();o.setCursorStates(n.source,3,Nm.addCursorDown(o,s,r)),o.revealBottomMostCursor(n.source),Nd(s,o.getCursorStates())}},II=class extends se{constructor(){super({id:"editor.action.insertCursorAtEndOfEachLineSelected",label:v("mutlicursor.insertAtEndOfEachLineSelected","Add Cursors to Line Ends"),alias:"Add Cursors to Line Ends",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:1575,weight:100},menuOpts:{menuId:xe.MenubarSelectionMenu,group:"3_multi",title:v({key:"miInsertCursorAtEndOfEachLineSelected",comment:["&& denotes a mnemonic"]},"Add C&&ursors to Line Ends"),order:4}})}getCursorsForSelection(e,t,n){if(!e.isEmpty()){for(let r=e.startLineNumber;r1&&n.push(new We(e.endLineNumber,e.endColumn,e.endLineNumber,e.endColumn))}}run(e,t){if(!t.hasModel())return;let n=t.getModel(),r=t.getSelections(),o=t._getViewModel(),s=o.getCursorStates(),a=[];r.forEach(l=>this.getCursorsForSelection(l,n,a)),a.length>0&&t.setSelections(a),Nd(s,o.getCursorStates())}},AI=class extends se{constructor(){super({id:"editor.action.addCursorsToBottom",label:v("mutlicursor.addCursorsToBottom","Add Cursors To Bottom"),alias:"Add Cursors To Bottom",precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getSelections(),r=t.getModel().getLineCount(),o=[];for(let l=n[0].startLineNumber;l<=r;l++)o.push(new We(l,n[0].startColumn,l,n[0].endColumn));let s=t._getViewModel(),a=s.getCursorStates();o.length>0&&t.setSelections(o),Nd(a,s.getCursorStates())}},LI=class extends se{constructor(){super({id:"editor.action.addCursorsToTop",label:v("mutlicursor.addCursorsToTop","Add Cursors To Top"),alias:"Add Cursors To Top",precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getSelections(),r=[];for(let a=n[0].startLineNumber;a>=1;a--)r.push(new We(a,n[0].startColumn,a,n[0].endColumn));let o=t._getViewModel(),s=o.getCursorStates();r.length>0&&t.setSelections(r),Nd(s,o.getCursorStates())}},Up=class{constructor(e,t,n){this.selections=e,this.revealRange=t,this.revealScrollType=n}},qC=class i{static create(e,t){if(!e.hasModel())return null;let n=t.getState();if(!e.hasTextFocus()&&n.isRevealed&&n.searchString.length>0)return new i(e,t,!1,n.searchString,n.wholeWord,n.matchCase,null);let r=!1,o,s,a=e.getSelections();a.length===1&&a[0].isEmpty()?(r=!0,o=!0,s=!0):(o=n.wholeWord,s=n.matchCase);let l=e.getSelection(),c,d=null;if(l.isEmpty()){let u=e.getConfiguredWordAtPosition(l.getStartPosition());if(!u)return null;c=u.word,d=new We(l.startLineNumber,u.startColumn,l.startLineNumber,u.endColumn)}else c=e.getModel().getValueInRange(l).replace(/\r\n/g,` +`);return new i(e,t,r,c,o,s,d)}constructor(e,t,n,r,o,s,a){this._editor=e,this.findController=t,this.isDisconnectedFromFindController=n,this.searchText=r,this.wholeWord=o,this.matchCase=s,this.currentMatch=a}addSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Up(t.concat(e),e,0)}moveSelectionToNextFindMatch(){if(!this._editor.hasModel())return null;let e=this._getNextMatch();if(!e)return null;let t=this._editor.getSelections();return new Up(t.slice(0,t.length-1).concat(e),e,0)}_getNextMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let r=this.currentMatch;return this.currentMatch=null,r}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findNextMatch(this.searchText,t.getEndPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(126):null,!1);return n?new We(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}addSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Up(t.concat(e),e,0)}moveSelectionToPreviousFindMatch(){if(!this._editor.hasModel())return null;let e=this._getPreviousMatch();if(!e)return null;let t=this._editor.getSelections();return new Up(t.slice(0,t.length-1).concat(e),e,0)}_getPreviousMatch(){if(!this._editor.hasModel())return null;if(this.currentMatch){let r=this.currentMatch;return this.currentMatch=null,r}this.findController.highlightFindOptions();let e=this._editor.getSelections(),t=e[e.length-1],n=this._editor.getModel().findPreviousMatch(this.searchText,t.getStartPosition(),!1,this.matchCase,this.wholeWord?this._editor.getOption(126):null,!1);return n?new We(n.range.startLineNumber,n.range.startColumn,n.range.endLineNumber,n.range.endColumn):null}selectAll(e){if(!this._editor.hasModel())return[];this.findController.highlightFindOptions();let t=this._editor.getModel();return e?t.findMatches(this.searchText,e,!1,this.matchCase,this.wholeWord?this._editor.getOption(126):null,!1,1073741824):t.findMatches(this.searchText,!0,!1,this.matchCase,this.wholeWord?this._editor.getOption(126):null,!1,1073741824)}},mh=class i extends oe{static get(e){return e.getContribution(i.ID)}constructor(e){super(),this._sessionDispose=this._register(new re),this._editor=e,this._ignoreSelectionChange=!1,this._session=null}dispose(){this._endSession(),super.dispose()}_beginSessionIfNeeded(e){if(!this._session){let t=qC.create(this._editor,e);if(!t)return;this._session=t;let n={searchString:this._session.searchText};this._session.isDisconnectedFromFindController&&(n.wholeWordOverride=1,n.matchCaseOverride=1,n.isRegexOverride=2),e.getState().change(n,!1),this._sessionDispose.add(this._editor.onDidChangeCursorSelection(r=>{this._ignoreSelectionChange||this._endSession()})),this._sessionDispose.add(this._editor.onDidBlurEditorText(()=>{this._endSession()})),this._sessionDispose.add(e.getState().onFindReplaceStateChange(r=>{(r.matchCase||r.wholeWord)&&this._endSession()}))}}_endSession(){if(this._sessionDispose.clear(),this._session&&this._session.isDisconnectedFromFindController){let e={wholeWordOverride:0,matchCaseOverride:0,isRegexOverride:0};this._session.findController.getState().change(e,!1)}this._session=null}_setSelections(e){this._ignoreSelectionChange=!0,this._editor.setSelections(e),this._ignoreSelectionChange=!1}_expandEmptyToWord(e,t){if(!t.isEmpty())return t;let n=this._editor.getConfiguredWordAtPosition(t.getStartPosition());return n?new We(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):t}_applySessionResult(e){e&&(this._setSelections(e.selections),e.revealRange&&this._editor.revealRangeInCenterIfOutsideViewport(e.revealRange,e.revealScrollType))}getSession(e){return this._session}addSelectionToNextFindMatch(e){if(this._editor.hasModel()){if(!this._session){let t=this._editor.getSelections();if(t.length>1){let r=e.getState().matchCase;if(!cX(this._editor.getModel(),t,r)){let s=this._editor.getModel(),a=[];for(let l=0,c=t.length;l0&&n.isRegex){let r=this._editor.getModel();n.searchScope?t=r.findMatches(n.searchString,n.searchScope,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(126):null,!1,1073741824):t=r.findMatches(n.searchString,!0,n.isRegex,n.matchCase,n.wholeWord?this._editor.getOption(126):null,!1,1073741824)}else{if(this._beginSessionIfNeeded(e),!this._session)return;t=this._session.selectAll(n.searchScope)}if(t.length>0){let r=this._editor.getSelection();for(let o=0,s=t.length;onew We(o.range.startLineNumber,o.range.startColumn,o.range.endLineNumber,o.range.endColumn)))}}};mh.ID="editor.contrib.multiCursorController";Dd=class extends se{run(e,t){let n=mh.get(t);if(!n)return;let r=t._getViewModel();if(r){let o=r.getCursorStates(),s=dr.get(t);if(s)this._run(n,s);else{let a=e.get(Be).createInstance(dr,t);this._run(n,a),a.dispose()}Nd(o,r.getCursorStates())}}},MI=class extends Dd{constructor(){super({id:"editor.action.addSelectionToNextFindMatch",label:v("addSelectionToNextFindMatch","Add Selection To Next Find Match"),alias:"Add Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:2082,weight:100},menuOpts:{menuId:xe.MenubarSelectionMenu,group:"3_multi",title:v({key:"miAddSelectionToNextFindMatch",comment:["&& denotes a mnemonic"]},"Add &&Next Occurrence"),order:5}})}_run(e,t){e.addSelectionToNextFindMatch(t)}},DI=class extends Dd{constructor(){super({id:"editor.action.addSelectionToPreviousFindMatch",label:v("addSelectionToPreviousFindMatch","Add Selection To Previous Find Match"),alias:"Add Selection To Previous Find Match",precondition:void 0,menuOpts:{menuId:xe.MenubarSelectionMenu,group:"3_multi",title:v({key:"miAddSelectionToPreviousFindMatch",comment:["&& denotes a mnemonic"]},"Add P&&revious Occurrence"),order:6}})}_run(e,t){e.addSelectionToPreviousFindMatch(t)}},NI=class extends Dd{constructor(){super({id:"editor.action.moveSelectionToNextFindMatch",label:v("moveSelectionToNextFindMatch","Move Last Selection To Next Find Match"),alias:"Move Last Selection To Next Find Match",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:di(2089,2082),weight:100}})}_run(e,t){e.moveSelectionToNextFindMatch(t)}},RI=class extends Dd{constructor(){super({id:"editor.action.moveSelectionToPreviousFindMatch",label:v("moveSelectionToPreviousFindMatch","Move Last Selection To Previous Find Match"),alias:"Move Last Selection To Previous Find Match",precondition:void 0})}_run(e,t){e.moveSelectionToPreviousFindMatch(t)}},OI=class extends Dd{constructor(){super({id:"editor.action.selectHighlights",label:v("selectAllOccurrencesOfFindMatch","Select All Occurrences of Find Match"),alias:"Select All Occurrences of Find Match",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:3114,weight:100},menuOpts:{menuId:xe.MenubarSelectionMenu,group:"3_multi",title:v({key:"miSelectHighlights",comment:["&& denotes a mnemonic"]},"Select All &&Occurrences"),order:7}})}_run(e,t){e.selectAll(t)}},PI=class extends Dd{constructor(){super({id:"editor.action.changeAll",label:v("changeAll.label","Change All Occurrences"),alias:"Change All Occurrences",precondition:ce.and(O.writable,O.editorTextFocus),kbOpts:{kbExpr:O.editorTextFocus,primary:2108,weight:100},contextMenuOpts:{group:"1_modification",order:1.2}})}_run(e,t){e.selectAll(t)}},FI=class{constructor(e,t,n,r,o){this._model=e,this._searchText=t,this._matchCase=n,this._wordSeparators=r,this._modelVersionId=this._model.getVersionId(),this._cachedFindMatches=null,o&&this._model===o._model&&this._searchText===o._searchText&&this._matchCase===o._matchCase&&this._wordSeparators===o._wordSeparators&&this._modelVersionId===o._modelVersionId&&(this._cachedFindMatches=o._cachedFindMatches)}findMatches(){return this._cachedFindMatches===null&&(this._cachedFindMatches=this._model.findMatches(this._searchText,!0,!1,this._matchCase,this._wordSeparators,!1).map(e=>e.range),this._cachedFindMatches.sort(P.compareRangesUsingStarts)),this._cachedFindMatches}},Gg=class lX extends oe{constructor(e,t){super(),this._languageFeaturesService=t,this.editor=e,this._isEnabled=e.getOption(104),this._decorations=e.createDecorationsCollection(),this.updateSoon=this._register(new ii(()=>this._update(),300)),this.state=null,this._register(e.onDidChangeConfiguration(r=>{this._isEnabled=e.getOption(104)})),this._register(e.onDidChangeCursorSelection(r=>{this._isEnabled&&(r.selection.isEmpty()?r.reason===3?(this.state&&this._setState(null),this.updateSoon.schedule()):this._setState(null):this._update())})),this._register(e.onDidChangeModel(r=>{this._setState(null)})),this._register(e.onDidChangeModelContent(r=>{this._isEnabled&&this.updateSoon.schedule()}));let n=dr.get(e);n&&this._register(n.getState().onFindReplaceStateChange(r=>{this._update()})),this.updateSoon.schedule()}_update(){this._setState(lX._createState(this.state,this._isEnabled,this.editor))}static _createState(e,t,n){if(!t||!n.hasModel())return null;let r=n.getSelection();if(r.startLineNumber!==r.endLineNumber)return null;let o=mh.get(n);if(!o)return null;let s=dr.get(n);if(!s)return null;let a=o.getSession(s);if(!a){let d=n.getSelections();if(d.length>1){let h=s.getState().matchCase;if(!cX(n.getModel(),d,h))return null}a=qC.create(n,s)}if(!a||a.currentMatch||/^[ \t]+$/.test(a.searchText)||a.searchText.length>200)return null;let l=s.getState(),c=l.matchCase;if(l.isRevealed){let d=l.searchString;c||(d=d.toLowerCase());let u=a.searchText;if(c||(u=u.toLowerCase()),d===u&&a.matchCase===l.matchCase&&a.wholeWord===l.wholeWord&&!l.isRegex)return null}return new FI(n.getModel(),a.searchText,a.matchCase,a.wholeWord?n.getOption(126):null,e)}_setState(e){if(this.state=e,!this.state){this._decorations.clear();return}if(!this.editor.hasModel())return;let t=this.editor.getModel();if(t.isTooLargeForTokenization())return;let n=this.state.findMatches(),r=this.editor.getSelections();r.sort(P.compareRangesUsingStarts);let o=[];for(let l=0,c=0,d=n.length,u=r.length;l=u)o.push(h),l++;else{let p=P.compareRangesUsingStarts(h,r[c]);p<0?((r[c].isEmpty()||!P.areIntersecting(h,r[c]))&&o.push(h),l++):(p>0||l++,c++)}}let s=this._languageFeaturesService.documentHighlightProvider.has(t)&&this.editor.getOption(78),a=o.map(l=>({range:l,options:sX(s)}));this._decorations.set(a)}dispose(){this._setState(null),super.dispose()}};Gg.ID="editor.contrib.selectionHighlighter";Gg=gve([vve(1,be)],Gg);BI=class extends se{constructor(){super({id:"editor.action.focusNextCursor",label:v("mutlicursor.focusNextCursor","Focus Next Cursor"),description:{description:v("mutlicursor.focusNextCursor.description","Focuses the next cursor"),args:[]},alias:"Focus Next Cursor",precondition:void 0})}run(e,t,n){if(!t.hasModel())return;let r=t._getViewModel();if(r.cursorConfig.readOnly)return;r.model.pushStackElement();let o=Array.from(r.getCursorStates()),s=o.shift();s&&(o.push(s),r.setCursorStates(n.source,3,o),r.revealPrimaryCursor(n.source,!0),Nd(o,r.getCursorStates()))}},HI=class extends se{constructor(){super({id:"editor.action.focusPreviousCursor",label:v("mutlicursor.focusPreviousCursor","Focus Previous Cursor"),description:{description:v("mutlicursor.focusPreviousCursor.description","Focuses the previous cursor"),args:[]},alias:"Focus Previous Cursor",precondition:void 0})}run(e,t,n){if(!t.hasModel())return;let r=t._getViewModel();if(r.cursorConfig.readOnly)return;r.model.pushStackElement();let o=Array.from(r.getCursorStates()),s=o.pop();s&&(o.unshift(s),r.setCursorStates(n.source,3,o),r.revealPrimaryCursor(n.source,!0),Nd(o,r.getCursorStates()))}};Ae(mh.ID,mh,4);Ae(Gg.ID,Gg,1);X(TI);X(kI);X(II);X(MI);X(DI);X(NI);X(RI);X(OI);X(PI);X(AI);X(LI);X(BI);X(HI)});function UI(i,e,t,n,r){return dX(this,void 0,void 0,function*(){let o=i.ordered(e);for(let s of o)try{let a=yield s.provideSignatureHelp(e,t,r,n);if(a)return a}catch(a){Ut(a)}})}var dX,yc,GC=M(()=>{gi();At();Mi();Sn();ri();br();xt();ca();zi();pt();dX=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},yc={Visible:new rt("parameterHintsVisible",!1),MultipleSignatures:new rt("parameterHintsMultipleSignatures",!1)};St.registerCommand("_executeSignatureHelpProvider",(i,...e)=>dX(void 0,void 0,void 0,function*(){let[t,n,r]=e;Lt(ft.isUri(t)),Lt(Se.isIPosition(n)),Lt(typeof r=="string"||!r);let o=i.get(be),s=yield i.get(xn).createModelReference(t);try{let a=yield UI(o.signatureHelpProvider,s.object.textEditorModel,Se.lift(n),{triggerKind:Ms.Invoke,isRetrigger:!1,triggerCharacter:r},tt.None);return a?(setTimeout(()=>a.dispose(),0),a.value):void 0}finally{s.dispose()}}))});function bve(i,e){switch(e.triggerKind){case Ms.Invoke:return e;case Ms.ContentChange:return i;case Ms.TriggerCharacter:default:return e}}var _ve,Rd,$g,uX=M(()=>{Dt();At();Gt();Ce();pw();br();GC();_ve=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};(function(i){i.Default={type:0};class e{constructor(r,o){this.request=r,this.previouslyActiveHints=o,this.type=2}}i.Pending=e;class t{constructor(r){this.hints=r,this.type=1}}i.Active=t})(Rd||(Rd={}));$g=class i extends oe{constructor(e,t,n=i.DEFAULT_DELAY){super(),this._onChangedHints=this._register(new $e),this.onChangedHints=this._onChangedHints.event,this.triggerOnType=!1,this._state=Rd.Default,this._pendingTriggers=[],this._lastSignatureHelpResult=this._register(new Hi),this.triggerChars=new tu,this.retriggerChars=new tu,this.triggerId=0,this.editor=e,this.providers=t,this.throttledDelayer=new No(n),this._register(this.editor.onDidBlurEditorWidget(()=>this.cancel())),this._register(this.editor.onDidChangeConfiguration(()=>this.onEditorConfigurationChange())),this._register(this.editor.onDidChangeModel(r=>this.onModelChanged())),this._register(this.editor.onDidChangeModelLanguage(r=>this.onModelChanged())),this._register(this.editor.onDidChangeCursorSelection(r=>this.onCursorChange(r))),this._register(this.editor.onDidChangeModelContent(r=>this.onModelContentChange())),this._register(this.providers.onDidChange(this.onModelChanged,this)),this._register(this.editor.onDidType(r=>this.onDidType(r))),this.onEditorConfigurationChange(),this.onModelChanged()}get state(){return this._state}set state(e){this._state.type===2&&this._state.request.cancel(),this._state=e}cancel(e=!1){this.state=Rd.Default,this.throttledDelayer.cancel(),e||this._onChangedHints.fire(void 0)}trigger(e,t){let n=this.editor.getModel();if(!n||!this.providers.has(n))return;let r=++this.triggerId;this._pendingTriggers.push(e),this.throttledDelayer.trigger(()=>this.doTrigger(r),t).catch(lt)}next(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t%e===e-1,r=this.editor.getOption(83).cycle;if((e<2||n)&&!r){this.cancel();return}this.updateActiveSignature(n&&r?0:t+1)}previous(){if(this.state.type!==1)return;let e=this.state.hints.signatures.length,t=this.state.hints.activeSignature,n=t===0,r=this.editor.getOption(83).cycle;if((e<2||n)&&!r){this.cancel();return}this.updateActiveSignature(n&&r?e-1:t-1)}updateActiveSignature(e){this.state.type===1&&(this.state=new Rd.Active(Object.assign(Object.assign({},this.state.hints),{activeSignature:e})),this._onChangedHints.fire(this.state.hints))}doTrigger(e){return _ve(this,void 0,void 0,function*(){let t=this.state.type===1||this.state.type===2,n=this.getLastActiveHints();if(this.cancel(!0),this._pendingTriggers.length===0)return!1;let r=this._pendingTriggers.reduce(bve);this._pendingTriggers=[];let o={triggerKind:r.triggerKind,triggerCharacter:r.triggerCharacter,isRetrigger:t,activeSignatureHelp:n};if(!this.editor.hasModel())return!1;let s=this.editor.getModel(),a=this.editor.getPosition();this.state=new Rd.Pending(Kt(l=>UI(this.providers,s,a,o,l)),n);try{let l=yield this.state.request;return e!==this.triggerId?(l==null||l.dispose(),!1):!l||!l.value.signatures||l.value.signatures.length===0?(l==null||l.dispose(),this._lastSignatureHelpResult.clear(),this.cancel(),!1):(this.state=new Rd.Active(l.value),this._lastSignatureHelpResult.value=l,this._onChangedHints.fire(this.state.hints),!0)}catch(l){return e===this.triggerId&&(this.state=Rd.Default),lt(l),!1}})}getLastActiveHints(){switch(this.state.type){case 1:return this.state.hints;case 2:return this.state.previouslyActiveHints;default:return}}get isTriggered(){return this.state.type===1||this.state.type===2||this.throttledDelayer.isTriggered()}onModelChanged(){this.cancel(),this.triggerChars.clear(),this.retriggerChars.clear();let e=this.editor.getModel();if(e)for(let t of this.providers.ordered(e)){for(let n of t.signatureHelpTriggerCharacters||[])if(n.length){let r=n.charCodeAt(0);this.triggerChars.add(r),this.retriggerChars.add(r)}for(let n of t.signatureHelpRetriggerCharacters||[])n.length&&this.retriggerChars.add(n.charCodeAt(0))}}onDidType(e){if(!this.triggerOnType)return;let t=e.length-1,n=e.charCodeAt(t);(this.triggerChars.has(n)||this.isTriggered&&this.retriggerChars.has(n))&&this.trigger({triggerKind:Ms.TriggerCharacter,triggerCharacter:e.charAt(t)})}onCursorChange(e){e.source==="mouse"?this.cancel():this.isTriggered&&this.trigger({triggerKind:Ms.ContentChange})}onModelContentChange(){this.isTriggered&&this.trigger({triggerKind:Ms.ContentChange})}onEditorConfigurationChange(){this.triggerOnType=this.editor.getOption(83).enabled,this.triggerOnType||this.cancel()}dispose(){this.cancel(!0),super.dispose()}};$g.DEFAULT_DELAY=120});var hX=M(()=>{});var fX=M(()=>{hX()});var yve,jI,xo,Cve,Sve,Yg,mX=M(()=>{Bt();Lo();tb();or();Gt();Ce();wi();Mi();fX();os();th();GC();Re();pt();cs();_r();Ll();Kr();yve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},jI=function(i,e){return function(t,n){e(t,n,i)}},xo=fe,Cve=Ti("parameter-hints-next",ct.chevronDown,v("parameterHintsNextIcon","Icon for show next parameter hint.")),Sve=Ti("parameter-hints-previous",ct.chevronUp,v("parameterHintsPreviousIcon","Icon for show previous parameter hint.")),Yg=class pX extends oe{constructor(e,t,n,r,o){super(),this.editor=e,this.model=t,this.renderDisposeables=this._register(new re),this.visible=!1,this.announcedLabel=null,this.allowEditorOverflow=!0,this.markdownRenderer=this._register(new to({editor:e},o,r)),this.keyVisible=yc.Visible.bindTo(n),this.keyMultipleSignatures=yc.MultipleSignatures.bindTo(n)}createParameterHintDOMNodes(){let e=xo(".editor-widget.parameter-hints-widget"),t=me(e,xo(".phwrapper"));t.tabIndex=-1;let n=me(t,xo(".controls")),r=me(n,xo(".button"+gt.asCSSSelector(Sve))),o=me(n,xo(".overloads")),s=me(n,xo(".button"+gt.asCSSSelector(Cve)));this._register(Rt(r,"click",h=>{Jd.stop(h),this.previous()})),this._register(Rt(s,"click",h=>{Jd.stop(h),this.next()}));let a=xo(".body"),l=new mf(a,{alwaysConsumeMouseWheel:!0});this._register(l),t.appendChild(l.getDomNode());let c=me(a,xo(".signature")),d=me(a,xo(".docs"));e.style.userSelect="text",this.domNodes={element:e,signature:c,overloads:o,docs:d,scrollbar:l},this.editor.addContentWidget(this),this.hide(),this._register(this.editor.onDidChangeCursorSelection(h=>{this.visible&&this.editor.layoutContentWidget(this)}));let u=()=>{if(!this.domNodes)return;let h=this.editor.getOption(48);this.domNodes.element.style.fontSize=`${h.fontSize}px`,this.domNodes.element.style.lineHeight=`${h.lineHeight/h.fontSize}`};u(),this._register(li.chain(this.editor.onDidChangeConfiguration.bind(this.editor)).filter(h=>h.hasChanged(48)).on(u,null)),this._register(this.editor.onDidLayoutChange(h=>this.updateMaxHeight())),this.updateMaxHeight()}show(){this.visible||(this.domNodes||this.createParameterHintDOMNodes(),this.keyVisible.set(!0),this.visible=!0,setTimeout(()=>{var e;(e=this.domNodes)===null||e===void 0||e.element.classList.add("visible")},100),this.editor.layoutContentWidget(this))}hide(){var e;this.renderDisposeables.clear(),this.visible&&(this.keyVisible.reset(),this.visible=!1,this.announcedLabel=null,(e=this.domNodes)===null||e===void 0||e.element.classList.remove("visible"),this.editor.layoutContentWidget(this))}getPosition(){return this.visible?{position:this.editor.getPosition(),preference:[1,2]}:null}render(e){var t;if(this.renderDisposeables.clear(),!this.domNodes)return;let n=e.signatures.length>1;this.domNodes.element.classList.toggle("multiple",n),this.keyMultipleSignatures.set(n),this.domNodes.signature.innerText="",this.domNodes.docs.innerText="";let r=e.signatures[e.activeSignature];if(!r)return;let o=me(this.domNodes.signature,xo(".code")),s=this.editor.getOption(48);o.style.fontSize=`${s.fontSize}px`,o.style.fontFamily=s.fontFamily;let a=r.parameters.length>0,l=(t=r.activeParameter)!==null&&t!==void 0?t:e.activeParameter;if(a)this.renderParameters(o,r,l);else{let u=me(o,xo("span"));u.textContent=r.label}let c=r.parameters[l];if(c!=null&&c.documentation){let u=xo("span.documentation");if(typeof c.documentation=="string")u.textContent=c.documentation;else{let h=this.renderMarkdownDocs(c.documentation);u.appendChild(h.element)}me(this.domNodes.docs,xo("p",{},u))}if(r.documentation!==void 0)if(typeof r.documentation=="string")me(this.domNodes.docs,xo("p",{},r.documentation));else{let u=this.renderMarkdownDocs(r.documentation);me(this.domNodes.docs,u.element)}let d=this.hasDocs(r,c);if(this.domNodes.signature.classList.toggle("has-docs",d),this.domNodes.docs.classList.toggle("empty",!d),this.domNodes.overloads.textContent=String(e.activeSignature+1).padStart(e.signatures.length.toString().length,"0")+"/"+e.signatures.length,c){let u="",h=r.parameters[l];Array.isArray(h.label)?u=r.label.substring(h.label[0],h.label[1]):u=h.label,h.documentation&&(u+=typeof h.documentation=="string"?`, ${h.documentation}`:`, ${h.documentation.value}`),r.documentation&&(u+=typeof r.documentation=="string"?`, ${r.documentation}`:`, ${r.documentation.value}`),this.announcedLabel!==u&&(Ni(v("hint","{0}, hint",u)),this.announcedLabel=u)}this.editor.layoutContentWidget(this),this.domNodes.scrollbar.scanDomNode()}renderMarkdownDocs(e){let t=this.renderDisposeables.add(this.markdownRenderer.render(e,{asyncRenderCallback:()=>{var n;(n=this.domNodes)===null||n===void 0||n.scrollbar.scanDomNode()}}));return t.element.classList.add("markdown-docs"),t}hasDocs(e,t){return!!(t&&typeof t.documentation=="string"&&Oc(t.documentation).length>0||t&&typeof t.documentation=="object"&&Oc(t.documentation).value.length>0||e.documentation&&typeof e.documentation=="string"&&Oc(e.documentation).length>0||e.documentation&&typeof e.documentation=="object"&&Oc(e.documentation.value).length>0)}renderParameters(e,t,n){let[r,o]=this.getParameterLabelOffsets(t,n),s=document.createElement("span");s.textContent=t.label.substring(0,r);let a=document.createElement("span");a.textContent=t.label.substring(r,o),a.className="parameter active";let l=document.createElement("span");l.textContent=t.label.substring(o),me(e,s,a,l)}getParameterLabelOffsets(e,t){let n=e.parameters[t];if(n){if(Array.isArray(n.label))return n.label;if(n.label.length){let r=new RegExp(`(\\W|^)${vl(n.label)}(?=\\W|$)`,"g");r.test(e.label);let o=r.lastIndex-n.label.length;return o>=0?[o,r.lastIndex]:[0,0]}else return[0,0]}else return[0,0]}next(){this.editor.focus(),this.model.next()}previous(){this.editor.focus(),this.model.previous()}getDomNode(){return this.domNodes||this.createParameterHintDOMNodes(),this.domNodes.element}getId(){return pX.ID}updateMaxHeight(){if(!this.domNodes)return;let t=`${Math.max(this.editor.getLayoutInfo().height/4,250)}px`;this.domNodes.element.style.maxHeight=t;let n=this.domNodes.element.getElementsByClassName("phwrapper");n.length&&(n[0].style.maxHeight=t)}};Yg.ID="editor.widget.parameterHintsWidget";Yg=yve([jI(2,Ke),jI(3,Ji),jI(4,Qi)],Yg);Oe("editorHoverWidget.highlightForeground",{dark:ba,light:ba,hcDark:ba,hcLight:ba},v("editorHoverWidgetHighlightForeground","Foreground color of the active item in the parameter hint."))});var wve,gX,gh,WI,VI,KI,qI=M(()=>{ow();Ce();et();Vt();br();xt();uX();GC();Re();pt();Et();mX();wve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},gX=function(i,e){return function(t,n){e(t,n,i)}},gh=class vX extends oe{static get(e){return e.getContribution(vX.ID)}constructor(e,t,n){super(),this.editor=e,this.model=this._register(new $g(e,n.signatureHelpProvider)),this._register(this.model.onChangedHints(r=>{var o;r?(this.widget.value.show(),this.widget.value.render(r)):(o=this.widget.rawValue)===null||o===void 0||o.hide()})),this.widget=new Xh(()=>this._register(t.createInstance(Yg,this.editor,this.model)))}cancel(){this.model.cancel()}previous(){var e;(e=this.widget.rawValue)===null||e===void 0||e.previous()}next(){var e;(e=this.widget.rawValue)===null||e===void 0||e.next()}trigger(e){this.model.trigger(e,0)}};gh.ID="editor.controller.parameterHints";gh=wve([gX(1,Be),gX(2,be)],gh);WI=class extends se{constructor(){super({id:"editor.action.triggerParameterHints",label:v("parameterHints.trigger.label","Trigger Parameter Hints"),alias:"Trigger Parameter Hints",precondition:O.hasSignatureHelpProvider,kbOpts:{kbExpr:O.editorTextFocus,primary:3082,weight:100}})}run(e,t){let n=gh.get(t);n==null||n.trigger({triggerKind:Ms.Invoke})}};Ae(gh.ID,gh,2);X(WI);VI=100+75,KI=xi.bindToContribution(gh.get);Ne(new KI({id:"closeParameterHints",precondition:yc.Visible,handler:i=>i.cancel(),kbOpts:{weight:VI,kbExpr:O.focus,primary:9,secondary:[1033]}}));Ne(new KI({id:"showPrevParameterHint",precondition:ce.and(yc.Visible,yc.MultipleSignatures),handler:i=>i.previous(),kbOpts:{weight:VI,kbExpr:O.focus,primary:16,secondary:[528],mac:{primary:16,secondary:[528,302]}}}));Ne(new KI({id:"showNextParameterHint",precondition:ce.and(yc.Visible,yc.MultipleSignatures),handler:i=>i.next(),kbOpts:{weight:VI,kbExpr:O.focus,primary:18,secondary:[530],mac:{primary:18,secondary:[530,300]}}}))});var _X=M(()=>{});var bX=M(()=>{_X()});var xve,GI,Xg,$C,yX=M(()=>{Ce();bX();ri();Re();pt();Gn();_r();ar();xve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},GI=function(i,e){return function(t,n){e(t,n,i)}},Xg=new rt("renameInputVisible",!1,v("renameInputVisible","Whether the rename input widget is visible")),$C=class{constructor(e,t,n,r,o){this._editor=e,this._acceptKeybindings=t,this._themeService=n,this._keybindingService=r,this._disposables=new re,this.allowEditorOverflow=!0,this._visibleContextKey=Xg.bindTo(o),this._editor.addContentWidget(this),this._disposables.add(this._editor.onDidChangeConfiguration(s=>{s.hasChanged(48)&&this._updateFont()})),this._disposables.add(n.onDidColorThemeChange(this._updateStyles,this))}dispose(){this._disposables.dispose(),this._editor.removeContentWidget(this)}getId(){return"__renameInputWidget"}getDomNode(){return this._domNode||(this._domNode=document.createElement("div"),this._domNode.className="monaco-editor rename-box",this._input=document.createElement("input"),this._input.className="rename-input",this._input.type="text",this._input.setAttribute("aria-label",v("renameAriaLabel","Rename input. Type new name and press Enter to commit.")),this._domNode.appendChild(this._input),this._label=document.createElement("div"),this._label.className="rename-label",this._domNode.appendChild(this._label),this._updateFont(),this._updateStyles(this._themeService.getColorTheme())),this._domNode}_updateStyles(e){var t,n,r,o;if(!this._input||!this._domNode)return;let s=e.getColor(H_),a=e.getColor(z_);this._domNode.style.backgroundColor=String((t=e.getColor(xl))!==null&&t!==void 0?t:""),this._domNode.style.boxShadow=s?` 0 0 8px 2px ${s}`:"",this._domNode.style.border=a?`1px solid ${a}`:"",this._domNode.style.color=String((n=e.getColor(EO))!==null&&n!==void 0?n:""),this._input.style.backgroundColor=String((r=e.getColor(xO))!==null&&r!==void 0?r:"");let l=e.getColor(TO);this._input.style.borderWidth=l?"1px":"0px",this._input.style.borderStyle=l?"solid":"none",this._input.style.borderColor=(o=l==null?void 0:l.toString())!==null&&o!==void 0?o:"none"}_updateFont(){if(!this._input||!this._label)return;let e=this._editor.getOption(48);this._input.style.fontFamily=e.fontFamily,this._input.style.fontWeight=e.fontWeight,this._input.style.fontSize=`${e.fontSize}px`,this._label.style.fontSize=`${e.fontSize*.8}px`}getPosition(){return this._visible?{position:this._position,preference:[2,1]}:null}beforeRender(){var e,t;let[n,r]=this._acceptKeybindings;return this._label.innerText=v({key:"label",comment:['placeholders are keybindings, e.g "F2 to Rename, Shift+F2 to Preview"']},"{0} to Rename, {1} to Preview",(e=this._keybindingService.lookupKeybinding(n))===null||e===void 0?void 0:e.getLabel(),(t=this._keybindingService.lookupKeybinding(r))===null||t===void 0?void 0:t.getLabel()),null}afterRender(e){e||this.cancelInput(!0)}acceptInput(e){var t;(t=this._currentAcceptInput)===null||t===void 0||t.call(this,e)}cancelInput(e){var t;(t=this._currentCancelInput)===null||t===void 0||t.call(this,e)}getInput(e,t,n,r,o,s){this._domNode.classList.toggle("preview",o),this._position=new Se(e.startLineNumber,e.startColumn),this._input.value=t,this._input.setAttribute("selectionStart",n.toString()),this._input.setAttribute("selectionEnd",r.toString()),this._input.size=Math.max((e.endColumn-e.startColumn)*1.1,20);let a=new re;return new Promise(l=>{this._currentCancelInput=c=>(this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l(c),!0),this._currentAcceptInput=c=>{if(this._input.value.trim().length===0||this._input.value===t){this.cancelInput(!0);return}this._currentAcceptInput=void 0,this._currentCancelInput=void 0,l({newName:this._input.value,wantsPreview:o&&c})},a.add(s.onCancellationRequested(()=>this.cancelInput(!0))),a.add(this._editor.onDidBlurEditorWidget(()=>this.cancelInput(!document.hasFocus()))),this._show()}).finally(()=>{a.dispose(),this._hide()})}_show(){this._editor.revealLineInCenterIfOutsideViewport(this._position.lineNumber,0),this._visible=!0,this._visibleContextKey.set(!0),this._editor.layoutContentWidget(this),setTimeout(()=>{this._input.focus(),this._input.setSelectionRange(parseInt(this._input.getAttribute("selectionStart")),parseInt(this._input.getAttribute("selectionEnd")))},100)}_hide(){this._visible=!1,this._visibleContextKey.reset(),this._editor.layoutContentWidget(this)}};$C=xve([GI(2,pn),GI(3,Ht),GI(4,Ke)],$C)});function Tve(i,e,t,n){return _h(this,void 0,void 0,function*(){let r=new Qg(e,t,i),o=yield r.resolveRenameLocation(tt.None);return o!=null&&o.rejectReason?{edits:[],rejectReason:o.rejectReason}:r.provideRenameEdits(n,tt.None)})}var Eve,vh,_h,Qg,bh,$I,YI,XI=M(()=>{Lo();Dt();gi();At();Ce();Mi();Sn();lu();et();Qm();Lr();ri();qe();Vt();qoe();u0();Re();YR();pt();Et();S_();Ro();Gc();Bc();yX();xt();Eve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},vh=function(i,e){return function(t,n){e(t,n,i)}},_h=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Qg=class{constructor(e,t,n){this.model=e,this.position=t,this._providerRenameIdx=0,this._providers=n.ordered(e)}hasProvider(){return this._providers.length>0}resolveRenameLocation(e){return _h(this,void 0,void 0,function*(){let t=[];for(this._providerRenameIdx=0;this._providerRenameIdx0?t.join(` +`):void 0}:{range:P.fromPositions(this.position),text:"",rejectReason:t.length>0?t.join(` +`):void 0}})}provideRenameEdits(e,t){return _h(this,void 0,void 0,function*(){return this._provideRenameEdits(e,this._providerRenameIdx,[],t)})}_provideRenameEdits(e,t,n,r){return _h(this,void 0,void 0,function*(){let o=this._providers[t];if(!o)return{edits:[],rejectReason:n.join(` +`)};let s=yield o.provideRenameEdits(this.model,this.position,e,r);if(s){if(s.rejectReason)return this._provideRenameEdits(e,t+1,n.concat(s.rejectReason),r)}else return this._provideRenameEdits(e,t+1,n.concat(v("no result","No result.")),r);return s})}};bh=class CX{static get(e){return e.getContribution(CX.ID)}constructor(e,t,n,r,o,s,a,l){this.editor=e,this._instaService=t,this._notificationService=n,this._bulkEditService=r,this._progressService=o,this._logService=s,this._configService=a,this._languageFeaturesService=l,this._disposableStore=new re,this._cts=new Ri,this._renameInputField=this._disposableStore.add(this._instaService.createInstance($C,this.editor,["acceptRenameInput","acceptRenameInputWithPreview"]))}dispose(){this._disposableStore.dispose(),this._cts.dispose(!0)}run(){var e,t;return _h(this,void 0,void 0,function*(){if(this._cts.dispose(!0),this._cts=new Ri,!this.editor.hasModel())return;let n=this.editor.getPosition(),r=new Qg(this.editor.getModel(),n,this._languageFeaturesService.renameProvider);if(!r.hasProvider())return;let o=new Sa(this.editor,5,void 0,this._cts.token),s;try{let m=r.resolveRenameLocation(o.token);this._progressService.showWhile(m,250),s=yield m}catch(m){(e=Qn.get(this.editor))===null||e===void 0||e.showMessage(m||v("resolveRenameLocationFailed","An unknown error occurred while resolving rename location"),n);return}finally{o.dispose()}if(!s)return;if(s.rejectReason){(t=Qn.get(this.editor))===null||t===void 0||t.showMessage(s.rejectReason,n);return}if(o.token.isCancellationRequested)return;let a=new Sa(this.editor,5,s.range,this._cts.token),l=this.editor.getSelection(),c=0,d=s.text.length;!P.isEmpty(l)&&!P.spansMultipleLines(l)&&P.containsRange(s.range,l)&&(c=Math.max(0,l.startColumn-s.range.startColumn),d=Math.min(s.range.endColumn,l.endColumn)-s.range.startColumn);let u=this._bulkEditService.hasPreviewHandler()&&this._configService.getValue(this.editor.getModel().uri,"editor.rename.enablePreview"),h=yield this._renameInputField.getInput(s.range,s.text,c,d,u,a.token);if(typeof h=="boolean"){h&&this.editor.focus(),a.dispose();return}this.editor.focus();let p=Vc(r.provideRenameEdits(h.newName,a.token),a.token).then(m=>_h(this,void 0,void 0,function*(){if(!(!m||!this.editor.hasModel())){if(m.rejectReason){this._notificationService.info(m.rejectReason);return}this.editor.setSelection(P.fromPositions(this.editor.getSelection().getPosition())),this._bulkEditService.apply(m,{editor:this.editor,showPreview:h.wantsPreview,label:v("label","Renaming '{0}' to '{1}'",s==null?void 0:s.text,h.newName),code:"undoredo.rename",quotableLabel:v("quotableLabel","Renaming {0} to {1}",s==null?void 0:s.text,h.newName),respectAutoSaveConfig:!0}).then(g=>{g.ariaSummary&&Ni(v("aria","Successfully renamed '{0}' to '{1}'. Summary: {2}",s.text,h.newName,g.ariaSummary))}).catch(g=>{this._notificationService.error(v("rename.failedApply","Rename failed to apply edits")),this._logService.error(g)})}}),m=>{this._notificationService.error(v("rename.failed","Rename failed to compute edits")),this._logService.error(m)}).finally(()=>{a.dispose()});return this._progressService.showWhile(p,250),p})}acceptRenameInput(e){this._renameInputField.acceptInput(e)}cancelRenameInput(){this._renameInputField.cancelInput(!0)}};bh.ID="editor.contrib.renameController";bh=Eve([vh(1,Be),vh(2,Ei),vh(3,qc),vh(4,El),vh(5,zc),vh(6,dF),vh(7,be)],bh);$I=class extends se{constructor(){super({id:"editor.action.rename",label:v("rename.label","Rename Symbol"),alias:"Rename Symbol",precondition:ce.and(O.writable,O.hasRenameProvider),kbOpts:{kbExpr:O.editorTextFocus,primary:60,weight:100},contextMenuOpts:{group:"1_modification",order:1.1}})}runCommand(e,t){let n=e.get(ei),[r,o]=Array.isArray(t)&&t||[void 0,void 0];return ft.isUri(r)&&Se.isIPosition(o)?n.openCodeEditor({resource:r},n.getActiveCodeEditor()).then(s=>{s&&(s.setPosition(o),s.invokeWithinContext(a=>(this.reportTelemetry(a,s),this.run(a,s))))},lt):super.runCommand(e,t)}run(e,t){let n=bh.get(t);return n?n.run():Promise.resolve()}};Ae(bh.ID,bh,4);X($I);YI=xi.bindToContribution(bh.get);Ne(new YI({id:"acceptRenameInput",precondition:Xg,handler:i=>i.acceptRenameInput(!1),kbOpts:{weight:100+99,kbExpr:ce.and(O.focus,ce.not("isComposing")),primary:3}}));Ne(new YI({id:"acceptRenameInputWithPreview",precondition:ce.and(Xg,ce.has("config.editor.rename.enablePreview")),handler:i=>i.acceptRenameInput(!0),kbOpts:{weight:100+99,kbExpr:ce.and(O.focus,ce.not("isComposing")),primary:1024+3}}));Ne(new YI({id:"cancelRenameInput",precondition:Xg,handler:i=>i.cancelRenameInput(),kbOpts:{weight:100+99,kbExpr:O.focus,primary:9,secondary:[1033]}}));qr("_executeDocumentRenameProvider",function(i,e,t,...n){let[r]=n;Lt(typeof r=="string");let{renameProvider:o}=i.get(be);return Tve(o,e,t,r)});qr("_executePrepareRename",function(i,e,t){return _h(this,void 0,void 0,function*(){let{renameProvider:n}=i.get(be),o=yield new Qg(e,t,n).resolveRenameLocation(tt.None);if(o!=null&&o.rejectReason)throw new Error(o.rejectReason);return o})});Mr.as(L_.Configuration).registerConfiguration({id:"editor",properties:{"editor.rename.enablePreview":{scope:5,description:v("enablePreview","Enable/disable the ability to preview changes before renaming"),default:!0,type:"boolean"}}})});function kve(i){for(let e=0,t=i.length;e{Qre();nr()});function Jg(i){return i&&!!i.data}function eA(i){return i&&Array.isArray(i.edits)}function tA(i,e){return i.has(e)}function Lve(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:[]}function iA(i,e,t,n,r){return Od(this,void 0,void 0,function*(){let o=Lve(i,e),s=yield Promise.all(o.map(a=>Od(this,void 0,void 0,function*(){let l,c=null;try{l=yield a.provideDocumentSemanticTokens(e,a===t?n:null,r)}catch(d){c=d,l=null}return(!l||!Jg(l)&&!eA(l))&&(l=null),new JI(a,l,c)})));for(let a of s){if(a.error)throw a.error;if(a.tokens)return a}return s.length>0?s[0]:null})}function Mve(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:null}function wX(i,e){return i.has(e)}function xX(i,e){let t=i.orderedGroups(e);return t.length>0?t[0]:[]}function YC(i,e,t,n){return Od(this,void 0,void 0,function*(){let r=xX(i,e),o=yield Promise.all(r.map(s=>Od(this,void 0,void 0,function*(){let a;try{a=yield s.provideDocumentRangeSemanticTokens(e,t,n)}catch(l){Ut(l),a=null}return(!a||!Jg(a))&&(a=null),new ZI(s,a)})));for(let s of o)if(s.tokens)return s;return o.length>0?o[0]:null})}var Od,JI,ZI,nA=M(()=>{gi();At();Sn();ts();zi();Mi();SX();qe();xt();Od=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};JI=class{constructor(e,t,n){this.provider=e,this.tokens=t,this.error=n}};ZI=class{constructor(e,t){this.provider=e,this.tokens=t}};St.registerCommand("_provideDocumentSemanticTokensLegend",(i,...e)=>Od(void 0,void 0,void 0,function*(){let[t]=e;Lt(t instanceof ft);let n=i.get(Si).getModel(t);if(!n)return;let{documentSemanticTokensProvider:r}=i.get(be),o=Mve(r,n);return o?o[0].getLegend():i.get(ui).executeCommand("_provideDocumentRangeSemanticTokensLegend",t)}));St.registerCommand("_provideDocumentSemanticTokens",(i,...e)=>Od(void 0,void 0,void 0,function*(){let[t]=e;Lt(t instanceof ft);let n=i.get(Si).getModel(t);if(!n)return;let{documentSemanticTokensProvider:r}=i.get(be);if(!tA(r,n))return i.get(ui).executeCommand("_provideDocumentRangeSemanticTokens",t,n.getFullModelRange());let o=yield iA(r,n,null,null,tt.None);if(!o)return;let{provider:s,tokens:a}=o;if(!a||!Jg(a))return;let l=QI({id:0,type:"full",data:a.data});return a.resultId&&s.releaseDocumentSemanticTokens(a.resultId),l}));St.registerCommand("_provideDocumentRangeSemanticTokensLegend",(i,...e)=>Od(void 0,void 0,void 0,function*(){let[t,n]=e;Lt(t instanceof ft);let r=i.get(Si).getModel(t);if(!r)return;let{documentRangeSemanticTokensProvider:o}=i.get(be),s=xX(o,r);if(s.length===0)return;if(s.length===1)return s[0].getLegend();if(!n||!P.isIRange(n))return console.warn("provideDocumentRangeSemanticTokensLegend might be out-of-sync with provideDocumentRangeSemanticTokens unless a range argument is passed in"),s[0].getLegend();let a=yield YC(o,r,P.lift(n),tt.None);if(a)return a.provider.getLegend()}));St.registerCommand("_provideDocumentRangeSemanticTokens",(i,...e)=>Od(void 0,void 0,void 0,function*(){let[t,n]=e;Lt(t instanceof ft),Lt(P.isIRange(n));let r=i.get(Si).getModel(t);if(!r)return;let{documentRangeSemanticTokensProvider:o}=i.get(be),s=yield YC(o,r,P.lift(n),tt.None);if(!(!s||!s.tokens))return QI({id:0,type:"full",data:s.tokens.data})}))});function ev(i,e,t){var n;let r=(n=t.getValue(Zg,{overrideIdentifier:i.getLanguageId(),resource:i.uri}))===null||n===void 0?void 0:n.enabled;return typeof r=="boolean"?r:e.getColorTheme().semanticHighlighting}var Zg,rA=M(()=>{Zg="editor.semanticHighlighting"});var EX,al,oA,tv,sA,aA=M(()=>{Ce();At();ts();Wn();Dt();gi();ar();uF();nA();Rs();ml();xt();hF();db();rA();EX=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},al=function(i,e){return function(t,n){e(t,n,i)}},oA=class extends oe{constructor(e,t,n,r,o,s){super(),this._watchers=Object.create(null);let a=d=>{this._watchers[d.uri.toString()]=new tv(d,e,n,o,s)},l=(d,u)=>{u.dispose(),delete this._watchers[d.uri.toString()]},c=()=>{for(let d of t.getModels()){let u=this._watchers[d.uri.toString()];ev(d,n,r)?u||a(d):u&&l(d,u)}};this._register(t.onModelAdded(d=>{ev(d,n,r)&&a(d)})),this._register(t.onModelRemoved(d=>{let u=this._watchers[d.uri.toString()];u&&l(d,u)})),this._register(r.onDidChangeConfiguration(d=>{d.affectsConfiguration(Zg)&&c()})),this._register(n.onDidColorThemeChange(c))}dispose(){for(let e of Object.values(this._watchers))e.dispose();super.dispose()}};oA=EX([al(0,r1),al(1,Si),al(2,pn),al(3,Mt),al(4,an),al(5,be)],oA);tv=class yh extends oe{constructor(e,t,n,r,o){super(),this._semanticTokensStylingService=t,this._isDisposed=!1,this._model=e,this._provider=o.documentSemanticTokensProvider,this._debounceInformation=r.for(this._provider,"DocumentSemanticTokens",{min:yh.REQUEST_MIN_DELAY,max:yh.REQUEST_MAX_DELAY}),this._fetchDocumentSemanticTokens=this._register(new ii(()=>this._fetchDocumentSemanticTokensNow(),yh.REQUEST_MIN_DELAY)),this._currentDocumentResponse=null,this._currentDocumentRequestCancellationTokenSource=null,this._documentProvidersChangeListeners=[],this._providersChangedDuringRequest=!1,this._register(this._model.onDidChangeContent(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeAttached(()=>{this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(this._model.onDidChangeLanguage(()=>{this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(0)}));let s=()=>{Vi(this._documentProvidersChangeListeners),this._documentProvidersChangeListeners=[];for(let a of this._provider.all(e))typeof a.onDidChange=="function"&&this._documentProvidersChangeListeners.push(a.onDidChange(()=>{if(this._currentDocumentRequestCancellationTokenSource){this._providersChangedDuringRequest=!0;return}this._fetchDocumentSemanticTokens.schedule(0)}))};s(),this._register(this._provider.onDidChange(()=>{s(),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._register(n.onDidColorThemeChange(a=>{this._setDocumentSemanticTokens(null,null,null,[]),this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))})),this._fetchDocumentSemanticTokens.schedule(0)}dispose(){this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._currentDocumentRequestCancellationTokenSource&&(this._currentDocumentRequestCancellationTokenSource.cancel(),this._currentDocumentRequestCancellationTokenSource=null),this._setDocumentSemanticTokens(null,null,null,[]),this._isDisposed=!0,super.dispose()}_fetchDocumentSemanticTokensNow(){if(this._currentDocumentRequestCancellationTokenSource)return;if(!tA(this._provider,this._model)){this._currentDocumentResponse&&this._model.tokenization.setSemanticTokens(null,!1);return}if(!this._model.isAttachedToEditor())return;let e=new Ri,t=this._currentDocumentResponse?this._currentDocumentResponse.provider:null,n=this._currentDocumentResponse&&this._currentDocumentResponse.resultId||null,r=iA(this._provider,this._model,t,n,e.token);this._currentDocumentRequestCancellationTokenSource=e,this._providersChangedDuringRequest=!1;let o=[],s=this._model.onDidChangeContent(l=>{o.push(l)}),a=new Ln(!1);r.then(l=>{if(this._debounceInformation.update(this._model,a.elapsed()),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),!l)this._setDocumentSemanticTokens(null,null,null,o);else{let{provider:c,tokens:d}=l,u=this._semanticTokensStylingService.getStyling(c);this._setDocumentSemanticTokens(c,d||null,u,o)}},l=>{l&&(Zo(l)||typeof l.message=="string"&&l.message.indexOf("busy")!==-1)||lt(l),this._currentDocumentRequestCancellationTokenSource=null,s.dispose(),(o.length>0||this._providersChangedDuringRequest)&&(this._fetchDocumentSemanticTokens.isScheduled()||this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model)))})}static _copy(e,t,n,r,o){o=Math.min(o,n.length-r,e.length-t);for(let s=0;s{(r.length>0||this._providersChangedDuringRequest)&&!this._fetchDocumentSemanticTokens.isScheduled()&&this._fetchDocumentSemanticTokens.schedule(this._debounceInformation.get(this._model))};if(this._currentDocumentResponse&&(this._currentDocumentResponse.dispose(),this._currentDocumentResponse=null),this._isDisposed){e&&t&&e.releaseDocumentSemanticTokens(t.resultId);return}if(!e||!n){this._model.tokenization.setSemanticTokens(null,!1);return}if(!t){this._model.tokenization.setSemanticTokens(null,!0),s();return}if(eA(t)){if(!o){this._model.tokenization.setSemanticTokens(null,!0);return}if(t.edits.length===0)t={resultId:t.resultId,data:o.data};else{let a=0;for(let h of t.edits)a+=(h.data?h.data.length:0)-h.deleteCount;let l=o.data,c=new Uint32Array(l.length+a),d=l.length,u=c.length;for(let h=t.edits.length-1;h>=0;h--){let p=t.edits[h];if(p.start>l.length){n.warnInvalidEditStart(o.resultId,t.resultId,h,p.start,l.length),this._model.tokenization.setSemanticTokens(null,!0);return}let m=d-(p.start+p.deleteCount);m>0&&(yh._copy(l,d-m,c,u-m,m),u-=m),p.data&&(yh._copy(p.data,0,c,u-p.data.length,p.data.length),u-=p.data.length),d=p.start}d>0&&yh._copy(l,0,c,0,d),t={resultId:t.resultId,data:c}}}if(Jg(t)){this._currentDocumentResponse=new sA(e,t.resultId,t.data);let a=Tb(t,n,this._model.getLanguageId());if(r.length>0)for(let l of r)for(let c of a)for(let d of l.changes)c.applyEdit(d.range,d.text);this._model.tokenization.setSemanticTokens(a,!0)}else this._model.tokenization.setSemanticTokens(null,!0);s()}};tv.REQUEST_MIN_DELAY=300;tv.REQUEST_MAX_DELAY=2e3;tv=EX([al(1,r1),al(2,pn),al(3,an),al(4,be)],tv);sA=class{constructor(e,t,n){this.provider=e,this.resultId=t,this.data=n}dispose(){this.provider.releaseDocumentSemanticTokens(this.resultId)}};Yc(oA)});var Dve,iv,nv,lA=M(()=>{Dt();Ce();et();nA();rA();uF();Wn();ar();Rs();ml();xt();hF();Dve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},iv=function(i,e){return function(t,n){e(t,n,i)}},nv=class extends oe{constructor(e,t,n,r,o,s){super(),this._semanticTokensStylingService=t,this._themeService=n,this._configurationService=r,this._editor=e,this._provider=s.documentRangeSemanticTokensProvider,this._debounceInformation=o.for(this._provider,"DocumentRangeSemanticTokens",{min:100,max:500}),this._tokenizeViewport=this._register(new ii(()=>this._tokenizeViewportNow(),100)),this._outstandingRequests=[];let a=()=>{this._editor.hasModel()&&this._tokenizeViewport.schedule(this._debounceInformation.get(this._editor.getModel()))};this._register(this._editor.onDidScrollChange(()=>{a()})),this._register(this._editor.onDidChangeModel(()=>{this._cancelAll(),a()})),this._register(this._editor.onDidChangeModelContent(l=>{this._cancelAll(),a()})),this._register(this._provider.onDidChange(()=>{this._cancelAll(),a()})),this._register(this._configurationService.onDidChangeConfiguration(l=>{l.affectsConfiguration(Zg)&&(this._cancelAll(),a())})),this._register(this._themeService.onDidColorThemeChange(()=>{this._cancelAll(),a()})),a()}_cancelAll(){for(let e of this._outstandingRequests)e.cancel();this._outstandingRequests=[]}_removeOutstandingRequest(e){for(let t=0,n=this._outstandingRequests.length;tthis._requestRange(e,n)))}_requestRange(e,t){let n=e.getVersionId(),r=Kt(s=>Promise.resolve(YC(this._provider,e,t,s))),o=new Ln(!1);return r.then(s=>{if(this._debounceInformation.update(e,o.elapsed()),!s||!s.tokens||e.isDisposed()||e.getVersionId()!==n)return;let{provider:a,tokens:l}=s,c=this._semanticTokensStylingService.getStyling(a);e.tokenization.setPartialSemanticTokens(t,Tb(l,c,e.getLanguageId()))}).then(()=>this._removeOutstandingRequest(r),()=>this._removeOutstandingRequest(r)),r}};nv.ID="editor.contrib.viewportSemanticTokens";nv=Dve([iv(1,r1),iv(2,pn),iv(3,Mt),iv(4,an),iv(5,be)],nv);Ae(nv.ID,nv,1)});var XC,TX=M(()=>{wi();qe();XC=class{provideSelectionRanges(e,t){let n=[];for(let r of t){let o=[];n.push(o),this._addInWordRanges(o,e,r),this._addWordRanges(o,e,r),this._addWhitespaceLine(o,e,r),o.push({range:e.getFullModelRange()})}return n}_addInWordRanges(e,t,n){let r=t.getWordAtPosition(n);if(!r)return;let{word:o,startColumn:s}=r,a=n.column-s,l=a,c=a,d=0;for(;l>=0;l--){let u=o.charCodeAt(l);if(l!==a&&(u===95||u===45))break;if(aw(u)&&lw(d))break;d=u}for(l+=1;c0&&t.getLineFirstNonWhitespaceColumn(n.lineNumber)===0&&t.getLineLastNonWhitespaceColumn(n.lineNumber)===0&&e.push({range:new P(n.lineNumber,1,n.lineNumber,t.getLineMaxColumn(n.lineNumber))})}}});function IX(i,e,t,n,r){return JC(this,void 0,void 0,function*(){let o=i.all(e).concat(new XC);o.length===1&&o.unshift(new wd);let s=[],a=[];for(let l of o)s.push(Promise.resolve(l.provideSelectionRanges(e,t,r)).then(c=>{if(ji(c)&&c.length===t.length)for(let d=0;d{if(l.length===0)return[];l.sort((h,p)=>Se.isBefore(h.getStartPosition(),p.getStartPosition())?1:Se.isBefore(p.getStartPosition(),h.getStartPosition())||Se.isBefore(h.getEndPosition(),p.getEndPosition())?-1:Se.isBefore(p.getEndPosition(),h.getEndPosition())?1:0);let c=[],d;for(let h of l)(!d||P.containsRange(h,d)&&!P.equalsRange(h,d))&&(c.push(h),d=h);if(!n.selectLeadingAndTrailingWhitespace)return c;let u=[c[0]];for(let h=1;h{oi();gi();At();et();ri();qe();Mn();Vt();Z7();TX();Re();Xi();zi();xt();ca();Mi();Sn();Nve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Rve=function(i,e){return function(t,n){e(t,n,i)}},JC=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},cA=class i{constructor(e,t){this.index=e,this.ranges=t}mov(e){let t=this.index+(e?1:-1);if(t<0||t>=this.ranges.length)return this;let n=new i(t,this.ranges);return n.ranges[t].equalsRange(this.ranges[this.index])?n.mov(e):n}},jp=class kX{static get(e){return e.getContribution(kX.ID)}constructor(e,t){this._editor=e,this._languageFeaturesService=t,this._ignoreSelection=!1}dispose(){var e;(e=this._selectionListener)===null||e===void 0||e.dispose()}run(e){return JC(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;let t=this._editor.getSelections(),n=this._editor.getModel();if(this._state||(yield IX(this._languageFeaturesService.selectionRangeProvider,n,t.map(o=>o.getPosition()),this._editor.getOption(109),tt.None).then(o=>{var s;if(!(!ji(o)||o.length!==t.length)&&!(!this._editor.hasModel()||!ha(this._editor.getSelections(),t,(a,l)=>a.equalsSelection(l)))){for(let a=0;al.containsPosition(t[a].getStartPosition())&&l.containsPosition(t[a].getEndPosition())),o[a].unshift(t[a]);this._state=o.map(a=>new cA(0,a)),(s=this._selectionListener)===null||s===void 0||s.dispose(),this._selectionListener=this._editor.onDidChangeCursorPosition(()=>{var a;this._ignoreSelection||((a=this._selectionListener)===null||a===void 0||a.dispose(),this._state=void 0)})}})),!this._state)return;this._state=this._state.map(o=>o.mov(e));let r=this._state.map(o=>We.fromPositions(o.ranges[o.index].getStartPosition(),o.ranges[o.index].getEndPosition()));this._ignoreSelection=!0;try{this._editor.setSelections(r)}finally{this._ignoreSelection=!1}})}};jp.ID="editor.contrib.smartSelectController";jp=Nve([Rve(1,be)],jp);QC=class extends se{constructor(e,t){super(t),this._forward=e}run(e,t){return JC(this,void 0,void 0,function*(){let n=jp.get(t);n&&(yield n.run(this._forward))})}},dA=class extends QC{constructor(){super(!0,{id:"editor.action.smartSelect.expand",label:v("smartSelect.expand","Expand Selection"),alias:"Expand Selection",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:1553,mac:{primary:3345,secondary:[1297]},weight:100},menuOpts:{menuId:xe.MenubarSelectionMenu,group:"1_basic",title:v({key:"miSmartSelectGrow",comment:["&& denotes a mnemonic"]},"&&Expand Selection"),order:2}})}};St.registerCommandAlias("editor.action.smartSelect.grow","editor.action.smartSelect.expand");uA=class extends QC{constructor(){super(!1,{id:"editor.action.smartSelect.shrink",label:v("smartSelect.shrink","Shrink Selection"),alias:"Shrink Selection",precondition:void 0,kbOpts:{kbExpr:O.editorTextFocus,primary:1551,mac:{primary:3343,secondary:[1295]},weight:100},menuOpts:{menuId:xe.MenubarSelectionMenu,group:"1_basic",title:v({key:"miSmartSelectShrink",comment:["&& denotes a mnemonic"]},"&&Shrink Selection"),order:3}})}};Ae(jp.ID,jp,4);X(dA);X(uA);St.registerCommand("_executeSelectionRangeProvider",function(i,...e){return JC(this,void 0,void 0,function*(){let[t,n]=e;Lt(ft.isUri(t));let r=i.get(be).selectionRangeProvider,o=yield i.get(xn).createModelReference(t);try{return IX(r,o.object.textEditorModel,n,{selectLeadingAndTrailingWhitespace:!0},tt.None)}finally{o.dispose()}})})});var AX,LX=M(()=>{Re();AX=Object.freeze({View:{value:v("view","View"),original:"View"},Help:{value:v("help","Help"),original:"Help"},Test:{value:v("test","Test"),original:"Test"},File:{value:v("file","File"),original:"File"},Preferences:{value:v("preferences","Preferences"),original:"Preferences"},Developer:{value:v({key:"developer",comment:["A developer on Code itself or someone diagnosing issues in Code"]},"Developer"),original:"Developer"}})});var MX=M(()=>{});var DX=M(()=>{MX()});var rv,NX,ZC,RX=M(()=>{Bt();Vre();Ww();Ce();DX();Sp();ri();$R();GP();$P();rv=class{constructor(e,t){this.lineNumbers=e,this.lastLineRelativePosition=t}},NX=_f("stickyScrollViewLayer",{createHTML:i=>i}),ZC=class extends oe{constructor(e){super(),this._editor=e,this._rootDomNode=document.createElement("div"),this._disposableStore=this._register(new re),this._lineNumbers=[],this._lastLineRelativePosition=0,this._hoverOnLine=-1,this._hoverOnColumn=-1,this._layoutInfo=this._editor.getLayoutInfo(),this._rootDomNode=document.createElement("div"),this._rootDomNode.className="sticky-widget",this._rootDomNode.classList.toggle("peek",e instanceof Vo),this._rootDomNode.style.width=`${this._layoutInfo.width-this._layoutInfo.minimap.minimapCanvasOuterWidth-this._layoutInfo.verticalScrollbarWidth}px`}get hoverOnLine(){return this._hoverOnLine}get hoverOnColumn(){return this._hoverOnColumn}get lineNumbers(){return this._lineNumbers}getCurrentLines(){return this._lineNumbers}setState(e){mr(this._rootDomNode),this._disposableStore.clear(),this._lineNumbers.length=0;let t=this._editor.getOption(64);e.lineNumbers.length*t+e.lastLineRelativePosition>0?(this._lastLineRelativePosition=e.lastLineRelativePosition,this._lineNumbers=e.lineNumbers):(this._lastLineRelativePosition=0,this._lineNumbers=[]),this._renderRootNode()}_renderRootNode(){if(!this._editor._getViewModel())return;for(let[r,o]of this._lineNumbers.entries()){let s=this._renderChildNode(r,o);this._rootDomNode.appendChild(s)}let e=this._editor.getOption(64),t=this._lineNumbers.length*e+this._lastLineRelativePosition;this._rootDomNode.style.display=t>0?"block":"none",this._rootDomNode.style.height=t.toString()+"px",this._rootDomNode.setAttribute("role","list"),this._editor.getOption(70).side==="left"&&(this._rootDomNode.style.marginLeft=this._editor.getLayoutInfo().minimap.minimapCanvasOuterWidth+"px")}_renderChildNode(e,t){let n=document.createElement("div"),r=this._editor._getViewModel(),o=r.coordinatesConverter.convertModelPositionToViewPosition(new Se(t,1)).lineNumber,s=r.getViewLineRenderingData(o),a=this._editor.getLayoutInfo(),l=a.width-a.minimap.minimapCanvasOuterWidth-a.verticalScrollbarWidth,c=this._editor.getOption(70).side,d=this._editor.getOption(64),u=this._editor.getOption(65),h;try{h=t1.filter(s.inlineDecorations,o,s.minColumn,s.maxColumn)}catch(N){h=[]}let p=new gb(!0,!0,s.content,s.continuesWithWrappedLine,s.isBasicASCII,s.containsRTL,0,s.tokens,h,s.tabSize,s.startVisibleColumn,1,1,1,500,"none",!0,!0,null),m=new A_(2e3);vb(p,m);let g;NX?g=NX.createHTML(m.build()):g=m.build();let b=document.createElement("span");b.className="sticky-line",b.classList.add(`stickyLine${t}`),b.style.lineHeight=`${d}px`,b.innerHTML=g;let S=document.createElement("span");S.className="sticky-line",S.style.lineHeight=`${d}px`,c==="left"?S.style.width=`${a.contentLeft-a.minimap.minimapCanvasOuterWidth}px`:c==="right"&&(S.style.width=`${a.contentLeft}px`);let k=document.createElement("span");return u.renderType===1||u.renderType===3&&t%10===0?k.innerText=t.toString():u.renderType===2&&(k.innerText=Math.abs(t-this._editor.getPosition().lineNumber).toString()),k.className="sticky-line-number",k.style.lineHeight=`${d}px`,k.style.width=`${a.lineNumbersWidth}px`,c==="left"?k.style.paddingLeft=`${a.lineNumbersLeft-a.minimap.minimapCanvasOuterWidth}px`:c==="right"&&(k.style.paddingLeft=`${a.lineNumbersLeft}px`),S.appendChild(k),this._editor.applyFontInfo(b),this._editor.applyFontInfo(k),n.appendChild(S),n.appendChild(b),n.className="sticky-line-root",n.setAttribute("role","listitem"),n.tabIndex=0,n.style.lineHeight=`${d}px`,n.style.width=`${l}px`,n.style.height=`${d}px`,n.style.zIndex="0",e===this._lineNumbers.length-1&&(n.style.position="relative",n.style.zIndex="-1",n.style.top=this._lastLineRelativePosition+"px"),this._disposableStore.add(Rt(n,"mouseover",N=>{if(this._editor.hasModel()){let B=new aR(N).target.innerText;this._hoverOnLine=t,this._hoverOnColumn=this._editor.getModel().getLineContent(t).indexOf(B)+1||-1}})),n}getId(){return"editor.contrib.stickyScrollWidget"}getDomNode(){return this._rootDomNode}getPosition(){return{preference:null}}}});var Ove,fA,Pve,Pd,Wp,ov,sv,Ch,pA,av=M(()=>{oi();gi();At();Em();tf();ri();qe();Rs();Et();bl();ts();Ce();xt();Ove=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},fA=function(i,e){return function(t,n){e(t,n,i)}},Pve=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Pd=class{remove(){var e;(e=this.parent)===null||e===void 0||e.children.delete(this.id)}static findId(e,t){let n;typeof e=="string"?n=`${t.id}/${e}`:(n=`${t.id}/${e.name}`,t.children.get(n)!==void 0&&(n=`${t.id}/${e.name}_${e.range.startLineNumber}_${e.range.startColumn}`));let r=n;for(let o=0;t.children.get(r)!==void 0;o++)r=`${n}_${o}`;return r}static empty(e){return e.children.size===0}},Wp=class extends Pd{constructor(e,t,n){super(),this.id=e,this.parent=t,this.symbol=n,this.children=new Map}},ov=class extends Pd{constructor(e,t,n,r){super(),this.id=e,this.parent=t,this.label=n,this.order=r,this.children=new Map}},sv=class i extends Pd{static create(e,t,n){let r=new Ri(n),o=new i(t.uri),s=e.ordered(t),a=s.map((c,d)=>{var u;let h=Pd.findId(`provider_${d}`,o),p=new ov(h,o,(u=c.displayName)!==null&&u!==void 0?u:"Unknown Outline Provider",d);return Promise.resolve(c.provideDocumentSymbols(t,r.token)).then(m=>{for(let g of m||[])i._makeOutlineElement(g,p);return p},m=>(Ut(m),p)).then(m=>{Pd.empty(m)?m.remove():o._groups.set(h,m)})}),l=e.onDidChange(()=>{let c=e.ordered(t);ha(c,s)||r.cancel()});return Promise.all(a).then(()=>r.token.isCancellationRequested&&!n.isCancellationRequested?i.create(e,t,n):o._compact()).finally(()=>{l.dispose()})}static _makeOutlineElement(e,t){let n=Pd.findId(e,t),r=new Wp(n,t,e);if(e.children)for(let o of e.children)i._makeOutlineElement(o,r);t.children.set(r.id,r)}constructor(e){super(),this.uri=e,this.id="root",this.parent=void 0,this._groups=new Map,this.children=new Map,this.id="root",this.parent=void 0}_compact(){let e=0;for(let[t,n]of this._groups)n.children.size===0?this._groups.delete(t):e+=1;if(e!==1)this.children=this._groups;else{let t=so.first(this._groups.values());for(let[,n]of t.children)n.parent=this,this.children.set(n.id,n)}return this}getTopLevelSymbols(){let e=[];for(let t of this.children.values())t instanceof Wp?e.push(t.symbol):e.push(...so.map(t.children.values(),n=>n.symbol));return e.sort((t,n)=>P.compareRangesUsingStarts(t.range,n.range))}asListOfDocumentSymbols(){let e=this.getTopLevelSymbols(),t=[];return i._flattenDocumentSymbols(t,e,""),t.sort((n,r)=>Se.compare(P.getStartPosition(n.range),P.getStartPosition(r.range))||Se.compare(P.getEndPosition(r.range),P.getEndPosition(n.range)))}static _flattenDocumentSymbols(e,t,n){for(let r of t)e.push({kind:r.kind,tags:r.tags,name:r.name,detail:r.detail,containerName:r.containerName||n,range:r.range,selectionRange:r.selectionRange,children:void 0}),r.children&&i._flattenDocumentSymbols(e,r.children,r.name)}},Ch=rr("IOutlineModelService"),pA=class{constructor(e,t,n){this._languageFeaturesService=e,this._disposables=new re,this._cache=new fa(10,.7),this._debounceInformation=t.for(e.documentSymbolProvider,"DocumentSymbols",{min:350}),this._disposables.add(n.onModelRemoved(r=>{this._cache.delete(r.id)}))}dispose(){this._disposables.dispose()}getOrCreate(e,t){return Pve(this,void 0,void 0,function*(){let n=this._languageFeaturesService.documentSymbolProvider,r=n.ordered(e),o=this._cache.get(e.id);if(!o||o.versionId!==e.getVersionId()||!ha(o.provider,r)){let a=new Ri;o={versionId:e.getVersionId(),provider:r,promiseCnt:0,source:a,promise:sv.create(n,e,a.token),model:void 0},this._cache.set(e.id,o);let l=Date.now();o.promise.then(c=>{o.model=c,this._debounceInformation.update(e,Date.now()-l)}).catch(c=>{this._cache.delete(e.id)})}if(o.model)return o.model;o.promiseCnt+=1;let s=t.onCancellationRequested(()=>{--o.promiseCnt===0&&(o.source.cancel(),this._cache.delete(e.id))});try{return yield o.promise}finally{s.dispose()}})}};pA=Ove([fA(0,be),fA(1,an),fA(2,Si)],pA);sr(Ch,pA,1)});var Cc,Sh,wh,e9=M(()=>{Cc=class{constructor(e,t){this.startLineNumber=e,this.endLineNumber=t}},Sh=class{constructor(e,t,n){this.range=e,this.children=t,this.parent=n}},wh=class{constructor(e,t,n,r){this.uri=e,this.version=t,this.element=n,this.outlineProviderId=r}}});var r9,cv,OX,lv,Fd,t9,i9,mA,n9,gA,vA,PX=M(()=>{Ce();xt();av();Dt();Fy();YE();VE();Kn();At();e9();Em();r9=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},cv=function(i,e){return function(t,n){e(t,n,i)}},OX=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};(function(i){i.OUTLINE_MODEL="outlineModel",i.FOLDING_PROVIDER_MODEL="foldingProviderModel",i.INDENTATION_MODEL="indentationModel"})(lv||(lv={}));(function(i){i[i.VALID=0]="VALID",i[i.INVALID=1]="INVALID",i[i.CANCELED=2]="CANCELED"})(Fd||(Fd={}));t9=class{constructor(e,t,n,r){this._editor=e,this._languageConfigurationService=t,this._languageFeaturesService=n,this._modelProviders=[],this._modelPromise=null,this._updateScheduler=new No(300);let o=new mA(n),s=new vA(this._editor,n),a=new gA(this._editor,t);switch(r){case lv.OUTLINE_MODEL:this._modelProviders.push(o),this._modelProviders.push(s),this._modelProviders.push(a);break;case lv.FOLDING_PROVIDER_MODEL:this._modelProviders.push(s),this._modelProviders.push(a);break;case lv.INDENTATION_MODEL:this._modelProviders.push(a);break}this._store=new re}_cancelModelPromise(){this._modelPromise&&(this._modelPromise.cancel(),this._modelPromise=null)}update(e,t,n){return OX(this,void 0,void 0,function*(){return this._store.clear(),this._store.add({dispose:()=>{var r;this._cancelModelPromise(),(r=this._updateScheduler)===null||r===void 0||r.cancel()}}),this._cancelModelPromise(),yield this._updateScheduler.trigger(()=>OX(this,void 0,void 0,function*(){for(let r of this._modelProviders){let{statusPromise:o,modelPromise:s}=r.computeStickyModel(e,t,n);this._modelPromise=s;let a=yield o;if(this._modelPromise!==s)return null;switch(a){case Fd.CANCELED:return this._store.clear(),null;case Fd.VALID:return r.stickyModel}}return null}))})}};t9=r9([cv(1,Tt),cv(2,be)],t9);i9=class{constructor(){this._stickyModel=null}get stickyModel(){return this._stickyModel}_invalid(){return this._stickyModel=null,Fd.INVALID}computeStickyModel(e,t,n){if(n.isCancellationRequested||!this.isProviderValid(e))return{statusPromise:this._invalid(),modelPromise:null};let r=Kt(o=>this.createModelFromProvider(e,t,o));return{statusPromise:r.then(o=>this.isModelValid(o)?n.isCancellationRequested?Fd.CANCELED:(this._stickyModel=this.createStickyModel(e,t,n,o),Fd.VALID):this._invalid()).then(void 0,o=>(lt(o),Fd.CANCELED)),modelPromise:r}}isModelValid(e){return!0}isProviderValid(e){return!0}},mA=class extends i9{constructor(e){super(),this._languageFeaturesService=e}createModelFromProvider(e,t,n){return sv.create(this._languageFeaturesService.documentSymbolProvider,e,n)}createStickyModel(e,t,n,r){var o;let{stickyOutlineElement:s,providerID:a}=this._stickyModelFromOutlineModel(r,(o=this._stickyModel)===null||o===void 0?void 0:o.outlineProviderId);return new wh(e.uri,t,s,a)}isModelValid(e){return e&&e.children.size>0}_stickyModelFromOutlineModel(e,t){let n;if(so.first(e.children.values())instanceof ov){let a=so.find(e.children.values(),l=>l.id===t);if(a)n=a.children;else{let l="",c=-1,d;for(let[u,h]of e.children.entries()){let p=this._findSumOfRangesOfGroup(h);p>c&&(d=h,c=p,l=h.id)}t=l,n=d.children}}else n=e.children;let r=[],o=Array.from(n.values()).sort((a,l)=>{let c=new Cc(a.symbol.range.startLineNumber,a.symbol.range.endLineNumber),d=new Cc(l.symbol.range.startLineNumber,l.symbol.range.endLineNumber);return this._comparator(c,d)});for(let a of o)r.push(this._stickyModelFromOutlineElement(a,a.symbol.selectionRange.startLineNumber));return{stickyOutlineElement:new Sh(void 0,r,void 0),providerID:t}}_stickyModelFromOutlineElement(e,t){let n=[];for(let o of e.children.values())if(o.symbol.selectionRange.startLineNumber!==o.symbol.range.endLineNumber)if(o.symbol.selectionRange.startLineNumber!==t)n.push(this._stickyModelFromOutlineElement(o,o.symbol.selectionRange.startLineNumber));else for(let s of o.children.values())n.push(this._stickyModelFromOutlineElement(s,o.symbol.selectionRange.startLineNumber));n.sort((o,s)=>this._comparator(o.range,s.range));let r=new Cc(e.symbol.selectionRange.startLineNumber,e.symbol.range.endLineNumber);return new Sh(r,n,void 0)}_comparator(e,t){return e.startLineNumber!==t.startLineNumber?e.startLineNumber-t.startLineNumber:t.endLineNumber-e.endLineNumber}_findSumOfRangesOfGroup(e){let t=0;for(let n of e.children.values())t+=this._findSumOfRangesOfGroup(n);return e instanceof Wp?t+e.symbol.range.endLineNumber-e.symbol.selectionRange.startLineNumber:t}};mA=r9([cv(0,be)],mA);n9=class extends i9{constructor(e){super(),this._foldingLimitReporter=new j0(e)}createStickyModel(e,t,n,r){let o=this._fromFoldingRegions(r);return new wh(e.uri,t,o,void 0)}isModelValid(e){return e!==null}_fromFoldingRegions(e){let t=e.length,n=[],r=new Sh(void 0,[],void 0);for(let o=0;o0}createModelFromProvider(e,t,n){let r=Za.getFoldingRangeProviders(this._languageFeaturesService,e);return new qu(e,r,()=>this.createModelFromProvider(e,t,n),this._foldingLimitReporter,void 0).compute(n)}};vA=r9([cv(1,be)],vA)});var Fve,FX,BX,_A,o9,HX=M(()=>{Ce();xt();gi();Dt();oi();ao();Gt();Kn();PX();e9();Fve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},FX=function(i,e){return function(t,n){e(t,n,i)}},BX=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},_A=class{constructor(e,t,n){this.startLineNumber=e,this.endLineNumber=t,this.nestingDepth=n}},o9=class extends oe{constructor(e,t,n){super(),this._languageFeaturesService=t,this._languageConfigurationService=n,this._onDidChangeStickyScroll=this._store.add(new $e),this.onDidChangeStickyScroll=this._onDidChangeStickyScroll.event,this._options=null,this._model=null,this._cts=null,this._stickyModelProvider=null,this._editor=e,this._sessionStore=new re,this._updateSoon=this._register(new ii(()=>this.update(),50)),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(111)&&this.readConfiguration()})),this.readConfiguration()}dispose(){super.dispose(),this._sessionStore.dispose()}readConfiguration(){if(this._options=this._editor.getOption(111),!this._options.enabled){this._sessionStore.clear();return}this._stickyModelProvider=new t9(this._editor,this._languageConfigurationService,this._languageFeaturesService,this._options.defaultModel),this._sessionStore.add(this._editor.onDidChangeModel(()=>this.update())),this._sessionStore.add(this._editor.onDidChangeHiddenAreas(()=>this.update())),this._sessionStore.add(this._editor.onDidChangeModelContent(()=>this._updateSoon.schedule())),this._sessionStore.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>this.update())),this.update()}getVersionId(){var e;return(e=this._model)===null||e===void 0?void 0:e.version}update(){var e;return BX(this,void 0,void 0,function*(){(e=this._cts)===null||e===void 0||e.dispose(!0),this._cts=new Ri,yield this.updateStickyModel(this._cts.token),this._onDidChangeStickyScroll.fire()})}updateStickyModel(e){return BX(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!this._stickyModelProvider)return;let t=this._editor.getModel(),n=t.getVersionId(),o=(this._model?!nf(this._model.uri,t.uri):!1)?setTimeout(()=>{e.isCancellationRequested||(this._model=new wh(t.uri,t.getVersionId(),void 0,void 0),this._onDidChangeStickyScroll.fire())},75):void 0;this._model=yield this._stickyModelProvider.update(t,n,e),clearTimeout(o)})}updateIndex(e){return e===-1?e=0:e<0&&(e=-e-2),e}getCandidateStickyLinesIntersectingFromStickyModel(e,t,n,r,o){if(t.children.length===0)return;let s=o,a=[];for(let d=0;dd-u)),c=this.updateIndex(iu(a,e.startLineNumber+r,(d,u)=>d-u));for(let d=l;d<=c;d++){let u=t.children[d];if(!u)return;if(u.range){let h=u.range.startLineNumber,p=u.range.endLineNumber;e.startLineNumber<=p+1&&h-1<=e.endLineNumber&&h!==s&&(s=h,n.push(new _A(h,p-1,r+1)),this.getCandidateStickyLinesIntersectingFromStickyModel(e,u,n,r+1,h))}else this.getCandidateStickyLinesIntersectingFromStickyModel(e,u,n,r,o)}}getCandidateStickyLinesIntersecting(e){var t,n;if(!(!((t=this._model)===null||t===void 0)&&t.element))return[];let r=[];this.getCandidateStickyLinesIntersectingFromStickyModel(e,this._model.element,r,0,-1);let o=(n=this._editor._getViewModel())===null||n===void 0?void 0:n.getHiddenAreas();if(o)for(let s of o)r=r.filter(a=>!(a.startLineNumber>=s.startLineNumber&&a.endLineNumber<=s.endLineNumber+1));return r}};o9=Fve([FX(1,be),FX(2,Tt)],o9)});var Bve,Vp,zX,Es,bA=M(()=>{Ce();xt();RX();HX();Et();Tl();Xi();pt();Vt();Mg();qe();J2();Pk();ri();gi();Kn();Rs();Bt();e9();Bve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Vp=function(i,e){return function(t,n){e(t,n,i)}},zX=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Es=class UX extends oe{constructor(e,t,n,r,o,s,a){super(),this._editor=e,this._contextMenuService=t,this._languageFeaturesService=n,this._instaService=r,this._contextKeyService=a,this._sessionStore=new re,this._maxStickyLines=Number.MAX_SAFE_INTEGER,this._candidateDefinitionsLength=-1,this._focusedStickyElementIndex=-1,this._enabled=!1,this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1,this._stickyScrollWidget=new ZC(this._editor),this._stickyLineCandidateProvider=new o9(this._editor,n,o),this._register(this._stickyScrollWidget),this._register(this._stickyLineCandidateProvider),this._widgetState=new rv([],0),this._readConfiguration(),this._register(this._editor.onDidChangeConfiguration(c=>{c.hasChanged(111)&&this._readConfiguration()})),this._register(Rt(this._stickyScrollWidget.getDomNode(),on.CONTEXT_MENU,c=>zX(this,void 0,void 0,function*(){this._onContextMenu(c)}))),this._stickyScrollFocusedContextKey=O.stickyScrollFocused.bindTo(this._contextKeyService),this._stickyScrollVisibleContextKey=O.stickyScrollVisible.bindTo(this._contextKeyService);let l=this._register(ks(this._stickyScrollWidget.getDomNode()));this._register(l.onDidBlur(c=>{let d=this._stickyScrollWidget.getDomNode().clientHeight;this._positionRevealed===!1&&d===0?(this._focusedStickyElementIndex=-1,this.focus()):this._disposeFocusStickyScrollStore()})),this._register(l.onDidFocus(c=>{this.focus()})),this._register(this._createClickLinkGesture()),this._register(Rt(this._stickyScrollWidget.getDomNode(),on.MOUSE_DOWN,c=>{this._onMouseDown=!0}))}static get(e){return e.getContribution(UX.ID)}_disposeFocusStickyScrollStore(){var e;this._stickyScrollFocusedContextKey.set(!1),(e=this._focusDisposableStore)===null||e===void 0||e.dispose(),this._focused=!1,this._positionRevealed=!1,this._onMouseDown=!1}focus(){if(this._onMouseDown){this._onMouseDown=!1,this._editor.focus();return}if(this._stickyScrollFocusedContextKey.get()===!0)return;this._focused=!0,this._focusDisposableStore=new re,this._stickyScrollFocusedContextKey.set(!0);let t=this._stickyScrollWidget.getDomNode();t.lastElementChild.focus(),this._stickyElements=t.children,this._focusedStickyElementIndex=this._stickyScrollWidget.lineNumbers.length-1}focusNext(){this._focusedStickyElementIndex0&&this._focusNav(!1)}selectEditor(){this._editor.focus()}_focusNav(e){this._focusedStickyElementIndex=e?this._focusedStickyElementIndex+1:this._focusedStickyElementIndex-1,this._stickyElements.item(this._focusedStickyElementIndex).focus()}goToFocused(){let e=this._stickyScrollWidget.lineNumbers;this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:e[this._focusedStickyElementIndex],column:1})}_revealPosition(e){this._positionRevealed=!0,this._editor.revealPosition(e),this._editor.setSelection(P.fromPositions(e)),this._editor.focus()}_createClickLinkGesture(){let e=new re,t=new re;e.add(t);let n=new sl(this._editor,!0);return e.add(n),e.add(n.onMouseMoveOrRelevantKeyDown(([r,o])=>{if(!this._editor.hasModel()||!r.hasTriggerModifier){t.clear();return}let s=r.target;if(s.detail===this._stickyScrollWidget.getId()&&s.element.innerText===s.element.innerHTML){let a=s.element.innerText;if(this._stickyScrollWidget.hoverOnColumn===-1)return;let l=this._stickyScrollWidget.hoverOnLine,c=this._stickyScrollWidget.hoverOnColumn,d=new P(l,c,l,c+a.length);if(!d.equalsRange(this._stickyRangeProjectedOnEditor))this._stickyRangeProjectedOnEditor=d,t.clear();else if(s.element.style.textDecoration==="underline")return;let u=new Ri;t.add(Ft(()=>u.dispose(!0)));let h;sh(this._languageFeaturesService.definitionProvider,this._editor.getModel(),new Se(l,c+1),u.token).then(p=>{if(!u.token.isCancellationRequested)if(p.length!==0){this._candidateDefinitionsLength=p.length;let m=s.element;h!==m?(t.clear(),h=m,h.style.textDecoration="underline",t.add(Ft(()=>{h.style.textDecoration="none"}))):h||(h=m,h.style.textDecoration="underline",t.add(Ft(()=>{h.style.textDecoration="none"})))}else t.clear()})}else t.clear()})),e.add(n.onCancel(()=>{t.clear()})),e.add(n.onExecute(r=>zX(this,void 0,void 0,function*(){r.target.detail===this._stickyScrollWidget.getId()&&(r.hasTriggerModifier?(this._candidateDefinitionsLength>1&&(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:this._stickyScrollWidget.hoverOnLine,column:1})),this._instaService.invokeFunction(AC,r,this._editor,{uri:this._editor.getModel().uri,range:this._stickyRangeProjectedOnEditor})):r.isRightClick||(this._focused&&this._disposeFocusStickyScrollStore(),this._revealPosition({lineNumber:this._stickyScrollWidget.hoverOnLine,column:this._stickyScrollWidget.hoverOnColumn})))}))),e}_onContextMenu(e){this._contextMenuService.showContextMenu({menuId:xe.StickyScrollContext,getAnchor:()=>e})}_readConfiguration(){let e=this._editor.getOption(111);if(e.enabled===!1){this._editor.removeOverlayWidget(this._stickyScrollWidget),this._sessionStore.clear(),this._enabled=!1;return}else e.enabled&&!this._enabled&&(this._editor.addOverlayWidget(this._stickyScrollWidget),this._sessionStore.add(this._editor.onDidScrollChange(()=>this._renderStickyScroll())),this._sessionStore.add(this._editor.onDidLayoutChange(()=>this._onDidResize())),this._sessionStore.add(this._editor.onDidChangeModelTokens(n=>this._onTokensChange(n))),this._sessionStore.add(this._stickyLineCandidateProvider.onDidChangeStickyScroll(()=>this._renderStickyScroll())),this._enabled=!0);this._editor.getOption(65).renderType===2&&this._sessionStore.add(this._editor.onDidChangeCursorPosition(()=>this._renderStickyScroll()))}_needsUpdate(e){let t=this._stickyScrollWidget.getCurrentLines();for(let n of t)for(let r of e.ranges)if(n>=r.fromLineNumber&&n<=r.toLineNumber)return!0;return!1}_onTokensChange(e){this._needsUpdate(e)&&this._renderStickyScroll()}_onDidResize(){let e=this._editor.getLayoutInfo(),t=e.width-e.minimap.minimapCanvasOuterWidth-e.verticalScrollbarWidth;this._stickyScrollWidget.getDomNode().style.width=`${t}px`;let n=e.height/this._editor.getOption(64);this._maxStickyLines=Math.round(n*.25)}_renderStickyScroll(){if(!this._editor.hasModel())return;let e=this._editor.getModel(),t=this._stickyLineCandidateProvider.getVersionId();if(t===void 0||t===e.getVersionId())if(this._widgetState=this.findScrollWidgetState(),this._stickyScrollVisibleContextKey.set(this._widgetState.lineNumbers.length!==0),!this._focused)this._stickyScrollWidget.setState(this._widgetState);else if(this._stickyElements=this._stickyScrollWidget.getDomNode().children,this._focusedStickyElementIndex===-1)this._stickyScrollWidget.setState(this._widgetState),this._focusedStickyElementIndex=this._stickyElements.length-1,this._focusedStickyElementIndex!==-1&&this._stickyElements.item(this._focusedStickyElementIndex).focus();else{let n=this._stickyScrollWidget.lineNumbers[this._focusedStickyElementIndex];this._stickyScrollWidget.setState(this._widgetState),this._stickyElements.length===0?this._focusedStickyElementIndex=-1:(this._stickyScrollWidget.lineNumbers.includes(n)||(this._focusedStickyElementIndex=this._stickyElements.length-1),this._stickyElements.item(this._focusedStickyElementIndex).focus())}}findScrollWidgetState(){let e=this._editor.getOption(64),t=Math.min(this._maxStickyLines,this._editor.getOption(111).maxLineCount),n=this._editor.getScrollTop(),r=0,o=[],s=this._editor.getVisibleRanges();if(s.length!==0){let a=new Cc(s[0].startLineNumber,s[s.length-1].endLineNumber),l=this._stickyLineCandidateProvider.getCandidateStickyLinesIntersecting(a);for(let c of l){let d=c.startLineNumber,u=c.endLineNumber,h=c.nestingDepth;if(u-d>0){let p=(h-1)*e,m=h*e,g=this._editor.getBottomForLineNumber(d)-n,b=this._editor.getTopForLineNumber(u)-n,S=this._editor.getBottomForLineNumber(u)-n;if(p>b&&p<=S){o.push(d),r=S-m;break}else m>g&&m<=S&&o.push(d);if(o.length===t)break}}}return new rv(o,r)}dispose(){super.dispose(),this._sessionStore.dispose()}};Es.ID="store.contrib.stickyScrollController";Es=Bve([Vp(1,ls),Vp(2,be),Vp(3,Be),Vp(4,Tt),Vp(5,an),Vp(6,Ke)],Es)});var Hve,s9,h9,a9,l9,c9,d9,u9,jX=M(()=>{et();Re();LX();Xi();Wn();pt();Vt();bA();Hve=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},s9=class extends rs{constructor(){super({id:"editor.action.toggleStickyScroll",title:{value:v("toggleStickyScroll","Toggle Sticky Scroll"),mnemonicTitle:v({key:"mitoggleStickyScroll",comment:["&& denotes a mnemonic"]},"&&Toggle Sticky Scroll"),original:"Toggle Sticky Scroll"},category:AX.View,toggled:{condition:ce.equals("config.editor.stickyScroll.enabled",!0),title:v("stickyScroll","Sticky Scroll"),mnemonicTitle:v({key:"miStickyScroll",comment:["&& denotes a mnemonic"]},"&&Sticky Scroll")},menu:[{id:xe.CommandPalette},{id:xe.MenubarViewMenu,group:"5_editor",order:2},{id:xe.StickyScrollContext}]})}run(e){return Hve(this,void 0,void 0,function*(){let t=e.get(Mt),n=!t.getValue("editor.stickyScroll.enabled");return t.updateValue("editor.stickyScroll.enabled",n)})}},h9=100,a9=class extends ua{constructor(){super({id:"editor.action.focusStickyScroll",title:{value:v("focusStickyScroll","Focus Sticky Scroll"),mnemonicTitle:v({key:"mifocusStickyScroll",comment:["&& denotes a mnemonic"]},"&&Focus Sticky Scroll"),original:"Focus Sticky Scroll"},precondition:ce.and(ce.has("config.editor.stickyScroll.enabled"),O.stickyScrollVisible),menu:[{id:xe.CommandPalette}]})}runEditorCommand(e,t){var n;(n=Es.get(t))===null||n===void 0||n.focus()}},l9=class extends ua{constructor(){super({id:"editor.action.selectNextStickyScrollLine",title:{value:v("selectNextStickyScrollLine.title","Select next sticky scroll line"),original:"Select next sticky scroll line"},precondition:O.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:h9,primary:18}})}runEditorCommand(e,t){var n;(n=Es.get(t))===null||n===void 0||n.focusNext()}},c9=class extends ua{constructor(){super({id:"editor.action.selectPreviousStickyScrollLine",title:{value:v("selectPreviousStickyScrollLine.title","Select previous sticky scroll line"),original:"Select previous sticky scroll line"},precondition:O.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:h9,primary:16}})}runEditorCommand(e,t){var n;(n=Es.get(t))===null||n===void 0||n.focusPrevious()}},d9=class extends ua{constructor(){super({id:"editor.action.goToFocusedStickyScrollLine",title:{value:v("goToFocusedStickyScrollLine.title","Go to focused sticky scroll line"),original:"Go to focused sticky scroll line"},precondition:O.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:h9,primary:3}})}runEditorCommand(e,t){var n;(n=Es.get(t))===null||n===void 0||n.goToFocused()}},u9=class extends ua{constructor(){super({id:"editor.action.selectEditor",title:{value:v("selectEditor.title","Select Editor"),original:"Select Editor"},precondition:O.stickyScrollFocused.isEqualTo(!0),keybinding:{weight:h9,primary:9}})}runEditorCommand(e,t){var n;(n=Es.get(t))===null||n===void 0||n.selectEditor()}}});var yA=M(()=>{et();jX();bA();Xi();Ae(Es.ID,Es,1);mi(s9);mi(a9);mi(c9);mi(l9);mi(d9);mi(u9)});var xA,xh,zve,CA,SA,wA,f9,EA=M(()=>{gi();Cl();Em();Ce();et();Lr();qe();xt();tT();Zu();J7();eT();$m();Et();xA=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},xh=function(i,e){return function(t,n){e(t,n,i)}},zve=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},CA=class{constructor(e,t,n,r,o,s){this.range=e,this.insertText=t,this.filterText=n,this.additionalTextEdits=r,this.command=o,this.completion=s}},SA=class extends YN{constructor(e,t,n,r,o,s){super(o.disposable),this.model=e,this.line=t,this.word=n,this.completionModel=r,this._suggestMemoryService=s}canBeReused(e,t,n){return this.model===e&&this.line===t&&this.word.word.length>0&&this.word.startColumn===n.startColumn&&this.word.endColumn=0&&l.resolve(tt.None)}return t}};SA=xA([xh(5,bp)],SA);wA=class{constructor(e,t,n,r){this._getEditorOption=e,this._languageFeatureService=t,this._clipboardService=n,this._suggestMemoryService=r}provideInlineCompletions(e,t,n,r){var o;return zve(this,void 0,void 0,function*(){if(n.selectedSuggestionInfo)return;let s=this._getEditorOption(86,e);if(il.isAllOff(s))return;e.tokenization.tokenizeIfCheap(t.lineNumber);let a=e.tokenization.getLineTokens(t.lineNumber),l=a.getStandardTokenType(a.findTokenIndexAtOffset(Math.max(t.column-1-1,0)));if(il.valueFor(s,l)!=="inline")return;let c=e.getWordAtPosition(t),d;if(c!=null&&c.word||(d=this._getTriggerCharacterInfo(e,t)),!(c!=null&&c.word)&&!d||(c||(c=e.getWordUntilPosition(t)),c.endColumn!==t.column))return;let u,h=e.getValueInRange(new P(t.lineNumber,1,t.lineNumber,t.column));if(!d&&(!((o=this._lastResult)===null||o===void 0)&&o.canBeReused(e,t.lineNumber,c))){let p=new hg(h,t.column-this._lastResult.word.endColumn);this._lastResult.completionModel.lineContext=p,this._lastResult.acquire(),u=this._lastResult}else{let p=yield eg(this._languageFeatureService.completionProvider,e,t,new dc(void 0,void 0,d==null?void 0:d.providers),d&&{triggerKind:1,triggerCharacter:d.ch},r),m;p.needsClipboard&&(m=yield this._clipboardService.readText());let g=new Cp(p.items,t.column,new hg(h,0),xd.None,this._getEditorOption(114,e),this._getEditorOption(108,e),{boostFullMatch:!1,firstMatchCanBeWeak:!1},m);u=new SA(e,t.lineNumber,c,g,p,this._suggestMemoryService)}return this._lastResult=u,u})}handleItemDidShow(e,t){t.completion.resolve(tt.None)}freeInlineCompletions(e){e.release()}_getTriggerCharacterInfo(e,t){var n;let r=e.getValueInRange(P.fromPositions({lineNumber:t.lineNumber,column:t.column-1},t)),o=new Set;for(let s of this._languageFeatureService.completionProvider.all(e))!((n=s.triggerCharacters)===null||n===void 0)&&n.includes(r)&&o.add(s);if(o.size!==0)return{providers:o,ch:r}}};wA=xA([xh(1,be),xh(2,Ds),xh(3,bp)],wA);f9=class Kp{constructor(e,t,n,r){if(++Kp._counter===1){let o=r.createInstance(wA,(s,a)=>{var l;return((l=n.listCodeEditors().find(d=>d.getModel()===a))!==null&&l!==void 0?l:e).getOption(s)});Kp._disposable=t.inlineCompletionsProvider.register("*",o)}}dispose(){var e;--Kp._counter===0&&((e=Kp._disposable)===null||e===void 0||e.dispose(),Kp._disposable=void 0)}};f9._counter=0;f9=xA([xh(1,be),xh(2,ei),xh(3,Be)],f9);Ae("suggest.inlineCompletionsProvider",f9,0)});var WX=M(()=>{});var VX=M(()=>{WX()});var KX=M(()=>{});var qX=M(()=>{KX()});var GX=M(()=>{});var $X=M(()=>{GX()});var Uve,jve,p9,YX=M(()=>{Bt();moe();sR();pP();Gt();Ce();cs();$X();Uve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},jve=function(i,e){return function(t,n){e(t,n,i)}},p9=class extends oe{get enabled(){return this._enabled}set enabled(e){e?(this.el.setAttribute("aria-disabled","false"),this.el.tabIndex=0,this.el.style.pointerEvents="auto",this.el.style.opacity="1",this.el.style.cursor="pointer",this._enabled=!1):(this.el.setAttribute("aria-disabled","true"),this.el.tabIndex=-1,this.el.style.pointerEvents="none",this.el.style.opacity="0.4",this.el.style.cursor="default",this._enabled=!0),this._enabled=e}constructor(e,t,n={},r){var o;super(),this._link=t,this._enabled=!0,this.el=me(e,fe("a.monaco-link",{tabIndex:(o=t.tabIndex)!==null&&o!==void 0?o:0,href:t.href,title:t.title},t.label)),this.el.setAttribute("role","button");let s=this._register(new $_(this.el,"click")),a=this._register(new $_(this.el,"keypress")),l=li.chain(a.event).map(u=>new v_(u)).filter(u=>u.keyCode===3).event,c=this._register(new $_(this.el,fP.Tap)).event;this._register(Z_.addTarget(this.el));let d=li.any(s.event,l,c);this._register(d(u=>{this.enabled&&(Jd.stop(u,!0),n!=null&&n.opener?n.opener(this._link.href):r.open(this._link.href,{allowCommands:!0}))})),this.enabled=!0}};p9=Uve([jve(3,Ji)],p9)});var XX,QX,Wve,m9,TA,JX=M(()=>{qX();Bt();gf();Pc();Ce();th();Et();YX();Ll();Kr();XX=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},QX=function(i,e){return function(t,n){e(t,n,i)}},Wve=26,m9=class extends oe{constructor(e,t){super(),this._editor=e,this.instantiationService=t,this.banner=this._register(this.instantiationService.createInstance(TA))}hide(){this._editor.setBanner(null,0),this.banner.clear()}show(e){this.banner.show(Object.assign(Object.assign({},e),{onClose:()=>{var t;this.hide(),(t=e.onClose)===null||t===void 0||t.call(e)}})),this._editor.setBanner(this.banner.element,Wve)}};m9=XX([QX(1,Be)],m9);TA=class extends oe{constructor(e){super(),this.instantiationService=e,this.markdownRenderer=this.instantiationService.createInstance(to,{}),this.element=fe("div.editor-banner"),this.element.tabIndex=0}getAriaLabel(e){if(e.ariaLabel)return e.ariaLabel;if(typeof e.message=="string")return e.message}getBannerMessage(e){if(typeof e=="string"){let t=fe("span");return t.innerText=e,t}return this.markdownRenderer.render(e).element}clear(){mr(this.element)}show(e){mr(this.element);let t=this.getAriaLabel(e);t&&this.element.setAttribute("aria-label",t);let n=me(this.element,fe("div.icon-container"));n.setAttribute("aria-hidden","true"),e.icon&&n.appendChild(fe(`div${gt.asCSSSelector(e.icon)}`));let r=me(this.element,fe("div.message-container"));if(r.setAttribute("aria-hidden","true"),r.appendChild(this.getBannerMessage(e.message)),this.messageActionsContainer=me(this.element,fe("div.message-actions-container")),e.actions)for(let s of e.actions)this._register(this.instantiationService.createInstance(p9,this.messageActionsContainer,Object.assign(Object.assign({},s),{tabIndex:-1}),{}));let o=me(this.element,fe("div.action-container"));this.actionBar=this._register(new Oo(o)),this.actionBar.push(this._register(new is("banner.close","Close Banner",gt.asClassName(hb),!0,()=>{typeof e.onClose=="function"&&e.onClose()})),{icon:!0,label:!1}),this.actionBar.setFocusable(!1)}};TA=XX([QX(0,Be)],TA)});function Kve(i,e){return{nonBasicASCII:e.nonBasicASCII===Y_?!i:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments===Y_?!i:e.includeComments,includeStrings:e.includeStrings===Y_?!i:e.includeStrings,allowedCharacters:e.allowedCharacters,allowedLocales:e.allowedLocales}}function MA(i){return`U+${i.toString(16).padStart(4,"0")}`}function kA(i){let e=`\`${MA(i)}\``;return cw.isInvisibleCharacter(i)||(e+=` "${`${qve(i)}`}"`),e}function qve(i){return i===96?"`` ` ``":"`"+String.fromCodePoint(i)+"`"}function ZX(i,e){return e3.computeUnicodeHighlightReason(i,e)}function Gve(i,e){return Zn(this,void 0,void 0,function*(){let t=i.getValue(Ca.allowedCharacters),n;typeof t=="object"&&t?n=t:n={};for(let r of e)n[String.fromCodePoint(r)]=!0;yield i.updateValue(Ca.allowedCharacters,n,2)})}function $ve(i,e){var t;return Zn(this,void 0,void 0,function*(){let n=(t=i.inspect(Ca.allowedLocales).user)===null||t===void 0?void 0:t.value,r;typeof n=="object"&&n?r=Object.assign({},n):r={};for(let o of e)r[o]=!0;yield i.updateValue(Ca.allowedLocales,r,2)})}function Yve(i){throw new Error(`Unexpected value: ${i}`)}var RA,qp,Zn,Vve,Gp,IA,AA,LA,$p,DA,NA,Bd,Yp,Xp,dv,OA=M(()=>{Dt();or();Sl();Ce();nr();wi();VX();et();Xm();qn();Goe();fb();os();zoe();lc();_C();JX();Re();Wn();Et();cs();kl();Ll();$oe();RA=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},qp=function(i,e){return function(t,n){e(t,n,i)}},Zn=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Vve=Ti("extensions-warning-message",ct.warning,v("warningIcon","Icon shown with a warning message in the extensions editor.")),Gp=class extends oe{constructor(e,t,n,r){super(),this._editor=e,this._editorWorkerService=t,this._workspaceTrustService=n,this._highlighter=null,this._bannerClosed=!1,this._updateState=o=>{if(o&&o.hasMore){if(this._bannerClosed)return;let s=Math.max(o.ambiguousCharacterCount,o.nonBasicAsciiCharacterCount,o.invisibleCharacterCount),a;if(o.nonBasicAsciiCharacterCount>=s)a={message:v("unicodeHighlighting.thisDocumentHasManyNonBasicAsciiUnicodeCharacters","This document contains many non-basic ASCII unicode characters"),command:new Xp};else if(o.ambiguousCharacterCount>=s)a={message:v("unicodeHighlighting.thisDocumentHasManyAmbiguousUnicodeCharacters","This document contains many ambiguous unicode characters"),command:new Bd};else if(o.invisibleCharacterCount>=s)a={message:v("unicodeHighlighting.thisDocumentHasManyInvisibleUnicodeCharacters","This document contains many invisible unicode characters"),command:new Yp};else throw new Error("Unreachable");this._bannerController.show({id:"unicodeHighlightBanner",message:a.message,icon:Vve,actions:[{label:a.command.shortLabel,href:`command:${a.command.id}`}],onClose:()=>{this._bannerClosed=!0}})}else this._bannerController.hide()},this._bannerController=this._register(r.createInstance(m9,e)),this._register(this._editor.onDidChangeModel(()=>{this._bannerClosed=!1,this._updateHighlighter()})),this._options=e.getOption(121),this._register(n.onDidChangeTrust(o=>{this._updateHighlighter()})),this._register(e.onDidChangeConfiguration(o=>{o.hasChanged(121)&&(this._options=e.getOption(121),this._updateHighlighter())})),this._updateHighlighter()}dispose(){this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),super.dispose()}_updateHighlighter(){if(this._updateState(null),this._highlighter&&(this._highlighter.dispose(),this._highlighter=null),!this._editor.hasModel())return;let e=Kve(this._workspaceTrustService.isWorkspaceTrusted(),this._options);if([e.nonBasicASCII,e.ambiguousCharacters,e.invisibleCharacters].every(n=>n===!1))return;let t={nonBasicASCII:e.nonBasicASCII,ambiguousCharacters:e.ambiguousCharacters,invisibleCharacters:e.invisibleCharacters,includeComments:e.includeComments,includeStrings:e.includeStrings,allowedCodePoints:Object.keys(e.allowedCharacters).map(n=>n.codePointAt(0)),allowedLocales:Object.keys(e.allowedLocales).map(n=>n==="_os"?new Intl.NumberFormat().resolvedOptions().locale:n==="_vscode"?JN:n)};this._editorWorkerService.canComputeUnicodeHighlights(this._editor.getModel().uri)?this._highlighter=new IA(this._editor,t,this._updateState,this._editorWorkerService):this._highlighter=new AA(this._editor,t,this._updateState)}getDecorationInfo(e){return this._highlighter?this._highlighter.getDecorationInfo(e):null}};Gp.ID="editor.contrib.unicodeHighlighter";Gp=RA([qp(1,Ml),qp(2,fF),qp(3,Be)],Gp);IA=class extends oe{constructor(e,t,n,r){super(),this._editor=e,this._options=t,this._updateState=n,this._editorWorkerService=r,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new ii(()=>this._update(),250)),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._model.getVersionId();this._editorWorkerService.computedUnicodeHighlights(this._model.uri,this._options).then(t=>{if(this._model.isDisposed()||this._model.getVersionId()!==e)return;this._updateState(t);let n=[];if(!t.hasMore)for(let r of t.ranges)n.push({range:r,options:$p.instance.getDecorationFromOptions(this._options)});this._decorations.set(n)})}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel();if(!Gw(t,e))return null;let n=t.getValueInRange(e.range);return{reason:ZX(n,this._options),inComment:$w(t,e),inString:Yw(t,e)}}};IA=RA([qp(3,Ml)],IA);AA=class extends oe{constructor(e,t,n){super(),this._editor=e,this._options=t,this._updateState=n,this._model=this._editor.getModel(),this._decorations=this._editor.createDecorationsCollection(),this._updateSoon=this._register(new ii(()=>this._update(),250)),this._register(this._editor.onDidLayoutChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidScrollChange(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeHiddenAreas(()=>{this._updateSoon.schedule()})),this._register(this._editor.onDidChangeModelContent(()=>{this._updateSoon.schedule()})),this._updateSoon.schedule()}dispose(){this._decorations.clear(),super.dispose()}_update(){if(this._model.isDisposed())return;if(!this._model.mightContainNonBasicASCII()){this._decorations.clear();return}let e=this._editor.getVisibleRanges(),t=[],n={ranges:[],ambiguousCharacterCount:0,invisibleCharacterCount:0,nonBasicAsciiCharacterCount:0,hasMore:!1};for(let r of e){let o=e3.computeUnicodeHighlights(this._model,this._options,r);for(let s of o.ranges)n.ranges.push(s);n.ambiguousCharacterCount+=n.ambiguousCharacterCount,n.invisibleCharacterCount+=n.invisibleCharacterCount,n.nonBasicAsciiCharacterCount+=n.nonBasicAsciiCharacterCount,n.hasMore=n.hasMore||o.hasMore}if(!n.hasMore)for(let r of n.ranges)t.push({range:r,options:$p.instance.getDecorationFromOptions(this._options)});this._updateState(n),this._decorations.set(t)}getDecorationInfo(e){if(!this._decorations.has(e))return null;let t=this._editor.getModel(),n=t.getValueInRange(e.range);return Gw(t,e)?{reason:ZX(n,this._options),inComment:$w(t,e),inString:Yw(t,e)}:null}},LA=class{constructor(e,t,n){this._editor=e,this._languageService=t,this._openerService=n,this.hoverOrdinal=5}computeSync(e,t){if(!this._editor.hasModel()||e.type!==1)return[];let n=this._editor.getModel(),r=this._editor.getContribution(Gp.ID);if(!r)return[];let o=[],s=300;for(let a of t){let l=r.getDecorationInfo(a);if(!l)continue;let d=n.getValueInRange(a.range).codePointAt(0),u=kA(d),h;switch(l.reason.kind){case 0:{y_(l.reason.confusableWith)?h=v("unicodeHighlight.characterIsAmbiguousASCII","The character {0} could be confused with the ASCII character {1}, which is more common in source code.",u,kA(l.reason.confusableWith.codePointAt(0))):h=v("unicodeHighlight.characterIsAmbiguous","The character {0} could be confused with the character {1}, which is more common in source code.",u,kA(l.reason.confusableWith.codePointAt(0)));break}case 1:h=v("unicodeHighlight.characterIsInvisible","The character {0} is invisible.",u);break;case 2:h=v("unicodeHighlight.characterIsNonBasicAscii","The character {0} is not a basic ASCII character.",u);break}let p={codePoint:d,reason:l.reason,inComment:l.inComment,inString:l.inString},m=v("unicodeHighlight.adjustSettings","Adjust settings"),g=`command:${dv.ID}?${encodeURIComponent(JSON.stringify(p))}`,b=new sn("",!0).appendMarkdown(h).appendText(" ").appendLink(g,m);o.push(new io(this,a.range,[b],!1,s++))}return o}renderHoverParts(e,t){return fk(e,t,this._editor,this._languageService,this._openerService)}};LA=RA([qp(1,Qi),qp(2,Ji)],LA);$p=class{constructor(){this.map=new Map}getDecorationFromOptions(e){return this.getDecoration(!e.includeComments,!e.includeStrings)}getDecoration(e,t){let n=`${e}${t}`,r=this.map.get(n);return r||(r=dt.createDynamic({description:"unicode-highlight",stickiness:1,className:"unicode-highlight",showIfCollapsed:!0,overviewRuler:null,minimap:null,hideInCommentTokens:e,hideInStringTokens:t}),this.map.set(n,r)),r}};$p.instance=new $p;DA=class extends se{constructor(){super({id:Bd.ID,label:v("action.unicodeHighlight.disableHighlightingInComments","Disable highlighting of characters in comments"),alias:"Disable highlighting of characters in comments",precondition:void 0}),this.shortLabel=v("unicodeHighlight.disableHighlightingInComments.shortLabel","Disable Highlight In Comments")}run(e,t,n){return Zn(this,void 0,void 0,function*(){let r=e==null?void 0:e.get(Mt);r&&this.runAction(r)})}runAction(e){return Zn(this,void 0,void 0,function*(){yield e.updateValue(Ca.includeComments,!1,2)})}},NA=class extends se{constructor(){super({id:Bd.ID,label:v("action.unicodeHighlight.disableHighlightingInStrings","Disable highlighting of characters in strings"),alias:"Disable highlighting of characters in strings",precondition:void 0}),this.shortLabel=v("unicodeHighlight.disableHighlightingInStrings.shortLabel","Disable Highlight In Strings")}run(e,t,n){return Zn(this,void 0,void 0,function*(){let r=e==null?void 0:e.get(Mt);r&&this.runAction(r)})}runAction(e){return Zn(this,void 0,void 0,function*(){yield e.updateValue(Ca.includeStrings,!1,2)})}},Bd=class i extends se{constructor(){super({id:i.ID,label:v("action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters","Disable highlighting of ambiguous characters"),alias:"Disable highlighting of ambiguous characters",precondition:void 0}),this.shortLabel=v("unicodeHighlight.disableHighlightingOfAmbiguousCharacters.shortLabel","Disable Ambiguous Highlight")}run(e,t,n){return Zn(this,void 0,void 0,function*(){let r=e==null?void 0:e.get(Mt);r&&this.runAction(r)})}runAction(e){return Zn(this,void 0,void 0,function*(){yield e.updateValue(Ca.ambiguousCharacters,!1,2)})}};Bd.ID="editor.action.unicodeHighlight.disableHighlightingOfAmbiguousCharacters";Yp=class i extends se{constructor(){super({id:i.ID,label:v("action.unicodeHighlight.disableHighlightingOfInvisibleCharacters","Disable highlighting of invisible characters"),alias:"Disable highlighting of invisible characters",precondition:void 0}),this.shortLabel=v("unicodeHighlight.disableHighlightingOfInvisibleCharacters.shortLabel","Disable Invisible Highlight")}run(e,t,n){return Zn(this,void 0,void 0,function*(){let r=e==null?void 0:e.get(Mt);r&&this.runAction(r)})}runAction(e){return Zn(this,void 0,void 0,function*(){yield e.updateValue(Ca.invisibleCharacters,!1,2)})}};Yp.ID="editor.action.unicodeHighlight.disableHighlightingOfInvisibleCharacters";Xp=class i extends se{constructor(){super({id:i.ID,label:v("action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters","Disable highlighting of non basic ASCII characters"),alias:"Disable highlighting of non basic ASCII characters",precondition:void 0}),this.shortLabel=v("unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters.shortLabel","Disable Non ASCII Highlight")}run(e,t,n){return Zn(this,void 0,void 0,function*(){let r=e==null?void 0:e.get(Mt);r&&this.runAction(r)})}runAction(e){return Zn(this,void 0,void 0,function*(){yield e.updateValue(Ca.nonBasicASCII,!1,2)})}};Xp.ID="editor.action.unicodeHighlight.disableHighlightingOfNonBasicAsciiCharacters";dv=class i extends se{constructor(){super({id:i.ID,label:v("action.unicodeHighlight.showExcludeOptions","Show Exclude Options"),alias:"Show Exclude Options",precondition:void 0})}run(e,t,n){return Zn(this,void 0,void 0,function*(){let{codePoint:r,reason:o,inString:s,inComment:a}=n,l=String.fromCodePoint(r),c=e.get(lr),d=e.get(Mt);function u(m){return cw.isInvisibleCharacter(m)?v("unicodeHighlight.excludeInvisibleCharFromBeingHighlighted","Exclude {0} (invisible character) from being highlighted",MA(m)):v("unicodeHighlight.excludeCharFromBeingHighlighted","Exclude {0} from being highlighted",`${MA(m)} "${l}"`)}let h=[];if(o.kind===0)for(let m of o.notAmbiguousInLocales)h.push({label:v("unicodeHighlight.allowCommonCharactersInLanguage",'Allow unicode characters that are more common in the language "{0}".',m),run:()=>Zn(this,void 0,void 0,function*(){$ve(d,[m])})});if(h.push({label:u(r),run:()=>Gve(d,[r])}),a){let m=new DA;h.push({label:m.label,run:()=>Zn(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(s){let m=new NA;h.push({label:m.label,run:()=>Zn(this,void 0,void 0,function*(){return m.runAction(d)})})}if(o.kind===0){let m=new Bd;h.push({label:m.label,run:()=>Zn(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(o.kind===1){let m=new Yp;h.push({label:m.label,run:()=>Zn(this,void 0,void 0,function*(){return m.runAction(d)})})}else if(o.kind===2){let m=new Xp;h.push({label:m.label,run:()=>Zn(this,void 0,void 0,function*(){return m.runAction(d)})})}else Yve(o);let p=yield c.pick(h,{title:v("unicodeHighlight.configureUnicodeHighlightOptions","Configure Unicode Highlight Options")});p&&(yield p.run())})}};dv.ID="editor.action.unicodeHighlight.showExcludeOptions";X(Bd);X(Yp);X(Xp);X(dv);Ae(Gp.ID,Gp,1);jo.register(LA)});function Jve(i,e,t){i.setModelProperty(e.uri,tQ,t)}function Zve(i,e){return i.getModelProperty(e.uri,tQ)}var Xve,eQ,Qve,tQ,uv,PA=M(()=>{Ce();ao();et();Lr();Re();t3();Xve=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},eQ=function(i,e){return function(t,n){e(t,n,i)}},Qve=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},tQ="ignoreUnusualLineTerminators";uv=class extends oe{constructor(e,t,n){super(),this._editor=e,this._dialogService=t,this._codeEditorService=n,this._isPresentingDialog=!1,this._config=this._editor.getOption(122),this._register(this._editor.onDidChangeConfiguration(r=>{r.hasChanged(122)&&(this._config=this._editor.getOption(122),this._checkForUnusualLineTerminators())})),this._register(this._editor.onDidChangeModel(()=>{this._checkForUnusualLineTerminators()})),this._register(this._editor.onDidChangeModelContent(r=>{r.isUndoing||this._checkForUnusualLineTerminators()})),this._checkForUnusualLineTerminators()}_checkForUnusualLineTerminators(){return Qve(this,void 0,void 0,function*(){if(this._config==="off"||!this._editor.hasModel())return;let e=this._editor.getModel();if(!e.mightContainUnusualLineTerminators()||Zve(this._codeEditorService,e)===!0||this._editor.getOption(88))return;if(this._config==="auto"){e.removeUnusualLineTerminators(this._editor.getSelections());return}if(this._isPresentingDialog)return;let n;try{this._isPresentingDialog=!0,n=yield this._dialogService.confirm({title:v("unusualLineTerminators.title","Unusual Line Terminators"),message:v("unusualLineTerminators.message","Detected unusual line terminators"),detail:v("unusualLineTerminators.detail","The file '{0}' contains one or more unusual line terminator characters, like Line Separator (LS) or Paragraph Separator (PS).\n\nIt is recommended to remove them from the file. This can be configured via `editor.unusualLineTerminators`.",Nr(e.uri)),primaryButton:v({key:"unusualLineTerminators.fix",comment:["&& denotes a mnemonic"]},"&&Remove Unusual Line Terminators"),cancelButton:v("unusualLineTerminators.ignore","Ignore")})}finally{this._isPresentingDialog=!1}if(!n.confirmed){Jve(this._codeEditorService,e,!0);return}e.removeUnusualLineTerminators(this._editor.getSelections())})}};uv.ID="editor.contrib.unusualLineTerminatorsDetector";uv=Xve([eQ(1,bf),eQ(2,ei)],uv);Ae(uv.ID,uv,1)});function nQ(i,e,t,n){let r=i.ordered(e);return F_(r.map(o=>()=>Promise.resolve(o.provideDocumentHighlights(e,t,n)).then(void 0,Ut)),ji)}function t_e(i,e,t,n){return i.has(e)?new FA(e,t,n,i):new BA(e,t,n)}var e_e,iQ,_9,g9,FA,BA,HA,Eh,v9,zA,UA,jA,WA=M(()=>{Lo();oi();Dt();gi();At();Ce();et();qe();Vt();br();Re();pt();xt();EI();e_e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},iQ=function(i,e){return function(t,n){e(t,n,i)}},_9=new rt("hasWordHighlights",!1);g9=class{constructor(e,t,n){this._model=e,this._selection=t,this._wordSeparators=n,this._wordRange=this._getCurrentWordRange(e,t),this._result=null}get result(){return this._result||(this._result=Kt(e=>this._compute(this._model,this._selection,this._wordSeparators,e))),this._result}_getCurrentWordRange(e,t){let n=e.getWordAtPosition(t.getPosition());return n?new P(t.startLineNumber,n.startColumn,t.startLineNumber,n.endColumn):null}isValid(e,t,n){let r=t.startLineNumber,o=t.startColumn,s=t.endColumn,a=this._getCurrentWordRange(e,t),l=!!(this._wordRange&&this._wordRange.equalsRange(a));for(let c=0,d=n.length;!l&&c=s&&(l=!0)}return l}cancel(){this.result.cancel()}},FA=class extends g9{constructor(e,t,n,r){super(e,t,n),this._providers=r}_compute(e,t,n,r){return nQ(this._providers,e,t.getPosition(),r).then(o=>o||[])}},BA=class extends g9{constructor(e,t,n){super(e,t,n),this._selectionIsEmpty=t.isEmpty()}_compute(e,t,n,r){return of(250,r).then(()=>{if(!t.isEmpty())return[];let o=e.getWordAtPosition(t.getPosition());return!o||o.word.length>1e3?[]:e.findMatches(o.word,!0,!1,!0,n,!1).map(a=>({range:a.range,kind:Gm.Text}))})}isValid(e,t,n){let r=t.isEmpty();return this._selectionIsEmpty!==r?!1:super.isValid(e,t,n)}};qr("_executeDocumentHighlights",(i,e,t)=>{let n=i.get(be);return nQ(n.documentHighlightProvider,e,t,tt.None)});HA=class{constructor(e,t,n){this.toUnhook=new re,this.workerRequestTokenId=0,this.workerRequestCompleted=!1,this.workerRequestValue=[],this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1,this.editor=e,this.providers=t,this._hasWordHighlights=_9.bindTo(n),this._ignorePositionChangeEvent=!1,this.occurrencesHighlight=this.editor.getOption(78),this.model=this.editor.getModel(),this.toUnhook.add(e.onDidChangeCursorPosition(r=>{this._ignorePositionChangeEvent||this.occurrencesHighlight&&this._onPositionChanged(r)})),this.toUnhook.add(e.onDidChangeModelContent(r=>{this._stopAll()})),this.toUnhook.add(e.onDidChangeConfiguration(r=>{let o=this.editor.getOption(78);this.occurrencesHighlight!==o&&(this.occurrencesHighlight=o,this._stopAll())})),this.decorations=this.editor.createDecorationsCollection(),this.workerRequestTokenId=0,this.workerRequest=null,this.workerRequestCompleted=!1,this.lastCursorPositionChangeTime=0,this.renderDecorationsTimer=-1}hasDecorations(){return this.decorations.length>0}restore(){this.occurrencesHighlight&&this._run()}_getSortedHighlights(){return this.decorations.getRanges().sort(P.compareRangesUsingStarts)}moveNext(){let e=this._getSortedHighlights(),n=(e.findIndex(o=>o.containsPosition(this.editor.getPosition()))+1)%e.length,r=e[n];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(r.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(r);let o=this._getWord();if(o){let s=this.editor.getModel().getLineContent(r.startLineNumber);Ni(`${s}, ${n+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}moveBack(){let e=this._getSortedHighlights(),n=(e.findIndex(o=>o.containsPosition(this.editor.getPosition()))-1+e.length)%e.length,r=e[n];try{this._ignorePositionChangeEvent=!0,this.editor.setPosition(r.getStartPosition()),this.editor.revealRangeInCenterIfOutsideViewport(r);let o=this._getWord();if(o){let s=this.editor.getModel().getLineContent(r.startLineNumber);Ni(`${s}, ${n+1} of ${e.length} for '${o.word}'`)}}finally{this._ignorePositionChangeEvent=!1}}_removeDecorations(){this.decorations.length>0&&(this.decorations.clear(),this._hasWordHighlights.set(!1))}_stopAll(){this._removeDecorations(),this.renderDecorationsTimer!==-1&&(clearTimeout(this.renderDecorationsTimer),this.renderDecorationsTimer=-1),this.workerRequest!==null&&(this.workerRequest.cancel(),this.workerRequest=null),this.workerRequestCompleted||(this.workerRequestTokenId++,this.workerRequestCompleted=!0)}_onPositionChanged(e){if(!this.occurrencesHighlight){this._stopAll();return}if(e.reason!==3){this._stopAll();return}this._run()}_getWord(){let e=this.editor.getSelection(),t=e.startLineNumber,n=e.startColumn;return this.model.getWordAtPosition({lineNumber:t,column:n})}_run(){let e=this.editor.getSelection();if(e.startLineNumber!==e.endLineNumber){this._stopAll();return}let t=e.startColumn,n=e.endColumn,r=this._getWord();if(!r||r.startColumn>t||r.endColumn{s===this.workerRequestTokenId&&(this.workerRequestCompleted=!0,this.workerRequestValue=a||[],this._beginRenderDecorations())},lt)}}_beginRenderDecorations(){let e=new Date().getTime(),t=this.lastCursorPositionChangeTime+250;e>=t?(this.renderDecorationsTimer=-1,this.renderDecorations()):this.renderDecorationsTimer=setTimeout(()=>{this.renderDecorations()},t-e)}renderDecorations(){this.renderDecorationsTimer=-1;let e=[];for(let t of this.workerRequestValue)t.range&&e.push({range:t.range,options:oX(t.kind)});this.decorations.set(e),this._hasWordHighlights.set(this.hasDecorations())}dispose(){this._stopAll(),this.toUnhook.dispose()}},Eh=class rQ extends oe{static get(e){return e.getContribution(rQ.ID)}constructor(e,t,n){super(),this.wordHighlighter=null;let r=()=>{e.hasModel()&&(this.wordHighlighter=new HA(e,n.documentHighlightProvider,t))};this._register(e.onDidChangeModel(o=>{this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),r()})),r()}saveViewState(){return!!(this.wordHighlighter&&this.wordHighlighter.hasDecorations())}moveNext(){var e;(e=this.wordHighlighter)===null||e===void 0||e.moveNext()}moveBack(){var e;(e=this.wordHighlighter)===null||e===void 0||e.moveBack()}restoreViewState(e){this.wordHighlighter&&e&&this.wordHighlighter.restore()}dispose(){this.wordHighlighter&&(this.wordHighlighter.dispose(),this.wordHighlighter=null),super.dispose()}};Eh.ID="editor.contrib.wordHighlighter";Eh=e_e([iQ(1,Ke),iQ(2,be)],Eh);v9=class extends se{constructor(e,t){super(t),this._isNext=e}run(e,t){let n=Eh.get(t);n&&(this._isNext?n.moveNext():n.moveBack())}},zA=class extends v9{constructor(){super(!0,{id:"editor.action.wordHighlight.next",label:v("wordHighlight.next.label","Go to Next Symbol Highlight"),alias:"Go to Next Symbol Highlight",precondition:_9,kbOpts:{kbExpr:O.editorTextFocus,primary:65,weight:100}})}},UA=class extends v9{constructor(){super(!1,{id:"editor.action.wordHighlight.prev",label:v("wordHighlight.previous.label","Go to Previous Symbol Highlight"),alias:"Go to Previous Symbol Highlight",precondition:_9,kbOpts:{kbExpr:O.editorTextFocus,primary:1089,weight:100}})}},jA=class extends se{constructor(){super({id:"editor.action.wordHighlight.trigger",label:v("wordHighlight.trigger.label","Trigger Symbol Highlight"),alias:"Trigger Symbol Highlight",precondition:_9.toNegated(),kbOpts:{kbExpr:O.editorTextFocus,primary:0,weight:100}})}run(e,t,n){let r=Eh.get(t);r&&r.restoreViewState(!0)}};Ae(Eh.ID,Eh,0);X(zA);X(UA);X(jA)});var Th,ll,cl,VA,KA,qA,GA,$A,YA,XA,QA,JA,ZA,eL,tL,iL,nL,rL,oL,kh,hv,fv,sL,aL,lL,cL,dL,uL,hL,b9=M(()=>{et();E_();Xm();Gre();FR();Yre();ri();qe();Mn();Vt();Kn();Re();qw();pt();Voe();Th=class extends xi{constructor(e){super(e),this._inSelectionMode=e.inSelectionMode,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){if(!t.hasModel())return;let r=Uc(t.getOption(126)),o=t.getModel(),a=t.getSelections().map(l=>{let c=new Se(l.positionLineNumber,l.positionColumn),d=this._move(r,o,c,this._wordNavigationType);return this._moveTo(l,d,this._inSelectionMode)});if(o.pushStackElement(),t._getViewModel().setCursorStates("moveWordCommand",3,a.map(l=>OR.fromModelSelection(l))),a.length===1){let l=new Se(a[0].positionLineNumber,a[0].positionColumn);t.revealPosition(l,0)}}_moveTo(e,t,n){return n?new We(e.selectionStartLineNumber,e.selectionStartColumn,t.lineNumber,t.column):new We(t.lineNumber,t.column,t.lineNumber,t.column)}},ll=class extends Th{_move(e,t,n,r){return Jh.moveWordLeft(e,t,n,r)}},cl=class extends Th{_move(e,t,n,r){return Jh.moveWordRight(e,t,n,r)}},VA=class extends ll{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartLeft",precondition:void 0})}},KA=class extends ll{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndLeft",precondition:void 0})}},qA=class extends ll{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:1,id:"cursorWordLeft",precondition:void 0,kbOpts:{kbExpr:ce.and(O.textInputFocus,(e=ce.and(i1,n1))===null||e===void 0?void 0:e.negate()),primary:2063,mac:{primary:527},weight:100}})}},GA=class extends ll{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartLeftSelect",precondition:void 0})}},$A=class extends ll{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndLeftSelect",precondition:void 0})}},YA=class extends ll{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:1,id:"cursorWordLeftSelect",precondition:void 0,kbOpts:{kbExpr:ce.and(O.textInputFocus,(e=ce.and(i1,n1))===null||e===void 0?void 0:e.negate()),primary:3087,mac:{primary:1551},weight:100}})}},XA=class extends ll{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityLeft",precondition:void 0})}_move(e,t,n,r){return super._move(Uc(Ym.wordSeparators.defaultValue),t,n,r)}},QA=class extends ll{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityLeftSelect",precondition:void 0})}_move(e,t,n,r){return super._move(Uc(Ym.wordSeparators.defaultValue),t,n,r)}},JA=class extends cl{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordStartRight",precondition:void 0})}},ZA=class extends cl{constructor(){var e;super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordEndRight",precondition:void 0,kbOpts:{kbExpr:ce.and(O.textInputFocus,(e=ce.and(i1,n1))===null||e===void 0?void 0:e.negate()),primary:2065,mac:{primary:529},weight:100}})}},eL=class extends cl{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordRight",precondition:void 0})}},tL=class extends cl{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordStartRightSelect",precondition:void 0})}},iL=class extends cl{constructor(){var e;super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordEndRightSelect",precondition:void 0,kbOpts:{kbExpr:ce.and(O.textInputFocus,(e=ce.and(i1,n1))===null||e===void 0?void 0:e.negate()),primary:3089,mac:{primary:1553},weight:100}})}},nL=class extends cl{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordRightSelect",precondition:void 0})}},rL=class extends cl{constructor(){super({inSelectionMode:!1,wordNavigationType:3,id:"cursorWordAccessibilityRight",precondition:void 0})}_move(e,t,n,r){return super._move(Uc(Ym.wordSeparators.defaultValue),t,n,r)}},oL=class extends cl{constructor(){super({inSelectionMode:!0,wordNavigationType:3,id:"cursorWordAccessibilityRightSelect",precondition:void 0})}_move(e,t,n,r){return super._move(Uc(Ym.wordSeparators.defaultValue),t,n,r)}},kh=class extends xi{constructor(e){super(e),this._whitespaceHeuristics=e.whitespaceHeuristics,this._wordNavigationType=e.wordNavigationType}runEditorCommand(e,t,n){let r=e.get(Tt);if(!t.hasModel())return;let o=Uc(t.getOption(126)),s=t.getModel(),a=t.getSelections(),l=t.getOption(5),c=t.getOption(9),d=r.getLanguageConfiguration(s.getLanguageId()).getAutoClosingPairs(),u=t._getViewModel(),h=a.map(p=>{let m=this._delete({wordSeparators:o,model:s,selection:p,whitespaceHeuristics:this._whitespaceHeuristics,autoClosingDelete:t.getOption(7),autoClosingBrackets:l,autoClosingQuotes:c,autoClosingPairs:d,autoClosedCharacters:u.getCursorAutoClosedCharacters()},this._wordNavigationType);return new _l(m,"")});t.pushUndoStop(),t.executeCommands(this.id,h),t.pushUndoStop()}},hv=class extends kh{_delete(e,t){let n=Jh.deleteWordLeft(e,t);return n||new P(1,1,1,1)}},fv=class extends kh{_delete(e,t){let n=Jh.deleteWordRight(e,t);if(n)return n;let r=e.model.getLineCount(),o=e.model.getLineMaxColumn(r);return new P(r,o,r,o)}},sL=class extends hv{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartLeft",precondition:O.writable})}},aL=class extends hv{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndLeft",precondition:O.writable})}},lL=class extends hv{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordLeft",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:2049,mac:{primary:513},weight:100}})}},cL=class extends fv{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:0,id:"deleteWordStartRight",precondition:O.writable})}},dL=class extends fv{constructor(){super({whitespaceHeuristics:!1,wordNavigationType:2,id:"deleteWordEndRight",precondition:O.writable})}},uL=class extends fv{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordRight",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:2068,mac:{primary:532},weight:100}})}},hL=class extends se{constructor(){super({id:"deleteInsideWord",precondition:O.writable,label:v("deleteInsideWord","Delete Word"),alias:"Delete Word"})}run(e,t,n){if(!t.hasModel())return;let r=Uc(t.getOption(126)),o=t.getModel(),a=t.getSelections().map(l=>{let c=Jh.deleteInsideWord(r,o,l);return new _l(c,"")});t.pushUndoStop(),t.executeCommands(this.id,a),t.pushUndoStop()}};Ne(new VA);Ne(new KA);Ne(new qA);Ne(new GA);Ne(new $A);Ne(new YA);Ne(new JA);Ne(new ZA);Ne(new eL);Ne(new tL);Ne(new iL);Ne(new nL);Ne(new XA);Ne(new QA);Ne(new rL);Ne(new oL);Ne(new sL);Ne(new aL);Ne(new lL);Ne(new cL);Ne(new dL);Ne(new uL);X(hL)});var fL,pL,y9,mL,gL,C9,vL,_L,bL=M(()=>{et();FR();qe();Vt();b9();zi();fL=class extends kh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:0,id:"deleteWordPartLeft",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:769},weight:100}})}_delete(e,t){let n=Dm.deleteWordPartLeft(e);return n||new P(1,1,1,1)}},pL=class extends kh{constructor(){super({whitespaceHeuristics:!0,wordNavigationType:2,id:"deleteWordPartRight",precondition:O.writable,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:788},weight:100}})}_delete(e,t){let n=Dm.deleteWordPartRight(e);if(n)return n;let r=e.model.getLineCount(),o=e.model.getLineMaxColumn(r);return new P(r,o,r,o)}},y9=class extends Th{_move(e,t,n,r){return Dm.moveWordPartLeft(e,t,n)}},mL=class extends y9{constructor(){super({inSelectionMode:!1,wordNavigationType:0,id:"cursorWordPartLeft",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:783},weight:100}})}};St.registerCommandAlias("cursorWordPartStartLeft","cursorWordPartLeft");gL=class extends y9{constructor(){super({inSelectionMode:!0,wordNavigationType:0,id:"cursorWordPartLeftSelect",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:1807},weight:100}})}};St.registerCommandAlias("cursorWordPartStartLeftSelect","cursorWordPartLeftSelect");C9=class extends Th{_move(e,t,n,r){return Dm.moveWordPartRight(e,t,n)}},vL=class extends C9{constructor(){super({inSelectionMode:!1,wordNavigationType:2,id:"cursorWordPartRight",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:785},weight:100}})}},_L=class extends C9{constructor(){super({inSelectionMode:!0,wordNavigationType:2,id:"cursorWordPartRightSelect",precondition:void 0,kbOpts:{kbExpr:O.textInputFocus,primary:0,mac:{primary:1809},weight:100}})}};Ne(new fL);Ne(new pL);Ne(new mL);Ne(new gL);Ne(new vL);Ne(new _L)});var pv,yL=M(()=>{Ce();et();u0();Re();pv=class extends oe{constructor(e){super(),this.editor=e,this._register(this.editor.onDidAttemptReadOnlyEdit(()=>this._onDidAttemptReadOnlyEdit()))}_onDidAttemptReadOnlyEdit(){let e=Qn.get(this.editor);e&&this.editor.hasModel()&&(this.editor.isSimpleWidget?e.showMessage(v("editor.simple.readonly","Cannot edit in read-only input"),this.editor.getPosition()):e.showMessage(v("editor.readonly","Cannot edit in read-only editor"),this.editor.getPosition()))}};pv.ID="editor.contrib.readOnlyMessageController";Ae(pv.ID,pv,2)});var oQ=M(()=>{});var sQ=M(()=>{oQ()});var SL=Ze(mv=>{sQ();Bt();ma();Ce();et();br();soe();hoe();os();pF();Xc();var i_e=mv&&mv.__decorate||function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},aQ=mv&&mv.__param||function(i,e){return function(t,n){e(t,n,i)}},Qp=class lQ extends oe{static get(e){return e.getContribution(lQ.ID)}constructor(e,t,n){super(),this._editor=e,this._languageService=n,this._widget=null,this._register(this._editor.onDidChangeModel(r=>this.stop())),this._register(this._editor.onDidChangeModelLanguage(r=>this.stop())),this._register(hf.onDidChange(r=>this.stop())),this._register(this._editor.onKeyUp(r=>r.keyCode===9&&this.stop()))}dispose(){this.stop(),super.dispose()}launch(){this._widget||this._editor.hasModel()&&(this._widget=new S9(this._editor,this._languageService))}stop(){this._widget&&(this._widget.dispose(),this._widget=null)}};Qp.ID="editor.contrib.inspectTokens";Qp=i_e([aQ(1,kb),aQ(2,Qi)],Qp);var CL=class extends se{constructor(){super({id:"editor.action.inspectTokens",label:mF.inspectTokensAction,alias:"Developer: Inspect Tokens",precondition:void 0})}run(e,t){let n=Qp.get(t);n==null||n.launch()}};function n_e(i){let e="";for(let t=0,n=i.length;tnP,tokenize:(r,o,s)=>rP(e,s),tokenizeEncoded:(r,o,s)=>oP(n,s)}}var S9=class i extends oe{constructor(e,t){super(),this.allowEditorOverflow=!0,this._editor=e,this._languageService=t,this._model=this._editor.getModel(),this._domNode=document.createElement("div"),this._domNode.className="tokens-inspect-widget",this._tokenizationSupport=r_e(this._languageService.languageIdCodec,this._model.getLanguageId()),this._compute(this._editor.getPosition()),this._register(this._editor.onDidChangeCursorPosition(n=>this._compute(this._editor.getPosition()))),this._editor.addContentWidget(this)}dispose(){this._editor.removeContentWidget(this),super.dispose()}getId(){return i._ID}_compute(e){let t=this._getTokensAtLine(e.lineNumber),n=0;for(let l=t.tokens1.length-1;l>=0;l--){let c=t.tokens1[l];if(e.column-1>=c.offset){n=l;break}}let r=0;for(let l=t.tokens2.length>>>1;l>=0;l--)if(e.column-1>=t.tokens2[l<<1]){r=l;break}let o=this._model.getLineContent(e.lineNumber),s="";if(n{Re();Bc();Ce();Gn();o1();kl();o_e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},cQ=function(i,e){return function(t,n){e(t,n,i)}},gv=class w9{constructor(e,t){this.quickInputService=e,this.keybindingService=t,this.registry=Mr.as(Ta.Quickaccess)}provide(e){let t=new re;return t.add(e.onDidAccept(()=>{let[n]=e.selectedItems;n&&this.quickInputService.quickAccess.show(n.prefix,{preserveValue:!0})})),t.add(e.onDidChangeValue(n=>{let r=this.registry.getQuickAccessProvider(n.substr(w9.PREFIX.length));r&&r.prefix&&r.prefix!==w9.PREFIX&&this.quickInputService.quickAccess.show(r.prefix,{preserveValue:!0})})),e.items=this.getQuickAccessProviders().filter(n=>n.prefix!==w9.PREFIX),t}getQuickAccessProviders(){return this.registry.getQuickAccessProviders().sort((t,n)=>t.prefix.localeCompare(n.prefix)).flatMap(t=>this.createPicks(t))}createPicks(e){return e.helpEntries.map(t=>{let n=t.prefix||e.prefix,r=n||"\u2026";return{prefix:n,label:r,keybinding:t.commandId?this.keybindingService.lookupKeybinding(t.commandId):void 0,ariaLabel:v("helpPickAriaLabel","{0}, {1}",r,t.description),description:t.description}})}};gv.PREFIX="?";gv=o_e([cQ(0,lr),cQ(1,Ht)],gv)});var wL=M(()=>{Bc();o1();Xc();dQ();Mr.as(Ta.Quickaccess).registerQuickAccessProvider({ctor:gv,prefix:"",helpEntries:[{description:gF.helpQuickAccessActionLabel}]})});var Jp,xL=M(()=>{$N();Ce();Mi();Uw();Kc();XO();ar();Lo();Jp=class{constructor(e){this.options=e,this.rangeHighlightDecorationId=void 0}provide(e,t){var n;let r=new re;e.canAcceptInBackground=!!(!((n=this.options)===null||n===void 0)&&n.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let o=r.add(new Hi);return o.value=this.doProvide(e,t),r.add(this.onDidActiveTextEditorControlChange(()=>{o.value=void 0,o.value=this.doProvide(e,t)})),r}doProvide(e,t){let n=new re,r=this.activeTextEditorControl;if(r&&this.canProvideWithTextEditor(r)){let o={editor:r},s=pb(r);if(s){let a=Un(r.saveViewState());n.add(s.onDidChangeCursorPosition(()=>{a=Un(r.saveViewState())})),o.restoreViewState=()=>{a&&r===this.activeTextEditorControl&&r.restoreViewState(a)},n.add(d_(t.onCancellationRequested)(()=>{var l;return(l=o.restoreViewState)===null||l===void 0?void 0:l.call(o)}))}n.add(Ft(()=>this.clearDecorations(r))),n.add(this.provideWithTextEditor(o,e,t))}else n.add(this.provideWithoutTextEditor(e,t));return n}canProvideWithTextEditor(e){return!0}gotoLocation({editor:e},t){e.setSelection(t.range),e.revealRangeInCenter(t.range,0),t.preserveFocus||e.focus();let n=e.getModel();n&&"getLineContent"in n&&Ni(`${n.getLineContent(t.range.startLineNumber)}`)}getModel(e){var t;return UP(e)?(t=e.getModel())===null||t===void 0?void 0:t.modified:e.getModel()}addDecorations(e,t){e.changeDecorations(n=>{let r=[];this.rangeHighlightDecorationId&&(r.push(this.rangeHighlightDecorationId.overviewRulerDecorationId),r.push(this.rangeHighlightDecorationId.rangeHighlightId),this.rangeHighlightDecorationId=void 0);let o=[{range:t,options:{description:"quick-access-range-highlight",className:"rangeHighlight",isWholeLine:!0}},{range:t,options:{description:"quick-access-range-highlight-overview",overviewRuler:{color:vi(q_),position:Gr.Full}}}],[s,a]=n.deltaDecorations(r,o);this.rangeHighlightDecorationId={rangeHighlightId:s,overviewRulerDecorationId:a}})}clearDecorations(e){let t=this.rangeHighlightDecorationId;t&&(e.changeDecorations(n=>{n.deltaDecorations([t.overviewRulerDecorationId,t.rangeHighlightId],[])}),this.rangeHighlightDecorationId=void 0)}}});var vv,uQ=M(()=>{Ce();Uw();xL();Re();vv=class i extends Jp{constructor(){super({canAcceptInBackground:!0})}provideWithoutTextEditor(e){let t=v("cannotRunGotoLine","Open a text editor first to go to a line.");return e.items=[{label:t}],e.ariaLabel=t,oe.None}provideWithTextEditor(e,t,n){let r=e.editor,o=new re;o.add(t.onDidAccept(l=>{let[c]=t.selectedItems;if(c){if(!this.isValidLineNumber(r,c.lineNumber))return;this.gotoLocation(e,{range:this.toRange(c.lineNumber,c.column),keyMods:t.keyMods,preserveFocus:l.inBackground}),l.inBackground||t.hide()}}));let s=()=>{let l=this.parsePosition(r,t.value.trim().substr(i.PREFIX.length)),c=this.getPickLabel(r,l.lineNumber,l.column);if(t.items=[{lineNumber:l.lineNumber,column:l.column,label:c}],t.ariaLabel=c,!this.isValidLineNumber(r,l.lineNumber)){this.clearDecorations(r);return}let d=this.toRange(l.lineNumber,l.column);r.revealRangeInCenter(d,0),this.addDecorations(r,d)};s(),o.add(t.onDidChangeValue(()=>s()));let a=pb(r);return a&&a.getOptions().get(65).renderType===2&&(a.updateOptions({lineNumbers:"on"}),o.add(Ft(()=>a.updateOptions({lineNumbers:"relative"})))),o}toRange(e=1,t=1){return{startLineNumber:e,startColumn:t,endLineNumber:e,endColumn:t}}parsePosition(e,t){let n=t.split(/,|:|#/).map(o=>parseInt(o,10)).filter(o=>!isNaN(o)),r=this.lineCount(e)+1;return{lineNumber:n[0]>0?n[0]:r+n[0],column:n[1]}}getPickLabel(e,t,n){if(this.isValidLineNumber(e,t))return this.isValidColumn(e,t,n)?v("gotoLineColumnLabel","Go to line {0} and character {1}.",t,n):v("gotoLineLabel","Go to line {0}.",t);let r=e.getPosition()||{lineNumber:1,column:1},o=this.lineCount(e);return o>1?v("gotoLineLabelEmptyWithLimit","Current Line: {0}, Character: {1}. Type a line number between 1 and {2} to navigate to.",r.lineNumber,r.column,o):v("gotoLineLabelEmpty","Current Line: {0}, Character: {1}. Type a line number to navigate to.",r.lineNumber,r.column)}isValidLineNumber(e,t){return!t||typeof t!="number"?!1:t>0&&t<=this.lineCount(e)}isValidColumn(e,t,n){if(!n||typeof n!="number")return!1;let r=this.getModel(e);if(!r)return!1;let o={lineNumber:t,column:n};return r.validatePosition(o).equals(o)}lineCount(e){var t,n;return(n=(t=this.getModel(e))===null||t===void 0?void 0:t.getLineCount())!==null&&n!==void 0?n:0}};vv.PREFIX=":"});var s_e,a_e,_v,bv,EL=M(()=>{uQ();Bc();o1();Lr();Mi();Xc();Gt();et();Vt();kl();s_e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},a_e=function(i,e){return function(t,n){e(t,n,i)}},_v=class extends vv{constructor(e){super(),this.editorService=e,this.onDidActiveTextEditorControlChange=li.None}get activeTextEditorControl(){return Un(this.editorService.getFocusedCodeEditor())}};_v=s_e([a_e(0,ei)],_v);bv=class i extends se{constructor(){super({id:i.ID,label:i3.gotoLineActionLabel,alias:"Go to Line/Column...",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:2085,mac:{primary:293},weight:100}})}run(e){e.get(lr).quickAccess.show(_v.PREFIX)}};bv.ID="editor.action.gotoLine";X(bv);Mr.as(Ta.Quickaccess).registerQuickAccessProvider({ctor:_v,prefix:_v.PREFIX,helpEntries:[{description:i3.gotoLineActionLabel,commandId:bv.ID}]})});function E9(i,e,t=0,n=0){let r=e;return r.values&&r.values.length>1?l_e(i,r.values,t,n):mQ(i,e,t,n)}function l_e(i,e,t,n){let r=0,o=[];for(let s of e){let[a,l]=mQ(i,s,t,n);if(typeof a!="number")return pQ;r+=a,o.push(...l)}return[r,c_e(o)]}function mQ(i,e,t,n){let r=P_(e.original,e.originalLowercase,t,i,i.toLowerCase(),n,{firstMatchCanBeWeak:!0,boostFullMatch:!0});return r?[r[0],ru(r)]:pQ}function c_e(i){let e=i.sort((r,o)=>r.start-o.start),t=[],n;for(let r of e)!n||!d_e(n,r)?(n=r,t.push(r)):(n.start=Math.min(n.start,r.start),n.end=Math.max(n.end,r.end));return t}function d_e(i,e){return!(i.end=0,s=hQ(i),a,l=i.split(gQ);if(l.length>1)for(let c of l){let d=hQ(c),{pathNormalized:u,normalized:h,normalizedLowercase:p}=fQ(c);h&&(a||(a=[]),a.push({original:c,originalLowercase:c.toLowerCase(),pathNormalized:u,normalized:h,normalizedLowercase:p,expectContiguousMatch:d}))}return{original:i,originalLowercase:e,pathNormalized:t,normalized:n,normalizedLowercase:r,values:a,containsPathSeparator:o,expectContiguousMatch:s}}function fQ(i){let e;Nc?e=i.replace(/\//g,__):e=i.replace(/\\/g,__);let t=SR(e).replace(/\s|"/g,"");return{pathNormalized:e,normalized:t,normalizedLowercase:t.toLowerCase()}}function TL(i){return Array.isArray(i)?x9(i.map(e=>e.original).join(gQ)):x9(i.original)}var pQ,fft,gQ,vQ=M(()=>{Cl();cR();nr();wi();pQ=[void 0,[]];fft=Object.freeze({score:0});gQ=" "});var u_e,_Q,yv,Go,kL,IL,bQ=M(()=>{Dt();gi();or();Kr();vQ();Ce();wi();qe();br();av();xL();Re();xt();oi();u_e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},_Q=function(i,e){return function(t,n){e(t,n,i)}},yv=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Go=class AL extends Jp{constructor(e,t,n=Object.create(null)){super(n),this._languageFeaturesService=e,this._outlineModelService=t,this.options=n,this.options.canAcceptInBackground=!0}provideWithoutTextEditor(e){return this.provideLabelPick(e,v("cannotRunGotoSymbolWithoutEditor","To go to a symbol, first open a text editor with symbol information.")),oe.None}provideWithTextEditor(e,t,n){let r=e.editor,o=this.getModel(r);return o?this._languageFeaturesService.documentSymbolProvider.has(o)?this.doProvideWithEditorSymbols(e,o,t,n):this.doProvideWithoutEditorSymbols(e,o,t,n):oe.None}doProvideWithoutEditorSymbols(e,t,n,r){let o=new re;return this.provideLabelPick(n,v("cannotRunGotoSymbolWithoutSymbolProvider","The active text editor does not provide symbol information.")),yv(this,void 0,void 0,function*(){!(yield this.waitForLanguageSymbolRegistry(t,o))||r.isCancellationRequested||o.add(this.doProvideWithEditorSymbols(e,t,n,r))}),o}provideLabelPick(e,t){e.items=[{label:t,index:0,kind:14}],e.ariaLabel=t}waitForLanguageSymbolRegistry(e,t){return yv(this,void 0,void 0,function*(){if(this._languageFeaturesService.documentSymbolProvider.has(e))return!0;let n=new fO,r=t.add(this._languageFeaturesService.documentSymbolProvider.onDidChange(()=>{this._languageFeaturesService.documentSymbolProvider.has(e)&&(r.dispose(),n.complete(!0))}));return t.add(Ft(()=>n.complete(!1))),n.p})}doProvideWithEditorSymbols(e,t,n,r){var o;let s=e.editor,a=new re;a.add(n.onDidAccept(u=>{let[h]=n.selectedItems;h&&h.range&&(this.gotoLocation(e,{range:h.range.selection,keyMods:n.keyMods,preserveFocus:u.inBackground}),u.inBackground||n.hide())})),a.add(n.onDidTriggerItemButton(({item:u})=>{u&&u.range&&(this.gotoLocation(e,{range:u.range.selection,keyMods:n.keyMods,forceSideBySide:!0}),n.hide())}));let l=this.getDocumentSymbols(t,r),c,d=u=>yv(this,void 0,void 0,function*(){c==null||c.dispose(!0),n.busy=!1,c=new Ri(r),n.busy=!0;try{let h=x9(n.value.substr(AL.PREFIX.length).trim()),p=yield this.doGetSymbolPicks(l,h,void 0,c.token);if(r.isCancellationRequested)return;if(p.length>0){if(n.items=p,u&&h.original.length===0){let m=jR(p,g=>!!(g.type!=="separator"&&g.range&&P.containsPosition(g.range.decoration,u)));m&&(n.activeItems=[m])}}else h.original.length>0?this.provideLabelPick(n,v("noMatchingSymbolResults","No matching editor symbols")):this.provideLabelPick(n,v("noSymbolResults","No editor symbols"))}finally{r.isCancellationRequested||(n.busy=!1)}});return a.add(n.onDidChangeValue(()=>d(void 0))),d((o=s.getSelection())===null||o===void 0?void 0:o.getPosition()),a.add(n.onDidChangeActive(()=>{let[u]=n.activeItems;u&&u.range&&(s.revealRangeInCenter(u.range.selection,0),this.addDecorations(s,u.range.decoration))})),a}doGetSymbolPicks(e,t,n,r){var o,s;return yv(this,void 0,void 0,function*(){let a=yield e;if(r.isCancellationRequested)return[];let l=t.original.indexOf(AL.SCOPE_PREFIX)===0,c=l?1:0,d,u;t.values&&t.values.length>1?(d=TL(t.values[0]),u=TL(t.values.slice(1))):d=t;let h,p=(s=(o=this.options)===null||o===void 0?void 0:o.openSideBySideDirection)===null||s===void 0?void 0:s.call(o);p&&(h=[{iconClass:p==="right"?gt.asClassName(ct.splitHorizontal):gt.asClassName(ct.splitVertical),tooltip:p==="right"?v("openToSide","Open to the Side"):v("openToBottom","Open to the Bottom")}]);let m=[];for(let S=0;Sc){let Xe=!1;if(d!==t&&([z,J]=E9(A,Object.assign(Object.assign({},t),{values:void 0}),c,B),typeof z=="number"&&(Xe=!0)),typeof z!="number"&&([z,J]=E9(A,d,c,B),typeof z!="number"))continue;if(!Xe&&u){if(j&&u.original.length>0&&([ae,Le]=E9(j,u)),typeof ae!="number")continue;typeof z=="number"&&(z+=ae)}}let he=k.tags&&k.tags.indexOf(1)>=0;m.push({index:S,kind:k.kind,score:z,label:A,ariaLabel:N,description:j,highlights:he?void 0:{label:J,description:Le},range:{selection:P.collapseToStart(k.selectionRange),decoration:k.range},strikethrough:he,buttons:h})}let g=m.sort((S,k)=>l?this.compareByKindAndScore(S,k):this.compareByScore(S,k)),b=[];if(l){let A=function(){k&&typeof S=="number"&&N>0&&(k.label=Mo(IL[S]||kL,N))},S,k,N=0;for(let B of g)S!==B.kind?(A(),S=B.kind,N=1,k={type:"separator"},b.push(k)):N++,b.push(B);A()}else g.length>0&&(b=[{label:v("symbols","symbols ({0})",m.length),type:"separator"},...g]);return b})}compareByScore(e,t){if(typeof e.score!="number"&&typeof t.score=="number")return 1;if(typeof e.score=="number"&&typeof t.score!="number")return-1;if(typeof e.score=="number"&&typeof t.score=="number"){if(e.score>t.score)return-1;if(e.scoret.index?1:0}compareByKindAndScore(e,t){let n=IL[e.kind]||kL,r=IL[t.kind]||kL,o=n.localeCompare(r);return o===0?this.compareByScore(e,t):o}getDocumentSymbols(e,t){return yv(this,void 0,void 0,function*(){let n=yield this._outlineModelService.getOrCreate(e,t);return t.isCancellationRequested?[]:n.asListOfDocumentSymbols()})}};Go.PREFIX="@";Go.SCOPE_PREFIX=":";Go.PREFIX_BY_CATEGORY=`${Go.PREFIX}${Go.SCOPE_PREFIX}`;Go=u_e([_Q(0,be),_Q(1,Ch)],Go);kL=v("property","properties ({0})"),IL={5:v("method","methods ({0})"),11:v("function","functions ({0})"),8:v("_constructor","constructors ({0})"),12:v("variable","variables ({0})"),4:v("class","classes ({0})"),22:v("struct","structs ({0})"),23:v("event","events ({0})"),24:v("operator","operators ({0})"),10:v("interface","interfaces ({0})"),2:v("namespace","namespaces ({0})"),3:v("package","packages ({0})"),25:v("typeParameter","type parameters ({0})"),1:v("modules","modules ({0})"),6:v("property","properties ({0})"),9:v("enum","enumerations ({0})"),21:v("enumMember","enumeration members ({0})"),14:v("string","strings ({0})"),0:v("file","files ({0})"),17:v("array","arrays ({0})"),15:v("number","numbers ({0})"),16:v("boolean","booleans ({0})"),18:v("object","objects ({0})"),19:v("key","keys ({0})"),7:v("field","fields ({0})"),13:v("constant","constants ({0})")}});var h_e,LL,ML,Cv,DL=M(()=>{d0();V5();bQ();Bc();o1();Lr();Mi();Xc();Gt();et();Vt();kl();av();xt();h_e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},LL=function(i,e){return function(t,n){e(t,n,i)}},ML=class extends Go{constructor(e,t,n){super(t,n),this.editorService=e,this.onDidActiveTextEditorControlChange=li.None}get activeTextEditorControl(){return Un(this.editorService.getFocusedCodeEditor())}};ML=h_e([LL(0,ei),LL(1,be),LL(2,Ch)],ML);Cv=class i extends se{constructor(){super({id:i.ID,label:Ib.quickOutlineActionLabel,alias:"Go to Symbol...",precondition:O.hasDocumentSymbolProvider,kbOpts:{kbExpr:O.focus,primary:3117,weight:100},contextMenuOpts:{group:"navigation",order:3}})}run(e){e.get(lr).quickAccess.show(Go.PREFIX,{itemActivation:IP.NONE})}};Cv.ID="editor.action.quickOutline";X(Cv);Mr.as(Ta.Quickaccess).registerQuickAccessProvider({ctor:ML,prefix:Go.PREFIX,helpEntries:[{description:Ib.quickOutlineActionLabel,prefix:Go.PREFIX,commandId:Cv.ID},{description:Ib.quickOutlineByCategoryActionLabel,prefix:Go.PREFIX_BY_CATEGORY}]})});function NL(i,e){return e&&(i.stack||i.stacktrace)?v("stackTrace.format","{0}: {1}",CQ(i),yQ(i.stack)||yQ(i.stacktrace)):CQ(i)}function yQ(i){return Array.isArray(i)?i.join(` +`):i}function CQ(i){return i.code==="ERR_UNC_HOST_NOT_ALLOWED"?`${i.message}. Please update the 'security.allowedUNCHosts' setting if you want to allow this host.`:typeof i.code=="string"&&typeof i.errno=="number"&&typeof i.syscall=="string"?v("nodeExceptionMessage","A system error occurred ({0})",i.message):i.message||v("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}function RL(i=null,e=!1){if(!i)return v("error.defaultMessage","An unknown error occurred. Please consult the log for more details.");if(Array.isArray(i)){let t=vr(i),n=RL(t[0],e);return t.length>1?v("error.moreErrors","{0} ({1} errors in total)",n,t.length):n}if(m_(i))return i;if(i.detail){let t=i.detail;if(t.error)return NL(t.error,e);if(t.exception)return NL(t.exception,e)}return i.stack?NL(i,e):i.message?i.message:v("error.defaultMessage","An unknown error occurred. Please consult the log for more details.")}var SQ=M(()=>{oi();Mi();Re()});function OL(i){let e=i;return Array.isArray(e.items)}function wQ(i){let e=i;return!!e.picks&&e.additionalPicks instanceof Promise}var Sv,Zp,T9,xQ=M(()=>{Dt();gi();Ce();Mi();Sv=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};(function(i){i[i.NO_ACTION=0]="NO_ACTION",i[i.CLOSE_PICKER=1]="CLOSE_PICKER",i[i.REFRESH_PICKER=2]="REFRESH_PICKER",i[i.REMOVE_ITEM=3]="REMOVE_ITEM"})(Zp||(Zp={}));T9=class extends oe{constructor(e,t){super(),this.prefix=e,this.options=t}provide(e,t,n){var r;let o=new re;e.canAcceptInBackground=!!(!((r=this.options)===null||r===void 0)&&r.canAcceptInBackground),e.matchOnLabel=e.matchOnDescription=e.matchOnDetail=e.sortByLabel=!1;let s,a=o.add(new Hi),l=()=>Sv(this,void 0,void 0,function*(){let c=a.value=new re;s==null||s.dispose(!0),e.busy=!1,s=new Ri(t);let d=s.token,u=e.value.substr(this.prefix.length).trim(),h=this._getPicks(u,c,d,n),p=(g,b)=>{var S;let k,N;if(OL(g)?(k=g.items,N=g.active):k=g,k.length===0){if(b)return!1;(u.length>0||e.hideInput)&&(!((S=this.options)===null||S===void 0)&&S.noResultsPick)&&(oR(this.options.noResultsPick)?k=[this.options.noResultsPick(u)]:k=[this.options.noResultsPick])}return e.items=k,N&&(e.activeItems=[N]),!0},m=g=>Sv(this,void 0,void 0,function*(){let b=!1,S=!1;yield Promise.all([(()=>Sv(this,void 0,void 0,function*(){typeof g.mergeDelay=="number"&&(yield of(g.mergeDelay),d.isCancellationRequested)||S||(b=p(g.picks,!0))}))(),(()=>Sv(this,void 0,void 0,function*(){e.busy=!0;try{let k=yield g.additionalPicks;if(d.isCancellationRequested)return;let N,A;OL(g.picks)?(N=g.picks.items,A=g.picks.active):N=g.picks;let B,j;if(OL(k)?(B=k.items,j=k.active):B=k,B.length>0||!b){let z;if(!A&&!j){let J=e.activeItems[0];J&&N.indexOf(J)!==-1&&(z=J)}p({items:[...N,...B],active:A||j||z})}}finally{d.isCancellationRequested||(e.busy=!1),S=!0}}))()])});if(h!==null)if(wQ(h))yield m(h);else if(!(h instanceof Promise))p(h);else{e.busy=!0;try{let g=yield h;if(d.isCancellationRequested)return;wQ(g)?yield m(g):p(g)}finally{d.isCancellationRequested||(e.busy=!1)}}});return o.add(e.onDidChangeValue(()=>l())),l(),o.add(e.onDidAccept(c=>{let[d]=e.selectedItems;typeof(d==null?void 0:d.accept)=="function"&&(c.inBackground||e.hide(),d.accept(e.keyMods,c))})),o.add(e.onDidTriggerItemButton(({button:c,item:d})=>Sv(this,void 0,void 0,function*(){var u,h;if(typeof d.trigger=="function"){let p=(h=(u=d.buttons)===null||u===void 0?void 0:u.indexOf(c))!==null&&h!==void 0?h:-1;if(p>=0){let m=d.trigger(p,e.keyMods),g=typeof m=="number"?m:yield m;if(t.isCancellationRequested)return;switch(g){case Zp.NO_ACTION:break;case Zp.CLOSE_PICKER:e.hide();break;case Zp.REFRESH_PICKER:l();break;case Zp.REMOVE_ITEM:{let b=e.items.indexOf(d);if(b!==-1){let S=e.items.slice(),k=S.splice(b,1),N=e.activeItems.filter(B=>B!==k[0]),A=e.keepScrollPosition;e.keepScrollPosition=!0,e.items=S,N&&(e.activeItems=N),e.keepScrollPosition=A}break}}}}}))),o}}});var EQ,Ih,PL,em,Ah,TQ=M(()=>{SQ();At();Cl();Ce();tf();Mi();Re();zi();Wn();t3();Et();Gn();xQ();cu();Hc();EQ=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},Ih=function(i,e){return function(t,n){e(t,n,i)}},PL=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},em=class k9 extends T9{constructor(e,t,n,r,o,s){super(k9.PREFIX,e),this.instantiationService=t,this.keybindingService=n,this.commandService=r,this.telemetryService=o,this.dialogService=s,this.commandsHistory=this._register(this.instantiationService.createInstance(Ah)),this.options=e}_getPicks(e,t,n,r){var o,s;return PL(this,void 0,void 0,function*(){let a=yield this.getCommandPicks(n);if(n.isCancellationRequested)return[];let l=[];for(let p of a){let m=Un(k9.WORD_FILTER(e,p.label)),g=p.commandAlias?Un(k9.WORD_FILTER(e,p.commandAlias)):void 0;m||g?(p.highlights={label:m,detail:this.options.showAlias?g:void 0},l.push(p)):e===p.commandId&&l.push(p)}let c=new Map;for(let p of l){let m=c.get(p.label);m?(p.description=p.commandId,m.description=m.commandId):c.set(p.label,p)}l.sort((p,m)=>{let g=this.commandsHistory.peek(p.commandId),b=this.commandsHistory.peek(m.commandId);if(g&&b)return g>b?-1:1;if(g)return-1;if(b)return 1;if(this.options.suggestedCommandIds){let S=this.options.suggestedCommandIds.has(p.commandId),k=this.options.suggestedCommandIds.has(m.commandId);if(S&&k)return 0;if(S)return-1;if(k)return 1}return p.label.localeCompare(m.label)});let d=[],u=!1,h=!!this.options.suggestedCommandIds;for(let p=0;pPL(this,void 0,void 0,function*(){let p=yield this.getAdditionalCommandPicks(a,l,e,n);return n.isCancellationRequested?[]:p.map(m=>this.toCommandPick(m,r))}))()}:d})}toCommandPick(e,t){if(e.type==="separator")return e;let n=this.keybindingService.lookupKeybinding(e.commandId),r=n?v("commandPickAriaLabelWithKeybinding","{0}, {1}",e.label,n.getAriaLabel()):e.label;return Object.assign(Object.assign({},e),{ariaLabel:r,detail:this.options.showAlias&&e.commandAlias!==e.label?e.commandAlias:void 0,keybinding:n,accept:()=>PL(this,void 0,void 0,function*(){var o;this.commandsHistory.push(e.commandId),this.telemetryService.publicLog2("workbenchActionExecuted",{id:e.commandId,from:(o=t==null?void 0:t.from)!==null&&o!==void 0?o:"quick open"});try{yield this.commandService.executeCommand(e.commandId)}catch(s){Zo(s)||this.dialogService.error(v("canNotRun","Command '{0}' resulted in an error",e.label),RL(s))}})})}};em.PREFIX=">";em.WORD_FILTER=JR(ZR,iO,eO);em=EQ([Ih(1,Be),Ih(2,Ht),Ih(3,ui),Ih(4,Dr),Ih(5,bf)],em);Ah=class _n extends oe{constructor(e,t){super(),this.storageService=e,this.configurationService=t,this.configuredCommandsHistoryLength=0,this.updateConfiguration(),this.load(),this.registerListeners()}registerListeners(){this._register(this.configurationService.onDidChangeConfiguration(e=>this.updateConfiguration(e)))}updateConfiguration(e){e&&!e.affectsConfiguration("workbench.commandPalette.history")||(this.configuredCommandsHistoryLength=_n.getConfiguredCommandHistoryLength(this.configurationService),_n.cache&&_n.cache.limit!==this.configuredCommandsHistoryLength&&(_n.cache.limit=this.configuredCommandsHistoryLength,_n.saveState(this.storageService)))}load(){let e=this.storageService.get(_n.PREF_KEY_CACHE,0),t;if(e)try{t=JSON.parse(e)}catch(r){}let n=_n.cache=new fa(this.configuredCommandsHistoryLength,1);if(t){let r;t.usesLRU?r=t.entries:r=t.entries.sort((o,s)=>o.value-s.value),r.forEach(o=>n.set(o.key,o.value))}_n.counter=this.storageService.getNumber(_n.PREF_KEY_COUNTER,0,_n.counter)}push(e){_n.cache&&(_n.cache.set(e,_n.counter++),_n.saveState(this.storageService))}peek(e){var t;return(t=_n.cache)===null||t===void 0?void 0:t.peek(e)}static saveState(e){if(!_n.cache)return;let t={usesLRU:!0,entries:[]};_n.cache.forEach((n,r)=>t.entries.push({key:r,value:n})),e.store(_n.PREF_KEY_CACHE,JSON.stringify(t),0,0),e.store(_n.PREF_KEY_COUNTER,_n.counter,0,0)}static getConfiguredCommandHistoryLength(e){var t,n;let o=(n=(t=e.getValue().workbench)===null||t===void 0?void 0:t.commandPalette)===null||n===void 0?void 0:n.history;return typeof o=="number"?o:_n.DEFAULT_COMMANDS_HISTORY_LENGTH}};Ah.DEFAULT_COMMANDS_HISTORY_LENGTH=50;Ah.PREF_KEY_CACHE="commandPalette.mru.cache";Ah.PREF_KEY_COUNTER="commandPalette.mru.counter";Ah.counter=1;Ah=EQ([Ih(0,$r),Ih(1,Mt)],Ah)});var I9,kQ=M(()=>{toe();TQ();I9=class extends em{constructor(e,t,n,r,o,s){super(e,t,n,r,o,s)}getCodeEditorCommandPicks(){let e=this.activeTextEditorControl;if(!e)return[];let t=[];for(let n of e.getSupportedActions())t.push({commandId:n.id,commandAlias:n.alias,label:oO(n.label)||n.id});return t}}});var f_e,tm,IQ,wv,xv,FL=M(()=>{Bc();o1();Xc();Lr();kQ();Mi();Et();Gn();zi();Hc();t3();et();Vt();kl();f_e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},tm=function(i,e){return function(t,n){e(t,n,i)}},IQ=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},wv=class extends I9{get activeTextEditorControl(){return Un(this.codeEditorService.getFocusedCodeEditor())}constructor(e,t,n,r,o,s){super({showAlias:!1},e,n,r,o,s),this.codeEditorService=t}getCommandPicks(){return IQ(this,void 0,void 0,function*(){return this.getCodeEditorCommandPicks()})}hasAdditionalCommandPicks(){return!1}getAdditionalCommandPicks(){return IQ(this,void 0,void 0,function*(){return[]})}};wv=f_e([tm(0,Be),tm(1,ei),tm(2,Ht),tm(3,ui),tm(4,Dr),tm(5,bf)],wv);xv=class i extends se{constructor(){super({id:i.ID,label:n3.quickCommandActionLabel,alias:"Command Palette",precondition:void 0,kbOpts:{kbExpr:O.focus,primary:59,weight:100},contextMenuOpts:{group:"z_commands",order:1}})}run(e){e.get(lr).quickAccess.show(wv.PREFIX)}};xv.ID="editor.action.quickCommand";X(xv);Mr.as(Ta.Quickaccess).registerQuickAccessProvider({ctor:wv,prefix:wv.PREFIX,helpEntries:[{description:n3.quickCommandHelp,commandId:xv.ID}]})});var p_e,im,BL,HL=M(()=>{et();Lr();ET();Wn();pt();Et();Ro();cu();p_e=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},im=function(i,e){return function(t,n){e(t,n,i)}},BL=class extends ol{constructor(e,t,n,r,o,s,a){super(!0,e,t,n,r,o,s,a)}};BL=p_e([im(1,Ke),im(2,ei),im(3,Ei),im(4,Be),im(5,$r),im(6,Mt)],BL);Ae(ol.ID,BL,4)});function w_e(){return import("./jsonMode-N2NZ4OCG.js")}var m_e,g_e,v_e,__e,AQ,b_e,Ev,y_e,C_e,S_e,LQ,zL=M(()=>{Os();Os();m_e=Object.defineProperty,g_e=Object.getOwnPropertyDescriptor,v_e=Object.getOwnPropertyNames,__e=Object.prototype.hasOwnProperty,AQ=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of v_e(e))!__e.call(i,r)&&r!==t&&m_e(i,r,{get:()=>e[r],enumerable:!(n=g_e(e,r))||n.enumerable});return i},b_e=(i,e,t)=>(AQ(i,e,"default"),t&&AQ(t,e,"default")),Ev={};b_e(Ev,us);y_e=class{constructor(i,e,t){Cn(this,"_onDidChange",new Ev.Emitter);Cn(this,"_diagnosticsOptions");Cn(this,"_modeConfiguration");Cn(this,"_languageId");this._languageId=i,this.setDiagnosticsOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this._diagnosticsOptions}setDiagnosticsOptions(i){this._diagnosticsOptions=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},C_e={validate:!0,allowComments:!0,schemas:[],enableSchemaRequest:!1,schemaRequest:"warning",schemaValidation:"warning",comments:"error",trailingCommas:"error"},S_e={documentFormattingEdits:!0,documentRangeFormattingEdits:!0,completionItems:!0,hovers:!0,documentSymbols:!0,tokens:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0},LQ=new y_e("json",C_e,S_e);Ev.languages.json={jsonDefaults:LQ};Ev.languages.register({id:"json",extensions:[".json",".bowerrc",".jshintrc",".jscsrc",".eslintrc",".babelrc",".har"],aliases:["JSON","json"],mimetypes:["application/json"]});Ev.languages.onLanguage("json",()=>{w_e().then(i=>i.setupMode(LQ))})});function Z(i){let e=i.id;DQ[e]=i,Tv.languages.register(i);let t=NQ.getOrCreate(e);Tv.languages.registerTokensProviderFactory(e,{create:async()=>(await t.load()).language}),Tv.languages.onLanguageEncountered(e,async()=>{let n=await t.load();Tv.languages.setLanguageConfiguration(e,n.conf)})}var x_e,E_e,T_e,k_e,MQ,I_e,Tv,DQ,UL,NQ,je=M(()=>{Os();x_e=Object.defineProperty,E_e=Object.getOwnPropertyDescriptor,T_e=Object.getOwnPropertyNames,k_e=Object.prototype.hasOwnProperty,MQ=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of T_e(e))!k_e.call(i,r)&&r!==t&&x_e(i,r,{get:()=>e[r],enumerable:!(n=E_e(e,r))||n.enumerable});return i},I_e=(i,e,t)=>(MQ(i,e,"default"),t&&MQ(t,e,"default")),Tv={};I_e(Tv,us);DQ={},UL={},NQ=class{constructor(i){Cn(this,"_languageId");Cn(this,"_loadingTriggered");Cn(this,"_lazyLoadPromise");Cn(this,"_lazyLoadPromiseResolve");Cn(this,"_lazyLoadPromiseReject");this._languageId=i,this._loadingTriggered=!1,this._lazyLoadPromise=new Promise((e,t)=>{this._lazyLoadPromiseResolve=e,this._lazyLoadPromiseReject=t})}static getOrCreate(i){return UL[i]||(UL[i]=new NQ(i)),UL[i]}load(){return this._loadingTriggered||(this._loadingTriggered=!0,DQ[this._languageId].loader().then(i=>this._lazyLoadPromiseResolve(i),i=>this._lazyLoadPromiseReject(i))),this._lazyLoadPromise}}});var jL=M(()=>{je();Z({id:"elixir",extensions:[".ex",".exs"],aliases:["Elixir","elixir","ex"],loader:()=>import("./elixir-JBWZGNRS.js")})});var WL=M(()=>{je();Z({id:"markdown",extensions:[".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mdtxt",".mdtext"],aliases:["Markdown","markdown"],loader:()=>import("./markdown-VWG2RHDG.js")})});var VL=M(()=>{je();Z({id:"javascript",extensions:[".js",".es6",".jsx",".mjs",".cjs"],firstLine:"^#!.*\\bnode",filenames:["jakefile"],aliases:["JavaScript","javascript","js"],mimetypes:["text/javascript"],loader:()=>import("./javascript-34SBWLFP.js")})});var KL=M(()=>{je();Z({id:"sql",extensions:[".sql"],aliases:["SQL"],loader:()=>import("./sql-6HLO5RC2.js")})});var qL=M(()=>{je();Z({id:"css",extensions:[".css"],aliases:["CSS","css"],mimetypes:["text/css"],loader:()=>import("./css-F6V6XVLU.js")})});var GL=M(()=>{je();Z({id:"html",extensions:[".html",".htm",".shtml",".xhtml",".mdoc",".jsp",".asp",".aspx",".jshtm"],aliases:["HTML","htm","html","xhtml"],mimetypes:["text/html","text/x-jshtm","text/template","text/ng-template"],loader:()=>import("./html-E7EYRCOI.js")})});var $L=M(()=>{je();Z({id:"xml",extensions:[".xml",".xsd",".dtd",".ascx",".csproj",".config",".props",".targets",".wxi",".wxl",".wxs",".xaml",".svg",".svgz",".opf",".xslt",".xsl"],firstLine:"(\\<\\?xml.*)|(\\import("./xml-HBWAVTVD.js")})});var YL=M(()=>{je();Z({id:"dockerfile",extensions:[".dockerfile"],filenames:["Dockerfile"],aliases:["Dockerfile"],loader:()=>import("./dockerfile-WFOPSGAE.js")})});var VQ=Ze(()=>{});var L9=Ze((A9,KQ)=>{(function(i,e){typeof A9=="object"?KQ.exports=A9=e():typeof define=="function"&&define.amd?define([],e):i.CryptoJS=e()})(A9,function(){var i=i||function(e,t){var n;if(typeof window!="undefined"&&window.crypto&&(n=window.crypto),typeof self!="undefined"&&self.crypto&&(n=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(n=globalThis.crypto),!n&&typeof window!="undefined"&&window.msCrypto&&(n=window.msCrypto),!n&&typeof global!="undefined"&&global.crypto&&(n=global.crypto),!n&&typeof Yd=="function")try{n=VQ()}catch(S){}var r=function(){if(n){if(typeof n.getRandomValues=="function")try{return n.getRandomValues(new Uint32Array(1))[0]}catch(S){}if(typeof n.randomBytes=="function")try{return n.randomBytes(4).readInt32LE()}catch(S){}}throw new Error("Native crypto module could not be used to get secure random number.")},o=Object.create||function(){function S(){}return function(k){var N;return S.prototype=k,N=new S,S.prototype=null,N}}(),s={},a=s.lib={},l=a.Base=function(){return{extend:function(S){var k=o(this);return S&&k.mixIn(S),(!k.hasOwnProperty("init")||this.init===k.init)&&(k.init=function(){k.$super.init.apply(this,arguments)}),k.init.prototype=k,k.$super=this,k},create:function(){var S=this.extend();return S.init.apply(S,arguments),S},init:function(){},mixIn:function(S){for(var k in S)S.hasOwnProperty(k)&&(this[k]=S[k]);S.hasOwnProperty("toString")&&(this.toString=S.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),c=a.WordArray=l.extend({init:function(S,k){S=this.words=S||[],k!=t?this.sigBytes=k:this.sigBytes=S.length*4},toString:function(S){return(S||u).stringify(this)},concat:function(S){var k=this.words,N=S.words,A=this.sigBytes,B=S.sigBytes;if(this.clamp(),A%4)for(var j=0;j>>2]>>>24-j%4*8&255;k[A+j>>>2]|=z<<24-(A+j)%4*8}else for(var J=0;J>>2]=N[J>>>2];return this.sigBytes+=B,this},clamp:function(){var S=this.words,k=this.sigBytes;S[k>>>2]&=4294967295<<32-k%4*8,S.length=e.ceil(k/4)},clone:function(){var S=l.clone.call(this);return S.words=this.words.slice(0),S},random:function(S){for(var k=[],N=0;N>>2]>>>24-B%4*8&255;A.push((j>>>4).toString(16)),A.push((j&15).toString(16))}return A.join("")},parse:function(S){for(var k=S.length,N=[],A=0;A>>3]|=parseInt(S.substr(A,2),16)<<24-A%8*4;return new c.init(N,k/2)}},h=d.Latin1={stringify:function(S){for(var k=S.words,N=S.sigBytes,A=[],B=0;B>>2]>>>24-B%4*8&255;A.push(String.fromCharCode(j))}return A.join("")},parse:function(S){for(var k=S.length,N=[],A=0;A>>2]|=(S.charCodeAt(A)&255)<<24-A%4*8;return new c.init(N,k)}},p=d.Utf8={stringify:function(S){try{return decodeURIComponent(escape(h.stringify(S)))}catch(k){throw new Error("Malformed UTF-8 data")}},parse:function(S){return h.parse(unescape(encodeURIComponent(S)))}},m=a.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new c.init,this._nDataBytes=0},_append:function(S){typeof S=="string"&&(S=p.parse(S)),this._data.concat(S),this._nDataBytes+=S.sigBytes},_process:function(S){var k,N=this._data,A=N.words,B=N.sigBytes,j=this.blockSize,z=j*4,J=B/z;S?J=e.ceil(J):J=e.max((J|0)-this._minBufferSize,0);var ae=J*j,Le=e.min(ae*4,B);if(ae){for(var he=0;he{(function(i,e){typeof M9=="object"?qQ.exports=M9=e(L9()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(M9,function(i){return function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,s=t.algo,a=[];(function(){for(var p=0;p<64;p++)a[p]=e.abs(e.sin(p+1))*4294967296|0})();var l=s.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(p,m){for(var g=0;g<16;g++){var b=m+g,S=p[b];p[b]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}var k=this._hash.words,N=p[m+0],A=p[m+1],B=p[m+2],j=p[m+3],z=p[m+4],J=p[m+5],ae=p[m+6],Le=p[m+7],he=p[m+8],Xe=p[m+9],at=p[m+10],ot=p[m+11],Nt=p[m+12],ee=p[m+13],ye=p[m+14],_e=p[m+15],$=k[0],Q=k[1],ne=k[2],de=k[3];$=c($,Q,ne,de,N,7,a[0]),de=c(de,$,Q,ne,A,12,a[1]),ne=c(ne,de,$,Q,B,17,a[2]),Q=c(Q,ne,de,$,j,22,a[3]),$=c($,Q,ne,de,z,7,a[4]),de=c(de,$,Q,ne,J,12,a[5]),ne=c(ne,de,$,Q,ae,17,a[6]),Q=c(Q,ne,de,$,Le,22,a[7]),$=c($,Q,ne,de,he,7,a[8]),de=c(de,$,Q,ne,Xe,12,a[9]),ne=c(ne,de,$,Q,at,17,a[10]),Q=c(Q,ne,de,$,ot,22,a[11]),$=c($,Q,ne,de,Nt,7,a[12]),de=c(de,$,Q,ne,ee,12,a[13]),ne=c(ne,de,$,Q,ye,17,a[14]),Q=c(Q,ne,de,$,_e,22,a[15]),$=d($,Q,ne,de,A,5,a[16]),de=d(de,$,Q,ne,ae,9,a[17]),ne=d(ne,de,$,Q,ot,14,a[18]),Q=d(Q,ne,de,$,N,20,a[19]),$=d($,Q,ne,de,J,5,a[20]),de=d(de,$,Q,ne,at,9,a[21]),ne=d(ne,de,$,Q,_e,14,a[22]),Q=d(Q,ne,de,$,z,20,a[23]),$=d($,Q,ne,de,Xe,5,a[24]),de=d(de,$,Q,ne,ye,9,a[25]),ne=d(ne,de,$,Q,j,14,a[26]),Q=d(Q,ne,de,$,he,20,a[27]),$=d($,Q,ne,de,ee,5,a[28]),de=d(de,$,Q,ne,B,9,a[29]),ne=d(ne,de,$,Q,Le,14,a[30]),Q=d(Q,ne,de,$,Nt,20,a[31]),$=u($,Q,ne,de,J,4,a[32]),de=u(de,$,Q,ne,he,11,a[33]),ne=u(ne,de,$,Q,ot,16,a[34]),Q=u(Q,ne,de,$,ye,23,a[35]),$=u($,Q,ne,de,A,4,a[36]),de=u(de,$,Q,ne,z,11,a[37]),ne=u(ne,de,$,Q,Le,16,a[38]),Q=u(Q,ne,de,$,at,23,a[39]),$=u($,Q,ne,de,ee,4,a[40]),de=u(de,$,Q,ne,N,11,a[41]),ne=u(ne,de,$,Q,j,16,a[42]),Q=u(Q,ne,de,$,ae,23,a[43]),$=u($,Q,ne,de,Xe,4,a[44]),de=u(de,$,Q,ne,Nt,11,a[45]),ne=u(ne,de,$,Q,_e,16,a[46]),Q=u(Q,ne,de,$,B,23,a[47]),$=h($,Q,ne,de,N,6,a[48]),de=h(de,$,Q,ne,Le,10,a[49]),ne=h(ne,de,$,Q,ye,15,a[50]),Q=h(Q,ne,de,$,J,21,a[51]),$=h($,Q,ne,de,Nt,6,a[52]),de=h(de,$,Q,ne,j,10,a[53]),ne=h(ne,de,$,Q,at,15,a[54]),Q=h(Q,ne,de,$,A,21,a[55]),$=h($,Q,ne,de,he,6,a[56]),de=h(de,$,Q,ne,_e,10,a[57]),ne=h(ne,de,$,Q,ae,15,a[58]),Q=h(Q,ne,de,$,ee,21,a[59]),$=h($,Q,ne,de,z,6,a[60]),de=h(de,$,Q,ne,ot,10,a[61]),ne=h(ne,de,$,Q,B,15,a[62]),Q=h(Q,ne,de,$,Xe,21,a[63]),k[0]=k[0]+$|0,k[1]=k[1]+Q|0,k[2]=k[2]+ne|0,k[3]=k[3]+de|0},_doFinalize:function(){var p=this._data,m=p.words,g=this._nDataBytes*8,b=p.sigBytes*8;m[b>>>5]|=128<<24-b%32;var S=e.floor(g/4294967296),k=g;m[(b+64>>>9<<4)+15]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,m[(b+64>>>9<<4)+14]=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,p.sigBytes=(m.length+1)*4,this._process();for(var N=this._hash,A=N.words,B=0;B<4;B++){var j=A[B];A[B]=(j<<8|j>>>24)&16711935|(j<<24|j>>>8)&4278255360}return N},clone:function(){var p=o.clone.call(this);return p._hash=this._hash.clone(),p}});function c(p,m,g,b,S,k,N){var A=p+(m&g|~m&b)+S+N;return(A<>>32-k)+m}function d(p,m,g,b,S,k,N){var A=p+(m&b|g&~b)+S+N;return(A<>>32-k)+m}function u(p,m,g,b,S,k,N){var A=p+(m^g^b)+S+N;return(A<>>32-k)+m}function h(p,m,g,b,S,k,N){var A=p+(g^(m|~b))+S+N;return(A<>>32-k)+m}t.MD5=o._createHelper(l),t.HmacMD5=o._createHmacHelper(l)}(Math),i.MD5})});var YQ=Ze((D9,$Q)=>{(function(i,e){typeof D9=="object"?$Q.exports=D9=e(L9()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(D9,function(i){return function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,s=t.algo,a=[],l=[];(function(){function u(g){for(var b=e.sqrt(g),S=2;S<=b;S++)if(!(g%S))return!1;return!0}function h(g){return(g-(g|0))*4294967296|0}for(var p=2,m=0;m<64;)u(p)&&(m<8&&(a[m]=h(e.pow(p,1/2))),l[m]=h(e.pow(p,1/3)),m++),p++})();var c=[],d=s.SHA256=o.extend({_doReset:function(){this._hash=new r.init(a.slice(0))},_doProcessBlock:function(u,h){for(var p=this._hash.words,m=p[0],g=p[1],b=p[2],S=p[3],k=p[4],N=p[5],A=p[6],B=p[7],j=0;j<64;j++){if(j<16)c[j]=u[h+j]|0;else{var z=c[j-15],J=(z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3,ae=c[j-2],Le=(ae<<15|ae>>>17)^(ae<<13|ae>>>19)^ae>>>10;c[j]=J+c[j-7]+Le+c[j-16]}var he=k&N^~k&A,Xe=m&g^m&b^g&b,at=(m<<30|m>>>2)^(m<<19|m>>>13)^(m<<10|m>>>22),ot=(k<<26|k>>>6)^(k<<21|k>>>11)^(k<<7|k>>>25),Nt=B+ot+he+l[j]+c[j],ee=at+Xe;B=A,A=N,N=k,k=S+Nt|0,S=b,b=g,g=m,m=Nt+ee|0}p[0]=p[0]+m|0,p[1]=p[1]+g|0,p[2]=p[2]+b|0,p[3]=p[3]+S|0,p[4]=p[4]+k|0,p[5]=p[5]+N|0,p[6]=p[6]+A|0,p[7]=p[7]+B|0},_doFinalize:function(){var u=this._data,h=u.words,p=this._nDataBytes*8,m=u.sigBytes*8;return h[m>>>5]|=128<<24-m%32,h[(m+64>>>9<<4)+14]=e.floor(p/4294967296),h[(m+64>>>9<<4)+15]=p,u.sigBytes=h.length*4,this._process(),this._hash},clone:function(){var u=o.clone.call(this);return u._hash=this._hash.clone(),u}});t.SHA256=o._createHelper(d),t.HmacSHA256=o._createHmacHelper(d)}(Math),i.SHA256})});var QQ=Ze((N9,XQ)=>{(function(i,e){typeof N9=="object"?XQ.exports=N9=e(L9()):typeof define=="function"&&define.amd?define(["./core"],e):e(i.CryptoJS)})(N9,function(i){return function(){var e=i,t=e.lib,n=t.WordArray,r=e.enc,o=r.Base64={stringify:function(a){var l=a.words,c=a.sigBytes,d=this._map;a.clamp();for(var u=[],h=0;h>>2]>>>24-h%4*8&255,m=l[h+1>>>2]>>>24-(h+1)%4*8&255,g=l[h+2>>>2]>>>24-(h+2)%4*8&255,b=p<<16|m<<8|g,S=0;S<4&&h+S*.75>>6*(3-S)&63));var k=d.charAt(64);if(k)for(;u.length%4;)u.push(k);return u.join("")},parse:function(a){var l=a.length,c=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var u=0;u>>6-h%4*2,g=p|m;d[u>>>2]|=g<<24-u%4*8,u++}return n.create(d,u)}}(),i.enc.Base64})});var LJ=Ze(q9=>{"use strict";Object.defineProperty(q9,"__esModule",{value:!0});q9.default=void 0;var Li=(Os(),Kh(us)),sbe=(bw(),Kh(Zre));function abe(i,e){return ube(i)||dbe(i,e)||cbe(i,e)||lbe()}function lbe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cbe(i,e){if(i){if(typeof i=="string")return SJ(i,e);var t=Object.prototype.toString.call(i).slice(8,-1);if(t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set")return Array.from(i);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return SJ(i,e)}}function SJ(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,n=new Array(e);t"\x80"&&(i.toUpperCase()!=i.toLowerCase()||pbe.test(i))}function K9(i,e){if(!(this instanceof K9))return new K9(i,e);this.line=i,this.ch=e}function gbe(i,e,t){i.dispatch(e,t)}function Pv(i){return function(){}}var xJ,EJ;String.prototype.normalize?(xJ=function(e){return e.normalize("NFD").toLowerCase()},EJ=function(e){return e.normalize("NFD")}):(xJ=function(e){return e.toLowerCase()},EJ=function(e){return e});var IJ=function(e,t){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0};IJ.prototype={eol:function(){return this.pos>=this.string.length},sol:function(){return this.pos==this.lineStart},peek:function(){return this.string.charAt(this.pos)||void 0},next:function(){if(this.post},eatSpace:function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},skipToEnd:function(){this.pos=this.string.length},skipTo:function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},backUp:function(e){this.pos-=e},column:function(){throw"not implemented"},indentation:function(){throw"not implemented"},match:function(e,t,n){if(typeof e=="string"){var r=function(l){return n?l.toLowerCase():l},o=this.string.substr(this.pos,e.length);if(r(o)==r(e))return t!==!1&&(this.pos+=e.length),!0}else{var s=this.string.slice(this.pos).match(e);return s&&s.index>0?null:(s&&t!==!1&&(this.pos+=s[0].length),s)}},current:function(){return this.string.slice(this.start,this.pos)},hideFirstChars:function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}}};function Ts(i){return new K9(i.lineNumber-1,i.column-1)}function er(i){return new Li.Position(i.line+1,i.ch+1)}var vbe=function(){function i(e,t,n,r){TJ(this,i),this.cm=e,this.id=t,this.lineNumber=n+1,this.column=r+1,e.marks[this.id]=this}return kJ(i,[{key:"clear",value:function(){delete this.cm.marks[this.id]}},{key:"find",value:function(){return Ts(this)}}]),i}();function AJ(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=!0,n=Li.KeyCode[i.keyCode];i.key&&(n=i.key,t=!1);var r=n,o=e;switch(i.keyCode){case Li.KeyCode.Shift:case Li.KeyCode.Meta:case Li.KeyCode.Alt:case Li.KeyCode.Ctrl:return r;case Li.KeyCode.Escape:o=!0,r="Esc";break;case Li.KeyCode.Space:o=!0;break}return n.startsWith("Key")||n.startsWith("KEY_")?r=n[n.length-1].toLowerCase():n.startsWith("Digit")?r=n.slice(5,6):n.startsWith("Numpad")?r=n.slice(6,7):n.endsWith("Arrow")?(o=!0,r=n.substring(0,n.length-5)):(n.startsWith("US_")||n.startsWith("Bracket")||!r)&&(r=i.browserEvent.key),!o&&!i.altKey&&!i.ctrlKey&&!i.metaKey?r=i.key||i.browserEvent.key:(i.altKey&&(r="Alt-".concat(r)),i.ctrlKey&&(r="Ctrl-".concat(r)),i.metaKey&&(r="Meta-".concat(r)),i.shiftKey&&(r="Shift-".concat(r))),r.length===1&&t&&(r="'".concat(r,"'")),r}var tn=function(){function i(e){TJ(this,i),_be.call(this),this.editor=e,this.state={keyMap:"vim"},this.marks={},this.$uid=0,this.disposables=[],this.listeners={},this.curOp={},this.attached=!1,this.statusBar=null,this.options={},this.addLocalListeners(),this.ctxInsert=this.editor.createContextKey("insertMode",!0)}return kJ(i,[{key:"attach",value:function(){i.keyMap.vim.attach(this)}},{key:"addLocalListeners",value:function(){this.disposables.push(this.editor.onDidChangeCursorPosition(this.handleCursorChange),this.editor.onDidChangeModelContent(this.handleChange),this.editor.onKeyDown(this.handleKeyDown))}},{key:"handleReplaceMode",value:function(t,n){var r=!1,o=t,s=this.editor.getPosition(),a=new Li.Range(s.lineNumber,s.column,s.lineNumber,s.column+1),l=!0;if(t.startsWith("'"))o=t[1];else if(o==="Enter")o=` +`;else if(o==="Backspace"){var c=this.replaceStack.pop();if(!c)return;r=!0,o=c,a=new Li.Range(s.lineNumber,s.column,s.lineNumber,s.column-1)}else return;n.preventDefault(),n.stopPropagation(),this.replaceStack||(this.replaceStack=[]),r||this.replaceStack.push(this.editor.getModel().getValueInRange(a)),this.editor.executeEdits("vim",[{text:o,range:a,forceMoveMarkers:l}]),r&&this.editor.setPosition(a.getStartPosition())}},{key:"setOption",value:function(t,n){this.state[t]=n,t==="theme"&&Li.editor.setTheme(n)}},{key:"getConfiguration",value:function(){var t=this.editor,n=fbe;return typeof t.getConfiguration=="function"?t.getConfiguration():("EditorOption"in Li.editor&&(n=Li.editor.EditorOption),{readOnly:t.getOption(n.readOnly),viewInfo:{cursorWidth:t.getOption(n.cursorWidth)},fontInfo:t.getOption(n.fontInfo)})}},{key:"getOption",value:function(t){return t==="readOnly"?this.getConfiguration().readOnly:t==="firstLineNumber"?this.firstLine()+1:t==="indentWithTabs"?!this.editor.getModel().getOptions().insertSpaces:typeof this.editor.getConfiguration=="function"?this.editor.getRawConfiguration()[t]:this.editor.getRawOptions()[t]}},{key:"dispatch",value:function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;or&&(t=r-1),this.editor.getModel().getLineContent(t+1)}},{key:"getAnchorForSelection",value:function(t){if(t.isEmpty())return t.getPosition();var n=t.getDirection();return n===Li.SelectionDirection.LTR?t.getStartPosition():t.getEndPosition()}},{key:"getHeadForSelection",value:function(t){if(t.isEmpty())return t.getPosition();var n=t.getDirection();return n===Li.SelectionDirection.LTR?t.getEndPosition():t.getStartPosition()}},{key:"getCursor",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;if(!t)return Ts(this.editor.getPosition());var n=this.editor.getSelection(),r;return n.isEmpty()?r=n.getPosition():t==="anchor"?r=this.getAnchorForSelection(n):r=this.getHeadForSelection(n),Ts(r)}},{key:"getRange",value:function(t,n){var r=er(t),o=er(n);return this.editor.getModel().getValueInRange(Li.Range.fromPositions(r,o))}},{key:"getSelection",value:function(){var t=[],n=this.editor;return n.getSelections().map(function(r){t.push(n.getModel().getValueInRange(r))}),t.join(` +`)}},{key:"replaceRange",value:function(t,n,r){var o=er(n),s=r?er(r):o;this.editor.executeEdits("vim",[{text:t,range:Li.Range.fromPositions(o,s)}]),this.pushUndoStop()}},{key:"pushUndoStop",value:function(){this.editor.pushUndoStop()}},{key:"setCursor",value:function(t,n){var r=t;fM(t)!=="object"&&(r={},r.line=t,r.ch=n);var o=this.editor.getModel().validatePosition(er(r));this.editor.setPosition(er(r)),this.editor.revealPosition(o)}},{key:"somethingSelected",value:function(){return!this.editor.getSelection().isEmpty()}},{key:"operation",value:function(t,n){return t()}},{key:"listSelections",value:function(){var t=this,n=this.editor.getSelections();return!n.length||this.inVirtualSelectionMode?[{anchor:this.getCursor("anchor"),head:this.getCursor("head")}]:n.map(function(r){var o=r.getPosition(),s=r.getStartPosition(),a=r.getEndPosition();return{anchor:t.clipPos(Ts(t.getAnchorForSelection(r))),head:t.clipPos(Ts(t.getHeadForSelection(r)))}})}},{key:"focus",value:function(){this.editor.focus()}},{key:"setSelections",value:function(t,n){var r=!!this.editor.getSelections().length,o=t.map(function(l,c){var d=l.anchor,u=l.head;return r?Li.Selection.fromPositions(er(d),er(u)):Li.Selection.fromPositions(er(u),er(d))});if(n&&o[n]&&o.push(o.splice(n,1)[0]),!!o.length){var s=o[0],a;s.getDirection()===Li.SelectionDirection.LTR?a=s.getEndPosition():a=s.getStartPosition(),this.editor.setSelections(o),this.editor.revealPosition(a)}}},{key:"setSelection",value:function(t,n){var r=Li.Range.fromPositions(er(t),er(n));this.editor.setSelection(r)}},{key:"getSelections",value:function(){var t=this.editor;return t.getSelections().map(function(n){return t.getModel().getValueInRange(n)})}},{key:"replaceSelections",value:function(t){var n=this.editor;n.getSelections().forEach(function(r,o){n.executeEdits("vim",[{range:r,text:t[o],forceMoveMarkers:!1}])})}},{key:"toggleOverwrite",value:function(t){t?(this.enterVimMode(),this.replaceMode=!0):(this.leaveVimMode(),this.replaceMode=!1,this.replaceStack=[])}},{key:"charCoords",value:function(t,n){return{top:t.line,left:t.ch}}},{key:"coordsChar",value:function(t,n){}},{key:"clipPos",value:function(t){var n=this.editor.getModel().validatePosition(er(t));return Ts(n)}},{key:"setBookmark",value:function(t,n){var r=new vbe(this,this.$uid++,t.line,t.ch);return(!n||!n.insertLeft)&&(r.$insertRight=!0),this.marks[r.id]=r,r}},{key:"getScrollInfo",value:function(){var t=this.editor,n=t.getVisibleRanges(),r=abe(n,1),o=r[0];return{left:0,top:o.startLineNumber-1,height:t.getModel().getLineCount(),clientHeight:o.endLineNumber-o.startLineNumber+1}}},{key:"triggerEditorAction",value:function(t){this.editor.trigger("vim",t)}},{key:"dispose",value:function(){this.dispatch("dispose"),this.removeOverlay(),i.keyMap.vim&&i.keyMap.vim.detach(this),this.disposables.forEach(function(t){return t.dispose()})}},{key:"getInputField",value:function(){}},{key:"getWrapperElement",value:function(){}},{key:"enterVimMode",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;this.ctxInsert.set(!1);var n=this.getConfiguration();this.initialCursorWidth=n.viewInfo.cursorWidth||0,this.editor.updateOptions({cursorWidth:n.fontInfo.typicalFullwidthCharacterWidth,cursorBlinking:"solid"})}},{key:"leaveVimMode",value:function(){this.ctxInsert.set(!0),this.editor.updateOptions({cursorWidth:this.initialCursorWidth||0,cursorBlinking:"blink"})}},{key:"virtualSelectionMode",value:function(){return this.inVirtualSelectionMode}},{key:"markText",value:function(){return{clear:function(){},find:function(){}}}},{key:"getUserVisibleLines",value:function(){var t=this.editor.getVisibleRanges();if(!t.length)return{top:0,bottom:0};var n={top:1/0,bottom:0};return t.reduce(function(r,o){return o.startLineNumberr.bottom&&(r.bottom=o.endLineNumber),r},n),n.top-=1,n.bottom-=1,n}},{key:"findPosV",value:function(t,n,r){var o=this.editor,s=n,a=r,l=er(t);if(r==="page"){var c=o.getLayoutInfo().height,d=this.getConfiguration().fontInfo.lineHeight;s=s*Math.floor(c/d),a="line"}return a==="line"&&(l.lineNumber+=s),Ts(l)}},{key:"findMatchingBracket",value:function(t){var n=er(t),r=this.editor.getModel(),o;if(r.bracketPairs)o=r.bracketPairs.matchBracket(n);else{var s;o=(s=r.matchBracket)===null||s===void 0?void 0:s.call(r,n)}return!o||o.length!==2?{to:null}:{to:Ts(o[1].getStartPosition())}}},{key:"findFirstNonWhiteSpaceCharacter",value:function(t){return this.editor.getModel().getLineFirstNonWhitespaceColumn(t+1)-1}},{key:"scrollTo",value:function(t,n){!t&&!n||t||(n<0&&(n=this.editor.getPosition().lineNumber-n),this.editor.setScrollTop(this.editor.getTopForLineNumber(n+1)))}},{key:"moveCurrentLineTo",value:function(t){var n,r=this.editor,o=r.getPosition(),s=Li.Range.fromPositions(o,o);switch(t){case"top":r.revealRangeAtTop(s);return;case"center":r.revealRangeInCenter(s);return;case"bottom":(n=r._revealRange)===null||n===void 0||n.call(r,s,hbe.Bottom);return}}},{key:"getSearchCursor",value:function(t,n){var r=!1,o=!1;t instanceof RegExp&&!t.global&&(r=!t.ignoreCase,t=t.source,o=!0),n.ch==null&&(n.ch=Number.MAX_VALUE);var s=er(n),a=this,l=this.editor,c=null,d=l.getModel(),u=d.findMatches(t,!1,o,r)||[];return{getMatches:function(){return u},findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},jumpTo:function(p){if(!u||!u.length)return!1;var m=u[p];return c=m.range,a.highlightRanges([c],"currentFindMatch"),a.highlightRanges(u.map(function(g){return g.range}).filter(function(g){return!g.equalsRange(c)})),c},find:function(p){if(!u||!u.length)return!1;var m;if(p){var g=c?c.getStartPosition():s;if(m=d.findPreviousMatch(t,g,o,r),!m||!m.range.getStartPosition().isBeforeOrEqual(g))return!1}else{var b=c?d.getPositionAt(d.getOffsetAt(c.getStartPosition())+1):s;if(m=d.findNextMatch(t,b,o,r),!m||!b.isBeforeOrEqual(m.range.getStartPosition()))return!1}return c=m.range,a.highlightRanges([c],"currentFindMatch"),a.highlightRanges(u.map(function(S){return S.range}).filter(function(S){return!S.equalsRange(c)})),c},from:function(){return c&&Ts(c.getStartPosition())},to:function(){return c&&Ts(c.getEndPosition())},replace:function(p){c&&(l.executeEdits("vim",[{range:c,text:p,forceMoveMarkers:!0}]),c.setEndPosition(l.getPosition()),l.setPosition(c.getStartPosition()))}}}},{key:"highlightRanges",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"findMatch",r="decoration".concat(n);return this[r]=this.editor.deltaDecorations(this[r]||[],t.map(function(o){return{range:o,options:{stickiness:Li.editor.TrackedRangeStickiness.NeverGrowsWhenTypingAtEdges,zIndex:13,className:n,showIfCollapsed:!0}}})),this[r]}},{key:"addOverlay",value:function(t,n,r){var o=t.query,s=!1,a=!1;o&&o instanceof RegExp&&!o.global&&(a=!0,s=!o.ignoreCase,o=o.source);var l=this.editor.getModel().findNextMatch(o,this.editor.getPosition(),a,s);!l||!l.range||this.highlightRanges([l.range])}},{key:"removeOverlay",value:function(){var t=this;["currentFindMatch","findMatch"].forEach(function(n){t.editor.deltaDecorations(t["decoration".concat(n)]||[],[])})}},{key:"scrollIntoView",value:function(t){t&&this.editor.revealPosition(er(t))}},{key:"moveH",value:function(t,n){if(n==="char"){var r=this.editor.getPosition();this.editor.setPosition(new Li.Position(r.lineNumber,r.column+t))}}},{key:"scanForBracket",value:function(t,n,r,o){for(var s=o.bracketRegex,a=er(t),l=this.editor.getModel(),c=(n===-1?l.findPreviousMatch:l.findNextMatch).bind(l),d=[],u=0;;){if(u>10)return;var h=c(s.source,a,!0,!0,null,!0),p=h.matches[0];if(h===void 0)return;var m=i.matchingBrackets[p];if(m&&m.charAt(1)===">"==n>0)d.push(p);else if(d.length===0){var g=h.range.getStartPosition();return{pos:Ts(g)}}else d.pop();a=l.getPositionAt(l.getOffsetAt(h.range.getStartPosition())+n),u+=1}}},{key:"indexFromPos",value:function(t){return this.editor.getModel().getOffsetAt(er(t))}},{key:"posFromIndex",value:function(t){return Ts(this.editor.getModel().getPositionAt(t))}},{key:"indentLine",value:function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,r=this.editor,o;r._getViewModel?o=r._getViewModel().cursorConfig:o=r._getCursors().context.config;var s=new Li.Position(t+1,1),a=Li.Selection.fromPositions(s,s);r.executeCommand("vim",new sbe.ShiftCommand(a,{isUnshift:!n,tabSize:o.tabSize,indentSize:o.indentSize,insertSpaces:o.insertSpaces,useTabStops:o.useTabStops,autoIndent:o.autoIndent}))}},{key:"setStatusBar",value:function(t){this.statusBar=t}},{key:"openDialog",value:function(t,n,r){if(this.statusBar)return this.statusBar.setSec(t,n,r)}},{key:"openNotification",value:function(t){this.statusBar&&this.statusBar.showNotification(t)}},{key:"smartIndent",value:function(){this.editor.getAction("editor.action.formatSelection").run()}},{key:"moveCursorTo",value:function(t){var n=this.editor.getPosition();t==="start"?n.column=1:t==="end"&&(n.column=this.editor.getModel().getLineMaxColumn(n.lineNumber)),this.editor.setPosition(n)}},{key:"execCommand",value:function(t){switch(t){case"goLineLeft":this.moveCursorTo("start");break;case"goLineRight":this.moveCursorTo("end");break;case"indentAuto":this.smartIndent();break}}}]),i}();tn.Pos=K9;tn.signal=gbe;tn.on=Pv("on");tn.off=Pv("off");tn.addClass=Pv("addClass");tn.rmClass=Pv("rmClass");tn.defineOption=Pv("defineOption");tn.keyMap={default:function(e){return function(t){return!0}}};tn.matchingBrackets={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};tn.isWordChar=mbe;tn.keyName=AJ;tn.StringStream=IJ;tn.e_stop=function(i){return i.stopPropagation?i.stopPropagation():i.cancelBubble=!0,tn.e_preventDefault(i),!1};tn.e_preventDefault=function(i){return i.preventDefault?(i.preventDefault(),i.browserEvent&&i.browserEvent.preventDefault()):i.returnValue=!1,!1};tn.commands={redo:function(e){e.editor.getModel().redo()},undo:function(e){e.editor.getModel().undo()},newlineAndIndent:function(e){e.triggerEditorAction("editor.action.insertLineAfter")}};tn.lookupKey=function i(e,t,n){typeof t=="string"&&(t=tn.keyMap[t]);var r=typeof t=="function"?t(e):t[e];if(r===!1)return"nothing";if(r==="...")return"multi";if(r!=null&&n(r))return"handled";if(t.fallthrough){if(!Array.isArray(t.fallthrough))return i(e,t.fallthrough,n);for(var o=0;o{"use strict";Object.defineProperty(am,"__esModule",{value:!0});am.default=am.Vim=void 0;var st=ybe(LJ());function ybe(i){return i&&i.__esModule?i:{default:i}}function G9(i){"@babel/helpers - typeof";return G9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G9(i)}var Fe=st.default.Pos;function Cbe(i,e){var t=i.state.vim;if(!t||t.insertMode)return e.head;var n=t.sel.head;if(!n)return e.head;if(!(t.visualBlock&&e.head.line!=n.line))return e.from()==e.anchor&&!e.empty()&&e.head.line==n.line&&e.head.ch!=n.ch?new Fe(e.head.line,e.head.ch-1):e.head}var Ir=[{keys:"",type:"keyToKey",toKeys:"h"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"g",type:"keyToKey",toKeys:"gk"},{keys:"g",type:"keyToKey",toKeys:"gj"},{keys:"",type:"keyToKey",toKeys:"l"},{keys:"",type:"keyToKey",toKeys:"h",context:"normal"},{keys:"",type:"keyToKey",toKeys:"x",context:"normal"},{keys:"",type:"keyToKey",toKeys:"W"},{keys:"",type:"keyToKey",toKeys:"B",context:"normal"},{keys:"",type:"keyToKey",toKeys:"w"},{keys:"",type:"keyToKey",toKeys:"b",context:"normal"},{keys:"",type:"keyToKey",toKeys:"j"},{keys:"",type:"keyToKey",toKeys:"k"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"",type:"keyToKey",toKeys:"",context:"insert"},{keys:"s",type:"keyToKey",toKeys:"cl",context:"normal"},{keys:"s",type:"keyToKey",toKeys:"c",context:"visual"},{keys:"S",type:"keyToKey",toKeys:"cc",context:"normal"},{keys:"S",type:"keyToKey",toKeys:"VdO",context:"visual"},{keys:"",type:"keyToKey",toKeys:"0"},{keys:"",type:"keyToKey",toKeys:"$"},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:""},{keys:"",type:"keyToKey",toKeys:"j^",context:"normal"},{keys:"",type:"keyToKey",toKeys:"i",context:"normal"},{keys:"",type:"action",action:"toggleOverwrite",context:"insert"},{keys:"H",type:"motion",motion:"moveToTopLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"M",type:"motion",motion:"moveToMiddleLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"L",type:"motion",motion:"moveToBottomLine",motionArgs:{linewise:!0,toJumplist:!0}},{keys:"h",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!1}},{keys:"l",type:"motion",motion:"moveByCharacters",motionArgs:{forward:!0}},{keys:"j",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,linewise:!0}},{keys:"k",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,linewise:!0}},{keys:"gj",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!0}},{keys:"gk",type:"motion",motion:"moveByDisplayLines",motionArgs:{forward:!1}},{keys:"w",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1}},{keys:"W",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!1,bigWord:!0}},{keys:"e",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,inclusive:!0}},{keys:"E",type:"motion",motion:"moveByWords",motionArgs:{forward:!0,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"b",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1}},{keys:"B",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1,bigWord:!0}},{keys:"ge",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,inclusive:!0}},{keys:"gE",type:"motion",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!0,bigWord:!0,inclusive:!0}},{keys:"{",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!1,toJumplist:!0}},{keys:"}",type:"motion",motion:"moveByParagraph",motionArgs:{forward:!0,toJumplist:!0}},{keys:"(",type:"motion",motion:"moveBySentence",motionArgs:{forward:!1}},{keys:")",type:"motion",motion:"moveBySentence",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!0}},{keys:"",type:"motion",motion:"moveByPage",motionArgs:{forward:!1}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!0,explicitRepeat:!0}},{keys:"",type:"motion",motion:"moveByScroll",motionArgs:{forward:!1,explicitRepeat:!0}},{keys:"gg",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!1,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"G",type:"motion",motion:"moveToLineOrEdgeOfDocument",motionArgs:{forward:!0,explicitRepeat:!0,linewise:!0,toJumplist:!0}},{keys:"g$",type:"motion",motion:"moveToEndOfDisplayLine"},{keys:"g^",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"g0",type:"motion",motion:"moveToStartOfDisplayLine"},{keys:"0",type:"motion",motion:"moveToStartOfLine"},{keys:"^",type:"motion",motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"+",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0}},{keys:"-",type:"motion",motion:"moveByLines",motionArgs:{forward:!1,toFirstChar:!0}},{keys:"_",type:"motion",motion:"moveByLines",motionArgs:{forward:!0,toFirstChar:!0,repeatOffset:-1}},{keys:"$",type:"motion",motion:"moveToEol",motionArgs:{inclusive:!0}},{keys:"%",type:"motion",motion:"moveToMatchedSymbol",motionArgs:{inclusive:!0,toJumplist:!0}},{keys:"f",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"F",type:"motion",motion:"moveToCharacter",motionArgs:{forward:!1}},{keys:"t",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!0,inclusive:!0}},{keys:"T",type:"motion",motion:"moveTillCharacter",motionArgs:{forward:!1}},{keys:";",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!0}},{keys:",",type:"motion",motion:"repeatLastCharacterSearch",motionArgs:{forward:!1}},{keys:"'",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0,linewise:!0}},{keys:"`",type:"motion",motion:"goToMark",motionArgs:{toJumplist:!0}},{keys:"]`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0}},{keys:"[`",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1}},{keys:"]'",type:"motion",motion:"jumpToMark",motionArgs:{forward:!0,linewise:!0}},{keys:"['",type:"motion",motion:"jumpToMark",motionArgs:{forward:!1,linewise:!0}},{keys:"]p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0,matchIndent:!0}},{keys:"[p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0,matchIndent:!0}},{keys:"]",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!0,toJumplist:!0}},{keys:"[",type:"motion",motion:"moveToSymbol",motionArgs:{forward:!1,toJumplist:!0}},{keys:"|",type:"motion",motion:"moveToColumn"},{keys:"o",type:"motion",motion:"moveToOtherHighlightedEnd",context:"visual"},{keys:"O",type:"motion",motion:"moveToOtherHighlightedEnd",motionArgs:{sameLine:!0},context:"visual"},{keys:"d",type:"operator",operator:"delete"},{keys:"y",type:"operator",operator:"yank"},{keys:"c",type:"operator",operator:"change"},{keys:"=",type:"operator",operator:"indentAuto"},{keys:">",type:"operator",operator:"indent",operatorArgs:{indentRight:!0}},{keys:"<",type:"operator",operator:"indent",operatorArgs:{indentRight:!1}},{keys:"g~",type:"operator",operator:"changeCase"},{keys:"gu",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},isEdit:!0},{keys:"gU",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},isEdit:!0},{keys:"n",type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:!0}},{keys:"N",type:"motion",motion:"findNext",motionArgs:{forward:!1,toJumplist:!0}},{keys:"gn",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!0}},{keys:"gN",type:"motion",motion:"findAndSelectNextInclusive",motionArgs:{forward:!1}},{keys:"x",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!0},operatorMotionArgs:{visualLine:!1}},{keys:"X",type:"operatorMotion",operator:"delete",motion:"moveByCharacters",motionArgs:{forward:!1},operatorMotionArgs:{visualLine:!0}},{keys:"D",type:"operatorMotion",operator:"delete",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"D",type:"operator",operator:"delete",operatorArgs:{linewise:!0},context:"visual"},{keys:"Y",type:"operatorMotion",operator:"yank",motion:"expandToLine",motionArgs:{linewise:!0},context:"normal"},{keys:"Y",type:"operator",operator:"yank",operatorArgs:{linewise:!0},context:"visual"},{keys:"C",type:"operatorMotion",operator:"change",motion:"moveToEol",motionArgs:{inclusive:!0},context:"normal"},{keys:"C",type:"operator",operator:"change",operatorArgs:{linewise:!0},context:"visual"},{keys:"~",type:"operatorMotion",operator:"changeCase",motion:"moveByCharacters",motionArgs:{forward:!0},operatorArgs:{shouldMoveCursor:!0},context:"normal"},{keys:"~",type:"operator",operator:"changeCase",context:"visual"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveToStartOfLine",context:"insert"},{keys:"",type:"operatorMotion",operator:"delete",motion:"moveByWords",motionArgs:{forward:!1,wordEnd:!1},context:"insert"},{keys:"",type:"idle",context:"normal"},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!0}},{keys:"",type:"action",action:"jumpListWalk",actionArgs:{forward:!1}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!0,linewise:!0}},{keys:"",type:"action",action:"scroll",actionArgs:{forward:!1,linewise:!0}},{keys:"a",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"charAfter"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"eol"},context:"normal"},{keys:"A",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"endOfSelectedArea"},context:"visual"},{keys:"i",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"inplace"},context:"normal"},{keys:"gi",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"lastEdit"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"firstNonBlank"},context:"normal"},{keys:"gI",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"bol"},context:"normal"},{keys:"I",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{insertAt:"startOfSelectedArea"},context:"visual"},{keys:"o",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!0},context:"normal"},{keys:"O",type:"action",action:"newLineAndEnterInsertMode",isEdit:!0,interlaceInsertRepeat:!0,actionArgs:{after:!1},context:"normal"},{keys:"v",type:"action",action:"toggleVisualMode"},{keys:"V",type:"action",action:"toggleVisualMode",actionArgs:{linewise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"",type:"action",action:"toggleVisualMode",actionArgs:{blockwise:!0}},{keys:"gv",type:"action",action:"reselectLastSelection"},{keys:"J",type:"action",action:"joinLines",isEdit:!0},{keys:"gJ",type:"action",action:"joinLines",actionArgs:{keepSpaces:!0},isEdit:!0},{keys:"p",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!0,isEdit:!0}},{keys:"P",type:"action",action:"paste",isEdit:!0,actionArgs:{after:!1,isEdit:!0}},{keys:"r",type:"action",action:"replace",isEdit:!0},{keys:"@",type:"action",action:"replayMacro"},{keys:"q",type:"action",action:"enterMacroRecordMode"},{keys:"R",type:"action",action:"enterInsertMode",isEdit:!0,actionArgs:{replace:!0},context:"normal"},{keys:"R",type:"operator",operator:"change",operatorArgs:{linewise:!0,fullLine:!0},context:"visual",exitVisualBlock:!0},{keys:"u",type:"action",action:"undo",context:"normal"},{keys:"u",type:"operator",operator:"changeCase",operatorArgs:{toLower:!0},context:"visual",isEdit:!0},{keys:"U",type:"operator",operator:"changeCase",operatorArgs:{toLower:!1},context:"visual",isEdit:!0},{keys:"",type:"action",action:"redo"},{keys:"m",type:"action",action:"setMark"},{keys:'"',type:"action",action:"setRegister"},{keys:"zz",type:"action",action:"scrollToCursor",actionArgs:{position:"center"}},{keys:"z.",type:"action",action:"scrollToCursor",actionArgs:{position:"center"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"zt",type:"action",action:"scrollToCursor",actionArgs:{position:"top"}},{keys:"z",type:"action",action:"scrollToCursor",actionArgs:{position:"top"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:"z-",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"}},{keys:"zb",type:"action",action:"scrollToCursor",actionArgs:{position:"bottom"},motion:"moveToFirstNonWhiteSpaceCharacter"},{keys:".",type:"action",action:"repeatLastEdit"},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!0,backtrack:!1}},{keys:"",type:"action",action:"incrementNumberToken",isEdit:!0,actionArgs:{increase:!1,backtrack:!1}},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!0},context:"insert"},{keys:"",type:"action",action:"indent",actionArgs:{indentRight:!1},context:"insert"},{keys:"a",type:"motion",motion:"textObjectManipulation"},{keys:"i",type:"motion",motion:"textObjectManipulation",motionArgs:{textObjectInner:!0}},{keys:"/",type:"search",searchArgs:{forward:!0,querySrc:"prompt",toJumplist:!0}},{keys:"?",type:"search",searchArgs:{forward:!1,querySrc:"prompt",toJumplist:!0}},{keys:"*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",wholeWordOnly:!0,toJumplist:!0}},{keys:"g*",type:"search",searchArgs:{forward:!0,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:"g#",type:"search",searchArgs:{forward:!1,querySrc:"wordUnderCursor",toJumplist:!0}},{keys:":",type:"ex"}],MJ=Ir.length,DJ=[{name:"colorscheme",shortName:"colo"},{name:"map"},{name:"imap",shortName:"im"},{name:"nmap",shortName:"nm"},{name:"vmap",shortName:"vm"},{name:"unmap"},{name:"write",shortName:"w"},{name:"undo",shortName:"u"},{name:"redo",shortName:"red"},{name:"set",shortName:"se"},{name:"setlocal",shortName:"setl"},{name:"setglobal",shortName:"setg"},{name:"sort",shortName:"sor"},{name:"substitute",shortName:"s",possiblyAsync:!0},{name:"nohlsearch",shortName:"noh"},{name:"yank",shortName:"y"},{name:"delmarks",shortName:"delm"},{name:"registers",shortName:"reg",excludeFromCommandHistory:!0},{name:"vglobal",shortName:"v"},{name:"global",shortName:"g"}],NJ=function(){function e(w){w.setOption("disableInput",!0),w.setOption("showCursorWhenSelecting",!1),st.default.signal(w,"vim-mode-change",{mode:"normal"}),w.on("cursorActivity",PN),_e(w),w.enterVimMode()}function t(w){w.setOption("disableInput",!1),w.off("cursorActivity",PN),w.state.vim=null,a_&&clearTimeout(a_),w.leaveVimMode()}function n(w,f){w.attached=!1,this==st.default.keyMap.vim&&(w.options.$customCursor=null),(!f||f.attach!=r)&&t(w)}function r(w,f){this==st.default.keyMap.vim&&(w.attached=!0,w.curOp&&(w.curOp.selectionChanged=!0),w.options.$customCursor=Cbe),(!f||f.attach!=r)&&e(w)}st.default.defineOption("vimMode",!1,function(w,f,_){f&&w.getOption("keyMap")!="vim"?w.setOption("keyMap","vim"):!f&&_!=st.default.Init&&/^vim/.test(w.getOption("keyMap"))&&w.setOption("keyMap","default")});function o(w,f){if(f){if(this[w])return this[w];var _=l(w);if(!_)return!1;var C=de.findKey(f,_);return typeof C=="function"&&st.default.signal(f,"vim-keypress",_),C}}var s={Shift:"S",Ctrl:"C",Alt:"A",Cmd:"D",Mod:"A",CapsLock:""},a={Enter:"CR",Backspace:"BS",Delete:"Del",Insert:"Ins"};function l(w){if(w.charAt(0)=="'")return w.charAt(1);if(w==="AltGraph")return!1;var f=w.split(/-(?!$)/),_=f[f.length-1];if(f.length==1&&f[0].length==1)return!1;if(f.length==2&&f[0]=="Shift"&&_.length==1)return!1;for(var C=!1,x=0;x"):!1}var c=/[\d]/,d=[st.default.isWordChar,function(w){return w&&!st.default.isWordChar(w)&&!/\s/.test(w)}],u=[function(w){return/\S/.test(w)}];function h(w,f){for(var _=[],C=w;C"]),S=[].concat(p,m,g,["-",'"',".",":","_","/"]),k;try{k=new RegExp("^[\\p{Lu}]$","u")}catch(w){k=/^[A-Z]$/}function N(w,f){return f>=w.firstLine()&&f<=w.lastLine()}function A(w){return/^[a-z]$/.test(w)}function B(w){return"()[]{}".indexOf(w)!=-1}function j(w){return c.test(w)}function z(w){return k.test(w)}function J(w){return/^\s*$/.test(w)}function ae(w){return".?!".indexOf(w)!=-1}function Le(w,f){for(var _=0;_C?_=C:_0?1:-1,pe,ue=U.getCursor();do if(_+=ge,te=I[(f+_)%f],te&&(pe=te.find())&&!Xo(ue,pe))break;while(_x)}return te}function H(U,G){var te=_,ge=F(U,G);return _=te,ge&&ge.find()}return{cachedCursor:void 0,add:D,find:H,move:F}},ee=function(f){return f?{changes:f.changes,expectCursorActivityForChange:f.expectCursorActivityForChange}:{changes:[],expectCursorActivityForChange:!1}};function ye(){this.latestRegister=void 0,this.isPlaying=!1,this.isRecording=!1,this.replaySearchQueries=[],this.onRecordingDone=void 0,this.lastInsertModeChanges=ee()}ye.prototype={exitMacroRecordMode:function(){var f=$.macroModeState;f.onRecordingDone&&f.onRecordingDone(),f.onRecordingDone=void 0,f.isRecording=!1},enterMacroRecordMode:function(f,_){var C=$.registerController.getRegister(_);C&&(C.clear(),this.latestRegister=_,f.openDialog&&(this.onRecordingDone=f.openDialog(document.createTextNode("(recording)["+_+"]"),null,{bottom:!0})),this.isRecording=!0)}};function _e(w){return w.state.vim||(w.state.vim={inputState:new Yt,lastEditInputState:void 0,lastEditActionCommand:void 0,lastHPos:-1,lastHSPos:-1,lastMotion:null,marks:{},insertMode:!1,insertModeRepeat:void 0,visualMode:!1,visualLine:!1,visualBlock:!1,lastSelection:null,lastPastedText:null,sel:{},options:{}}),w.state.vim}var $;function Q(){$={searchQuery:null,searchIsReversed:!1,lastSubstituteReplacePart:void 0,jumpList:Nt(),macroModeState:new ye,lastCharacterSearch:{increment:0,forward:!0,selectedCharacter:""},registerController:new $i({}),searchHistoryController:new ai,exCommandHistoryController:new ai};for(var w in he){var f=he[w];f.value=f.defaultValue}}var ne,de={buildKeyMap:function(){},getRegisterController:function(){return $.registerController},resetVimGlobalState_:Q,getVimGlobalState_:function(){return $},maybeInitVimState_:_e,suppressErrorLogging:!1,InsertModeKey:$S,map:function(f,_,C){sa.map(f,_,C)},unmap:function(f,_){return sa.unmap(f,_)},noremap:function(f,_,C){function x(pe){return pe?[pe]:["normal","insert","visual"]}for(var I=x(C),D=Ir.length,F=MJ,H=D-F;H=0;I--){var D=x[I];if(f!==D.context)if(D.context)this._mapCommand(D);else{var F=["normal","insert","visual"];for(var H in F)if(F[H]!==f){var U={};for(var G in D)U[G]=D[G];U.context=F[H],this._mapCommand(U)}}}},setOption:at,getOption:ot,defineOption:Xe,defineEx:function(f,_,C){if(!_)_=f;else if(f.indexOf(_)!==0)throw new Error('(Vim.defineEx) "'+_+'" is not a prefix of "'+f+'", command not registered');NN[f]=C,sa.commandMap_[_]={name:f,shortName:_,type:"api"}},handleKey:function(f,_,C){var x=this.findKey(f,_,C);if(typeof x=="function")return x()},findKey:function(f,_,C){var x=_e(f);function I(){var te=$.macroModeState;if(te.isRecording){if(_=="q")return te.exitMacroRecordMode(),Qt(f),!0;C!="mapping"&&Hre(te,_)}}function D(){if(_==""){if(x.visualMode)na(f);else if(x.insertMode)ym(f);else return;return Qt(f),!0}}function F(te){for(var ge;te;)ge=/<\w+-.+?>|<\w+>|./.exec(te),_=ge[0],te=te.substring(ge.index+_.length),de.handleKey(f,_,"mapping")}function H(){if(D())return!0;for(var te=x.inputState.keyBuffer=x.inputState.keyBuffer+_,ge=_.length==1,pe=Yi.matchCommand(te,Ir,x.inputState,"insert");te.length>1&&pe.type!="full";){var te=x.inputState.keyBuffer=te.slice(1),ue=Yi.matchCommand(te,Ir,x.inputState,"insert");ue.type!="none"&&(pe=ue)}if(pe.type=="none")return Qt(f),!1;if(pe.type=="partial")return ne&&window.clearTimeout(ne),ne=window.setTimeout(function(){x.insertMode&&x.inputState.keyBuffer&&Qt(f)},ot("insertModeEscKeysTimeout")),!ge;if(ne&&window.clearTimeout(ne),ge){for(var Ve=f.listSelections(),Ge=0;Ge0||this.motionRepeat.length>0)&&(w=1,this.prefixRepeat.length>0&&(w*=parseInt(this.prefixRepeat.join(""),10)),this.motionRepeat.length>0&&(w*=parseInt(this.motionRepeat.join(""),10))),w};function Qt(w,f){w.state.vim.inputState=new Yt,st.default.signal(w,"vim-command-done",f)}function Jt(w,f,_){this.clear(),this.keyBuffer=[w||""],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!!f,this.blockwise=!!_}Jt.prototype={setText:function(f,_,C){this.keyBuffer=[f||""],this.linewise=!!_,this.blockwise=!!C},pushText:function(f,_){_&&(this.linewise||this.keyBuffer.push(` +`),this.linewise=!0),this.keyBuffer.push(f)},pushInsertModeChanges:function(f){this.insertModeChanges.push(ee(f))},pushSearchQuery:function(f){this.searchQueries.push(f)},clear:function(){this.keyBuffer=[],this.insertModeChanges=[],this.searchQueries=[],this.linewise=!1},toString:function(){return this.keyBuffer.join("")}};function pi(w,f){var _=$.registerController.registers;if(!w||w.length!=1)throw Error("Register name must be 1 character");if(_[w])throw Error("Register already defined "+w);_[w]=f,S.push(w)}function $i(w){this.registers=w,this.unnamedRegister=w['"']=new Jt,w["."]=new Jt,w[":"]=new Jt,w["/"]=new Jt}$i.prototype={pushText:function(f,_,C,x,I){if(f!=="_"){x&&C.charAt(C.length-1)!==` `&&(C+=` -`);var M=this.isValidRegister(p)?this.getRegister(p):null;if(!M){switch(y){case"yank":this.registers[0]=new Ft(C,k,I);break;case"delete":case"change":C.indexOf(` -`)==-1?this.registers["-"]=new Ft(C,k):(this.shiftNumericRegisters_(),this.registers[1]=new Ft(C,k));break}this.unnamedRegister.setText(C,k,I);return}var H=Y(p);H?M.pushText(C,k):M.setText(C,k,I),this.unnamedRegister.setText(M.toString(),k)}},getRegister:function(p){return this.isValidRegister(p)?(p=p.toLowerCase(),this.registers[p]||(this.registers[p]=new Ft),this.registers[p]):this.unnamedRegister},isValidRegister:function(p){return p&&Z(p,_)},shiftNumericRegisters_:function(){for(var p=9;p>=2;p--)this.registers[p]=this.getRegister(""+(p-1))}};function Et(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}Et.prototype={nextMatch:function(p,y){var C=this.historyBuffer,k=y?-1:1;this.initialPrefix===null&&(this.initialPrefix=p);for(var I=this.iterator+k;y?I>=0:I=C.length)return this.iterator=C.length,this.initialPrefix;if(I<0)return p},pushInput:function(p){var y=this.historyBuffer.indexOf(p);y>-1&&this.historyBuffer.splice(y,1),p.length&&this.historyBuffer.push(p)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Ii={matchCommand:function(p,y,C,k){var I=C3(p,y,k,C);if(!I.full&&!I.partial)return{type:"none"};if(!I.full&&I.partial)return{type:"partial"};for(var M,H=0;H"){var V=k3(p);if(!V)return{type:"none"};C.selectedCharacter=V}return{type:"full",command:M}},processCommand:function(p,y,C){switch(y.inputState.repeatOverride=C.repeatOverride,C.type){case"motion":this.processMotion(p,y,C);break;case"operator":this.processOperator(p,y,C);break;case"operatorMotion":this.processOperatorMotion(p,y,C);break;case"action":this.processAction(p,y,C);break;case"search":this.processSearch(p,y,C);break;case"ex":case"keyToEx":this.processEx(p,y,C);break;default:break}},processMotion:function(p,y,C){y.inputState.motion=C.motion,y.inputState.motionArgs=Go(C.motionArgs),this.evalInput(p,y)},processOperator:function(p,y,C){var k=y.inputState;if(k.operator)if(k.operator==C.operator){k.motion="expandToLine",k.motionArgs={linewise:!0},this.evalInput(p,y);return}else Tt(p);k.operator=C.operator,k.operatorArgs=Go(C.operatorArgs),C.keys.length>1&&(k.operatorShortcut=C.keys),C.exitVisualBlock&&(y.visualBlock=!1,Yh(p)),y.visualMode&&this.evalInput(p,y)},processOperatorMotion:function(p,y,C){var k=y.visualMode,I=Go(C.operatorMotionArgs);I&&k&&I.visualLine&&(y.visualLine=!0),this.processOperator(p,y,C),k||this.processMotion(p,y,C)},processAction:function(p,y,C){var k=y.inputState,I=k.getRepeat(),M=!!I,H=Go(C.actionArgs)||{};k.selectedCharacter&&(H.selectedCharacter=k.selectedCharacter),C.operator&&this.processOperator(p,y,C),C.motion&&this.processMotion(p,y,C),(C.motion||C.operator)&&this.evalInput(p,y),H.repeat=I||1,H.repeatIsExplicit=M,H.registerName=k.registerName,Tt(p),y.lastMotion=null,C.isEdit&&this.recordLastEdit(y,k,C),ol[C.action](p,H,y)},processSearch:function(p,y,C){if(!p.getSearchCursor)return;var k=C.searchArgs.forward,I=C.searchArgs.wholeWordOnly;ta(p).setReversed(!k);var M=k?"/":"?",H=ta(p).getQuery(),W=p.getScrollInfo();function V(Ye,zt,It){X.searchHistoryController.pushInput(Ye),X.searchHistoryController.reset();try{Sm(p,Ye,zt,It)}catch(At){Hi(p,"Invalid regex: "+Ye),Tt(p);return}Ii.processMotion(p,y,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:C.searchArgs.toJumplist}})}function Q(Ye){p.scrollTo(W.left,W.top),V(Ye,!0,!0);var zt=X.macroModeState;zt.isRecording&&nre(zt,Ye)}function se(Ye,zt,It){var At=ut.default.keyName(Ye),Ui,oo;At=="Up"||At=="Down"?(Ui=At=="Up",oo=Ye.target?Ye.target.selectionEnd:0,zt=X.searchHistoryController.nextMatch(zt,Ui)||"",It(zt),oo&&Ye.target&&(Ye.target.selectionEnd=Ye.target.selectionStart=Math.min(oo,Ye.target.value.length))):At!="Left"&&At!="Right"&&At!="Ctrl"&&At!="Alt"&&At!="Shift"&&X.searchHistoryController.reset();var pr;try{pr=Sm(p,zt,!0,!0)}catch(jn){}pr?p.scrollIntoView(I9(p,!k,pr),30):(I3(p),p.scrollTo(W.left,W.top))}function Ce(Ye,zt,It){var At=ut.default.keyName(Ye);At=="Esc"||At=="Ctrl-C"||At=="Ctrl-["||At=="Backspace"&&zt==""?(X.searchHistoryController.pushInput(zt),X.searchHistoryController.reset(),Sm(p,H),I3(p),p.scrollTo(W.left,W.top),ut.default.e_stop(Ye),Tt(p),It(),p.focus()):At=="Up"||At=="Down"?ut.default.e_stop(Ye):At=="Ctrl-U"&&(ut.default.e_stop(Ye),It(""))}switch(C.searchArgs.querySrc){case"prompt":var xe=X.macroModeState;if(xe.isPlaying){var tt=xe.replaySearchQueries.shift();V(tt,!0,!1)}else Nv(p,{onClose:Q,prefix:M,desc:"(JavaScript regexp)",onKeyUp:se,onKeyDown:Ce});break;case"wordUnderCursor":var ye=Mv(p,!1,!0,!1,!0),Ze=!0;if(ye||(ye=Mv(p,!1,!0,!1,!1),Ze=!1),!ye)return;var tt=p.getLine(ye.start.line).substring(ye.start.ch,ye.end.ch);Ze&&I?tt="\\b"+tt+"\\b":tt=ys(tt),X.jumpList.cachedCursor=p.getCursor(),p.setCursor(ye.start),V(tt,!0,!1);break}},processEx:function(p,y,C){function k(M){X.exCommandHistoryController.pushInput(M),X.exCommandHistoryController.reset(),ia.processCommand(p,M)}function I(M,H,W){var V=ut.default.keyName(M),Q,se;(V=="Esc"||V=="Ctrl-C"||V=="Ctrl-["||V=="Backspace"&&H=="")&&(X.exCommandHistoryController.pushInput(H),X.exCommandHistoryController.reset(),ut.default.e_stop(M),Tt(p),W(),p.focus()),V=="Up"||V=="Down"?(ut.default.e_stop(M),Q=V=="Up",se=M.target?M.target.selectionEnd:0,H=X.exCommandHistoryController.nextMatch(H,Q)||"",W(H),se&&M.target&&(M.target.selectionEnd=M.target.selectionStart=Math.min(se,M.target.value.length))):V=="Ctrl-U"?(ut.default.e_stop(M),W("")):V!="Left"&&V!="Right"&&V!="Ctrl"&&V!="Alt"&&V!="Shift"&&X.exCommandHistoryController.reset()}C.type=="keyToEx"?ia.processCommand(p,C.exArgs.input):y.visualMode?Nv(p,{onClose:k,prefix:":",value:"'<,'>",onKeyDown:I,selectValueOnOpen:!1}):Nv(p,{onClose:k,prefix:":",onKeyDown:I})},evalInput:function(p,y){var C=y.inputState,k=C.motion,I=C.motionArgs||{},M=C.operator,H=C.operatorArgs||{},W=C.registerName,V=y.sel,Q=Xi(y.visualMode?Fr(p,V.head):p.getCursor("head")),se=Xi(y.visualMode?Fr(p,V.anchor):p.getCursor("anchor")),Ce=Xi(Q),xe=Xi(se),ye,Ze,tt;if(M&&this.recordLastEdit(y,C),C.repeatOverride!==void 0?tt=C.repeatOverride:tt=C.getRepeat(),tt>0&&I.explicitRepeat?I.repeatIsExplicit=!0:(I.noRepeat||!I.explicitRepeat&&tt===0)&&(tt=1,I.repeatIsExplicit=!1),C.selectedCharacter&&(I.selectedCharacter=H.selectedCharacter=C.selectedCharacter),I.repeat=tt,Tt(p),k){var Ye=pi[k](p,Q,I,y,C);if(y.lastMotion=pi[k],!Ye)return;if(I.toJumplist){var zt=X.jumpList,It=zt.cachedCursor;It?(b9(p,It,Ye),delete zt.cachedCursor):b9(p,Q,Ye)}Ye instanceof Array?(Ze=Ye[0],ye=Ye[1]):ye=Ye,ye||(ye=Xi(Q)),y.visualMode?(y.visualBlock&&ye.ch===1/0||(ye=Fr(p,ye)),Ze&&(Ze=Fr(p,Ze)),Ze=Ze||xe,V.anchor=Ze,V.head=ye,Yh(p),sl(p,y,"<",De(Ze,ye)?Ze:ye),sl(p,y,">",De(Ze,ye)?ye:Ze)):M||(ye=Fr(p,ye),p.setCursor(ye.line,ye.ch))}if(M){if(H.lastSel){Ze=xe;var At=H.lastSel,Ui=Math.abs(At.head.line-At.anchor.line),oo=Math.abs(At.head.ch-At.anchor.ch);At.visualLine?ye=new Ve(xe.line+Ui,xe.ch):At.visualBlock?ye=new Ve(xe.line+Ui,xe.ch+oo):At.head.line==At.anchor.line?ye=new Ve(xe.line,xe.ch+oo):ye=new Ve(xe.line+Ui,xe.ch),y.visualMode=!0,y.visualLine=At.visualLine,y.visualBlock=At.visualBlock,V=y.sel={anchor:Ze,head:ye},Yh(p)}else y.visualMode&&(H.lastSel={anchor:Xi(V.anchor),head:Xi(V.head),visualBlock:y.visualBlock,visualLine:y.visualLine});var pr,jn,Li,si,dn;if(y.visualMode){if(pr=bt(V.head,V.anchor),jn=Vt(V.head,V.anchor),Li=y.visualLine||H.linewise,si=y.visualBlock?"block":Li?"line":"char",dn=E3(p,{anchor:pr,head:jn},si),Li){var so=dn.ranges;if(si=="block")for(var Wn=0;WnW:se.lineQ&&I.line==Q?y9(p,y,C,k,!0):(C.toFirstChar&&(M=ea(p.getLine(W)),k.lastHPos=M),k.lastHSPos=p.charCoords(new Ve(W,M),"div").left,new Ve(W,M))},moveByDisplayLines:function(p,y,C,k){var I=y;switch(k.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:k.lastHSPos=p.charCoords(I,"div").left}var M=C.repeat,H=p.findPosV(I,C.forward?M:-M,"line",k.lastHSPos);if(H.hitSide)if(C.forward)var W=p.charCoords(H,"div"),V={top:W.top+8,left:k.lastHSPos},H=p.coordsChar(V,"div");else{var Q=p.charCoords(new Ve(p.firstLine(),0),"div");Q.left=k.lastHSPos,H=p.coordsChar(Q,"div")}return k.lastHPos=H.ch,H},moveByPage:function(p,y,C){var k=y,I=C.repeat;return p.findPosV(k,C.forward?I:-I,"page")},moveByParagraph:function(p,y,C){var k=C.forward?1:-1;return w9(p,y,C.repeat,k)},moveBySentence:function(p,y,C){var k=C.forward?1:-1;return Bie(p,y,C.repeat,k)},moveByScroll:function(p,y,C,k){var I=p.getScrollInfo(),W=null,M=C.repeat;M||(M=I.clientHeight/(2*p.defaultTextHeight()));var H=p.charCoords(y,"local");C.repeat=M;var W=pi.moveByDisplayLines(p,y,C,k);if(!W)return null;var V=p.charCoords(W,"local");return p.scrollTo(null,I.top+V.top-H.top),W},moveByWords:function(p,y,C){return Oie(p,y,C.repeat,!!C.forward,!!C.wordEnd,!!C.bigWord)},moveTillCharacter:function(p,y,C){var k=C.repeat,I=T3(p,k,C.forward,C.selectedCharacter),M=C.forward?-1:1;return v9(M,C),I?(I.ch+=M,I):null},moveToCharacter:function(p,y,C){var k=C.repeat;return v9(0,C),T3(p,k,C.forward,C.selectedCharacter)||y},moveToSymbol:function(p,y,C){var k=C.repeat;return Rie(p,k,C.forward,C.selectedCharacter)||y},moveToColumn:function(p,y,C,k){var I=C.repeat;return k.lastHPos=I-1,k.lastHSPos=p.charCoords(y,"div").left,Fie(p,I)},moveToEol:function(p,y,C,k){return y9(p,y,C,k,!1)},moveToFirstNonWhiteSpaceCharacter:function(p,y){var C=y;return new Ve(C.line,ea(p.getLine(C.line)))},moveToMatchedSymbol:function(p,y){var C=y,k=C.line,I=C.ch,M=p.getLine(k);if(I"?/[(){}[\]<>]/:/[(){}[\]]/,W=p.findMatchingBracket(new Ve(k,I),{bracketRegex:H});return W.to}else return C},moveToStartOfLine:function(p,y){return new Ve(y.line,0)},moveToLineOrEdgeOfDocument:function(p,y,C){var k=C.forward?p.lastLine():p.firstLine();return C.repeatIsExplicit&&(k=C.repeat-p.getOption("firstLineNumber")),new Ve(k,ea(p.getLine(k)))},moveToStartOfDisplayLine:function(p){return p.execCommand("goLineLeft"),p.getCursor()},moveToEndOfDisplayLine:function(p){p.execCommand("goLineRight");var y=p.getCursor();return y.sticky=="before"&&y.ch--,y},textObjectManipulation:function(p,y,C,k){var I={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},M={"'":!0,'"':!0,"`":!0},H=C.selectedCharacter;H=="b"?H="(":H=="B"&&(H="{");var W=!C.textObjectInner,V;if(I[H])V=Hie(p,y,H,W);else if(M[H])V=Uie(p,y,H,W);else if(H==="W")V=Mv(p,W,!0,!0);else if(H==="w")V=Mv(p,W,!0,!1);else if(H==="p")if(V=w9(p,y,C.repeat,0,W),C.linewise=!0,k.visualMode)k.visualLine||(k.visualLine=!0);else{var Q=k.inputState.operatorArgs;Q&&(Q.linewise=!0),V.end.line--}else if(H==="t")V=Mie(p,y,W);else return null;return p.state.vim.visualMode?Iie(p,V.start,V.end):[V.start,V.end]},repeatLastCharacterSearch:function(p,y,C){var k=X.lastCharacterSearch,I=C.repeat,M=C.forward===k.forward,H=(k.increment?1:0)*(M?-1:1);p.moveH(-H,"char"),C.inclusive=!!M;var W=T3(p,I,M,k.selectedCharacter);return W?(W.ch+=H,W):(p.moveH(H,"char"),y)}};function So(S,p){pi[S]=p}function no(S,p){for(var y=[],C=0;Cp.lastLine()&&y.linewise&&!Ce?p.replaceRange("",se,W):p.replaceRange("",H,W),y.linewise&&(Ce||(p.setCursor(se),ut.default.commands.newlineAndIndent(p)),H.ch=Number.MAX_VALUE),k=H}X.registerController.pushText(y.registerName,"change",I,y.linewise,C.length>1),ol.enterInsertMode(p,{head:k},p.state.vim)},delete:function(p,y,C){p.pushUndoStop();var k,I,M=p.state.vim;if(M.visualBlock){I=p.getSelection();var V=no("",C.length);p.replaceSelections(V),k=bt(C[0].head,C[0].anchor)}else{var H=C[0].anchor,W=C[0].head;y.linewise&&W.line!=p.firstLine()&&H.line==p.lastLine()&&H.line==W.line-1&&(H.line==p.firstLine()?H.ch=0:H=new Ve(H.line-1,Ci(p,H.line-1))),I=p.getRange(H,W),p.replaceRange("",H,W),k=H,y.linewise&&(k=pi.moveToFirstNonWhiteSpaceCharacter(p,H))}return X.registerController.pushText(y.registerName,"delete",I,y.linewise,M.visualBlock),Fr(p,k)},indent:function(p,y,C){var k=p.state.vim,I=C[0].anchor.line,M=k.visualBlock?C[C.length-1].anchor.line:C[0].head.line,H=k.visualMode?y.repeat:1;y.linewise&&M--,p.pushUndoStop();for(var W=I;W<=M;W++)for(var V=0;VQ.top?(V.line+=(W-Q.top)/I,V.line=Math.ceil(V.line),p.setCursor(V),Q=p.charCoords(V,"local"),p.scrollTo(null,Q.top)):p.scrollTo(null,W);else{var se=W+p.getScrollInfo().clientHeight;se=I.anchor.line?M=fr(I.head,0,1):M=new Ve(I.anchor.line,0)}else if(k=="inplace"){if(C.visualMode)return}else k=="lastEdit"&&(M=L9(p)||M);p.setOption("disableInput",!1),y&&y.replace?(p.toggleOverwrite(!0),p.setOption("keyMap","vim-replace"),ut.default.signal(p,"vim-mode-change",{mode:"replace"})):(p.toggleOverwrite(!1),p.setOption("keyMap","vim-insert"),ut.default.signal(p,"vim-mode-change",{mode:"insert"})),X.macroModeState.isPlaying||(p.on("change",R9),ut.default.on(p.getInputField(),"keydown",O9)),C.visualMode&&Js(p),Sn(p,M,H)}},toggleVisualMode:function(p,y,C){var k=y.repeat,I=p.getCursor(),M;C.visualMode?C.visualLine^y.linewise||C.visualBlock^y.blockwise?(C.visualLine=!!y.linewise,C.visualBlock=!!y.blockwise,ut.default.signal(p,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""}),Yh(p)):Js(p):(C.visualMode=!0,C.visualLine=!!y.linewise,C.visualBlock=!!y.blockwise,M=Fr(p,new Ve(I.line,I.ch+k-1)),C.sel={anchor:I,head:M},ut.default.signal(p,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""}),Yh(p),sl(p,C,"<",bt(I,M)),sl(p,C,">",Vt(I,M)))},reselectLastSelection:function(p,y,C){var k=C.lastSelection;if(C.visualMode&&g9(p,C),k){var I=k.anchorMark.find(),M=k.headMark.find();if(!I||!M)return;C.sel={anchor:I,head:M},C.visualMode=!0,C.visualLine=k.visualLine,C.visualBlock=k.visualBlock,Yh(p),sl(p,C,"<",bt(I,M)),sl(p,C,">",Vt(I,M)),ut.default.signal(p,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""})}},joinLines:function(p,y,C){var k,I;if(C.visualMode){if(k=p.getCursor("anchor"),I=p.getCursor("head"),De(I,k)){var M=I;I=k,k=M}I.ch=Ci(p,I.line)-1}else{var H=Math.max(y.repeat,2);k=p.getCursor(),I=Fr(p,new Ve(k.line+H-1,1/0))}for(var W=0,V=k.line;V1)var M=Array(y.repeat+1).join(M);var ye=I.linewise,Ze=I.blockwise;if(Ze){M=M.split(` -`),ye&&M.pop();for(var tt=0;ttp.lastLine()&&p.replaceRange(` -`,new Ve(si,0));var dn=Ci(p,si);dnV.length&&(M=V.length),H=new Ve(I.line,M)}if(k==` -`)C.visualMode||p.replaceRange("",I,H),(ut.default.commands.newlineAndIndentContinueComment||ut.default.commands.newlineAndIndent)(p);else{var Q=p.getRange(I,H);if(Q=Q.replace(/[^\n]/g,k),C.visualBlock){var se=new Array(p.getOption("tabSize")+1).join(" ");Q=p.getSelection(),Q=Q.replace(/\t/g,se).replace(/[^\n]/g,k).split(` -`),p.replaceSelections(Q)}else p.replaceRange(Q,I,H);C.visualMode?(I=De(W[0].anchor,W[0].head)?W[0].anchor:W[0].head,p.setCursor(I),Js(p,!1)):p.setCursor(fr(H,0,-1))}},incrementNumberToken:function(p,y){for(var C=p.getCursor(),k=p.getLine(C.line),I=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,M,H,W,V;(M=I.exec(k))!==null&&(H=M.index,W=H+M[0].length,!(C.ch"){var y=p.length-11,C=S.slice(0,y),k=p.slice(0,y);return C==k&&S.length>y?"full":k.indexOf(C)==0?"partial":!1}else return S==p?"full":p.indexOf(S)==0?"partial":!1}function k3(S){var p=/^.*(<[^>]+>)$/.exec(S),y=p?p[1]:S.slice(-1);if(y.length>1)switch(y){case"":y=` -`;break;case"":y=" ";break;default:y="";break}return y}function Dv(S,p,y){return function(){for(var C=0;C2&&(p=bt.apply(void 0,Array.prototype.slice.call(arguments,1))),De(S,p)?S:p}function Vt(S,p){return arguments.length>2&&(p=Vt.apply(void 0,Array.prototype.slice.call(arguments,1))),De(S,p)?p:S}function xi(S,p,y){var C=De(S,p),k=De(p,y);return C&&k}function Ci(S,p){return S.getLine(p).length}function _s(S){return S.trim?S.trim():S.replace(/^\s+|\s+$/g,"")}function ys(S){return S.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function su(S,p,y){var C=Ci(S,p),k=new Array(y-C+1).join(" ");S.setCursor(new Ve(p,C)),S.replaceRange(k,S.getCursor())}function Lc(S,p){var y=[],C=S.listSelections(),k=Xi(S.clipPos(p)),I=!ge(p,k),M=S.getCursor("head"),H=Dc(C,M),W=ge(C[H].head,C[H].anchor),V=C.length-1,Q=V-H>H?V:0,se=C[Q].anchor,Ce=Math.min(se.line,k.line),xe=Math.max(se.line,k.line),ye=se.ch,Ze=k.ch,tt=C[Q].head.ch-ye,Ye=Ze-ye;tt>0&&Ye<=0?(ye++,I||Ze--):tt<0&&Ye>=0?(ye--,W||Ze++):tt<0&&Ye==-1&&(ye--,Ze++);for(var zt=Ce;zt<=xe;zt++){var It={anchor:new Ve(zt,ye),head:new Ve(zt,Ze)};y.push(It)}return S.setSelections(y),p.ch=Ze,se.ch=ye,se}function Sn(S,p,y){for(var C=[],k=0;kW&&(k.line=W),k.ch=Ci(S,k.line)}return{ranges:[{anchor:I,head:k}],primary:0}}else if(y=="block"){var V=Math.min(I.line,k.line),Q=I.ch,se=Math.max(I.line,k.line),Ce=k.ch;Q0&&I&&oe(I);I=k.pop())y.line--,y.ch=0;I?(y.line--,y.ch=Ci(S,y.line)):y.ch=0}}function Die(S,p,y){p.ch=0,y.ch=0,y.line++}function ea(S){if(!S)return 0;var p=S.search(/\S/);return p==-1?S.length:p}function Mv(S,p,y,C,k){for(var I=Aie(S),M=S.getLine(I.line),H=I.ch,W=k?d[0]:u[0];!W(M.charAt(H));)if(H++,H>=M.length)return null;C?W=u[0]:(W=d[0],W(M.charAt(H))||(W=d[1]));for(var V=H,Q=H;W(M.charAt(V))&&V=0;)Q--;if(Q++,p){for(var se=V;/\s/.test(M.charAt(V))&&V0;)Q--;Q||(Q=Ce)}}return{start:new Ve(I.line,Q),end:new Ve(I.line,V)}}function Mie(S,p,y){var C=p;if(!ut.default.findMatchingTag||!ut.default.findEnclosingTag)return{start:C,end:C};var k=ut.default.findMatchingTag(S,p)||ut.default.findEnclosingTag(S,p);return!k||!k.open||!k.close?{start:C,end:C}:y?{start:k.open.from,end:k.close.to}:{start:k.open.to,end:k.close.from}}function b9(S,p,y){ge(p,y)||X.jumpList.add(S,p,y)}function v9(S,p){X.lastCharacterSearch.increment=S,X.lastCharacterSearch.forward=p.forward,X.lastCharacterSearch.selectedCharacter=p.selectedCharacter}var Nie={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},_9={bracket:{isComplete:function(p){if(p.nextCh===p.symb){if(p.depth++,p.depth>=1)return!0}else p.nextCh===p.reverseSymb&&p.depth--;return!1}},section:{init:function(p){p.curMoveThrough=!0,p.symb=(p.forward?"]":"[")===p.symb?"{":"}"},isComplete:function(p){return p.index===0&&p.nextCh===p.symb}},comment:{isComplete:function(p){var y=p.lastCh==="*"&&p.nextCh==="/";return p.lastCh=p.nextCh,y}},method:{init:function(p){p.symb=p.symb==="m"?"{":"}",p.reverseSymb=p.symb==="{"?"}":"{"},isComplete:function(p){return p.nextCh===p.symb}},preprocess:{init:function(p){p.index=0},isComplete:function(p){if(p.nextCh==="#"){var y=p.lineText.match(/^#(\w+)/)[1];if(y==="endif"){if(p.forward&&p.depth===0)return!0;p.depth++}else if(y==="if"){if(!p.forward&&p.depth===0)return!0;p.depth--}if(y==="else"&&p.depth===0)return!0}return!1}}};function Rie(S,p,y,C){var k=Xi(S.getCursor()),I=y?1:-1,M=y?S.lineCount():-1,H=k.ch,W=k.line,V=S.getLine(W),Q={lineText:V,nextCh:V.charAt(H),lastCh:null,index:H,symb:C,reverseSymb:(y?{")":"(","}":"{"}:{"(":")","{":"}"})[C],forward:y,depth:0,curMoveThrough:!1},se=Nie[C];if(!se)return k;var Ce=_9[se].init,xe=_9[se].isComplete;for(Ce&&Ce(Q);W!==M&&p;){if(Q.index+=I,Q.nextCh=Q.lineText.charAt(Q.index),!Q.nextCh){if(W+=I,Q.lineText=S.getLine(W)||"",I>0)Q.index=0;else{var ye=Q.lineText.length;Q.index=ye>0?ye-1:0}Q.nextCh=Q.lineText.charAt(Q.index)}xe(Q)&&(k.line=W,k.ch=Q.index,p--)}return Q.nextCh||Q.curMoveThrough?new Ve(W,Q.index):k}function Pie(S,p,y,C,k){var I=p.line,M=p.ch,H=S.getLine(I),W=y?1:-1,V=C?u:d;if(k&&H==""){if(I+=W,H=S.getLine(I),!L(S,I))return null;M=y?0:H.length}for(;;){if(k&&H=="")return{from:0,to:0,line:I};for(var Q=W>0?H.length:-1,se=Q,Ce=Q;M!=Q;){for(var xe=!1,ye=0;ye0?0:H.length}}function Oie(S,p,y,C,k,I){var M=Xi(p),H=[];(C&&!k||!C&&k)&&y++;for(var W=!(C&&k),V=0;V0;)Ce(Q,C)&&y--,Q+=C;return new Ve(Q,0)}var xe=S.state.vim;if(xe.visualLine&&Ce(I,1,!0)){var ye=xe.sel.anchor;Ce(ye.line,-1,!0)&&(!k||ye.line!=I)&&(I+=1)}var Ze=se(I);for(Q=I;Q<=H&&y;Q++)Ce(Q,1,!0)&&(!k||se(Q)!=Ze)&&y--;for(V=new Ve(Q,0),Q>H&&!Ze?Ze=!0:k=!1,Q=I;Q>M&&!((!k||se(Q)==Ze||Q==I)&&Ce(Q,-1,!0));Q--);return W=new Ve(Q,0),{start:W,end:V}}function Bie(S,p,y,C){function k(W,V){if(V.pos+V.dir<0||V.pos+V.dir>=V.line.length){if(V.ln+=V.dir,!L(W,V.ln)){V.line=null,V.ln=null,V.pos=null;return}V.line=W.getLine(V.ln),V.pos=V.dir>0?0:V.line.length-1}else V.pos+=V.dir}function I(W,V,Q,se){var tt=W.getLine(V),Ce=tt==="",xe={line:tt,ln:V,pos:Q,dir:se},ye={ln:xe.ln,pos:xe.pos},Ze=xe.line==="";for(k(W,xe);xe.line!==null;){if(ye.ln=xe.ln,ye.pos=xe.pos,xe.line===""&&!Ze)return{ln:xe.ln,pos:xe.pos};if(Ce&&xe.line!==""&&!oe(xe.line[xe.pos]))return{ln:xe.ln,pos:xe.pos};te(xe.line[xe.pos])&&!Ce&&(xe.pos===xe.line.length-1||oe(xe.line[xe.pos+1]))&&(Ce=!0),k(W,xe)}var tt=W.getLine(ye.ln);ye.pos=0;for(var Ye=tt.length-1;Ye>=0;--Ye)if(!oe(tt[Ye])){ye.pos=Ye;break}return ye}function M(W,V,Q,se){var Ze=W.getLine(V),Ce={line:Ze,ln:V,pos:Q,dir:se},xe={ln:Ce.ln,pos:null},ye=Ce.line==="";for(k(W,Ce);Ce.line!==null;){if(Ce.line===""&&!ye)return xe.pos!==null?xe:{ln:Ce.ln,pos:Ce.pos};if(te(Ce.line[Ce.pos])&&xe.pos!==null&&!(Ce.ln===xe.ln&&Ce.pos+1===xe.pos))return xe;Ce.line!==""&&!oe(Ce.line[Ce.pos])&&(ye=!1,xe={ln:Ce.ln,pos:Ce.pos}),k(W,Ce)}var Ze=W.getLine(xe.ln);xe.pos=0;for(var tt=0;tt0;)C<0?H=M(S,H.ln,H.pos,C):H=I(S,H.ln,H.pos,C),y--;return new Ve(H.ln,H.pos)}function Hie(S,p,y,C){var k=p,I,M,H={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[y],W={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[y],V=S.getLine(k.line).charAt(k.ch),Q=V===W?1:0;if(I=S.scanForBracket(new Ve(k.line,k.ch+Q),-1,void 0,{bracketRegex:H}),M=S.scanForBracket(new Ve(k.line,k.ch+Q),1,void 0,{bracketRegex:H}),!I||!M)return{start:k,end:k};if(I=I.pos,M=M.pos,I.line==M.line&&I.ch>M.ch||I.line>M.line){var se=I;I=M,M=se}return C?M.ch+=1:I.ch+=1,{start:I,end:M}}function Uie(S,p,y,C){var k=Xi(p),I=S.getLine(k.line),M=I.split(""),H,W,V,Q,se=M.indexOf(y);if(k.ch-1&&!H;V--)M[V]==y&&(H=V+1);if(H&&!W)for(V=H,Q=M.length;V=p&&S<=y:S==p}function A3(S){var p=S.getScrollInfo(),y=6,C=10,k=S.coordsChar({left:0,top:y+p.top},"local"),I=p.clientHeight-C+p.top,M=S.coordsChar({left:0,top:I},"local");return{top:k.line,bottom:M.line}}function A9(S,p,y){if(y=="'"||y=="`")return X.jumpList.find(S,-1)||new Ve(0,0);if(y==".")return L9(S);var C=p.marks[y];return C&&C.find()}function L9(S){for(var p=S.doc.history.done,y=p.length;y--;)if(p[y].changes)return Xi(p[y].changes[0].to)}var D9=function(){this.buildCommandMap_()};D9.prototype={processCommand:function(p,y,C){var k=this;p.operation(function(){p.curOp.isVimOp=!0,k._processCommand(p,y,C)})},_processCommand:function(p,y,C){var k=p.state.vim,I=X.registerController.getRegister(":"),M=I.toString();k.visualMode&&Js(p);var H=new ut.default.StringStream(y);I.setText(y);var W=C||{};W.input=y;try{this.parseInput_(p,H,W)}catch(Ce){throw Hi(p,Ce.toString()),Ce}var V,Q;if(!W.commandName)W.line!==void 0&&(Q="move");else if(V=this.matchCommand_(W.commandName),V){if(Q=V.name,V.excludeFromCommandHistory&&I.setText(M),this.parseCommandArgs_(H,W,V),V.type=="exToKey"){for(var se=0;se@~])/);return k?C.commandName=k[1]:C.commandName=y.match(/.*/)[0],C},parseLineSpec_:function(p,y){var C=y.match(/^(\d+)/);if(C)return parseInt(C[1],10)-1;switch(y.next()){case".":return this.parseLineSpecOffset_(y,p.getCursor().line);case"$":return this.parseLineSpecOffset_(y,p.lastLine());case"'":var k=y.next(),I=A9(p,p.state.vim,k);if(!I)throw new Error("Mark not set");return this.parseLineSpecOffset_(y,I.line);case"-":case"+":return y.backUp(1),this.parseLineSpecOffset_(y,p.getCursor().line);default:y.backUp(1);return}},parseLineSpecOffset_:function(p,y){var C=p.match(/^([+-])?(\d+)/);if(C){var k=parseInt(C[2],10);C[1]=="-"?y-=k:y+=k}return y},parseCommandArgs_:function(p,y,C){if(!p.eol()){y.argString=p.match(/.*/)[0];var k=C.argDelimiter||/\s+/,I=_s(y.argString).split(k);I.length&&I[0]&&(y.args=I)}},matchCommand_:function(p){for(var y=p.length;y>0;y--){var C=p.substring(0,y);if(this.commandMap_[C]){var k=this.commandMap_[C];if(k.name.indexOf(p)===0)return k}}return null},buildCommandMap_:function(){this.commandMap_={};for(var p=0;p1)return"Invalid arguments";M=dn&&"decimal"||so&&"hex"||Wn&&"octal"}si[2]&&(H=new RegExp(si[2].substr(1,si[2].length-2),k?"i":""))}}var V=W();if(V){Hi(p,V+": "+y.argString);return}var Q=y.line||p.firstLine(),se=y.lineEnd||y.line||p.lastLine();if(Q==se)return;var Ce=new Ve(Q,0),xe=new Ve(se,Ci(p,se)),ye=p.getRange(Ce,xe).split(` -`),Ze=H||(M=="decimal"?/(-?)([\d]+)/:M=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:M=="octal"?/([0-7]+)/:null),tt=M=="decimal"?10:M=="hex"?16:M=="octal"?8:null,Ye=[],zt=[];if(M||H)for(var It=0;It=Q){Hi(p,"Invalid argument: "+y.argString.substring(I));return}for(var se=0;se<=Q-V;se++){var Ce=String.fromCharCode(V+se);delete C.marks[Ce]}}else{Hi(p,"Invalid argument: "+H+"-");return}}else delete C.marks[M]}}},ia=new D9;function Jie(S,p,y,C,k,I,M,H,W){S.state.vim.exMode=!0;var V=!1,Q,se,Ce;function xe(){S.operation(function(){for(;!V;)ye(),tt();Ye()})}function ye(){var It=S.getRange(I.from(),I.to()),At=It.replace(M,H),Ui=I.to().line;I.replace(At),se=I.to().line,k+=se-Ui,Ce=se1&&(F9(S,p,p.insertModeRepeat-1,!0),p.lastEditInputState.repeatOverride=p.insertModeRepeat),delete p.insertModeRepeat,p.insertMode=!1,S.setCursor(S.getCursor().line,S.getCursor().ch-1),S.setOption("keyMap","vim"),S.setOption("disableInput",!0),S.toggleOverwrite(!1),C.setText(I.changes.join("")),ut.default.signal(S,"vim-mode-change",{mode:"normal"}),y.isRecording&&rre(y),S.enterVimMode()}function N9(S){xn.unshift(S)}function ere(S,p,y,C,k){var I={keys:S,type:p};I[p]=y,I[p+"Args"]=C;for(var M in k)I[M]=k[M];N9(I)}Pe("insertModeEscKeysTimeout",200,"number"),ut.default.keyMap["vim-insert"]={fallthrough:["default"],attach:n,detach:r,call:o},ut.default.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:n,detach:r,call:o};function tre(S,p,y,C){var k=X.registerController.getRegister(C);if(C==":"){k.keyBuffer[0]&&ia.processCommand(S,k.keyBuffer[0]),y.isPlaying=!1;return}var I=k.keyBuffer,M=0;y.isPlaying=!0,y.replaySearchQueries=k.searchQueries.slice(0);for(var H=0;H|<\w+>|./.exec(W),Q=V[0],W=W.substring(V.index+Q.length),me.handleKey(S,Q,"macro"),p.insertMode){var se=k.insertModeChanges[M++].changes;X.macroModeState.lastInsertModeChanges.changes=se,z9(S,se,1),km(S)}y.isPlaying=!1}function ire(S,p){if(!S.isPlaying){var y=S.latestRegister,C=X.registerController.getRegister(y);C&&C.pushText(p)}}function rre(S){if(!S.isPlaying){var p=S.latestRegister,y=X.registerController.getRegister(p);y&&y.pushInsertModeChanges&&y.pushInsertModeChanges(S.lastInsertModeChanges)}}function nre(S,p){if(!S.isPlaying){var y=S.latestRegister,C=X.registerController.getRegister(y);C&&C.pushSearchQuery&&C.pushSearchQuery(p)}}function R9(S,p){var y=X.macroModeState,C=y.lastInsertModeChanges;if(!y.isPlaying)for(;p;){if(C.expectCursorActivityForChange=!0,C.ignoreCount>1)C.ignoreCount--;else if(p.origin=="+input"||p.origin=="paste"||p.origin===void 0){var k=S.listSelections().length;k>1&&(C.ignoreCount=k);var I=p.text.join(` -`);C.maybeReset&&(C.changes=[],C.maybeReset=!1),I&&(S.state.overwrite&&!/\n/.test(I)?C.changes.push([I]):C.changes.push(I))}p=p.next}}function P9(S){var p=S.state.vim;if(p.insertMode){var y=X.macroModeState;if(y.isPlaying)return;var C=y.lastInsertModeChanges;C.expectCursorActivityForChange?C.expectCursorActivityForChange=!1:C.maybeReset=!0}else S.curOp.isVimOp||ore(S,p)}function ore(S,p){var y=S.getCursor("anchor"),C=S.getCursor("head");if(p.visualMode&&!S.somethingSelected()?Js(S,!1):!p.visualMode&&!p.insertMode&&S.somethingSelected()&&(p.visualMode=!0,p.visualLine=!1,ut.default.signal(S,"vim-mode-change",{mode:"visual"})),p.visualMode){var k=De(C,y)?0:-1,I=De(C,y)?-1:0;C=fr(C,0,k),y=fr(y,0,I),p.sel={anchor:y,head:C},sl(S,p,"<",bt(C,y)),sl(S,p,">",Vt(C,y))}else p.insertMode||(p.lastHPos=S.getCursor().ch)}function L3(S){this.keyName=S}function O9(S){var p=X.macroModeState,y=p.lastInsertModeChanges,C=ut.default.keyName(S);if(!C)return;function k(){return y.maybeReset&&(y.changes=[],y.maybeReset=!1),y.changes.push(new L3(C)),!0}(C.indexOf("Delete")!=-1||C.indexOf("Backspace")!=-1)&&ut.default.lookupKey(C,"vim-insert",k)}function F9(S,p,y,C){var k=X.macroModeState;k.isPlaying=!0;var I=!!p.lastEditActionCommand,M=p.inputState;function H(){I?Ii.processAction(S,p,p.lastEditActionCommand):Ii.evalInput(S,p)}function W(Q){if(k.lastInsertModeChanges.changes.length>0){Q=p.lastEditActionCommand?Q:1;var se=k.lastInsertModeChanges;z9(S,se.changes,Q)}}if(p.inputState=p.lastEditInputState,I&&p.lastEditActionCommand.interlaceInsertRepeat)for(var V=0;V{"use strict";Object.defineProperty(A4,"__esModule",{value:!0});A4.default=void 0;function w_e(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function YQ(i,e){for(var t=0;t2&&arguments[2]!==void 0?arguments[2]:null;w_e(this,i),this.closeInput=function(){r.removeInputListeners(),r.input=null,r.setSec(""),r.editor&&r.editor.focus()},this.clear=function(){r.setInnerHtml_(r.node,"")},this.inputKeyUp=function(o){var s=r.input.options;s&&s.onKeyUp&&s.onKeyUp(o,o.target.value,r.closeInput)},this.inputKeyInput=function(o){var s=r.input.options;s&&s.onKeyInput&&s.onKeyUp(o,o.target.value,r.closeInput)},this.inputBlur=function(){var o=r.input.options;o.closeOnBlur&&r.closeInput()},this.inputKeyDown=function(o){var s=r.input,a=s.options,l=s.callback;a&&a.onKeyDown&&a.onKeyDown(o,o.target.value,r.closeInput)||((o.keyCode===27||a&&a.closeOnEnter!==!1&&o.keyCode==13)&&(r.input.node.blur(),o.stopPropagation(),r.closeInput()),o.keyCode===13&&l&&(o.stopPropagation(),o.preventDefault(),l(o.target.value)))},this.node=e,this.modeInfoNode=document.createElement("span"),this.secInfoNode=document.createElement("span"),this.notifNode=document.createElement("span"),this.notifNode.className="vim-notification",this.keyInfoNode=document.createElement("span"),this.keyInfoNode.setAttribute("style","float: right"),this.node.appendChild(this.modeInfoNode),this.node.appendChild(this.secInfoNode),this.node.appendChild(this.notifNode),this.node.appendChild(this.keyInfoNode),this.toggleVisibility(!1),this.editor=t,this.sanitizer=n}return x_e(i,[{key:"setMode",value:function(t){if(t.mode==="visual"){t.subMode==="linewise"?this.setText("--VISUAL LINE--"):t.subMode==="blockwise"?this.setText("--VISUAL BLOCK--"):this.setText("--VISUAL--");return}this.setText("--".concat(t.mode.toUpperCase(),"--"))}},{key:"setKeyBuffer",value:function(t){this.keyInfoNode.textContent=t}},{key:"setSec",value:function(t,r,n){if(this.notifNode.textContent="",t===void 0)return this.closeInput;this.setInnerHtml_(this.secInfoNode,t);var o=this.secInfoNode.querySelector("input");return o&&(o.focus(),this.input={callback:r,options:n,node:o},n&&(n.selectValueOnOpen&&o.select(),n.value&&(o.value=n.value)),this.addInputListeners()),this.closeInput}},{key:"setText",value:function(t){this.modeInfoNode.textContent=t}},{key:"toggleVisibility",value:function(t){t?this.node.style.display="block":this.node.style.display="none",this.input&&this.removeInputListeners(),clearInterval(this.notifTimeout)}},{key:"addInputListeners",value:function(){var t=this.input.node;t.addEventListener("keyup",this.inputKeyUp),t.addEventListener("keydown",this.inputKeyDown),t.addEventListener("input",this.inputKeyInput),t.addEventListener("blur",this.inputBlur)}},{key:"removeInputListeners",value:function(){if(!(!this.input||!this.input.node)){var t=this.input.node;t.removeEventListener("keyup",this.inputKeyUp),t.removeEventListener("keydown",this.inputKeyDown),t.removeEventListener("input",this.inputKeyInput),t.removeEventListener("blur",this.inputBlur)}}},{key:"showNotification",value:function(t){var r=this,n=document.createElement("span");this.setInnerHtml_(n,t),this.notifNode.textContent=n.textContent,this.notifTimeout=setTimeout(function(){r.notifNode.textContent=""},5e3)}},{key:"setInnerHtml_",value:function(t,r){for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);r&&(this.sanitizer?t.appendChild(this.sanitizer(r)):t.appendChild(r))}}]),i}();A4.default=C_e});var eZ=Qi(fv=>{"use strict";Object.defineProperty(fv,"__esModule",{value:!0});Object.defineProperty(fv,"StatusBar",{enumerable:!0,get:function(){return ZQ.default}});Object.defineProperty(fv,"VimMode",{enumerable:!0,get:function(){return QQ.default}});fv.initVimMode=S_e;var QQ=JQ(GQ()),ZQ=JQ(XQ());function JQ(i){return i&&i.__esModule?i:{default:i}}function S_e(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ZQ.default,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,n=new QQ.default(i);if(!e)return n.attach(),n;var o=new t(e,i,r),s="";return n.on("vim-mode-change",function(a){o.setMode(a)}),n.on("vim-keypress",function(a){a===":"?s="":s+=a,o.setKeyBuffer(s)}),n.on("vim-command-done",function(){s="",o.setKeyBuffer(s)}),n.on("dispose",function(){o.toggleVisibility(!1),o.closeInput(),o.clear()}),o.toggleVisibility(!0),n.setStatusBar(o),n.attach(),n}});var tZ=N(()=>{Ge();ie({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>import("./abap-VAQQMSMV.js")})});var iZ=N(()=>{Ge();ie({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>import("./apex-UGORXUMY.js")})});var rZ=N(()=>{Ge();ie({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>import("./azcli-5IGBGNJX.js")})});var nZ=N(()=>{Ge();ie({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>import("./bat-I2Q2VM2E.js")})});var oZ=N(()=>{Ge();ie({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>import("./bicep-6DU2S5EQ.js")})});var sZ=N(()=>{Ge();ie({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>import("./cameligo-FQU2BD2Q.js")})});var aZ=N(()=>{Ge();ie({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>import("./clojure-X5EURZF4.js")})});var lZ=N(()=>{Ge();ie({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>import("./coffee-V3VYUJVN.js")})});var cZ=N(()=>{Ge();ie({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>import("./cpp-EIUZ67SI.js")});ie({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>import("./cpp-EIUZ67SI.js")})});var dZ=N(()=>{Ge();ie({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>import("./csharp-6XMKEPGL.js")})});var uZ=N(()=>{Ge();ie({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>import("./csp-RUXEOTA7.js")})});var hZ=N(()=>{Ge();ie({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>import("./cypher-LB5ELPID.js")})});var fZ=N(()=>{Ge();ie({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>import("./dart-6KXBVQQ5.js")})});var pZ=N(()=>{Ge();ie({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>import("./ecl-M4POWDBD.js")})});var mZ=N(()=>{Ge();ie({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>import("./flow9-CCUIXH3M.js")})});var gZ=N(()=>{Ge();ie({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>import("./fsharp-VVLVFTJD.js")})});var bZ=N(()=>{Ge();ie({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAutoInterpolationDollar)});ie({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAngleInterpolationDollar)});ie({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagBracketInterpolationDollar)});ie({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAngleInterpolationBracket)});ie({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagBracketInterpolationBracket)});ie({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAutoInterpolationDollar)});ie({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>import("./freemarker2-B2ESJTNL.js").then(i=>i.TagAutoInterpolationBracket)})});var vZ=N(()=>{Ge();ie({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>import("./go-BSHCOGOM.js")})});var _Z=N(()=>{Ge();ie({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>import("./graphql-QJYQP674.js")})});var yZ=N(()=>{Ge();ie({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>import("./handlebars-VNAHN657.js")})});var wZ=N(()=>{Ge();ie({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>import("./hcl-B2FOVQI3.js")})});var xZ=N(()=>{Ge();ie({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>import("./ini-K4OMSQGU.js")})});var CZ=N(()=>{Ge();ie({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>import("./java-M2SLT6P5.js")})});var SZ=N(()=>{Ge();ie({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>import("./julia-UMW37XS3.js")})});var kZ=N(()=>{Ge();ie({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>import("./kotlin-DTS7EPKW.js")})});var EZ=N(()=>{Ge();ie({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>import("./less-64EWHB2U.js")})});var TZ=N(()=>{Ge();ie({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>import("./lexon-VSTQQJS4.js")})});var IZ=N(()=>{Ge();ie({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>import("./lua-DEBQHPWC.js")})});var AZ=N(()=>{Ge();ie({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>import("./liquid-PZUYRUGD.js")})});var LZ=N(()=>{Ge();ie({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>import("./m3-BVWXEQNO.js")})});var DZ=N(()=>{Ge();ie({id:"mdx",extensions:[".mdx"],aliases:["MDX","mdx"],loader:()=>import("./mdx-VP3GSOCD.js")})});var MZ=N(()=>{Ge();ie({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>import("./mips-PLBQC4OD.js")})});var NZ=N(()=>{Ge();ie({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>import("./msdax-T7T2KNYQ.js")})});var RZ=N(()=>{Ge();ie({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>import("./mysql-6SINHLS3.js")})});var PZ=N(()=>{Ge();ie({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>import("./objective-c-HU5BK7KT.js")})});var OZ=N(()=>{Ge();ie({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>import("./pascal-35QHNCUU.js")})});var FZ=N(()=>{Ge();ie({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>import("./pascaligo-XJIGVHMA.js")})});var zZ=N(()=>{Ge();ie({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>import("./perl-EJ4CU5Y5.js")})});var BZ=N(()=>{Ge();ie({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>import("./pgsql-O5YVZFG3.js")})});var HZ=N(()=>{Ge();ie({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>import("./php-7OX4N2D2.js")})});var UZ=N(()=>{Ge();ie({id:"pla",extensions:[".pla"],loader:()=>import("./pla-XIRH422Y.js")})});var jZ=N(()=>{Ge();ie({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>import("./postiats-FSD57ZTG.js")})});var WZ=N(()=>{Ge();ie({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>import("./powerquery-WN3FBQ3N.js")})});var VZ=N(()=>{Ge();ie({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>import("./powershell-6POP5WYL.js")})});var qZ=N(()=>{Ge();ie({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>import("./protobuf-R3NYANEY.js")})});var KZ=N(()=>{Ge();ie({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>import("./pug-UMENAZU6.js")})});var $Z=N(()=>{Ge();ie({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>import("./python-CAXMRMZU.js")})});var GZ=N(()=>{Ge();ie({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>import("./qsharp-JPLZF5CJ.js")})});var YZ=N(()=>{Ge();ie({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>import("./r-V566F5LS.js")})});var XZ=N(()=>{Ge();ie({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>import("./razor-VXRRUWJU.js")})});var QZ=N(()=>{Ge();ie({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>import("./redis-C25WFMNL.js")})});var ZZ=N(()=>{Ge();ie({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>import("./redshift-LE5NUCLH.js")})});var JZ=N(()=>{Ge();ie({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>import("./restructuredtext-XX5QEZJT.js")})});var eJ=N(()=>{Ge();ie({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>import("./ruby-XQPDAWDE.js")})});var tJ=N(()=>{Ge();ie({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>import("./rust-TOYK7AZY.js")})});var iJ=N(()=>{Ge();ie({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>import("./sb-J2JR5LHW.js")})});var rJ=N(()=>{Ge();ie({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>import("./scala-YUYNXHOB.js")})});var nJ=N(()=>{Ge();ie({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>import("./scheme-3ZBC5PHA.js")})});var oJ=N(()=>{Ge();ie({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>import("./scss-TEOGYYZ6.js")})});var sJ=N(()=>{Ge();ie({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>import("./shell-BD6IL5P2.js")})});var aJ=N(()=>{Ge();ie({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>import("./solidity-7YGHHWAJ.js")})});var lJ=N(()=>{Ge();ie({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>import("./sophia-UUA6XVAK.js")})});var cJ=N(()=>{Ge();ie({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>import("./sparql-CQTB3JIZ.js")})});var dJ=N(()=>{Ge();ie({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib",".TcPOU",".TcDUT",".TcGVL",".TcIO"],aliases:["StructuredText","scl","stl"],loader:()=>import("./st-EUKBJWA4.js")})});var uJ=N(()=>{Ge();ie({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>import("./swift-DJAXPCZZ.js")})});var hJ=N(()=>{Ge();ie({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>import("./systemverilog-VL3WHTSC.js")});ie({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>import("./systemverilog-VL3WHTSC.js")})});var fJ=N(()=>{Ge();ie({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>import("./tcl-HX43DWKO.js")})});var pJ=N(()=>{Ge();ie({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>import("./twig-33VJJYP3.js")})});var mJ=N(()=>{Ge();ie({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>import("./typescript-YY3TBR77.js")})});var gJ=N(()=>{Ge();ie({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>import("./vb-7EFP77QG.js")})});var bJ=N(()=>{Ge();ie({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>import("./wgsl-LFVBXOME.js")})});var vJ=N(()=>{Ge();ie({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>import("./yaml-THK2ACKN.js")})});var _J=N(()=>{Ns();tZ();iZ();rZ();nZ();oZ();sZ();aZ();lZ();cZ();dZ();uZ();QM();hZ();fZ();eN();pZ();$M();mZ();gZ();bZ();vZ();_Z();yZ();wZ();ZM();xZ();CZ();YM();SZ();kZ();EZ();TZ();IZ();AZ();LZ();GM();DZ();MZ();NZ();RZ();PZ();OZ();FZ();zZ();BZ();HZ();UZ();jZ();WZ();VZ();qZ();KZ();$Z();GZ();YZ();XZ();QZ();ZZ();JZ();eJ();tJ();iJ();rJ();nJ();oJ();sJ();aJ();lJ();cJ();XM();dJ();uJ();hJ();fJ();pJ();mJ();gJ();bJ();JM();vJ();});function xN(){return import("./cssMode-3KIDE53D.js")}var k_e,E_e,T_e,I_e,yJ,A_e,mm,_N,yN,wN,wJ,xJ,CJ,SJ=N(()=>{Ns();Ns();k_e=Object.defineProperty,E_e=Object.getOwnPropertyDescriptor,T_e=Object.getOwnPropertyNames,I_e=Object.prototype.hasOwnProperty,yJ=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of T_e(e))!I_e.call(i,n)&&n!==t&&k_e(i,n,{get:()=>e[n],enumerable:!(r=E_e(e,n))||r.enumerable});return i},A_e=(i,e,t)=>(yJ(i,e,"default"),t&&yJ(t,e,"default")),mm={};A_e(mm,Ms);_N=class{constructor(i,e,t){xr(this,"_onDidChange",new mm.Emitter);xr(this,"_options");xr(this,"_modeConfiguration");xr(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(i){this.setOptions(i)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},yN={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},wN={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},wJ=new _N("css",yN,wN),xJ=new _N("scss",yN,wN),CJ=new _N("less",yN,wN);mm.languages.css={cssDefaults:wJ,lessDefaults:CJ,scssDefaults:xJ};mm.languages.onLanguage("less",()=>{xN().then(i=>i.setupMode(CJ))});mm.languages.onLanguage("scss",()=>{xN().then(i=>i.setupMode(xJ))});mm.languages.onLanguage("css",()=>{xN().then(i=>i.setupMode(wJ))})});function M4(i){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:i===pv,documentFormattingEdits:i===pv,documentRangeFormattingEdits:i===pv}}function H_e(){return import("./htmlMode-EEO2WQ3S.js")}function N4(i,e=D4,t=M4(i)){let r=new P_e(i,e,t),n,o=L4.languages.onLanguage(i,async()=>{n=(await H_e()).setupMode(r)});return{defaults:r,dispose(){o.dispose(),n==null||n.dispose(),n=void 0}}}var L_e,D_e,M_e,N_e,kJ,R_e,L4,P_e,O_e,D4,pv,EJ,TJ,IJ,F_e,AJ,z_e,LJ,B_e,DJ=N(()=>{Ns();Ns();L_e=Object.defineProperty,D_e=Object.getOwnPropertyDescriptor,M_e=Object.getOwnPropertyNames,N_e=Object.prototype.hasOwnProperty,kJ=(i,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of M_e(e))!N_e.call(i,n)&&n!==t&&L_e(i,n,{get:()=>e[n],enumerable:!(r=D_e(e,n))||r.enumerable});return i},R_e=(i,e,t)=>(kJ(i,e,"default"),t&&kJ(t,e,"default")),L4={};R_e(L4,Ms);P_e=class{constructor(i,e,t){xr(this,"_onDidChange",new L4.Emitter);xr(this,"_options");xr(this,"_modeConfiguration");xr(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},O_e={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},D4={format:O_e,suggest:{},data:{useDefaultDataProvider:!0}};pv="html",EJ="handlebars",TJ="razor",IJ=N4(pv,D4,M4(pv)),F_e=IJ.defaults,AJ=N4(EJ,D4,M4(EJ)),z_e=AJ.defaults,LJ=N4(TJ,D4,M4(TJ)),B_e=LJ.defaults;L4.languages.html={htmlDefaults:F_e,razorDefaults:B_e,handlebarDefaults:z_e,htmlLanguageService:IJ,handlebarLanguageService:AJ,razorLanguageService:LJ,registerHTMLLanguageService:N4}});var U_e,CN,j_e,Uh,SN,kN=N(()=>{ca();dne();Xo();Hr();ke();Pt();j_();U_e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},CN=function(i,e){return function(t,r){e(t,r,i)}},j_e=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},Uh=class{constructor(e,t){this._editorWorkerClient=new yz(e,!1,"editorWorkerService",t)}provideDocumentColors(e,t){return j_e(this,void 0,void 0,function*(){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)})}provideColorPresentations(e,t,r){let n=t.range,o=t.color,s=o.alpha,a=new vt(new Ts(Math.round(255*o.red),Math.round(255*o.green),Math.round(255*o.blue),s)),l=s?vt.Format.CSS.formatRGB(a):vt.Format.CSS.formatRGBA(a),c=s?vt.Format.CSS.formatHSL(a):vt.Format.CSS.formatHSLA(a),d=s?vt.Format.CSS.formatHex(a):vt.Format.CSS.formatHexA(a),u=[];return u.push({label:l,textEdit:{range:n,text:l}}),u.push({label:c,textEdit:{range:n,text:c}}),u.push({label:d,textEdit:{range:n,text:d}}),u}},SN=class extends ce{constructor(e,t,r){super(),this._register(r.colorProvider.register("*",new Uh(e,t)))}};SN=U_e([CN(0,Di),CN(1,Ot),CN(2,Se)],SN);Yc(SN)});function R4(i,e,t,r=!0){return mv(this,void 0,void 0,function*(){return LN(new EN,i,e,t,r)})}function AN(i,e,t,r){return Promise.resolve(t.provideColorPresentations(i,e,r))}function LN(i,e,t,r,n){return mv(this,void 0,void 0,function*(){let o=!1,s,a=[],l=e.ordered(t);for(let c=l.length-1;c>=0;c--){let d=l[c];if(d instanceof Uh)s=d;else try{(yield i.compute(d,t,r,a))&&(o=!0)}catch(u){Xt(u)}}return o?a:s&&n?(yield i.compute(s,t,r,a),a):[]})}function MJ(i,e){let{colorProvider:t}=i.get(Se),r=i.get(Di).getModel(e);if(!r)throw ko();let n=i.get(Mt).getValue("editor.defaultColorDecorators",{resource:e});return{model:r,colorProviderRegistry:t,isDefaultColorDecoratorsEnabled:n}}var mv,EN,TN,IN,DN=N(()=>{ki();qt();Ir();et();Xo();Vi();Pt();kN();Sr();mv=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};EN=class{constructor(){}compute(e,t,r,n){return mv(this,void 0,void 0,function*(){let o=yield e.provideDocumentColors(t,r);if(Array.isArray(o))for(let s of o)n.push({colorInfo:s,provider:e});return Array.isArray(o)})}},TN=class{constructor(){}compute(e,t,r,n){return mv(this,void 0,void 0,function*(){let o=yield e.provideDocumentColors(t,r);if(Array.isArray(o))for(let s of o)n.push({range:s.range,color:[s.color.red,s.color.green,s.color.blue,s.color.alpha]});return Array.isArray(o)})}},IN=class{constructor(e){this.colorInfo=e}compute(e,t,r,n){return mv(this,void 0,void 0,function*(){let o=yield e.provideColorPresentations(t,this.colorInfo,st.None);return Array.isArray(o)&&n.push(...o),Array.isArray(o)})}};Dt.registerCommand("_executeDocumentColorProvider",function(i,...e){let[t]=e;if(!(t instanceof yt))throw ko();let{model:r,colorProviderRegistry:n,isDefaultColorDecoratorsEnabled:o}=MJ(i,t);return LN(new TN,n,r,st.None,o)});Dt.registerCommand("_executeColorPresentationProvider",function(i,...e){let[t,r]=e,{uri:n,range:o}=r;if(!(n instanceof yt)||!Array.isArray(t)||t.length!==4||!B.isIRange(o))throw ko();let{model:s,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=MJ(i,n),[c,d,u,h]=t;return LN(new IN({range:o,color:{red:c,green:d,blue:u,alpha:h}}),a,s,st.None,l)})});var W_e,MN,NJ,NN,PN,_c,RN,ON=N(()=>{jt();ca();qt();ei();ke();al();Ni();JF();lt();et();Ur();Ds();Pt();DN();Sr();W_e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},MN=function(i,e){return function(t,r){e(t,r,i)}},NJ=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},PN=Object.create({}),_c=NN=class extends ce{constructor(e,t,r,n){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=r,this._localToDispose=this._register(new le),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new ty(this._editor),this._decoratorLimitReporter=new RN,this._colorDecorationClassRefs=this._register(new le),this._debounceInformation=n.for(r.colorProvider,"Document Colors",{min:NN.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(r.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(o=>{let s=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(144);let a=s!==this._isColorDecoratorsEnabled||o.hasChanged(20),l=o.hasChanged(144);(a||l)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(144),this.updateColors()}isEnabled(){let e=this._editor.getModel();if(!e)return!1;let t=e.getLanguageId(),r=this._configurationService.getValue(t);if(r&&typeof r=="object"){let n=r.colorDecorators;if(n&&n.enable!==void 0&&!n.enable)return n.enable}return this._editor.getOption(19)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;let e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new aa,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){return NJ(this,void 0,void 0,function*(){this._computePromise=Jt(e=>NJ(this,void 0,void 0,function*(){let t=this._editor.getModel();if(!t)return[];let r=new mr(!1),n=yield R4(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,r.elapsed()),n}));try{let e=yield this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){ft(e)}})}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){let t=e.map(r=>({range:{startLineNumber:r.colorInfo.range.startLineNumber,startColumn:r.colorInfo.range.startColumn,endLineNumber:r.colorInfo.range.endLineNumber,endColumn:r.colorInfo.range.endColumn},options:mt.EMPTY}));this._editor.changeDecorations(r=>{this._decorationsIds=r.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((n,o)=>this._colorDatas.set(n,e[o]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();let t=[],r=this._editor.getOption(20);for(let o=0;othis._colorDatas.has(n.id));return r.length===0?null:this._colorDatas.get(r[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};_c.ID="editor.contrib.colorDetector";_c.RECOMPUTE_TIME=1e3;_c=NN=W_e([MN(1,Mt),MN(2,Se),MN(3,lr)],_c);RN=class{constructor(){this._onDidChange=new Je,this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}};Ue(_c.ID,_c,1)});var P4,RJ=N(()=>{ei();P4=class{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,r){this.presentationIndex=r,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new Je,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new Je,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let r=-1;for(let n=0;n{});var O4=N(()=>{PJ()});var Co,FN,zN,BN,HN,F4,UN,jN,WN,z4,OJ=N(()=>{K9();Ht();zre();M_();Zr();ca();ei();ke();An();O4();He();tn();Sl();Co=Ae,FN=class extends ce{constructor(e,t,r,n=!1){super(),this.model=t,this.showingStandaloneColorPicker=n,this._closeButton=null,this._domNode=Co(".colorpicker-header"),Te(e,this._domNode),this._pickedColorNode=Te(this._domNode,Co(".picked-color")),Te(this._pickedColorNode,Co("span.codicon.codicon-color-mode")),this._pickedColorPresentation=Te(this._pickedColorNode,document.createElement("span")),this._pickedColorPresentation.classList.add("picked-color-presentation");let o=b("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",o),this._originalColorNode=Te(this._domNode,Co(".original-color")),this._originalColorNode.style.backgroundColor=vt.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=r.getColorTheme().getColor(ik)||vt.white,this._register(r.onDidColorThemeChange(s=>{this.backgroundColor=s.getColor(ik)||vt.white})),this._register(Lt(this._pickedColorNode,bi.CLICK,()=>this.model.selectNextColorPresentation())),this._register(Lt(this._originalColorNode,bi.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=vt.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new zN(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=vt.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorPresentation.textContent=this.model.presentation?this.model.presentation.label:""}},zN=class extends ce{constructor(e){super(),this._onClicked=this._register(new Je),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),Te(e,this._button);let t=document.createElement("div");t.classList.add("close-button-inner-div"),Te(this._button,t),Te(t,Co(".button"+_t.asCSSSelector(Pi("color-picker-close",pt.close,b("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._button.onclick=()=>{this._onClicked.fire()}}},BN=class extends ce{constructor(e,t,r,n=!1){super(),this.model=t,this.pixelRatio=r,this._insertButton=null,this._domNode=Co(".colorpicker-body"),Te(e,this._domNode),this._saturationBox=new HN(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new UN(this._domNode,this.model,n),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new jN(this._domNode,this.model,n),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),n&&(this._insertButton=this._register(new WN(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){let r=this.model.color.hsva;this.model.color=new vt(new Hm(r.h,e,t,r.a))}onDidOpacityChange(e){let t=this.model.color.hsva;this.model.color=new vt(new Hm(t.h,t.s,t.v,e))}onDidHueChange(e){let t=this.model.color.hsva,r=(1-e)*360;this.model.color=new vt(new Hm(r===360?0:r,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}},HN=class extends ce{constructor(e,t,r){super(),this.model=t,this.pixelRatio=r,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,this._domNode=Co(".saturation-wrap"),Te(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",Te(this._domNode,this._canvas),this.selection=Co(".saturation-selection"),Te(this._domNode,this.selection),this.layout(),this._register(Lt(this._domNode,bi.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new dk);let t=Zi(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,n=>this.onDidChangePosition(n.pageX-t.left,n.pageY-t.top),()=>null);let r=Lt(document,bi.POINTER_UP,()=>{this._onColorFlushed.fire(),r.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){let r=Math.max(0,Math.min(1,e/this.width)),n=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(r,n),this._onDidChange.fire({s:r,v:n})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();let e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){let e=this.model.color.hsva,t=new vt(new Hm(e.h,1,1,1)),r=this._canvas.getContext("2d"),n=r.createLinearGradient(0,0,this._canvas.width,0);n.addColorStop(0,"rgba(255, 255, 255, 1)"),n.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),n.addColorStop(1,"rgba(255, 255, 255, 0)");let o=r.createLinearGradient(0,0,0,this._canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),r.rect(0,0,this._canvas.width,this._canvas.height),r.fillStyle=vt.Format.CSS.format(t),r.fill(),r.fillStyle=n,r.fill(),r.fillStyle=o,r.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(e){if(this.monitor&&this.monitor.isMonitoring())return;this.paint();let t=e.hsva;this.paintSelection(t.s,t.v)}},F4=class extends ce{constructor(e,t,r=!1){super(),this.model=t,this._onDidChange=new Je,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new Je,this.onColorFlushed=this._onColorFlushed.event,r?(this.domNode=Te(e,Co(".standalone-strip")),this.overlay=Te(this.domNode,Co(".standalone-overlay"))):(this.domNode=Te(e,Co(".strip")),this.overlay=Te(this.domNode,Co(".overlay"))),this.slider=Te(this.domNode,Co(".slider")),this.slider.style.top="0px",this._register(Lt(this.domNode,bi.POINTER_DOWN,n=>this.onPointerDown(n))),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;let e=this.getValue(this.model.color);this.updateSliderPosition(e)}onDidChangeColor(e){let t=this.getValue(e);this.updateSliderPosition(t)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._register(new dk),r=Zi(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,o=>this.onDidChangeTop(o.pageY-r.top),()=>null);let n=Lt(document,bi.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){let t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}},UN=class extends F4{constructor(e,t,r=!1){super(e,t,r),this.domNode.classList.add("opacity-strip"),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){super.onDidChangeColor(e);let{r:t,g:r,b:n}=e.rgba,o=new vt(new Ts(t,r,n,1)),s=new vt(new Ts(t,r,n,0));this.overlay.style.background=`linear-gradient(to bottom, ${o} 0%, ${s} 100%)`}getValue(e){return e.hsva.a}},jN=class extends F4{constructor(e,t,r=!1){super(e,t,r),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}},WN=class extends ce{constructor(e){super(),this._onClicked=this._register(new Je),this.onClicked=this._onClicked.event,this._button=Te(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._button.onclick=t=>{this._onClicked.fire()}}get button(){return this._button}},z4=class extends _l{constructor(e,t,r,n,o=!1){super(),this.model=t,this.pixelRatio=r,this._register(V9.onDidChange(()=>this.layout()));let s=Co(".colorpicker-widget");e.appendChild(s),this.header=this._register(new FN(s,this.model,n,o)),this.body=this._register(new BN(s,this.model,this.pixelRatio,o))}layout(){this.body.layout()}}});function BJ(i,e,t,r){return gm(this,void 0,void 0,function*(){let n=e.getValueInRange(t.range),{red:o,green:s,blue:a,alpha:l}=t.color,c=new Ts(Math.round(o*255),Math.round(s*255),Math.round(a*255),l),d=new vt(c),u=yield AN(e,t,r,st.None),h=new P4(d,[],0);return h.colorPresentations=u||[],h.guessColorPresentation(d,n),i instanceof gv?new VN(i,B.lift(t.range),h,r):new qN(i,B.lift(t.range),h,r)})}function HJ(i,e,t,r,n){if(r.length===0||!e.hasModel())return ce.None;if(n.setMinimumDimensions){let h=e.getOption(65)+8;n.setMinimumDimensions(new Qt(302,h))}let o=new le,s=r[0],a=e.getModel(),l=s.model,c=o.add(new z4(n.fragment,l,e.getOption(140),t,i instanceof bm));n.setColorPicker(c);let d=!1,u=new B(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn);if(i instanceof bm){let h=r[0].model.color;i.color=h,B4(a,l,h,u,s),o.add(l.onColorFlushed(f=>{i.color=f}))}else o.add(l.onColorFlushed(h=>gm(this,void 0,void 0,function*(){yield B4(a,l,h,u,s),d=!0,u=UJ(e,u,l,n)})));return o.add(l.onDidChangeColor(h=>{B4(a,l,h,u,s)})),o.add(e.onDidChangeModelContent(h=>{d?d=!1:(n.hide(),e.focus())})),o}function UJ(i,e,t,r){let n,o;if(t.presentation.textEdit){n=[t.presentation.textEdit],o=new B(t.presentation.textEdit.range.startLineNumber,t.presentation.textEdit.range.startColumn,t.presentation.textEdit.range.endLineNumber,t.presentation.textEdit.range.endColumn);let s=i.getModel()._setTrackedRange(null,o,3);i.pushUndoStop(),i.executeEdits("colorpicker",n),o=i.getModel()._getTrackedRange(s)||o}else n=[{range:e,text:t.presentation.label,forceMoveMarkers:!1}],o=e.setEndPosition(e.endLineNumber,e.startColumn+t.presentation.label.length),i.pushUndoStop(),i.executeEdits("colorpicker",n);return t.presentation.additionalTextEdits&&(n=[...t.presentation.additionalTextEdits],i.executeEdits("colorpicker",n),r&&r.hide()),i.pushUndoStop(),o}function B4(i,e,t,r,n){return gm(this,void 0,void 0,function*(){let o=yield AN(i,{range:r,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},n.provider,st.None);e.colorPresentations=o||[]})}var FJ,zJ,gm,VN,gv,qN,bm,KN=N(()=>{jt();ki();ca();ke();et();DN();ON();RJ();OJ();rn();Ht();FJ=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},zJ=function(i,e){return function(t,r){e(t,r,i)}},gm=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},VN=class{constructor(e,t,r,n){this.owner=e,this.range=t,this.model=r,this.provider=n,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},gv=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,r){return Mn.fromPromise(this._computeAsync(e,t,r))}_computeAsync(e,t,r){return gm(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];let n=_c.get(this._editor);if(!n)return[];for(let o of t){if(!n.isColorDecoration(o))continue;let s=n.getColorData(o.range.getStartPosition());if(s)return[yield BJ(this,this._editor.getModel(),s.colorInfo,s.provider)]}return[]})}renderHoverParts(e,t){return HJ(this,this._editor,this._themeService,t,e)}};gv=FJ([zJ(1,br)],gv);qN=class{constructor(e,t,r,n){this.owner=e,this.range=t,this.model=r,this.provider=n}},bm=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}createColorHover(e,t,r){return gm(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!_c.get(this._editor))return null;let o=yield R4(r,this._editor.getModel(),st.None),s=null,a=null;for(let u of o){let h=u.colorInfo;B.containsRange(h.range,e.range)&&(s=h,a=u.provider)}let l=s!=null?s:e,c=a!=null?a:t,d=!!s;return{colorHover:yield BJ(this,this._editor.getModel(),l,c),foundInEditor:d}})}updateEditorModel(e){return gm(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;let t=e.model,r=new B(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(yield B4(this._editor.getModel(),t,this._color,r,e),r=UJ(this._editor,r,t))})}renderHoverParts(e,t){return HJ(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};bm=FJ([zJ(1,br)],bm)});var bv,jJ=N(()=>{ke();lt();et();ON();KN();iS();rc();bv=class extends ce{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){let t=this._editor.getOption(145);if(t!=="click"&&t!=="clickAndHover")return;let r=e.target;if(r.type!==6||!r.detail.injectedText||r.detail.injectedText.options.attachedData!==PN||!r.range)return;let n=this._editor.getContribution(yn.ID);if(n&&!n.isColorPickerVisible){let o=new B(r.range.startLineNumber,r.range.startColumn+1,r.range.endLineNumber,r.range.endColumn+1);n.showContentHover(o,1,0,!1,!0)}}};bv.ID="editor.contrib.colorContribution";Ue(bv.ID,bv,2);Uo.register(gv)});var qJ,Qs,WJ,$N,GN,yc,VJ,V_e,H4,YN,KJ=N(()=>{ke();KN();Ut();s8();jr();ei();Pt();lt();ti();wt();Xo();Hr();kN();Ht();O4();qJ=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},Qs=function(i,e){return function(t,r){e(t,r,i)}},WJ=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},yc=$N=class extends ce{constructor(e,t,r,n,o,s,a){super(),this._editor=e,this._modelService=r,this._keybindingService=n,this._instantiationService=o,this._languageFeatureService=s,this._languageConfigurationService=a,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=F.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=F.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||(e=this._standaloneColorPickerWidget)===null||e===void 0||e.focus():this._standaloneColorPickerWidget=new H4(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),(e=this._standaloneColorPickerWidget)===null||e===void 0||e.hide(),this._editor.focus()}insertColor(){var e;(e=this._standaloneColorPickerWidget)===null||e===void 0||e.updateEditor(),this.hide()}static get(e){return e.getContribution($N.ID)}};yc.ID="editor.contrib.standaloneColorPickerController";yc=$N=qJ([Qs(1,it),Qs(2,Di),Qs(3,Kt),Qs(4,Ke),Qs(5,Se),Qs(6,Ot)],yc);Ue(yc.ID,yc,1);VJ=8,V_e=22,H4=GN=class extends ce{constructor(e,t,r,n,o,s,a,l){var c;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=r,this._modelService=o,this._keybindingService=s,this._languageFeaturesService=a,this._languageConfigurationService=l,this.allowEditorOverflow=!0,this._position=void 0,this._body=document.createElement("div"),this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new Je),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=n.createInstance(bm,this._editor),this._position=(c=this._editor._getViewModel())===null||c===void 0?void 0:c.getPrimaryCursorState().modelState.position;let d=this._editor.getSelection(),u=d?{startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(xs(this._body));this._register(h.onDidBlur(f=>{this.hide()})),this._register(h.onDidFocus(f=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(f=>{var m;let g=(m=f.target.element)===null||m===void 0?void 0:m.classList;g&&g.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(f=>{this._render(f.value,f.foundInEditor)})),this._start(u),this._body.style.zIndex="50",this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return GN.ID}getDomNode(){return this._body}getPosition(){if(!this._position)return null;let e=this._editor.getOption(59).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this._body.focus()}_start(e){return WJ(this,void 0,void 0,function*(){let t=yield this._computeAsync(e);t&&this._onResult.fire(new YN(t.result,t.foundInEditor))})}_computeAsync(e){return WJ(this,void 0,void 0,function*(){if(!this._editor.hasModel())return null;let t={range:e,color:{red:0,green:0,blue:0,alpha:1}},r=yield this._standaloneColorPickerParticipant.createColorHover(t,new Uh(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return r?{result:r.colorHover,foundInEditor:r.foundInEditor}:null})}_render(e,t){let r=document.createDocumentFragment(),n=this._register(new a1(this._keybindingService)),o,s={fragment:r,statusBar:n,setColorPicker:g=>o=g,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(s,[e])),o===void 0)return;this._body.classList.add("standalone-colorpicker-body"),this._body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this._body.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px",this._body.tabIndex=0,this._body.appendChild(r),o.layout();let a=o.body,l=a.saturationBox.domNode.clientWidth,c=a.domNode.clientWidth-l-V_e-VJ,d=o.body.enterButton;d==null||d.onClicked(()=>{this.updateEditor(),this.hide()});let u=o.header,h=u.pickedColorNode;h.style.width=l+VJ+"px";let f=u.originalColorNode;f.style.width=c+"px";let m=o.header.closeButton;m==null||m.onClicked(()=>{this.hide()}),t&&(d&&(d.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};H4.ID="editor.contrib.standaloneColorPickerWidget";H4=GN=qJ([Qs(3,Ke),Qs(4,Di),Qs(5,Kt),Qs(6,Se),Qs(7,Ot)],H4);YN=class{constructor(e,t){this.value=e,this.foundInEditor=t}}});var XN,QN,ZN,$J=N(()=>{lt();He();KJ();ti();Ji();O4();XN=class extends oa{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{value:b("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:b({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker"),original:"Show or Focus Standalone Color Picker"},precondition:void 0,menu:[{id:Me.CommandPalette}]})}runEditorCommand(e,t){var r;(r=yc.get(t))===null||r===void 0||r.showOrFocus()}},QN=class extends de{constructor(){super({id:"editor.action.hideColorPicker",label:b({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:F.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var r;(r=yc.get(t))===null||r===void 0||r.hide()}},ZN=class extends de{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:b({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:F.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var r;(r=yc.get(t))===null||r===void 0||r.insertColor()}};ee(QN);ee(ZN);Si(XN)});function GJ(i,e){var t;return!!(!((t=i.pasteMimeTypes)===null||t===void 0)&&t.some(r=>e.matches(r)))}var q_e,vm,wc,eR,tR,iR,JN,tu,YJ=N(()=>{Ht();mi();jt();j0();ke();Y3();Tn();H0();JO();CI();tg();et();Pt();EI();yu();K0();He();Zm();wt();Ut();$c();wl();II();q_e=function(i,e,t,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,r);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(n<3?s(o):n>3?s(e,t,o):s(e,t))||o);return n>3&&o&&Object.defineProperty(e,t,o),o},vm=function(i,e){return function(t,r){e(t,r,i)}},wc=function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})},tR="editor.changePasteType",iR=new ht("pasteWidgetVisible",!1,b("pasteWidgetVisible","Whether the paste widget is showing")),JN="application/vnd.code.copyMetadata",tu=eR=class extends ce{static get(e){return e.getContribution(eR.ID)}constructor(e,t,r,n,o,s,a){super(),this._bulkEditService=r,this._clipboardService=n,this._languageFeaturesService=o,this._quickInputService=s,this._progressService=a,this._editor=e;let l=e.getContainerDomNode();this._register(Lt(l,"copy",c=>this.handleCopy(c))),this._register(Lt(l,"cut",c=>this.handleCopy(c))),this._register(Lt(l,"paste",c=>this.handlePaste(c),!0)),this._pasteProgressManager=this._register(new up("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(hp,"pasteIntoEditor",e,iR,{id:tR,label:b("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferredId:e},document.execCommand("paste")}finally{this._pasteAsActionContext=void 0}}isPasteAsEnabled(){return this._editor.getOption(83).enabled&&!this._editor.getOption(89)}handleCopy(e){var t,r;if(!this._editor.hasTextFocus()||(Uv&&this._clipboardService.writeResources([]),!e.clipboardData||!this.isPasteAsEnabled()))return;let n=this._editor.getModel(),o=this._editor.getSelections();if(!n||!(o!=null&&o.length))return;let s=this._editor.getOption(36),a=o,l=o.length===1&&o[0].isEmpty();if(l){if(!s)return;a=[new B(a[0].startLineNumber,1,a[0].startLineNumber,1+n.getLineLength(a[0].startLineNumber))]}let c=(t=this._editor._getViewModel())===null||t===void 0?void 0:t.getPlainTextToCopy(o,s,Rc),u={multicursorText:Array.isArray(c)?c:null,pasteOnNewLine:l,mode:null},h=this._languageFeaturesService.documentPasteEditProvider.ordered(n).filter(_=>!!_.prepareDocumentPaste);if(!h.length){this.setCopyMetadata(e.clipboardData,{defaultPastePayload:u});return}let f=xI(e.clipboardData),m=h.flatMap(_=>{var E;return(E=_.copyMimeTypes)!==null&&E!==void 0?E:[]}),g=Td();this.setCopyMetadata(e.clipboardData,{id:g,providerCopyMimeTypes:m,defaultPastePayload:u});let w=Jt(_=>wc(this,void 0,void 0,function*(){let E=hn(yield Promise.all(h.map(L=>wc(this,void 0,void 0,function*(){try{return yield L.prepareDocumentPaste(n,a,f,_)}catch(A){console.error(A);return}}))));E.reverse();for(let L of E)for(let[A,O]of L)f.replace(A,O);return f}));(r=this._currentCopyOperation)===null||r===void 0||r.dataTransferPromise.cancel(),this._currentCopyOperation={handle:g,dataTransferPromise:w}}handlePaste(e){var t,r;return wc(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;(t=this._currentPasteOperation)===null||t===void 0||t.cancel(),this._currentPasteOperation=void 0;let n=this._editor.getModel(),o=this._editor.getSelections();if(!(o!=null&&o.length)||!n||!this.isPasteAsEnabled())return;let s=this.fetchCopyMetadata(e),a=i2(e.clipboardData);a.delete(JN);let l=[...e.clipboardData.types,...(r=s==null?void 0:s.providerCopyMimeTypes)!==null&&r!==void 0?r:[],gr.uriList],c=this._languageFeaturesService.documentPasteEditProvider.ordered(n).filter(d=>{var u;return(u=d.pasteMimeTypes)===null||u===void 0?void 0:u.some(h=>Xx(h,l))});c.length&&(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferredId,c,o,a,s):this.doPasteInline(c,o,a,s))})}doPasteInline(e,t,r,n){let o=Jt(s=>wc(this,void 0,void 0,function*(){let a=this._editor;if(!a.hasModel())return;let l=a.getModel(),c=new ga(a,3,void 0,s);try{if(yield this.mergeInDataFromCopy(r,n,c.token),c.token.isCancellationRequested)return;let d=e.filter(h=>GJ(h,r));if(!d.length||d.length===1&&d[0].id==="text"){yield this.applyDefaultPasteHandler(r,n,c.token);return}let u=yield this.getPasteEdits(d,r,l,t,c.token);if(c.token.isCancellationRequested)return;if(u.length===1&&u[0].providerId==="text"){yield this.applyDefaultPasteHandler(r,n,c.token);return}if(u.length){let h=a.getOption(83).showPasteSelector==="afterPaste";return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:u},h,c.token)}yield this.applyDefaultPasteHandler(r,n,c.token)}finally{c.dispose(),this._currentPasteOperation===o&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),b("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),o),this._currentPasteOperation=o}showPasteAsPick(e,t,r,n,o){let s=Jt(a=>wc(this,void 0,void 0,function*(){let l=this._editor;if(!l.hasModel())return;let c=l.getModel(),d=new ga(l,3,void 0,a);try{if(yield this.mergeInDataFromCopy(n,o,d.token),d.token.isCancellationRequested)return;let u=t.filter(g=>GJ(g,n));e&&(u=u.filter(g=>g.id===e));let h=yield this.getPasteEdits(u,n,c,r,d.token);if(d.token.isCancellationRequested||!h.length)return;let f;if(e)f=h.at(0);else{let g=yield this._quickInputService.pick(h.map(w=>({label:w.label,description:w.providerId,detail:w.detail,edit:w})),{placeHolder:b("pasteAsPickerPlaceholder","Select Paste Action")});f=g==null?void 0:g.edit}if(!f)return;let m=uK(c.uri,r,f);yield this._bulkEditService.apply(m,{editor:this._editor})}finally{d.dispose(),this._currentPasteOperation===s&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:b("pasteAsProgress","Running paste handlers")},()=>s)}setCopyMetadata(e,t){e.setData(JN,JSON.stringify(t))}fetchCopyMetadata(e){var t;if(!e.clipboardData)return;let r=e.clipboardData.getData(JN);if(r)try{return JSON.parse(r)}catch(s){return}let[n,o]=ZO.getTextData(e.clipboardData);if(o)return{defaultPastePayload:{mode:o.mode,multicursorText:(t=o.multicursorText)!==null&&t!==void 0?t:null,pasteOnNewLine:!!o.isFromEmptySelection}}}mergeInDataFromCopy(e,t,r){var n;return wc(this,void 0,void 0,function*(){if(t!=null&&t.id&&((n=this._currentCopyOperation)===null||n===void 0?void 0:n.handle)===t.id){let o=yield this._currentCopyOperation.dataTransferPromise;if(r.isCancellationRequested)return;for(let[s,a]of o)e.replace(s,a)}if(!e.has(gr.uriList)){let o=yield this._clipboardService.readResources();if(r.isCancellationRequested)return;o.length&&e.append(gr.uriList,U0(eh.create(o)))}})}getPasteEdits(e,t,r,n,o){return wc(this,void 0,void 0,function*(){let s=yield Vc(Promise.all(e.map(l=>wc(this,void 0,void 0,function*(){var c;try{let d=yield(c=l.provideDocumentPasteEdits)===null||c===void 0?void 0:c.call(l,r,n,t,o);if(d)return Object.assign(Object.assign({},d),{providerId:l.id})}catch(d){console.error(d)}}))),o),a=hn(s!=null?s:[]);return o2(a),a})}applyDefaultPasteHandler(e,t,r){var n,o,s;return wc(this,void 0,void 0,function*(){let a=(n=e.get(gr.text))!==null&&n!==void 0?n:e.get("text");if(!a)return;let l=yield a.asString();if(r.isCancellationRequested)return;let c={text:l,pasteOnNewLine:(o=t==null?void 0:t.defaultPastePayload.pasteOnNewLine)!==null&&o!==void 0?o:!1,multicursorText:(s=t==null?void 0:t.defaultPastePayload.multicursorText)!==null&&s!==void 0?s:null,mode:null};this._editor.trigger("keyboard","paste",c)})}};tu.ID="editor.contrib.copyPasteActionController";tu=eR=q_e([vm(1,Ke),vm(2,Kc),vm(3,As),vm(4,Se),vm(5,nn),vm(6,rF)],tu)});var XJ=N(()=>{lt();j_();YJ();vI();He();Ue(tu.ID,tu,0);Yc(t2);We(new class extends Fi{constructor(){super({id:tR,precondition:iR,kbOpts:{weight:100,primary:2137}})}runEditorCommand(i,e,t){var r;return(r=tu.get(e))===null||r===void 0?void 0:r.changePasteType()}});ee(class extends de{constructor(){super({id:"editor.action.pasteAs",label:b("pasteAs","Paste As..."),alias:"Paste As...",precondition:void 0,description:{description:"Paste as",args:[{name:"args",schema:{type:"object",properties:{id:{type:"string",description:b("pasteAs.id","The id of the paste edit to try applying. If not provided, the editor will show a picker.")}}}}]}})}run(i,e,t){var r;let n=typeof(t==null?void 0:t.id)=="string"?t.id:void 0;return(r=tu.get(e))===null||r===void 0?void 0:r.pasteAs(n)}})});var QJ=Qi(rR=>{ki();zr();Ir();ra();R1();Vi();var K_e=rR&&rR.__awaiter||function(i,e,t,r){function n(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(r.next(d))}catch(u){s(u)}}function l(d){try{c(r.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):n(d.value).then(a,l)}c((r=r.apply(i,e||[])).next())})};Dt.registerCommand("_executeDocumentSymbolProvider",function(i,...e){return K_e(this,void 0,void 0,function*(){let[t]=e;Bt(yt.isUri(t));let r=i.get(Lh),o=yield i.get(Cr).createModelReference(t);try{return(yield r.getOrCreate(o.object.textEditorModel,st.None)).getTopLevelSymbols()}finally{o.dispose()}})})});var nR,ZJ=N(()=>{al();lt();He();nR=class extends de{constructor(){super({id:"editor.action.forceRetokenize",label:b("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;let r=t.getModel();r.tokenization.resetTokenization();let n=new mr;r.tokenization.forceTokenization(r.getLineCount()),n.stop(),console.log(`tokenization took ${n.elapsed()}`)}};ee(nR)});var U4,JJ=N(()=>{Io();Jre();He();Ji();wt();U4=class i extends Jo{constructor(){super({id:i.ID,title:{value:b({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),original:"Toggle Tab Key Moves Focus"},precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(e){let t=e.get(it).getContextKeyValue("focusedView")==="terminal"?"terminalFocus":"editorFocus",n=!Sk.getTabFocusMode(t);Sk.setTabFocusMode(n,t),n?ar(b("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):ar(b("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}};U4.ID="editor.action.toggleTabFocusMode";Si(U4)});var Rkt,Pkt,Vkt,eee=N(()=>{s_();iz();une();cne();gT();wT();ST();ET();LT();XT();iI();jJ();$J();lI();uI();pI();mI();XJ();NI();y2();hb();TA();Rkt=Vn(DA()),Pkt=Vn(QJ());CL();K0();e1();BC();qC();iS();L8();z8();Vkt=Vn(U8());W8();c7();f7();v7();_7();O7();V7();Y7();sD();aD();hD();kp();SD();oC();AD();ZJ();JJ();BD();HD();GD();i4();SM();kM();xu();D0()});var tee=N(()=>{});var iee=N(()=>{tee()});var vv,j4,ree=N(()=>{iee();Ht();ke();lt();Tn();vv=class extends ce{constructor(e){super(),this.editor=e,this.widget=null,Lm&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(89);!this.widget&&e?this.widget=new j4(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}};vv.ID="editor.contrib.iPadShowKeyboard";j4=class i extends ce{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(Lt(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(Lt(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return i.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}};j4.ID="editor.contrib.ShowKeyboardWidget";Ue(vv.ID,vv,3)});var oR,nee=N(()=>{lt();gz();xu();ok();hne();oR=class extends de{constructor(){super({id:"editor.action.toggleHighContrast",label:_z.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){let r=e.get(oy),n=r.getColorTheme();_u(n.type)?(r.setTheme(this._originalThemeName||(nk(n.type)?xz:wz)),this._originalThemeName=null):(r.setTheme(nk(n.type)?Cz:Sz),this._originalThemeName=n.themeName)}};ee(oR)});var DEt,oee=N(()=>{eee();ree();DEt=Vn(IM());AM();DM();FM();jM();VM();nee();Ns()});var _v={};Xh(_v,{CancellationTokenSource:()=>fne,Emitter:()=>pne,KeyCode:()=>mne,KeyMod:()=>gne,MarkerSeverity:()=>wne,MarkerTag:()=>xne,Position:()=>bne,Range:()=>vne,Selection:()=>_ne,SelectionDirection:()=>yne,Token:()=>Sne,Uri:()=>Cne,editor:()=>Cu,languages:()=>Ca});var yv=N(()=>{_J();SJ();DJ();qM();kne();oee()});var dee=Qi((KEt,cee)=>{var lee="Expected a function",see=NaN,$_e="[object Symbol]",G_e=/^\s+|\s+$/g,Y_e=/^[-+]0x[0-9a-f]+$/i,X_e=/^0b[01]+$/i,Q_e=/^0o[0-7]+$/i,Z_e=parseInt,J_e=typeof global=="object"&&global&&global.Object===Object&&global,eye=typeof self=="object"&&self&&self.Object===Object&&self,tye=J_e||eye||Function("return this")(),iye=Object.prototype,rye=iye.toString,nye=Math.max,oye=Math.min,sR=function(){return tye.Date.now()};function sye(i,e,t){var r,n,o,s,a,l,c=0,d=!1,u=!1,h=!0;if(typeof i!="function")throw new TypeError(lee);e=aee(e)||0,W4(t)&&(d=!!t.leading,u="maxWait"in t,o=u?nye(aee(t.maxWait)||0,e):o,h="trailing"in t?!!t.trailing:h);function f(U){var Y=r,oe=n;return r=n=void 0,c=U,s=i.apply(oe,Y),s}function m(U){return c=U,a=setTimeout(_,e),d?f(U):s}function g(U){var Y=U-l,oe=U-c,te=e-Y;return u?oye(te,o-oe):te}function w(U){var Y=U-l,oe=U-c;return l===void 0||Y>=e||Y<0||u&&oe>=o}function _(){var U=sR();if(w(U))return E(U);a=setTimeout(_,g(U))}function E(U){return a=void 0,h&&r?f(U):(r=n=void 0,s)}function L(){a!==void 0&&clearTimeout(a),c=0,r=l=n=a=void 0}function A(){return a===void 0?s:E(sR())}function O(){var U=sR(),Y=w(U);if(r=arguments,n=this,l=U,Y){if(a===void 0)return m(l);if(u)return a=setTimeout(_,e),f(l)}return a===void 0&&(a=setTimeout(_,e)),s}return O.cancel=L,O.flush=A,O}function aye(i,e,t){var r=!0,n=!0;if(typeof i!="function")throw new TypeError(lee);return W4(t)&&(r="leading"in t?!!t.leading:r,n="trailing"in t?!!t.trailing:n),sye(i,e,{leading:r,maxWait:e,trailing:n})}function W4(i){var e=typeof i;return!!i&&(e=="object"||e=="function")}function lye(i){return!!i&&typeof i=="object"}function cye(i){return typeof i=="symbol"||lye(i)&&rye.call(i)==$_e}function aee(i){if(typeof i=="number")return i;if(cye(i))return see;if(W4(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=W4(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=i.replace(G_e,"");var t=X_e.test(i);return t||Q_e.test(i)?Z_e(i.slice(2),t?2:8):Y_e.test(i)?see:+i}cee.exports=aye});var Nee=Qi(($Et,Mee)=>{var dye=1/0,uye="[object Symbol]",hye=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,fye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vee="\\ud800-\\udfff",pye="\\u0300-\\u036f\\ufe20-\\ufe23",mye="\\u20d0-\\u20f0",_ee="\\u2700-\\u27bf",yee="a-z\\xdf-\\xf6\\xf8-\\xff",gye="\\xac\\xb1\\xd7\\xf7",bye="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",vye="\\u2000-\\u206f",_ye=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wee="A-Z\\xc0-\\xd6\\xd8-\\xde",yye="\\ufe0e\\ufe0f",xee=gye+bye+vye+_ye,aR="['\u2019]",uee="["+xee+"]",Cee="["+pye+mye+"]",See="\\d+",wye="["+_ee+"]",kee="["+yee+"]",Eee="[^"+vee+xee+See+_ee+yee+wee+"]",xye="\\ud83c[\\udffb-\\udfff]",Cye="(?:"+Cee+"|"+xye+")",Sye="[^"+vee+"]",Tee="(?:\\ud83c[\\udde6-\\uddff]){2}",Iee="[\\ud800-\\udbff][\\udc00-\\udfff]",_m="["+wee+"]",kye="\\u200d",hee="(?:"+kee+"|"+Eee+")",Eye="(?:"+_m+"|"+Eee+")",fee="(?:"+aR+"(?:d|ll|m|re|s|t|ve))?",pee="(?:"+aR+"(?:D|LL|M|RE|S|T|VE))?",Aee=Cye+"?",Lee="["+yye+"]?",Tye="(?:"+kye+"(?:"+[Sye,Tee,Iee].join("|")+")"+Lee+Aee+")*",Iye=Lee+Aee+Tye,Aye="(?:"+[wye,Tee,Iee].join("|")+")"+Iye,Lye=RegExp(aR,"g"),Dye=RegExp(Cee,"g"),Mye=RegExp([_m+"?"+kee+"+"+fee+"(?="+[uee,_m,"$"].join("|")+")",Eye+"+"+pee+"(?="+[uee,_m+hee,"$"].join("|")+")",_m+"?"+hee+"+"+fee,_m+"+"+pee,See,Aye].join("|"),"g"),Nye=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Rye={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},Pye=typeof global=="object"&&global&&global.Object===Object&&global,Oye=typeof self=="object"&&self&&self.Object===Object&&self,Fye=Pye||Oye||Function("return this")();function zye(i,e,t,r){var n=-1,o=i?i.length:0;for(r&&o&&(t=i[++n]);++n{"use strict";var fi=qe&&qe.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}}();Object.defineProperty(qe,"__esModule",{value:!0});qe.DeleteLines=qe.SearchReplace=qe.Search=qe.InvertSelection=qe.GotoLine=qe.RotateCursorOnScreen=qe.InsertTabs=qe.RevealToBottomAction=qe.RevealToCenterAction=qe.RevealToTopAction=qe.RevealEditorAction=qe.YankRotate=qe.YankSelectionToRing=qe.Yank=qe.RedoAction=qe.UndoAction=qe.KeyBoardQuit=qe.MoveCursorTop=qe.MoveCursorBottom=qe.MoveCursorWordLeft=qe.MoveCursorWordRight=qe.MoveCursorToLineStart=qe.MoveCursorToLineEnd=qe.MoveCursorRight=qe.MoveCursorLeft=qe.MoveCursorDown=qe.MoveCursorUp=qe.SetMark=qe.InsertLineAfter=qe.InsertLineBelow=qe.KillLines=qe.KillSelection=qe.BaseAction=qe.SOURCE=void 0;var wr=(yv(),Qh(_v));qe.SOURCE="extension.emacs";function Jye(i,e,t,r,n){n===void 0&&(n=1);for(var o="cursor".concat(r==="word"?"Word":"").concat(t).concat(e?"Select":""),s=0;su?u:a.lineNumber+n;l=new wr.Position(h,s.getLineLength(h)+1)}var f=wr.Range.fromPositions(a,l);o?r.state.growRingTop(s.getValueInRange(f)):r.state.addToRing(s.getValueInRange(f)),t.executeEdits(qe.SOURCE,[{range:f,text:""}]),t.setSelection(wr.Selection.fromPositions(a,a))},e}(Yr);qe.KillLines=twe;var iwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){var s=t.getPosition();t.trigger(qe.SOURCE,"editor.action.insertLineAfter",null),t.setPosition(s)},e}(Yr);qe.InsertLineBelow=iwe;var rwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){for(var s="",a=0;ac&&(a=c):a=1;var d=new wr.Position(a,1),u;if(!r.selectionMode)u=wr.Selection.fromPositions(d);else{var h=t.getSelection();h.getDirection()===wr.SelectionDirection.LTR?u=wr.Selection.fromPositions(h.getStartPosition(),d):u=wr.Selection.fromPositions(h.getEndPosition(),d)}t.setSelection(u),t.revealRangeInCenter(u)}).catch(function(){t.focus()})},e}(Yr);qe.GotoLine=Swe;var kwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){var s=t.getSelection();if(!s.isEmpty()){var a;s.getDirection()===wr.SelectionDirection.LTR?a=wr.Selection.fromPositions(s.getEndPosition(),s.getStartPosition()):a=wr.Selection.fromPositions(s.getStartPosition(),s.getEndPosition()),t.setSelection(a)}},e}(Yr);qe.InvertSelection=kwe;var Ewe=function(i){fi(e,i);function e(){return i.call(this,"editor.actions.findWithArgs")||this}return e}(Ree);qe.Search=Ewe;var Twe=function(i){fi(e,i);function e(){return i.call(this,"editor.action.startFindReplaceAction")||this}return e}(Ree);qe.SearchReplace=Twe;var Iwe=function(i){fi(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,r,n,o){r.selectionMode=!1;for(var s=0;s{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});Xr.getAllMappings=Xr.unregisterKey=Xr.registerGlobalCommand=Xr.executeCommand=Xr.COMMANDS=Xr.prefixPreservingKeys=void 0;var wi=lR();Xr.prefixPreservingKeys={"M-g":!0,"C-x":!0,"C-q":!0,"C-u":!0};var zee=new wi.SetMark,q4=new wi.UndoAction,Awe=new wi.MoveCursorDown,Lwe=new wi.MoveCursorUp,Dwe=new wi.MoveCursorRight,Mwe=new wi.MoveCursorLeft;Xr.COMMANDS={"M-/":{description:"",action:"editor.action.triggerSuggest"},"C-'":{description:"",action:"editor.action.triggerSuggest"},"M-;":{description:"",action:"editor.action.commentLine"},"C-t":{description:"",action:"editor.action.transposeLetters"},"C-x C-p":{description:"",action:"editor.action.selectAll"},Tab:{description:"",action:"editor.action.formatDocument"},"C-Backspace":{description:"",action:"deleteWordLeft"},"C-d":{description:"",action:"deleteRight"},"M-Backspace":{description:"",action:"deleteWordLeft"},"M-Delete":{description:"",action:"deleteWordLeft"},"C-x C-u":{description:"",action:"editor.action.transformToUppercase"},"C-x C-l":{description:"",action:"editor.action.transformToLowercase"},"C-v":{description:"",action:"cursorPageDown"},PageDown:{description:"",action:"cursorPageDown"},"M-v":{description:"",action:"cursorPageUp"},PageUp:{description:"",action:"cursorPageUp"},"M-g n":{description:"",action:"editor.action.marker.next"},"M-g p":{description:"",action:"editor.action.marker.prev"},"M-C-n":{description:"",action:"editor.action.addSelectionToNextFindMatch"},"C-h":{description:"",action:"deleteLeft"},"M-d":{description:"",action:"deleteWordRight"},"S-C-":{description:"",action:"editor.action.triggerParameterHints"},"C-SPC":zee,"S-C-2":zee,"C-/":q4,"S-C--":q4,"C-z":q4,"C-x u":q4,"C-n":Awe,"C-p":Lwe,"C-f":Dwe,"C-b":Mwe,"S-C-Backspace":new wi.DeleteLines,"M-f":new wi.MoveCursorWordRight,"M-b":new wi.MoveCursorWordLeft,"C-k":new wi.KillLines,"C-m":new wi.InsertLineAfter,"C-w":new wi.KillSelection,"C-o":new wi.InsertLineBelow,"C-g":new wi.KeyBoardQuit,"C-e":new wi.MoveCursorToLineEnd,"C-a":new wi.MoveCursorToLineStart,"C-y":new wi.Yank,"M-w":new wi.YankSelectionToRing,"M-y":new wi.YankRotate,"C-l":new wi.RevealToCenterAction,"C-q Tab":new wi.InsertTabs,"M-r":new wi.RotateCursorOnScreen,"M-g g":new wi.GotoLine,"M-g M-g":new wi.GotoLine,"C-x C-x":new wi.InvertSelection,"S-M-.":new wi.MoveCursorBottom,"S-M-,":new wi.MoveCursorTop,"C-s":new wi.Search,"C-r":new wi.Search,"S-M-5":new wi.SearchReplace};function Nwe(i,e,t,r){var n=i.getEditor(),o=parseInt(t)||1;if(e.run){e.run(n,i,o,r);return}if(typeof e.action=="string")for(var s=0;s{"use strict";Object.defineProperty(Un,"__esModule",{value:!0});Un.Emitter=Un.Event=Un.monacoToEmacsKey=Un.modifierKeys=void 0;var Fwe=(yv(),Qh(_v));Un.modifierKeys={Alt:"M",Control:"C",Ctrl:"C",Meta:"CMD",Shift:"S"};var Bee={Enter:"Return",Space:"SPC",Backslash:"\\",Slash:"/",Backquote:"`",BracketRight:"]",BracketLeft:"[",Comma:",",Period:".",Equal:"=",Minus:"-",Quote:"'",Semicolon:";"},zwe=["Key","Numpad"],Hee="Arrow";function Bwe(i){var e=Fwe.KeyCode[i.keyCode];if(Un.modifierKeys[e])return"";var t=zwe.some(function(r){return e.startsWith(r)})?e[e.length-1]:e;return e.endsWith(Hee)?t=e.substring(0,e.length-Hee.length):Bee[e]&&(t=Bee[t]),t.length===1&&(t=t.toLowerCase()),i.altKey&&(t="".concat(Un.modifierKeys.Alt,"-").concat(t)),i.ctrlKey&&(t="".concat(Un.modifierKeys.Ctrl,"-").concat(t)),i.metaKey&&(t="".concat(Un.modifierKeys.Meta,"-").concat(t)),i.shiftKey&&(t="".concat(Un.modifierKeys.Shift,"-").concat(t)),t}Un.monacoToEmacsKey=Bwe;var Hwe;(function(i){var e={dispose:function(){}};i.None=function(){return e}})(Hwe=Un.Event||(Un.Event={}));var Uwe=function(){function i(){this._listeners=[]}return Object.defineProperty(i.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){e._listeners.push(t);var r={dispose:function(){if(!e._disposed){var n=e._listeners.indexOf(t);n<0||e._listeners.splice(n,1)}}};return r}),this._event},enumerable:!1,configurable:!0}),i.prototype.fire=function(e){this._listeners.length&&this._listeners.forEach(function(t){return t(e)})},i.prototype.dispose=function(){this._disposed||(this._listeners=void 0,this._disposed=!0)},i}();Un.Emitter=Uwe});var jee=Qi($4=>{"use strict";Object.defineProperty($4,"__esModule",{value:!0});$4.BasicInputWidget=void 0;var jwe=(yv(),Qh(_v)),Ko="ext-emacs-basic-input";function Wwe(){return` - .`.concat(Ko,` { +`);var D=this.isValidRegister(f)?this.getRegister(f):null;if(!D){switch(_){case"yank":this.registers[0]=new Jt(C,x,I);break;case"delete":case"change":C.indexOf(` +`)==-1?this.registers["-"]=new Jt(C,x):(this.shiftNumericRegisters_(),this.registers[1]=new Jt(C,x));break}this.unnamedRegister.setText(C,x,I);return}var F=z(f);F?D.pushText(C,x):D.setText(C,x,I),this.unnamedRegister.setText(D.toString(),x)}},getRegister:function(f){return this.isValidRegister(f)?(f=f.toLowerCase(),this.registers[f]||(this.registers[f]=new Jt),this.registers[f]):this.unnamedRegister},isValidRegister:function(f){return f&&Le(f,S)},shiftNumericRegisters_:function(){for(var f=9;f>=2;f--)this.registers[f]=this.getRegister(""+(f-1))}};function ai(){this.historyBuffer=[],this.iterator=0,this.initialPrefix=null}ai.prototype={nextMatch:function(f,_){var C=this.historyBuffer,x=_?-1:1;this.initialPrefix===null&&(this.initialPrefix=f);for(var I=this.iterator+x;_?I>=0:I=C.length)return this.iterator=C.length,this.initialPrefix;if(I<0)return f},pushInput:function(f){var _=this.historyBuffer.indexOf(f);_>-1&&this.historyBuffer.splice(_,1),f.length&&this.historyBuffer.push(f)},reset:function(){this.initialPrefix=null,this.iterator=this.historyBuffer.length}};var Yi={matchCommand:function(f,_,C,x){var I=rre(f,_,x,C);if(!I.full&&!I.partial)return{type:"none"};if(!I.full&&I.partial)return{type:"partial"};for(var D,F=0;F"){var U=sre(f);if(!U)return{type:"none"};C.selectedCharacter=U}return{type:"full",command:D}},processCommand:function(f,_,C){switch(_.inputState.repeatOverride=C.repeatOverride,C.type){case"motion":this.processMotion(f,_,C);break;case"operator":this.processOperator(f,_,C);break;case"operatorMotion":this.processOperatorMotion(f,_,C);break;case"action":this.processAction(f,_,C);break;case"search":this.processSearch(f,_,C);break;case"ex":case"keyToEx":this.processEx(f,_,C);break;default:break}},processMotion:function(f,_,C){_.inputState.motion=C.motion,_.inputState.motionArgs=fl(C.motionArgs),this.evalInput(f,_)},processOperator:function(f,_,C){var x=_.inputState;if(x.operator)if(x.operator==C.operator){x.motion="expandToLine",x.motionArgs={linewise:!0},this.evalInput(f,_);return}else Qt(f);x.operator=C.operator,x.operatorArgs=fl(C.operatorArgs),C.keys.length>1&&(x.operatorShortcut=C.keys),C.exitVisualBlock&&(_.visualBlock=!1,Vh(f)),_.visualMode&&this.evalInput(f,_)},processOperatorMotion:function(f,_,C){var x=_.visualMode,I=fl(C.operatorMotionArgs);I&&x&&I.visualLine&&(_.visualLine=!0),this.processOperator(f,_,C),x||this.processMotion(f,_,C)},processAction:function(f,_,C){var x=_.inputState,I=x.getRepeat(),D=!!I,F=fl(C.actionArgs)||{};x.selectedCharacter&&(F.selectedCharacter=x.selectedCharacter),C.operator&&this.processOperator(f,_,C),C.motion&&this.processMotion(f,_,C),(C.motion||C.operator)&&this.evalInput(f,_),F.repeat=I||1,F.repeatIsExplicit=D,F.registerName=x.registerName,Qt(f),_.lastMotion=null,C.isEdit&&this.recordLastEdit(_,x,C),Wh[C.action](f,F,_)},processSearch:function(f,_,C){if(!f.getSearchCursor)return;var x=C.searchArgs.forward,I=C.searchArgs.wholeWordOnly;oa(f).setReversed(!x);var D=x?"/":"?",F=oa(f).getQuery(),H=f.getScrollInfo();function U(Ue,It,yt){$.searchHistoryController.pushInput(Ue),$.searchHistoryController.reset();try{bm(f,Ue,It,yt)}catch(Ct){Pi(f,"Invalid regex: "+Ue),Qt(f);return}Yi.processMotion(f,_,{type:"motion",motion:"findNext",motionArgs:{forward:!0,toJumplist:C.searchArgs.toJumplist}})}function G(Ue){f.scrollTo(H.left,H.top),U(Ue,!0,!0);var It=$.macroModeState;It.isRecording&&Ure(It,Ue)}function te(Ue,It,yt){var Ct=st.default.keyName(Ue),Fi,no;Ct=="Up"||Ct=="Down"?(Fi=Ct=="Up",no=Ue.target?Ue.target.selectionEnd:0,It=$.searchHistoryController.nextMatch(It,Fi)||"",yt(It),no&&Ue.target&&(Ue.target.selectionEnd=Ue.target.selectionStart=Math.min(no,Ue.target.value.length))):Ct!="Left"&&Ct!="Right"&&Ct!="Ctrl"&&Ct!="Alt"&&Ct!="Shift"&&$.searchHistoryController.reset();var hn;try{hn=bm(f,It,!0,!0)}catch(Wr){}hn?f.scrollIntoView(AN(f,!x,hn),30):(qS(f),f.scrollTo(H.left,H.top))}function ge(Ue,It,yt){var Ct=st.default.keyName(Ue);Ct=="Esc"||Ct=="Ctrl-C"||Ct=="Ctrl-["||Ct=="Backspace"&&It==""?($.searchHistoryController.pushInput(It),$.searchHistoryController.reset(),bm(f,F),qS(f),f.scrollTo(H.left,H.top),st.default.e_stop(Ue),Qt(f),yt(),f.focus()):Ct=="Up"||Ct=="Down"?st.default.e_stop(Ue):Ct=="Ctrl-U"&&(st.default.e_stop(Ue),yt(""))}switch(C.searchArgs.querySrc){case"prompt":var pe=$.macroModeState;if(pe.isPlaying){var Ge=pe.replaySearchQueries.shift();U(Ge,!0,!1)}else s_(f,{onClose:G,prefix:D,desc:"(JavaScript regexp)",onKeyUp:te,onKeyDown:ge});break;case"wordUnderCursor":var ue=o_(f,!1,!0,!1,!0),Ve=!0;if(ue||(ue=o_(f,!1,!0,!1,!1),Ve=!1),!ue)return;var Ge=f.getLine(ue.start.line).substring(ue.start.ch,ue.end.ch);Ve&&I?Ge="\\b"+Ge+"\\b":Ge=are(Ge),$.jumpList.cachedCursor=f.getCursor(),f.setCursor(ue.start),U(Ge,!0,!1);break}},processEx:function(f,_,C){function x(D){$.exCommandHistoryController.pushInput(D),$.exCommandHistoryController.reset(),sa.processCommand(f,D)}function I(D,F,H){var U=st.default.keyName(D),G,te;(U=="Esc"||U=="Ctrl-C"||U=="Ctrl-["||U=="Backspace"&&F=="")&&($.exCommandHistoryController.pushInput(F),$.exCommandHistoryController.reset(),st.default.e_stop(D),Qt(f),H(),f.focus()),U=="Up"||U=="Down"?(st.default.e_stop(D),G=U=="Up",te=D.target?D.target.selectionEnd:0,F=$.exCommandHistoryController.nextMatch(F,G)||"",H(F),te&&D.target&&(D.target.selectionEnd=D.target.selectionStart=Math.min(te,D.target.value.length))):U=="Ctrl-U"?(st.default.e_stop(D),H("")):U!="Left"&&U!="Right"&&U!="Ctrl"&&U!="Alt"&&U!="Shift"&&$.exCommandHistoryController.reset()}C.type=="keyToEx"?sa.processCommand(f,C.exArgs.input):_.visualMode?s_(f,{onClose:x,prefix:":",value:"'<,'>",onKeyDown:I,selectValueOnOpen:!1}):s_(f,{onClose:x,prefix:":",onKeyDown:I})},evalInput:function(f,_){var C=_.inputState,x=C.motion,I=C.motionArgs||{},D=C.operator,F=C.operatorArgs||{},H=C.registerName,U=_.sel,G=rn(_.visualMode?fr(f,U.head):f.getCursor("head")),te=rn(_.visualMode?fr(f,U.anchor):f.getCursor("anchor")),ge=rn(G),pe=rn(te),ue,Ve,Ge;if(D&&this.recordLastEdit(_,C),C.repeatOverride!==void 0?Ge=C.repeatOverride:Ge=C.getRepeat(),Ge>0&&I.explicitRepeat?I.repeatIsExplicit=!0:(I.noRepeat||!I.explicitRepeat&&Ge===0)&&(Ge=1,I.repeatIsExplicit=!1),C.selectedCharacter&&(I.selectedCharacter=F.selectedCharacter=C.selectedCharacter),I.repeat=Ge,Qt(f),x){var Ue=nn[x](f,G,I,_,C);if(_.lastMotion=nn[x],!Ue)return;if(I.toJumplist){var It=$.jumpList,yt=It.cachedCursor;yt?(_N(f,yt,Ue),delete It.cachedCursor):_N(f,G,Ue)}Ue instanceof Array?(Ve=Ue[0],ue=Ue[1]):ue=Ue,ue||(ue=rn(G)),_.visualMode?(_.visualBlock&&ue.ch===1/0||(ue=fr(f,ue)),Ve&&(Ve=fr(f,Ve)),Ve=Ve||pe,U.anchor=Ve,U.head=ue,Vh(f),pl(f,_,"<",An(Ve,ue)?Ve:ue),pl(f,_,">",An(Ve,ue)?ue:Ve)):D||(ue=fr(f,ue),f.setCursor(ue.line,ue.ch))}if(D){if(F.lastSel){Ve=pe;var Ct=F.lastSel,Fi=Math.abs(Ct.head.line-Ct.anchor.line),no=Math.abs(Ct.head.ch-Ct.anchor.ch);Ct.visualLine?ue=new Fe(pe.line+Fi,pe.ch):Ct.visualBlock?ue=new Fe(pe.line+Fi,pe.ch+no):Ct.head.line==Ct.anchor.line?ue=new Fe(pe.line,pe.ch+no):ue=new Fe(pe.line+Fi,pe.ch),_.visualMode=!0,_.visualLine=Ct.visualLine,_.visualBlock=Ct.visualBlock,U=_.sel={anchor:Ve,head:ue},Vh(f)}else _.visualMode&&(F.lastSel={anchor:rn(U.anchor),head:rn(U.head),visualBlock:_.visualBlock,visualLine:_.visualLine});var hn,Wr,Ci,Zt,pr;if(_.visualMode){if(hn=Qo(U.head,U.anchor),Wr=Gd(U.head,U.anchor),Ci=_.visualLine||F.linewise,Zt=_.visualBlock?"block":Ci?"line":"char",pr=VS(f,{anchor:hn,head:Wr},Zt),Ci){var ro=pr.ranges;if(Zt=="block")for(var Vr=0;VrH:te.lineG&&I.line==G?CN(f,_,C,x,!0):(C.toFirstChar&&(D=ra(f.getLine(H)),x.lastHPos=D),x.lastHSPos=f.charCoords(new Fe(H,D),"div").left,new Fe(H,D))},moveByDisplayLines:function(f,_,C,x){var I=_;switch(x.lastMotion){case this.moveByDisplayLines:case this.moveByScroll:case this.moveByLines:case this.moveToColumn:case this.moveToEol:break;default:x.lastHSPos=f.charCoords(I,"div").left}var D=C.repeat,F=f.findPosV(I,C.forward?D:-D,"line",x.lastHSPos);if(F.hitSide)if(C.forward)var H=f.charCoords(F,"div"),U={top:H.top+8,left:x.lastHSPos},F=f.coordsChar(U,"div");else{var G=f.charCoords(new Fe(f.firstLine(),0),"div");G.left=x.lastHSPos,F=f.coordsChar(G,"div")}return x.lastHPos=F.ch,F},moveByPage:function(f,_,C){var x=_,I=C.repeat;return f.findPosV(x,C.forward?I:-I,"page")},moveByParagraph:function(f,_,C){var x=C.forward?1:-1;return SN(f,_,C.repeat,x)},moveBySentence:function(f,_,C){var x=C.forward?1:-1;return Sre(f,_,C.repeat,x)},moveByScroll:function(f,_,C,x){var I=f.getScrollInfo(),H=null,D=C.repeat;D||(D=I.clientHeight/(2*f.defaultTextHeight()));var F=f.charCoords(_,"local");C.repeat=D;var H=nn.moveByDisplayLines(f,_,C,x);if(!H)return null;var U=f.charCoords(H,"local");return f.scrollTo(null,I.top+U.top-F.top),H},moveByWords:function(f,_,C){return bre(f,_,C.repeat,!!C.forward,!!C.wordEnd,!!C.bigWord)},moveTillCharacter:function(f,_,C){var x=C.repeat,I=KS(f,x,C.forward,C.selectedCharacter),D=C.forward?-1:1;return bN(D,C),I?(I.ch+=D,I):null},moveToCharacter:function(f,_,C){var x=C.repeat;return bN(0,C),KS(f,x,C.forward,C.selectedCharacter)||_},moveToSymbol:function(f,_,C){var x=C.repeat;return vre(f,x,C.forward,C.selectedCharacter)||_},moveToColumn:function(f,_,C,x){var I=C.repeat;return x.lastHPos=I-1,x.lastHSPos=f.charCoords(_,"div").left,yre(f,I)},moveToEol:function(f,_,C,x){return CN(f,_,C,x,!1)},moveToFirstNonWhiteSpaceCharacter:function(f,_){var C=_;return new Fe(C.line,ra(f.getLine(C.line)))},moveToMatchedSymbol:function(f,_){var C=_,x=C.line,I=C.ch,D=f.getLine(x);if(I"?/[(){}[\]<>]/:/[(){}[\]]/,H=f.findMatchingBracket(new Fe(x,I),{bracketRegex:F});return H.to}else return C},moveToStartOfLine:function(f,_){return new Fe(_.line,0)},moveToLineOrEdgeOfDocument:function(f,_,C){var x=C.forward?f.lastLine():f.firstLine();return C.repeatIsExplicit&&(x=C.repeat-f.getOption("firstLineNumber")),new Fe(x,ra(f.getLine(x)))},moveToStartOfDisplayLine:function(f){return f.execCommand("goLineLeft"),f.getCursor()},moveToEndOfDisplayLine:function(f){f.execCommand("goLineRight");var _=f.getCursor();return _.sticky=="before"&&_.ch--,_},textObjectManipulation:function(f,_,C,x){var I={"(":")",")":"(","{":"}","}":"{","[":"]","]":"[","<":">",">":"<"},D={"'":!0,'"':!0,"`":!0},F=C.selectedCharacter;F=="b"?F="(":F=="B"&&(F="{");var H=!C.textObjectInner,U;if(I[F])U=wre(f,_,F,H);else if(D[F])U=xre(f,_,F,H);else if(F==="W")U=o_(f,H,!0,!0);else if(F==="w")U=o_(f,H,!0,!1);else if(F==="p")if(U=SN(f,_,C.repeat,0,H),C.linewise=!0,x.visualMode)x.visualLine||(x.visualLine=!0);else{var G=x.inputState.operatorArgs;G&&(G.linewise=!0),U.end.line--}else if(F==="t")U=mre(f,_,H);else return null;return f.state.vim.visualMode?ure(f,U.start,U.end):[U.start,U.end]},repeatLastCharacterSearch:function(f,_,C){var x=$.lastCharacterSearch,I=C.repeat,D=C.forward===x.forward,F=(x.increment?1:0)*(D?-1:1);f.moveH(-F,"char"),C.inclusive=!!D;var H=KS(f,I,D,x.selectedCharacter);return H?(H.ch+=F,H):(f.moveH(F,"char"),_)}};function jh(w,f){nn[w]=f}function qd(w,f){for(var _=[],C=0;Cf.lastLine()&&_.linewise&&!ge?f.replaceRange("",te,H):f.replaceRange("",F,H),_.linewise&&(ge||(f.setCursor(te),st.default.commands.newlineAndIndent(f)),F.ch=Number.MAX_VALUE),x=F}$.registerController.pushText(_.registerName,"change",I,_.linewise,C.length>1),Wh.enterInsertMode(f,{head:x},f.state.vim)},delete:function(f,_,C){f.pushUndoStop();var x,I,D=f.state.vim;if(D.visualBlock){I=f.getSelection();var U=qd("",C.length);f.replaceSelections(U),x=Qo(C[0].head,C[0].anchor)}else{var F=C[0].anchor,H=C[0].head;_.linewise&&H.line!=f.firstLine()&&F.line==f.lastLine()&&F.line==H.line-1&&(F.line==f.firstLine()?F.ch=0:F=new Fe(F.line-1,Hn(f,F.line-1))),I=f.getRange(F,H),f.replaceRange("",F,H),x=F,_.linewise&&(x=nn.moveToFirstNonWhiteSpaceCharacter(f,F))}return $.registerController.pushText(_.registerName,"delete",I,_.linewise,D.visualBlock),fr(f,x)},indent:function(f,_,C){var x=f.state.vim,I=C[0].anchor.line,D=x.visualBlock?C[C.length-1].anchor.line:C[0].head.line,F=x.visualMode?_.repeat:1;_.linewise&&D--,f.pushUndoStop();for(var H=I;H<=D;H++)for(var U=0;UG.top?(U.line+=(H-G.top)/I,U.line=Math.ceil(U.line),f.setCursor(U),G=f.charCoords(U,"local"),f.scrollTo(null,G.top)):f.scrollTo(null,H);else{var te=H+f.getScrollInfo().clientHeight;te=I.anchor.line?D=Bn(I.head,0,1):D=new Fe(I.anchor.line,0)}else if(x=="inplace"){if(C.visualMode)return}else x=="lastEdit"&&(D=MN(f)||D);f.setOption("disableInput",!1),_&&_.replace?(f.toggleOverwrite(!0),f.setOption("keyMap","vim-replace"),st.default.signal(f,"vim-mode-change",{mode:"replace"})):(f.toggleOverwrite(!1),f.setOption("keyMap","vim-insert"),st.default.signal(f,"vim-mode-change",{mode:"insert"})),$.macroModeState.isPlaying||(f.on("change",ON),st.default.on(f.getInputField(),"keydown",FN)),C.visualMode&&na(f),gN(f,D,F)}},toggleVisualMode:function(f,_,C){var x=_.repeat,I=f.getCursor(),D;C.visualMode?C.visualLine^_.linewise||C.visualBlock^_.blockwise?(C.visualLine=!!_.linewise,C.visualBlock=!!_.blockwise,st.default.signal(f,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""}),Vh(f)):na(f):(C.visualMode=!0,C.visualLine=!!_.linewise,C.visualBlock=!!_.blockwise,D=fr(f,new Fe(I.line,I.ch+x-1)),C.sel={anchor:I,head:D},st.default.signal(f,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""}),Vh(f),pl(f,C,"<",Qo(I,D)),pl(f,C,">",Gd(I,D)))},reselectLastSelection:function(f,_,C){var x=C.lastSelection;if(C.visualMode&&vN(f,C),x){var I=x.anchorMark.find(),D=x.headMark.find();if(!I||!D)return;C.sel={anchor:I,head:D},C.visualMode=!0,C.visualLine=x.visualLine,C.visualBlock=x.visualBlock,Vh(f),pl(f,C,"<",Qo(I,D)),pl(f,C,">",Gd(I,D)),st.default.signal(f,"vim-mode-change",{mode:"visual",subMode:C.visualLine?"linewise":C.visualBlock?"blockwise":""})}},joinLines:function(f,_,C){var x,I;if(C.visualMode){if(x=f.getCursor("anchor"),I=f.getCursor("head"),An(I,x)){var D=I;I=x,x=D}I.ch=Hn(f,I.line)-1}else{var F=Math.max(_.repeat,2);x=f.getCursor(),I=fr(f,new Fe(x.line+F-1,1/0))}for(var H=0,U=x.line;U1)var D=Array(_.repeat+1).join(D);var ue=I.linewise,Ve=I.blockwise;if(Ve){D=D.split(` +`),ue&&D.pop();for(var Ge=0;Gef.lastLine()&&f.replaceRange(` +`,new Fe(Zt,0));var pr=Hn(f,Zt);prU.length&&(D=U.length),F=new Fe(I.line,D)}if(x==` +`)C.visualMode||f.replaceRange("",I,F),(st.default.commands.newlineAndIndentContinueComment||st.default.commands.newlineAndIndent)(f);else{var G=f.getRange(I,F);if(G=G.replace(/[^\n]/g,x),C.visualBlock){var te=new Array(f.getOption("tabSize")+1).join(" ");G=f.getSelection(),G=G.replace(/\t/g,te).replace(/[^\n]/g,x).split(` +`),f.replaceSelections(G)}else f.replaceRange(G,I,F);C.visualMode?(I=An(H[0].anchor,H[0].head)?H[0].anchor:H[0].head,f.setCursor(I),na(f,!1)):f.setCursor(Bn(F,0,-1))}},incrementNumberToken:function(f,_){for(var C=f.getCursor(),x=f.getLine(C.line),I=/(-?)(?:(0x)([\da-f]+)|(0b|0|)(\d+))/gi,D,F,H,U;(D=I.exec(x))!==null&&(F=D.index,H=F+D[0].length,!(C.ch"){var _=f.length-11,C=w.slice(0,_),x=f.slice(0,_);return C==x&&w.length>_?"full":x.indexOf(C)==0?"partial":!1}else return w==f?"full":f.indexOf(w)==0?"partial":!1}function sre(w){var f=/^.*(<[^>]+>)$/.exec(w),_=f?f[1]:w.slice(-1);if(_.length>1)switch(_){case"":_=` +`;break;case"":_=" ";break;default:_="";break}return _}function fN(w,f,_){return function(){for(var C=0;C<_;C++)f(w)}}function rn(w){return new Fe(w.line,w.ch)}function Xo(w,f){return w.ch==f.ch&&w.line==f.line}function An(w,f){return w.line2&&(f=Qo.apply(void 0,Array.prototype.slice.call(arguments,1))),An(w,f)?w:f}function Gd(w,f){return arguments.length>2&&(f=Gd.apply(void 0,Array.prototype.slice.call(arguments,1))),An(w,f)?f:w}function pN(w,f,_){var C=An(w,f),x=An(f,_);return C&&x}function Hn(w,f){return w.getLine(f).length}function WS(w){return w.trim?w.trim():w.replace(/^\s+|\s+$/g,"")}function are(w){return w.replace(/([.?*+$\[\]\/\\(){}|\-])/g,"\\$1")}function lre(w,f,_){var C=Hn(w,f),x=new Array(_-C+1).join(" ");w.setCursor(new Fe(f,C)),w.replaceRange(x,w.getCursor())}function mN(w,f){var _=[],C=w.listSelections(),x=rn(w.clipPos(f)),I=!Xo(f,x),D=w.getCursor("head"),F=cre(C,D),H=Xo(C[F].head,C[F].anchor),U=C.length-1,G=U-F>F?U:0,te=C[G].anchor,ge=Math.min(te.line,x.line),pe=Math.max(te.line,x.line),ue=te.ch,Ve=x.ch,Ge=C[G].head.ch-ue,Ue=Ve-ue;Ge>0&&Ue<=0?(ue++,I||Ve--):Ge<0&&Ue>=0?(ue--,H||Ve++):Ge<0&&Ue==-1&&(ue--,Ve++);for(var It=ge;It<=pe;It++){var yt={anchor:new Fe(It,ue),head:new Fe(It,Ve)};_.push(yt)}return w.setSelections(_),f.ch=Ve,te.ch=ue,te}function gN(w,f,_){for(var C=[],x=0;x<_;x++){var I=Bn(f,x,0);C.push({anchor:I,head:I})}w.setSelections(C,0)}function cre(w,f,_){for(var C=0;CH&&(x.line=H),x.ch=Hn(w,x.line)}return{ranges:[{anchor:I,head:x}],primary:0}}else if(_=="block"){var U=Math.min(I.line,x.line),G=I.ch,te=Math.max(I.line,x.line),ge=x.ch;G0&&I&&J(I);I=x.pop())_.line--,_.ch=0;I?(_.line--,_.ch=Hn(w,_.line)):_.ch=0}}function pre(w,f,_){f.ch=0,_.ch=0,_.line++}function ra(w){if(!w)return 0;var f=w.search(/\S/);return f==-1?w.length:f}function o_(w,f,_,C,x){for(var I=hre(w),D=w.getLine(I.line),F=I.ch,H=x?d[0]:u[0];!H(D.charAt(F));)if(F++,F>=D.length)return null;C?H=u[0]:(H=d[0],H(D.charAt(F))||(H=d[1]));for(var U=F,G=F;H(D.charAt(U))&&U=0;)G--;if(G++,f){for(var te=U;/\s/.test(D.charAt(U))&&U0;)G--;G||(G=ge)}}return{start:new Fe(I.line,G),end:new Fe(I.line,U)}}function mre(w,f,_){var C=f;if(!st.default.findMatchingTag||!st.default.findEnclosingTag)return{start:C,end:C};var x=st.default.findMatchingTag(w,f)||st.default.findEnclosingTag(w,f);return!x||!x.open||!x.close?{start:C,end:C}:_?{start:x.open.from,end:x.close.to}:{start:x.open.to,end:x.close.from}}function _N(w,f,_){Xo(f,_)||$.jumpList.add(w,f,_)}function bN(w,f){$.lastCharacterSearch.increment=w,$.lastCharacterSearch.forward=f.forward,$.lastCharacterSearch.selectedCharacter=f.selectedCharacter}var gre={"(":"bracket",")":"bracket","{":"bracket","}":"bracket","[":"section","]":"section","*":"comment","/":"comment",m:"method",M:"method","#":"preprocess"},yN={bracket:{isComplete:function(f){if(f.nextCh===f.symb){if(f.depth++,f.depth>=1)return!0}else f.nextCh===f.reverseSymb&&f.depth--;return!1}},section:{init:function(f){f.curMoveThrough=!0,f.symb=(f.forward?"]":"[")===f.symb?"{":"}"},isComplete:function(f){return f.index===0&&f.nextCh===f.symb}},comment:{isComplete:function(f){var _=f.lastCh==="*"&&f.nextCh==="/";return f.lastCh=f.nextCh,_}},method:{init:function(f){f.symb=f.symb==="m"?"{":"}",f.reverseSymb=f.symb==="{"?"}":"{"},isComplete:function(f){return f.nextCh===f.symb}},preprocess:{init:function(f){f.index=0},isComplete:function(f){if(f.nextCh==="#"){var _=f.lineText.match(/^#(\w+)/)[1];if(_==="endif"){if(f.forward&&f.depth===0)return!0;f.depth++}else if(_==="if"){if(!f.forward&&f.depth===0)return!0;f.depth--}if(_==="else"&&f.depth===0)return!0}return!1}}};function vre(w,f,_,C){var x=rn(w.getCursor()),I=_?1:-1,D=_?w.lineCount():-1,F=x.ch,H=x.line,U=w.getLine(H),G={lineText:U,nextCh:U.charAt(F),lastCh:null,index:F,symb:C,reverseSymb:(_?{")":"(","}":"{"}:{"(":")","{":"}"})[C],forward:_,depth:0,curMoveThrough:!1},te=gre[C];if(!te)return x;var ge=yN[te].init,pe=yN[te].isComplete;for(ge&&ge(G);H!==D&&f;){if(G.index+=I,G.nextCh=G.lineText.charAt(G.index),!G.nextCh){if(H+=I,G.lineText=w.getLine(H)||"",I>0)G.index=0;else{var ue=G.lineText.length;G.index=ue>0?ue-1:0}G.nextCh=G.lineText.charAt(G.index)}pe(G)&&(x.line=H,x.ch=G.index,f--)}return G.nextCh||G.curMoveThrough?new Fe(H,G.index):x}function _re(w,f,_,C,x){var I=f.line,D=f.ch,F=w.getLine(I),H=_?1:-1,U=C?u:d;if(x&&F==""){if(I+=H,F=w.getLine(I),!N(w,I))return null;D=_?0:F.length}for(;;){if(x&&F=="")return{from:0,to:0,line:I};for(var G=H>0?F.length:-1,te=G,ge=G;D!=G;){for(var pe=!1,ue=0;ue0?0:F.length}}function bre(w,f,_,C,x,I){var D=rn(f),F=[];(C&&!x||!C&&x)&&_++;for(var H=!(C&&x),U=0;U<_;U++){var G=_re(w,f,C,I,H);if(!G){var te=Hn(w,w.lastLine());F.push(C?{line:w.lastLine(),from:te,to:te}:{line:0,from:0,to:0});break}F.push(G),f=new Fe(G.line,C?G.to-1:G.from)}var ge=F.length!=_,pe=F[0],ue=F.pop();return C&&!x?(!ge&&(pe.from!=D.ch||pe.line!=D.line)&&(ue=F.pop()),new Fe(ue.line,ue.from)):C&&x?new Fe(ue.line,ue.to-1):!C&&x?(!ge&&(pe.to!=D.ch||pe.line!=D.line)&&(ue=F.pop()),new Fe(ue.line,ue.to)):new Fe(ue.line,ue.from)}function CN(w,f,_,C,x){var I=f,D=new Fe(I.line+_.repeat-1,1/0),F=w.clipPos(D);return F.ch--,x||(C.lastHPos=1/0,C.lastHSPos=w.charCoords(F,"div").left),D}function KS(w,f,_,C){for(var x=w.getCursor(),I=x.ch,D,F=0;F0;)ge(G,C)&&_--,G+=C;return new Fe(G,0)}var pe=w.state.vim;if(pe.visualLine&&ge(I,1,!0)){var ue=pe.sel.anchor;ge(ue.line,-1,!0)&&(!x||ue.line!=I)&&(I+=1)}var Ve=te(I);for(G=I;G<=F&&_;G++)ge(G,1,!0)&&(!x||te(G)!=Ve)&&_--;for(U=new Fe(G,0),G>F&&!Ve?Ve=!0:x=!1,G=I;G>D&&!((!x||te(G)==Ve||G==I)&&ge(G,-1,!0));G--);return H=new Fe(G,0),{start:H,end:U}}function Sre(w,f,_,C){function x(H,U){if(U.pos+U.dir<0||U.pos+U.dir>=U.line.length){if(U.ln+=U.dir,!N(H,U.ln)){U.line=null,U.ln=null,U.pos=null;return}U.line=H.getLine(U.ln),U.pos=U.dir>0?0:U.line.length-1}else U.pos+=U.dir}function I(H,U,G,te){var Ge=H.getLine(U),ge=Ge==="",pe={line:Ge,ln:U,pos:G,dir:te},ue={ln:pe.ln,pos:pe.pos},Ve=pe.line==="";for(x(H,pe);pe.line!==null;){if(ue.ln=pe.ln,ue.pos=pe.pos,pe.line===""&&!Ve)return{ln:pe.ln,pos:pe.pos};if(ge&&pe.line!==""&&!J(pe.line[pe.pos]))return{ln:pe.ln,pos:pe.pos};ae(pe.line[pe.pos])&&!ge&&(pe.pos===pe.line.length-1||J(pe.line[pe.pos+1]))&&(ge=!0),x(H,pe)}var Ge=H.getLine(ue.ln);ue.pos=0;for(var Ue=Ge.length-1;Ue>=0;--Ue)if(!J(Ge[Ue])){ue.pos=Ue;break}return ue}function D(H,U,G,te){var Ve=H.getLine(U),ge={line:Ve,ln:U,pos:G,dir:te},pe={ln:ge.ln,pos:null},ue=ge.line==="";for(x(H,ge);ge.line!==null;){if(ge.line===""&&!ue)return pe.pos!==null?pe:{ln:ge.ln,pos:ge.pos};if(ae(ge.line[ge.pos])&&pe.pos!==null&&!(ge.ln===pe.ln&&ge.pos+1===pe.pos))return pe;ge.line!==""&&!J(ge.line[ge.pos])&&(ue=!1,pe={ln:ge.ln,pos:ge.pos}),x(H,ge)}var Ve=H.getLine(pe.ln);pe.pos=0;for(var Ge=0;Ge0;)C<0?F=D(w,F.ln,F.pos,C):F=I(w,F.ln,F.pos,C),_--;return new Fe(F.ln,F.pos)}function wre(w,f,_,C){var x=f,I,D,F={"(":/[()]/,")":/[()]/,"[":/[[\]]/,"]":/[[\]]/,"{":/[{}]/,"}":/[{}]/,"<":/[<>]/,">":/[<>]/}[_],H={"(":"(",")":"(","[":"[","]":"[","{":"{","}":"{","<":"<",">":"<"}[_],U=w.getLine(x.line).charAt(x.ch),G=U===H?1:0;if(I=w.scanForBracket(new Fe(x.line,x.ch+G),-1,void 0,{bracketRegex:F}),D=w.scanForBracket(new Fe(x.line,x.ch+G),1,void 0,{bracketRegex:F}),!I||!D)return{start:x,end:x};if(I=I.pos,D=D.pos,I.line==D.line&&I.ch>D.ch||I.line>D.line){var te=I;I=D,D=te}return C?D.ch+=1:I.ch+=1,{start:I,end:D}}function xre(w,f,_,C){var x=rn(f),I=w.getLine(x.line),D=I.split(""),F,H,U,G,te=D.indexOf(_);if(x.ch-1&&!F;U--)D[U]==_&&(F=U+1);if(F&&!H)for(U=F,G=D.length;U=f&&w<=_:w==f}function GS(w){var f=w.getScrollInfo(),_=6,C=10,x=w.coordsChar({left:0,top:_+f.top},"local"),I=f.clientHeight-C+f.top,D=w.coordsChar({left:0,top:I},"local");return{top:x.line,bottom:D.line}}function LN(w,f,_){if(_=="'"||_=="`")return $.jumpList.find(w,-1)||new Fe(0,0);if(_==".")return MN(w);var C=f.marks[_];return C&&C.find()}function MN(w){for(var f=w.doc.history.done,_=f.length;_--;)if(f[_].changes)return rn(f[_].changes[0].to)}var DN=function(){this.buildCommandMap_()};DN.prototype={processCommand:function(f,_,C){var x=this;f.operation(function(){f.curOp.isVimOp=!0,x._processCommand(f,_,C)})},_processCommand:function(f,_,C){var x=f.state.vim,I=$.registerController.getRegister(":"),D=I.toString();x.visualMode&&na(f);var F=new st.default.StringStream(_);I.setText(_);var H=C||{};H.input=_;try{this.parseInput_(f,F,H)}catch(ge){throw Pi(f,ge.toString()),ge}var U,G;if(!H.commandName)H.line!==void 0&&(G="move");else if(U=this.matchCommand_(H.commandName),U){if(G=U.name,U.excludeFromCommandHistory&&I.setText(D),this.parseCommandArgs_(F,H,U),U.type=="exToKey"){for(var te=0;te@~])/);return x?C.commandName=x[1]:C.commandName=_.match(/.*/)[0],C},parseLineSpec_:function(f,_){var C=_.match(/^(\d+)/);if(C)return parseInt(C[1],10)-1;switch(_.next()){case".":return this.parseLineSpecOffset_(_,f.getCursor().line);case"$":return this.parseLineSpecOffset_(_,f.lastLine());case"'":var x=_.next(),I=LN(f,f.state.vim,x);if(!I)throw new Error("Mark not set");return this.parseLineSpecOffset_(_,I.line);case"-":case"+":return _.backUp(1),this.parseLineSpecOffset_(_,f.getCursor().line);default:_.backUp(1);return}},parseLineSpecOffset_:function(f,_){var C=f.match(/^([+-])?(\d+)/);if(C){var x=parseInt(C[2],10);C[1]=="-"?_-=x:_+=x}return _},parseCommandArgs_:function(f,_,C){if(!f.eol()){_.argString=f.match(/.*/)[0];var x=C.argDelimiter||/\s+/,I=WS(_.argString).split(x);I.length&&I[0]&&(_.args=I)}},matchCommand_:function(f){for(var _=f.length;_>0;_--){var C=f.substring(0,_);if(this.commandMap_[C]){var x=this.commandMap_[C];if(x.name.indexOf(f)===0)return x}}return null},buildCommandMap_:function(){this.commandMap_={};for(var f=0;f1)return"Invalid arguments";D=pr&&"decimal"||ro&&"hex"||Vr&&"octal"}Zt[2]&&(F=new RegExp(Zt[2].substr(1,Zt[2].length-2),x?"i":""))}}var U=H();if(U){Pi(f,U+": "+_.argString);return}var G=_.line||f.firstLine(),te=_.lineEnd||_.line||f.lastLine();if(G==te)return;var ge=new Fe(G,0),pe=new Fe(te,Hn(f,te)),ue=f.getRange(ge,pe).split(` +`),Ve=F||(D=="decimal"?/(-?)([\d]+)/:D=="hex"?/(-?)(?:0x)?([0-9a-f]+)/i:D=="octal"?/([0-7]+)/:null),Ge=D=="decimal"?10:D=="hex"?16:D=="octal"?8:null,Ue=[],It=[];if(D||F)for(var yt=0;yt=G){Pi(f,"Invalid argument: "+_.argString.substring(I));return}for(var te=0;te<=G-U;te++){var ge=String.fromCharCode(U+te);delete C.marks[ge]}}else{Pi(f,"Invalid argument: "+F+"-");return}}else delete C.marks[D]}}},sa=new DN;function Pre(w,f,_,C,x,I,D,F,H){w.state.vim.exMode=!0;var U=!1,G,te,ge;function pe(){w.operation(function(){for(;!U;)ue(),Ge();Ue()})}function ue(){var yt=w.getRange(I.from(),I.to()),Ct=yt.replace(D,F),Fi=I.to().line;I.replace(Ct),te=I.to().line,x+=te-Fi,ge=te1&&(BN(w,f,f.insertModeRepeat-1,!0),f.lastEditInputState.repeatOverride=f.insertModeRepeat),delete f.insertModeRepeat,f.insertMode=!1,w.setCursor(w.getCursor().line,w.getCursor().ch-1),w.setOption("keyMap","vim"),w.setOption("disableInput",!0),w.toggleOverwrite(!1),C.setText(I.changes.join("")),st.default.signal(w,"vim-mode-change",{mode:"normal"}),_.isRecording&&zre(_),w.enterVimMode()}function RN(w){Ir.unshift(w)}function Fre(w,f,_,C,x){var I={keys:w,type:f};I[f]=_,I[f+"Args"]=C;for(var D in x)I[D]=x[D];RN(I)}Xe("insertModeEscKeysTimeout",200,"number"),st.default.keyMap["vim-insert"]={fallthrough:["default"],attach:r,detach:n,call:o},st.default.keyMap["vim-replace"]={Backspace:"goCharLeft",fallthrough:["vim-insert"],attach:r,detach:n,call:o};function Bre(w,f,_,C){var x=$.registerController.getRegister(C);if(C==":"){x.keyBuffer[0]&&sa.processCommand(w,x.keyBuffer[0]),_.isPlaying=!1;return}var I=x.keyBuffer,D=0;_.isPlaying=!0,_.replaySearchQueries=x.searchQueries.slice(0);for(var F=0;F|<\w+>|./.exec(H),G=U[0],H=H.substring(U.index+G.length),de.handleKey(w,G,"macro"),f.insertMode){var te=x.insertModeChanges[D++].changes;$.macroModeState.lastInsertModeChanges.changes=te,HN(w,te,1),ym(w)}_.isPlaying=!1}function Hre(w,f){if(!w.isPlaying){var _=w.latestRegister,C=$.registerController.getRegister(_);C&&C.pushText(f)}}function zre(w){if(!w.isPlaying){var f=w.latestRegister,_=$.registerController.getRegister(f);_&&_.pushInsertModeChanges&&_.pushInsertModeChanges(w.lastInsertModeChanges)}}function Ure(w,f){if(!w.isPlaying){var _=w.latestRegister,C=$.registerController.getRegister(_);C&&C.pushSearchQuery&&C.pushSearchQuery(f)}}function ON(w,f){var _=$.macroModeState,C=_.lastInsertModeChanges;if(!_.isPlaying)for(;f;){if(C.expectCursorActivityForChange=!0,C.ignoreCount>1)C.ignoreCount--;else if(f.origin=="+input"||f.origin=="paste"||f.origin===void 0){var x=w.listSelections().length;x>1&&(C.ignoreCount=x);var I=f.text.join(` +`);C.maybeReset&&(C.changes=[],C.maybeReset=!1),I&&(w.state.overwrite&&!/\n/.test(I)?C.changes.push([I]):C.changes.push(I))}f=f.next}}function PN(w){var f=w.state.vim;if(f.insertMode){var _=$.macroModeState;if(_.isPlaying)return;var C=_.lastInsertModeChanges;C.expectCursorActivityForChange?C.expectCursorActivityForChange=!1:C.maybeReset=!0}else w.curOp.isVimOp||jre(w,f)}function jre(w,f){var _=w.getCursor("anchor"),C=w.getCursor("head");if(f.visualMode&&!w.somethingSelected()?na(w,!1):!f.visualMode&&!f.insertMode&&w.somethingSelected()&&(f.visualMode=!0,f.visualLine=!1,st.default.signal(w,"vim-mode-change",{mode:"visual"})),f.visualMode){var x=An(C,_)?0:-1,I=An(C,_)?-1:0;C=Bn(C,0,x),_=Bn(_,0,I),f.sel={anchor:_,head:C},pl(w,f,"<",Qo(C,_)),pl(w,f,">",Gd(C,_))}else f.insertMode||(f.lastHPos=w.getCursor().ch)}function $S(w){this.keyName=w}function FN(w){var f=$.macroModeState,_=f.lastInsertModeChanges,C=st.default.keyName(w);if(!C)return;function x(){return _.maybeReset&&(_.changes=[],_.maybeReset=!1),_.changes.push(new $S(C)),!0}(C.indexOf("Delete")!=-1||C.indexOf("Backspace")!=-1)&&st.default.lookupKey(C,"vim-insert",x)}function BN(w,f,_,C){var x=$.macroModeState;x.isPlaying=!0;var I=!!f.lastEditActionCommand,D=f.inputState;function F(){I?Yi.processAction(w,f,f.lastEditActionCommand):Yi.evalInput(w,f)}function H(G){if(x.lastInsertModeChanges.changes.length>0){G=f.lastEditActionCommand?G:1;var te=x.lastInsertModeChanges;HN(w,te.changes,G)}}if(f.inputState=f.lastEditInputState,I&&f.lastEditActionCommand.interlaceInsertRepeat)for(var U=0;U<_;U++)F(),H(1);else C||F(),H(_);f.inputState=D,f.insertMode&&!C&&ym(w),x.isPlaying=!1}function HN(w,f,_){function C(te){return typeof te=="string"?st.default.commands[te](w):te(w),!0}var x=w.getCursor("head"),I=$.macroModeState.lastInsertModeChanges.visualBlock;I&&(gN(w,x,I+1),_=w.listSelections().length,w.setCursor(x));for(var D=0;D<_;D++){I&&w.setCursor(Bn(x,D,0));for(var F=0;F{"use strict";Object.defineProperty($9,"__esModule",{value:!0});$9.default=void 0;function wbe(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function OJ(i,e){for(var t=0;t2&&arguments[2]!==void 0?arguments[2]:null;wbe(this,i),this.closeInput=function(){n.removeInputListeners(),n.input=null,n.setSec(""),n.editor&&n.editor.focus()},this.clear=function(){n.setInnerHtml_(n.node,"")},this.inputKeyUp=function(o){var s=n.input.options;s&&s.onKeyUp&&s.onKeyUp(o,o.target.value,n.closeInput)},this.inputKeyInput=function(o){var s=n.input.options;s&&s.onKeyInput&&s.onKeyUp(o,o.target.value,n.closeInput)},this.inputBlur=function(){var o=n.input.options;o.closeOnBlur&&n.closeInput()},this.inputKeyDown=function(o){var s=n.input,a=s.options,l=s.callback;a&&a.onKeyDown&&a.onKeyDown(o,o.target.value,n.closeInput)||((o.keyCode===27||a&&a.closeOnEnter!==!1&&o.keyCode==13)&&(n.input.node.blur(),o.stopPropagation(),n.closeInput()),o.keyCode===13&&l&&(o.stopPropagation(),o.preventDefault(),l(o.target.value)))},this.node=e,this.modeInfoNode=document.createElement("span"),this.secInfoNode=document.createElement("span"),this.notifNode=document.createElement("span"),this.notifNode.className="vim-notification",this.keyInfoNode=document.createElement("span"),this.keyInfoNode.setAttribute("style","float: right"),this.node.appendChild(this.modeInfoNode),this.node.appendChild(this.secInfoNode),this.node.appendChild(this.notifNode),this.node.appendChild(this.keyInfoNode),this.toggleVisibility(!1),this.editor=t,this.sanitizer=r}return xbe(i,[{key:"setMode",value:function(t){if(t.mode==="visual"){t.subMode==="linewise"?this.setText("--VISUAL LINE--"):t.subMode==="blockwise"?this.setText("--VISUAL BLOCK--"):this.setText("--VISUAL--");return}this.setText("--".concat(t.mode.toUpperCase(),"--"))}},{key:"setKeyBuffer",value:function(t){this.keyInfoNode.textContent=t}},{key:"setSec",value:function(t,n,r){if(this.notifNode.textContent="",t===void 0)return this.closeInput;this.setInnerHtml_(this.secInfoNode,t);var o=this.secInfoNode.querySelector("input");return o&&(o.focus(),this.input={callback:n,options:r,node:o},r&&(r.selectValueOnOpen&&o.select(),r.value&&(o.value=r.value)),this.addInputListeners()),this.closeInput}},{key:"setText",value:function(t){this.modeInfoNode.textContent=t}},{key:"toggleVisibility",value:function(t){t?this.node.style.display="block":this.node.style.display="none",this.input&&this.removeInputListeners(),clearInterval(this.notifTimeout)}},{key:"addInputListeners",value:function(){var t=this.input.node;t.addEventListener("keyup",this.inputKeyUp),t.addEventListener("keydown",this.inputKeyDown),t.addEventListener("input",this.inputKeyInput),t.addEventListener("blur",this.inputBlur)}},{key:"removeInputListeners",value:function(){if(!(!this.input||!this.input.node)){var t=this.input.node;t.removeEventListener("keyup",this.inputKeyUp),t.removeEventListener("keydown",this.inputKeyDown),t.removeEventListener("input",this.inputKeyInput),t.removeEventListener("blur",this.inputBlur)}}},{key:"showNotification",value:function(t){var n=this,r=document.createElement("span");this.setInnerHtml_(r,t),this.notifNode.textContent=r.textContent,this.notifTimeout=setTimeout(function(){n.notifNode.textContent=""},5e3)}},{key:"setInnerHtml_",value:function(t,n){for(;t.childNodes.length;)t.removeChild(t.childNodes[0]);n&&(this.sanitizer?t.appendChild(this.sanitizer(n)):t.appendChild(n))}}]),i}();$9.default=Ebe});var zJ=Ze(Fv=>{"use strict";Object.defineProperty(Fv,"__esModule",{value:!0});Object.defineProperty(Fv,"StatusBar",{enumerable:!0,get:function(){return BJ.default}});Object.defineProperty(Fv,"VimMode",{enumerable:!0,get:function(){return FJ.default}});Fv.initVimMode=Tbe;var FJ=HJ(RJ()),BJ=HJ(PJ());function HJ(i){return i&&i.__esModule?i:{default:i}}function Tbe(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:BJ.default,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,r=new FJ.default(i);if(!e)return r.attach(),r;var o=new t(e,i,n),s="";return r.on("vim-mode-change",function(a){o.setMode(a)}),r.on("vim-keypress",function(a){a===":"?s="":s+=a,o.setKeyBuffer(s)}),r.on("vim-command-done",function(){s="",o.setKeyBuffer(s)}),r.on("dispose",function(){o.toggleVisibility(!1),o.closeInput(),o.clear()}),o.toggleVisibility(!0),r.setStatusBar(o),r.attach(),r}});var UJ=M(()=>{je();Z({id:"abap",extensions:[".abap"],aliases:["abap","ABAP"],loader:()=>import("./abap-VYBXOYTR.js")})});var jJ=M(()=>{je();Z({id:"apex",extensions:[".cls"],aliases:["Apex","apex"],mimetypes:["text/x-apex-source","text/x-apex"],loader:()=>import("./apex-TX7MH4KD.js")})});var WJ=M(()=>{je();Z({id:"azcli",extensions:[".azcli"],aliases:["Azure CLI","azcli"],loader:()=>import("./azcli-4VJUQQIN.js")})});var VJ=M(()=>{je();Z({id:"bat",extensions:[".bat",".cmd"],aliases:["Batch","bat"],loader:()=>import("./bat-GGHBGELM.js")})});var KJ=M(()=>{je();Z({id:"bicep",extensions:[".bicep"],aliases:["Bicep"],loader:()=>import("./bicep-VJO6NXPN.js")})});var qJ=M(()=>{je();Z({id:"cameligo",extensions:[".mligo"],aliases:["Cameligo"],loader:()=>import("./cameligo-UR3AUYFW.js")})});var GJ=M(()=>{je();Z({id:"clojure",extensions:[".clj",".cljs",".cljc",".edn"],aliases:["clojure","Clojure"],loader:()=>import("./clojure-HKNOPZTO.js")})});var $J=M(()=>{je();Z({id:"coffeescript",extensions:[".coffee"],aliases:["CoffeeScript","coffeescript","coffee"],mimetypes:["text/x-coffeescript","text/coffeescript"],loader:()=>import("./coffee-D22KHGF2.js")})});var YJ=M(()=>{je();Z({id:"c",extensions:[".c",".h"],aliases:["C","c"],loader:()=>import("./cpp-4OJPINLR.js")});Z({id:"cpp",extensions:[".cpp",".cc",".cxx",".hpp",".hh",".hxx"],aliases:["C++","Cpp","cpp"],loader:()=>import("./cpp-4OJPINLR.js")})});var XJ=M(()=>{je();Z({id:"csharp",extensions:[".cs",".csx",".cake"],aliases:["C#","csharp"],loader:()=>import("./csharp-CO24EJBG.js")})});var QJ=M(()=>{je();Z({id:"csp",extensions:[],aliases:["CSP","csp"],loader:()=>import("./csp-IIWFJS55.js")})});var JJ=M(()=>{je();Z({id:"cypher",extensions:[".cypher",".cyp"],aliases:["Cypher","OpenCypher"],loader:()=>import("./cypher-MRKLWMJ6.js")})});var ZJ=M(()=>{je();Z({id:"dart",extensions:[".dart"],aliases:["Dart","dart"],mimetypes:["text/x-dart-source","text/x-dart"],loader:()=>import("./dart-54INGSZP.js")})});var eZ=M(()=>{je();Z({id:"ecl",extensions:[".ecl"],aliases:["ECL","Ecl","ecl"],loader:()=>import("./ecl-NCOHKGIC.js")})});var tZ=M(()=>{je();Z({id:"flow9",extensions:[".flow"],aliases:["Flow9","Flow","flow9","flow"],loader:()=>import("./flow9-GEURGHNI.js")})});var iZ=M(()=>{je();Z({id:"fsharp",extensions:[".fs",".fsi",".ml",".mli",".fsx",".fsscript"],aliases:["F#","FSharp","fsharp"],loader:()=>import("./fsharp-4XUTEIEV.js")})});var nZ=M(()=>{je();Z({id:"freemarker2",extensions:[".ftl",".ftlh",".ftlx"],aliases:["FreeMarker2","Apache FreeMarker2"],loader:()=>import("./freemarker2-E42O6EJD.js").then(i=>i.TagAutoInterpolationDollar)});Z({id:"freemarker2.tag-angle.interpolation-dollar",aliases:["FreeMarker2 (Angle/Dollar)","Apache FreeMarker2 (Angle/Dollar)"],loader:()=>import("./freemarker2-E42O6EJD.js").then(i=>i.TagAngleInterpolationDollar)});Z({id:"freemarker2.tag-bracket.interpolation-dollar",aliases:["FreeMarker2 (Bracket/Dollar)","Apache FreeMarker2 (Bracket/Dollar)"],loader:()=>import("./freemarker2-E42O6EJD.js").then(i=>i.TagBracketInterpolationDollar)});Z({id:"freemarker2.tag-angle.interpolation-bracket",aliases:["FreeMarker2 (Angle/Bracket)","Apache FreeMarker2 (Angle/Bracket)"],loader:()=>import("./freemarker2-E42O6EJD.js").then(i=>i.TagAngleInterpolationBracket)});Z({id:"freemarker2.tag-bracket.interpolation-bracket",aliases:["FreeMarker2 (Bracket/Bracket)","Apache FreeMarker2 (Bracket/Bracket)"],loader:()=>import("./freemarker2-E42O6EJD.js").then(i=>i.TagBracketInterpolationBracket)});Z({id:"freemarker2.tag-auto.interpolation-dollar",aliases:["FreeMarker2 (Auto/Dollar)","Apache FreeMarker2 (Auto/Dollar)"],loader:()=>import("./freemarker2-E42O6EJD.js").then(i=>i.TagAutoInterpolationDollar)});Z({id:"freemarker2.tag-auto.interpolation-bracket",aliases:["FreeMarker2 (Auto/Bracket)","Apache FreeMarker2 (Auto/Bracket)"],loader:()=>import("./freemarker2-E42O6EJD.js").then(i=>i.TagAutoInterpolationBracket)})});var rZ=M(()=>{je();Z({id:"go",extensions:[".go"],aliases:["Go"],loader:()=>import("./go-7PU7V5QM.js")})});var oZ=M(()=>{je();Z({id:"graphql",extensions:[".graphql",".gql"],aliases:["GraphQL","graphql","gql"],mimetypes:["application/graphql"],loader:()=>import("./graphql-3VYTYJI7.js")})});var sZ=M(()=>{je();Z({id:"handlebars",extensions:[".handlebars",".hbs"],aliases:["Handlebars","handlebars","hbs"],mimetypes:["text/x-handlebars-template"],loader:()=>import("./handlebars-Q4CF4V2H.js")})});var aZ=M(()=>{je();Z({id:"hcl",extensions:[".tf",".tfvars",".hcl"],aliases:["Terraform","tf","HCL","hcl"],loader:()=>import("./hcl-3IH2WNWU.js")})});var lZ=M(()=>{je();Z({id:"ini",extensions:[".ini",".properties",".gitconfig"],filenames:["config",".gitattributes",".gitconfig",".editorconfig"],aliases:["Ini","ini"],loader:()=>import("./ini-SAC6XGQK.js")})});var cZ=M(()=>{je();Z({id:"java",extensions:[".java",".jav"],aliases:["Java","java"],mimetypes:["text/x-java-source","text/x-java"],loader:()=>import("./java-762AWQ7Q.js")})});var dZ=M(()=>{je();Z({id:"julia",extensions:[".jl"],aliases:["julia","Julia"],loader:()=>import("./julia-KMBRGMB6.js")})});var uZ=M(()=>{je();Z({id:"kotlin",extensions:[".kt",".kts"],aliases:["Kotlin","kotlin"],mimetypes:["text/x-kotlin-source","text/x-kotlin"],loader:()=>import("./kotlin-Y26LRM5H.js")})});var hZ=M(()=>{je();Z({id:"less",extensions:[".less"],aliases:["Less","less"],mimetypes:["text/x-less","text/less"],loader:()=>import("./less-BQYAE3BL.js")})});var fZ=M(()=>{je();Z({id:"lexon",extensions:[".lex"],aliases:["Lexon"],loader:()=>import("./lexon-VICO4FWU.js")})});var pZ=M(()=>{je();Z({id:"lua",extensions:[".lua"],aliases:["Lua","lua"],loader:()=>import("./lua-6ATHF4JU.js")})});var mZ=M(()=>{je();Z({id:"liquid",extensions:[".liquid",".html.liquid"],aliases:["Liquid","liquid"],mimetypes:["application/liquid"],loader:()=>import("./liquid-FJMDZPDR.js")})});var gZ=M(()=>{je();Z({id:"m3",extensions:[".m3",".i3",".mg",".ig"],aliases:["Modula-3","Modula3","modula3","m3"],loader:()=>import("./m3-DNAEBIGJ.js")})});var vZ=M(()=>{je();Z({id:"mips",extensions:[".s"],aliases:["MIPS","MIPS-V"],mimetypes:["text/x-mips","text/mips","text/plaintext"],loader:()=>import("./mips-IPQV376U.js")})});var _Z=M(()=>{je();Z({id:"msdax",extensions:[".dax",".msdax"],aliases:["DAX","MSDAX"],loader:()=>import("./msdax-HKSHOV4H.js")})});var bZ=M(()=>{je();Z({id:"mysql",extensions:[],aliases:["MySQL","mysql"],loader:()=>import("./mysql-XLCHJKYF.js")})});var yZ=M(()=>{je();Z({id:"objective-c",extensions:[".m"],aliases:["Objective-C"],loader:()=>import("./objective-c-I4JUFUGM.js")})});var CZ=M(()=>{je();Z({id:"pascal",extensions:[".pas",".p",".pp"],aliases:["Pascal","pas"],mimetypes:["text/x-pascal-source","text/x-pascal"],loader:()=>import("./pascal-E5LHFI46.js")})});var SZ=M(()=>{je();Z({id:"pascaligo",extensions:[".ligo"],aliases:["Pascaligo","ligo"],loader:()=>import("./pascaligo-LPFC4UYC.js")})});var wZ=M(()=>{je();Z({id:"perl",extensions:[".pl",".pm"],aliases:["Perl","pl"],loader:()=>import("./perl-G7VYOET6.js")})});var xZ=M(()=>{je();Z({id:"pgsql",extensions:[],aliases:["PostgreSQL","postgres","pg","postgre"],loader:()=>import("./pgsql-N5O4YY4C.js")})});var EZ=M(()=>{je();Z({id:"php",extensions:[".php",".php4",".php5",".phtml",".ctp"],aliases:["PHP","php"],mimetypes:["application/x-php"],loader:()=>import("./php-WZLUZOLP.js")})});var TZ=M(()=>{je();Z({id:"pla",extensions:[".pla"],loader:()=>import("./pla-H5HBSQU6.js")})});var kZ=M(()=>{je();Z({id:"postiats",extensions:[".dats",".sats",".hats"],aliases:["ATS","ATS/Postiats"],loader:()=>import("./postiats-DW5JOKUY.js")})});var IZ=M(()=>{je();Z({id:"powerquery",extensions:[".pq",".pqm"],aliases:["PQ","M","Power Query","Power Query M"],loader:()=>import("./powerquery-U2SJQ4GY.js")})});var AZ=M(()=>{je();Z({id:"powershell",extensions:[".ps1",".psm1",".psd1"],aliases:["PowerShell","powershell","ps","ps1"],loader:()=>import("./powershell-2I7YAJDI.js")})});var LZ=M(()=>{je();Z({id:"proto",extensions:[".proto"],aliases:["protobuf","Protocol Buffers"],loader:()=>import("./protobuf-VHYMBWLK.js")})});var MZ=M(()=>{je();Z({id:"pug",extensions:[".jade",".pug"],aliases:["Pug","Jade","jade"],loader:()=>import("./pug-4DWSGGAY.js")})});var DZ=M(()=>{je();Z({id:"python",extensions:[".py",".rpy",".pyw",".cpy",".gyp",".gypi"],aliases:["Python","py"],firstLine:"^#!/.*\\bpython[0-9.-]*\\b",loader:()=>import("./python-NESWXR5I.js")})});var NZ=M(()=>{je();Z({id:"qsharp",extensions:[".qs"],aliases:["Q#","qsharp"],loader:()=>import("./qsharp-ZSWEFMQ3.js")})});var RZ=M(()=>{je();Z({id:"r",extensions:[".r",".rhistory",".rmd",".rprofile",".rt"],aliases:["R","r"],loader:()=>import("./r-VB2OINAG.js")})});var OZ=M(()=>{je();Z({id:"razor",extensions:[".cshtml"],aliases:["Razor","razor"],mimetypes:["text/x-cshtml"],loader:()=>import("./razor-3ZOEXCJM.js")})});var PZ=M(()=>{je();Z({id:"redis",extensions:[".redis"],aliases:["redis"],loader:()=>import("./redis-ZN6WMKI6.js")})});var FZ=M(()=>{je();Z({id:"redshift",extensions:[],aliases:["Redshift","redshift"],loader:()=>import("./redshift-XCPPMXUQ.js")})});var BZ=M(()=>{je();Z({id:"restructuredtext",extensions:[".rst"],aliases:["reStructuredText","restructuredtext"],loader:()=>import("./restructuredtext-ER4MI2XR.js")})});var HZ=M(()=>{je();Z({id:"ruby",extensions:[".rb",".rbx",".rjs",".gemspec",".pp"],filenames:["rakefile","Gemfile"],aliases:["Ruby","rb"],loader:()=>import("./ruby-CSSRCZFH.js")})});var zZ=M(()=>{je();Z({id:"rust",extensions:[".rs",".rlib"],aliases:["Rust","rust"],loader:()=>import("./rust-5BMB6PXP.js")})});var UZ=M(()=>{je();Z({id:"sb",extensions:[".sb"],aliases:["Small Basic","sb"],loader:()=>import("./sb-CO5DRU6K.js")})});var jZ=M(()=>{je();Z({id:"scala",extensions:[".scala",".sc",".sbt"],aliases:["Scala","scala","SBT","Sbt","sbt","Dotty","dotty"],mimetypes:["text/x-scala-source","text/x-scala","text/x-sbt","text/x-dotty"],loader:()=>import("./scala-2A54SA4F.js")})});var WZ=M(()=>{je();Z({id:"scheme",extensions:[".scm",".ss",".sch",".rkt"],aliases:["scheme","Scheme"],loader:()=>import("./scheme-E7EIA2LY.js")})});var VZ=M(()=>{je();Z({id:"scss",extensions:[".scss"],aliases:["Sass","sass","scss"],mimetypes:["text/x-scss","text/scss"],loader:()=>import("./scss-I2L7ETRM.js")})});var KZ=M(()=>{je();Z({id:"shell",extensions:[".sh",".bash"],aliases:["Shell","sh"],loader:()=>import("./shell-HJPXH727.js")})});var qZ=M(()=>{je();Z({id:"sol",extensions:[".sol"],aliases:["sol","solidity","Solidity"],loader:()=>import("./solidity-HQYKJ4L6.js")})});var GZ=M(()=>{je();Z({id:"aes",extensions:[".aes"],aliases:["aes","sophia","Sophia"],loader:()=>import("./sophia-XI5N2KCD.js")})});var $Z=M(()=>{je();Z({id:"sparql",extensions:[".rq"],aliases:["sparql","SPARQL"],loader:()=>import("./sparql-2SIMXPG5.js")})});var YZ=M(()=>{je();Z({id:"st",extensions:[".st",".iecst",".iecplc",".lc3lib"],aliases:["StructuredText","scl","stl"],loader:()=>import("./st-FYPD7SP3.js")})});var XZ=M(()=>{je();Z({id:"swift",aliases:["Swift","swift"],extensions:[".swift"],mimetypes:["text/swift"],loader:()=>import("./swift-J3SBMK25.js")})});var QZ=M(()=>{je();Z({id:"systemverilog",extensions:[".sv",".svh"],aliases:["SV","sv","SystemVerilog","systemverilog"],loader:()=>import("./systemverilog-LCVLURC4.js")});Z({id:"verilog",extensions:[".v",".vh"],aliases:["V","v","Verilog","verilog"],loader:()=>import("./systemverilog-LCVLURC4.js")})});var JZ=M(()=>{je();Z({id:"tcl",extensions:[".tcl"],aliases:["tcl","Tcl","tcltk","TclTk","tcl/tk","Tcl/Tk"],loader:()=>import("./tcl-MVCXVVYJ.js")})});var ZZ=M(()=>{je();Z({id:"twig",extensions:[".twig"],aliases:["Twig","twig"],mimetypes:["text/x-twig"],loader:()=>import("./twig-7LCZB2JP.js")})});var eee=M(()=>{je();Z({id:"typescript",extensions:[".ts",".tsx",".cts",".mts"],aliases:["TypeScript","ts","typescript"],mimetypes:["text/typescript"],loader:()=>import("./typescript-QZVOFQG6.js")})});var tee=M(()=>{je();Z({id:"vb",extensions:[".vb"],aliases:["Visual Basic","vb"],loader:()=>import("./vb-LTQDQXEO.js")})});var iee=M(()=>{je();Z({id:"wgsl",extensions:[".wgsl"],aliases:["WebGPU Shading Language","WGSL","wgsl"],loader:()=>import("./wgsl-FJRYFANV.js")})});var nee=M(()=>{je();Z({id:"yaml",extensions:[".yaml",".yml"],aliases:["YAML","yaml","YML","yml"],mimetypes:["application/x-yaml","text/x-yaml"],loader:()=>import("./yaml-UAWXWFGP.js")})});var ree=M(()=>{Os();UJ();jJ();WJ();VJ();KJ();qJ();GJ();$J();YJ();XJ();QJ();qL();JJ();ZJ();YL();eZ();jL();tZ();iZ();nZ();rZ();oZ();sZ();aZ();GL();lZ();cZ();VL();dZ();uZ();hZ();fZ();pZ();mZ();gZ();WL();vZ();_Z();bZ();yZ();CZ();SZ();wZ();xZ();EZ();TZ();kZ();IZ();AZ();LZ();MZ();DZ();NZ();RZ();OZ();PZ();FZ();BZ();HZ();zZ();UZ();jZ();WZ();VZ();KZ();qZ();GZ();$Z();KL();YZ();XZ();QZ();JZ();ZZ();eee();tee();iee();$L();nee();});function vM(){return import("./cssMode-FRV445RC.js")}var kbe,Ibe,Abe,Lbe,oee,Mbe,lm,pM,mM,gM,see,aee,lee,cee=M(()=>{Os();Os();kbe=Object.defineProperty,Ibe=Object.getOwnPropertyDescriptor,Abe=Object.getOwnPropertyNames,Lbe=Object.prototype.hasOwnProperty,oee=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Abe(e))!Lbe.call(i,r)&&r!==t&&kbe(i,r,{get:()=>e[r],enumerable:!(n=Ibe(e,r))||n.enumerable});return i},Mbe=(i,e,t)=>(oee(i,e,"default"),t&&oee(t,e,"default")),lm={};Mbe(lm,us);pM=class{constructor(i,e,t){Cn(this,"_onDidChange",new lm.Emitter);Cn(this,"_options");Cn(this,"_modeConfiguration");Cn(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get modeConfiguration(){return this._modeConfiguration}get diagnosticsOptions(){return this.options}get options(){return this._options}setOptions(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setDiagnosticsOptions(i){this.setOptions(i)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},mM={validate:!0,lint:{compatibleVendorPrefixes:"ignore",vendorPrefix:"warning",duplicateProperties:"warning",emptyRules:"warning",importStatement:"ignore",boxModel:"ignore",universalSelector:"ignore",zeroUnits:"ignore",fontFaceProperties:"warning",hexColorLength:"error",argumentsInColorFunction:"error",unknownProperties:"warning",ieHack:"ignore",unknownVendorSpecificProperties:"ignore",propertyIgnoredDueToDisplay:"warning",important:"ignore",float:"ignore",idSelector:"ignore"},data:{useDefaultDataProvider:!0},format:{newlineBetweenSelectors:!0,newlineBetweenRules:!0,spaceAroundSelectorSeparator:!1,braceStyle:"collapse",maxPreserveNewLines:void 0,preserveNewLines:!0}},gM={completionItems:!0,hovers:!0,documentSymbols:!0,definitions:!0,references:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,diagnostics:!0,selectionRanges:!0,documentFormattingEdits:!0,documentRangeFormattingEdits:!0},see=new pM("css",mM,gM),aee=new pM("scss",mM,gM),lee=new pM("less",mM,gM);lm.languages.css={cssDefaults:see,lessDefaults:lee,scssDefaults:aee};lm.languages.onLanguage("less",()=>{vM().then(i=>i.setupMode(lee))});lm.languages.onLanguage("scss",()=>{vM().then(i=>i.setupMode(aee))});lm.languages.onLanguage("css",()=>{vM().then(i=>i.setupMode(see))})});function Q9(i){return{completionItems:!0,hovers:!0,documentSymbols:!0,links:!0,documentHighlights:!0,rename:!0,colors:!0,foldingRanges:!0,selectionRanges:!0,diagnostics:i===Bv,documentFormattingEdits:i===Bv,documentRangeFormattingEdits:i===Bv}}function jbe(){return import("./htmlMode-XQFKSCKC.js")}function J9(i,e=X9,t=Q9(i)){let n=new Fbe(i,e,t),r,o=Y9.languages.onLanguage(i,async()=>{r=(await jbe()).setupMode(n)});return{defaults:n,dispose(){o.dispose(),r==null||r.dispose(),r=void 0}}}var Dbe,Nbe,Rbe,Obe,dee,Pbe,Y9,Fbe,Bbe,X9,Bv,uee,hee,fee,Hbe,pee,zbe,mee,Ube,gee=M(()=>{Os();Os();Dbe=Object.defineProperty,Nbe=Object.getOwnPropertyDescriptor,Rbe=Object.getOwnPropertyNames,Obe=Object.prototype.hasOwnProperty,dee=(i,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Rbe(e))!Obe.call(i,r)&&r!==t&&Dbe(i,r,{get:()=>e[r],enumerable:!(n=Nbe(e,r))||n.enumerable});return i},Pbe=(i,e,t)=>(dee(i,e,"default"),t&&dee(t,e,"default")),Y9={};Pbe(Y9,us);Fbe=class{constructor(i,e,t){Cn(this,"_onDidChange",new Y9.Emitter);Cn(this,"_options");Cn(this,"_modeConfiguration");Cn(this,"_languageId");this._languageId=i,this.setOptions(e),this.setModeConfiguration(t)}get onDidChange(){return this._onDidChange.event}get languageId(){return this._languageId}get options(){return this._options}get modeConfiguration(){return this._modeConfiguration}setOptions(i){this._options=i||Object.create(null),this._onDidChange.fire(this)}setModeConfiguration(i){this._modeConfiguration=i||Object.create(null),this._onDidChange.fire(this)}},Bbe={tabSize:4,insertSpaces:!1,wrapLineLength:120,unformatted:'default": "a, abbr, acronym, b, bdo, big, br, button, cite, code, dfn, em, i, img, input, kbd, label, map, object, q, samp, select, small, span, strong, sub, sup, textarea, tt, var',contentUnformatted:"pre",indentInnerHtml:!1,preserveNewLines:!0,maxPreserveNewLines:void 0,indentHandlebars:!1,endWithNewline:!1,extraLiners:"head, body, /html",wrapAttributes:"auto"},X9={format:Bbe,suggest:{},data:{useDefaultDataProvider:!0}};Bv="html",uee="handlebars",hee="razor",fee=J9(Bv,X9,Q9(Bv)),Hbe=fee.defaults,pee=J9(uee,X9,Q9(uee)),zbe=pee.defaults,mee=J9(hee,X9,Q9(hee)),Ube=mee.defaults;Y9.languages.html={htmlDefaults:Hbe,razorDefaults:Ube,handlebarDefaults:zbe,htmlLanguageService:fee,handlebarLanguageService:pee,razorLanguageService:mee,registerHTMLLanguageService:J9}});var Wbe,_M,Vbe,Dh,bM,yM=M(()=>{ma();Xoe();ts();Kn();Ce();xt();db();Wbe=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},_M=function(i,e){return function(t,n){e(t,n,i)}},Vbe=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},Dh=class{constructor(e,t){this._editorWorkerClient=new _F(e,!1,"editorWorkerService",t)}provideDocumentColors(e,t){return Vbe(this,void 0,void 0,function*(){return this._editorWorkerClient.computeDefaultDocumentColors(e.uri)})}provideColorPresentations(e,t,n){let r=t.range,o=t.color,s=o.alpha,a=new ut(new Ls(Math.round(255*o.red),Math.round(255*o.green),Math.round(255*o.blue),s)),l=s?ut.Format.CSS.formatRGB(a):ut.Format.CSS.formatRGBA(a),c=s?ut.Format.CSS.formatHSL(a):ut.Format.CSS.formatHSLA(a),d=s?ut.Format.CSS.formatHex(a):ut.Format.CSS.formatHexA(a),u=[];return u.push({label:l,textEdit:{range:r,text:l}}),u.push({label:c,textEdit:{range:r,text:c}}),u.push({label:d,textEdit:{range:r,text:d}}),u}},bM=class extends oe{constructor(e,t,n){super(),this._register(n.colorProvider.register("*",new Dh(e,t)))}};bM=Wbe([_M(0,Si),_M(1,Tt),_M(2,be)],bM);Yc(bM)});function Z9(i,e,t,n=!0){return Hv(this,void 0,void 0,function*(){return EM(new CM,i,e,t,n)})}function xM(i,e,t,n){return Promise.resolve(t.provideColorPresentations(i,e,n))}function EM(i,e,t,n,r){return Hv(this,void 0,void 0,function*(){let o=!1,s,a=[],l=e.ordered(t);for(let c=l.length-1;c>=0;c--){let d=l[c];if(d instanceof Dh)s=d;else try{(yield i.compute(d,t,n,a))&&(o=!0)}catch(u){Ut(u)}}return o?a:s&&r?(yield i.compute(s,t,n,a),a):[]})}function vee(i,e){let{colorProvider:t}=i.get(be),n=i.get(Si).getModel(e);if(!n)throw Io();let r=i.get(Mt).getValue("editor.defaultColorDecorators",{resource:e});return{model:n,colorProviderRegistry:t,isDefaultColorDecoratorsEnabled:r}}var Hv,CM,SM,wM,TM=M(()=>{gi();At();Sn();qe();ts();zi();xt();yM();Wn();Hv=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};CM=class{constructor(){}compute(e,t,n,r){return Hv(this,void 0,void 0,function*(){let o=yield e.provideDocumentColors(t,n);if(Array.isArray(o))for(let s of o)r.push({colorInfo:s,provider:e});return Array.isArray(o)})}},SM=class{constructor(){}compute(e,t,n,r){return Hv(this,void 0,void 0,function*(){let o=yield e.provideDocumentColors(t,n);if(Array.isArray(o))for(let s of o)r.push({range:s.range,color:[s.color.red,s.color.green,s.color.blue,s.color.alpha]});return Array.isArray(o)})}},wM=class{constructor(e){this.colorInfo=e}compute(e,t,n,r){return Hv(this,void 0,void 0,function*(){let o=yield e.provideColorPresentations(t,this.colorInfo,tt.None);return Array.isArray(o)&&r.push(...o),Array.isArray(o)})}};St.registerCommand("_executeDocumentColorProvider",function(i,...e){let[t]=e;if(!(t instanceof ft))throw Io();let{model:n,colorProviderRegistry:r,isDefaultColorDecoratorsEnabled:o}=vee(i,t);return EM(new SM,r,n,tt.None,o)});St.registerCommand("_executeColorPresentationProvider",function(i,...e){let[t,n]=e,{uri:r,range:o}=n;if(!(r instanceof ft)||!Array.isArray(t)||t.length!==4||!P.isIRange(o))throw Io();let{model:s,colorProviderRegistry:a,isDefaultColorDecoratorsEnabled:l}=vee(i,r),[c,d,u,h]=t;return EM(new wM({range:o,color:{red:c,green:d,blue:u,alpha:h}}),a,s,tt.None,l)})});var Kbe,kM,_ee,AM,wc,IM,LM=M(()=>{Dt();ma();At();Gt();Ce();ml();wi();JP();et();qe();qn();Rs();xt();TM();Wn();Kbe=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},kM=function(i,e){return function(t,n){e(t,n,i)}},_ee=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},AM=Object.create({}),wc=class bee extends oe{constructor(e,t,n,r){super(),this._editor=e,this._configurationService=t,this._languageFeaturesService=n,this._localToDispose=this._register(new re),this._decorationsIds=[],this._colorDatas=new Map,this._colorDecoratorIds=this._editor.createDecorationsCollection(),this._ruleFactory=new wb(this._editor),this._decoratorLimitReporter=new IM,this._colorDecorationClassRefs=this._register(new re),this._debounceInformation=r.for(n.colorProvider,"Document Colors",{min:bee.RECOMPUTE_TIME}),this._register(e.onDidChangeModel(()=>{this._isColorDecoratorsEnabled=this.isEnabled(),this.updateColors()})),this._register(e.onDidChangeModelLanguage(()=>this.updateColors())),this._register(n.colorProvider.onDidChange(()=>this.updateColors())),this._register(e.onDidChangeConfiguration(o=>{let s=this._isColorDecoratorsEnabled;this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(142);let a=s!==this._isColorDecoratorsEnabled||o.hasChanged(19),l=o.hasChanged(142);(a||l)&&(this._isColorDecoratorsEnabled?this.updateColors():this.removeAllDecorations())})),this._timeoutTimer=null,this._computePromise=null,this._isColorDecoratorsEnabled=this.isEnabled(),this._isDefaultColorDecoratorsEnabled=this._editor.getOption(142),this.updateColors()}isEnabled(){let e=this._editor.getModel();if(!e)return!1;let t=e.getLanguageId(),n=this._configurationService.getValue(t);if(n&&typeof n=="object"){let r=n.colorDecorators;if(r&&r.enable!==void 0&&!r.enable)return r.enable}return this._editor.getOption(18)}static get(e){return e.getContribution(this.ID)}dispose(){this.stop(),this.removeAllDecorations(),super.dispose()}updateColors(){if(this.stop(),!this._isColorDecoratorsEnabled)return;let e=this._editor.getModel();!e||!this._languageFeaturesService.colorProvider.has(e)||(this._localToDispose.add(this._editor.onDidChangeModelContent(()=>{this._timeoutTimer||(this._timeoutTimer=new ss,this._timeoutTimer.cancelAndSet(()=>{this._timeoutTimer=null,this.beginCompute()},this._debounceInformation.get(e)))})),this.beginCompute())}beginCompute(){return _ee(this,void 0,void 0,function*(){this._computePromise=Kt(e=>_ee(this,void 0,void 0,function*(){let t=this._editor.getModel();if(!t)return[];let n=new Ln(!1),r=yield Z9(this._languageFeaturesService.colorProvider,t,e,this._isDefaultColorDecoratorsEnabled);return this._debounceInformation.update(t,n.elapsed()),r}));try{let e=yield this._computePromise;this.updateDecorations(e),this.updateColorDecorators(e),this._computePromise=null}catch(e){lt(e)}})}stop(){this._timeoutTimer&&(this._timeoutTimer.cancel(),this._timeoutTimer=null),this._computePromise&&(this._computePromise.cancel(),this._computePromise=null),this._localToDispose.clear()}updateDecorations(e){let t=e.map(n=>({range:{startLineNumber:n.colorInfo.range.startLineNumber,startColumn:n.colorInfo.range.startColumn,endLineNumber:n.colorInfo.range.endLineNumber,endColumn:n.colorInfo.range.endColumn},options:dt.EMPTY}));this._editor.changeDecorations(n=>{this._decorationsIds=n.deltaDecorations(this._decorationsIds,t),this._colorDatas=new Map,this._decorationsIds.forEach((r,o)=>this._colorDatas.set(r,e[o]))})}updateColorDecorators(e){this._colorDecorationClassRefs.clear();let t=[],n=this._editor.getOption(19);for(let o=0;othis._colorDatas.has(r.id));return n.length===0?null:this._colorDatas.get(n[0].id)}isColorDecoration(e){return this._colorDecoratorIds.has(e)}};wc.ID="editor.contrib.colorDetector";wc.RECOMPUTE_TIME=1e3;wc=Kbe([kM(1,Mt),kM(2,be),kM(3,an)],wc);IM=class{constructor(){this._onDidChange=new $e,this._computed=0,this._limited=!1}update(e,t){(e!==this._computed||t!==this._limited)&&(this._computed=e,this._limited=t,this._onDidChange.fire())}};Ae(wc.ID,wc,1)});var eS,yee=M(()=>{Gt();eS=class{get color(){return this._color}set color(e){this._color.equals(e)||(this._color=e,this._onDidChangeColor.fire(e))}get presentation(){return this.colorPresentations[this.presentationIndex]}get colorPresentations(){return this._colorPresentations}set colorPresentations(e){this._colorPresentations=e,this.presentationIndex>e.length-1&&(this.presentationIndex=0),this._onDidChangePresentation.fire(this.presentation)}constructor(e,t,n){this.presentationIndex=n,this._onColorFlushed=new $e,this.onColorFlushed=this._onColorFlushed.event,this._onDidChangeColor=new $e,this.onDidChangeColor=this._onDidChangeColor.event,this._onDidChangePresentation=new $e,this.onDidChangePresentation=this._onDidChangePresentation.event,this.originalColor=e,this._color=e,this._colorPresentations=t}selectNextColorPresentation(){this.presentationIndex=(this.presentationIndex+1)%this.colorPresentations.length,this.flushColor(),this._onDidChangePresentation.fire(this.presentation)}guessColorPresentation(e,t){let n=-1;for(let r=0;r{});var tS=M(()=>{Cee()});var ko,MM,DM,NM,RM,iS,OM,PM,FM,nS,See=M(()=>{ew();Bt();xoe();Zm();or();ma();Gt();Ce();Kr();tS();Re();_r();Ll();ko=fe,MM=class extends oe{constructor(e,t,n,r=!1){super(),this.model=t,this.showingStandaloneColorPicker=r,this._closeButton=null,this._domNode=ko(".colorpicker-header"),me(e,this._domNode),this._pickedColorNode=me(this._domNode,ko(".picked-color"));let o=v("clickToToggleColorOptions","Click to toggle color options (rgb/hsl/hex)");this._pickedColorNode.setAttribute("title",o),this._originalColorNode=me(this._domNode,ko(".original-color")),this._originalColorNode.style.backgroundColor=ut.Format.CSS.format(this.model.originalColor)||"",this.backgroundColor=n.getColorTheme().getColor(ww)||ut.white,this._register(n.onDidColorThemeChange(s=>{this.backgroundColor=s.getColor(ww)||ut.white})),this._register(Rt(this._pickedColorNode,on.CLICK,()=>this.model.selectNextColorPresentation())),this._register(Rt(this._originalColorNode,on.CLICK,()=>{this.model.color=this.model.originalColor,this.model.flushColor()})),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this._register(t.onDidChangePresentation(this.onDidChangePresentation,this)),this._pickedColorNode.style.backgroundColor=ut.Format.CSS.format(t.color)||"",this._pickedColorNode.classList.toggle("light",t.color.rgba.a<.5?this.backgroundColor.isLighter():t.color.isLighter()),this.onDidChangeColor(this.model.color),this.showingStandaloneColorPicker&&(this._domNode.classList.add("standalone-colorpicker"),this._closeButton=this._register(new DM(this._domNode)))}get closeButton(){return this._closeButton}get pickedColorNode(){return this._pickedColorNode}get originalColorNode(){return this._originalColorNode}onDidChangeColor(e){this._pickedColorNode.style.backgroundColor=ut.Format.CSS.format(e)||"",this._pickedColorNode.classList.toggle("light",e.rgba.a<.5?this.backgroundColor.isLighter():e.isLighter()),this.onDidChangePresentation()}onDidChangePresentation(){this._pickedColorNode.textContent=this.model.presentation?this.model.presentation.label:"",this._pickedColorNode.prepend(ko(".codicon.codicon-color-mode"))}},DM=class extends oe{constructor(e){super(),this._onClicked=this._register(new $e),this.onClicked=this._onClicked.event,this._button=document.createElement("div"),this._button.classList.add("close-button"),me(e,this._button);let t=document.createElement("div");t.classList.add("close-button-inner-div"),me(this._button,t),me(t,ko(".button"+gt.asCSSSelector(Ti("color-picker-close",ct.close,v("closeIcon","Icon to close the color picker"))))).classList.add("close-icon"),this._button.onclick=()=>{this._onClicked.fire()}}},NM=class extends oe{constructor(e,t,n,r=!1){super(),this.model=t,this.pixelRatio=n,this._insertButton=null,this._domNode=ko(".colorpicker-body"),me(e,this._domNode),this._saturationBox=new RM(this._domNode,this.model,this.pixelRatio),this._register(this._saturationBox),this._register(this._saturationBox.onDidChange(this.onDidSaturationValueChange,this)),this._register(this._saturationBox.onColorFlushed(this.flushColor,this)),this._opacityStrip=new OM(this._domNode,this.model,r),this._register(this._opacityStrip),this._register(this._opacityStrip.onDidChange(this.onDidOpacityChange,this)),this._register(this._opacityStrip.onColorFlushed(this.flushColor,this)),this._hueStrip=new PM(this._domNode,this.model,r),this._register(this._hueStrip),this._register(this._hueStrip.onDidChange(this.onDidHueChange,this)),this._register(this._hueStrip.onColorFlushed(this.flushColor,this)),r&&(this._insertButton=this._register(new FM(this._domNode)),this._domNode.classList.add("standalone-colorpicker"))}flushColor(){this.model.flushColor()}onDidSaturationValueChange({s:e,v:t}){let n=this.model.color.hsva;this.model.color=new ut(new Pm(n.h,e,t,n.a))}onDidOpacityChange(e){let t=this.model.color.hsva;this.model.color=new ut(new Pm(t.h,t.s,t.v,e))}onDidHueChange(e){let t=this.model.color.hsva,n=(1-e)*360;this.model.color=new ut(new Pm(n===360?0:n,t.s,t.v,t.a))}get domNode(){return this._domNode}get saturationBox(){return this._saturationBox}get enterButton(){return this._insertButton}layout(){this._saturationBox.layout(),this._opacityStrip.layout(),this._hueStrip.layout()}},RM=class extends oe{constructor(e,t,n){super(),this.model=t,this.pixelRatio=n,this._onDidChange=new $e,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new $e,this.onColorFlushed=this._onColorFlushed.event,this._domNode=ko(".saturation-wrap"),me(e,this._domNode),this._canvas=document.createElement("canvas"),this._canvas.className="saturation-box",me(this._domNode,this._canvas),this.selection=ko(".saturation-selection"),me(this._domNode,this.selection),this.layout(),this._register(Rt(this._domNode,on.POINTER_DOWN,r=>this.onPointerDown(r))),this._register(this.model.onDidChangeColor(this.onDidChangeColor,this)),this.monitor=null}get domNode(){return this._domNode}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;this.monitor=this._register(new Mw);let t=wn(this._domNode);e.target!==this.selection&&this.onDidChangePosition(e.offsetX,e.offsetY),this.monitor.startMonitoring(e.target,e.pointerId,e.buttons,r=>this.onDidChangePosition(r.pageX-t.left,r.pageY-t.top),()=>null);let n=Rt(document,on.POINTER_UP,()=>{this._onColorFlushed.fire(),n.dispose(),this.monitor&&(this.monitor.stopMonitoring(!0),this.monitor=null)},!0)}onDidChangePosition(e,t){let n=Math.max(0,Math.min(1,e/this.width)),r=Math.max(0,Math.min(1,1-t/this.height));this.paintSelection(n,r),this._onDidChange.fire({s:n,v:r})}layout(){this.width=this._domNode.offsetWidth,this.height=this._domNode.offsetHeight,this._canvas.width=this.width*this.pixelRatio,this._canvas.height=this.height*this.pixelRatio,this.paint();let e=this.model.color.hsva;this.paintSelection(e.s,e.v)}paint(){let e=this.model.color.hsva,t=new ut(new Pm(e.h,1,1,1)),n=this._canvas.getContext("2d"),r=n.createLinearGradient(0,0,this._canvas.width,0);r.addColorStop(0,"rgba(255, 255, 255, 1)"),r.addColorStop(.5,"rgba(255, 255, 255, 0.5)"),r.addColorStop(1,"rgba(255, 255, 255, 0)");let o=n.createLinearGradient(0,0,0,this._canvas.height);o.addColorStop(0,"rgba(0, 0, 0, 0)"),o.addColorStop(1,"rgba(0, 0, 0, 1)"),n.rect(0,0,this._canvas.width,this._canvas.height),n.fillStyle=ut.Format.CSS.format(t),n.fill(),n.fillStyle=r,n.fill(),n.fillStyle=o,n.fill()}paintSelection(e,t){this.selection.style.left=`${e*this.width}px`,this.selection.style.top=`${this.height-t*this.height}px`}onDidChangeColor(){this.monitor&&this.monitor.isMonitoring()||this.paint()}},iS=class extends oe{constructor(e,t,n=!1){super(),this.model=t,this._onDidChange=new $e,this.onDidChange=this._onDidChange.event,this._onColorFlushed=new $e,this.onColorFlushed=this._onColorFlushed.event,n?(this.domNode=me(e,ko(".standalone-strip")),this.overlay=me(this.domNode,ko(".standalone-overlay"))):(this.domNode=me(e,ko(".strip")),this.overlay=me(this.domNode,ko(".overlay"))),this.slider=me(this.domNode,ko(".slider")),this.slider.style.top="0px",this._register(Rt(this.domNode,on.POINTER_DOWN,r=>this.onPointerDown(r))),this.layout()}layout(){this.height=this.domNode.offsetHeight-this.slider.offsetHeight;let e=this.getValue(this.model.color);this.updateSliderPosition(e)}onPointerDown(e){if(!e.target||!(e.target instanceof Element))return;let t=this._register(new Mw),n=wn(this.domNode);this.domNode.classList.add("grabbing"),e.target!==this.slider&&this.onDidChangeTop(e.offsetY),t.startMonitoring(e.target,e.pointerId,e.buttons,o=>this.onDidChangeTop(o.pageY-n.top),()=>null);let r=Rt(document,on.POINTER_UP,()=>{this._onColorFlushed.fire(),r.dispose(),t.stopMonitoring(!0),this.domNode.classList.remove("grabbing")},!0)}onDidChangeTop(e){let t=Math.max(0,Math.min(1,1-e/this.height));this.updateSliderPosition(t),this._onDidChange.fire(t)}updateSliderPosition(e){this.slider.style.top=`${(1-e)*this.height}px`}},OM=class extends iS{constructor(e,t,n=!1){super(e,t,n),this.domNode.classList.add("opacity-strip"),this._register(t.onDidChangeColor(this.onDidChangeColor,this)),this.onDidChangeColor(this.model.color)}onDidChangeColor(e){let{r:t,g:n,b:r}=e.rgba,o=new ut(new Ls(t,n,r,1)),s=new ut(new Ls(t,n,r,0));this.overlay.style.background=`linear-gradient(to bottom, ${o} 0%, ${s} 100%)`}getValue(e){return e.hsva.a}},PM=class extends iS{constructor(e,t,n=!1){super(e,t,n),this.domNode.classList.add("hue-strip")}getValue(e){return 1-e.hsva.h/360}},FM=class extends oe{constructor(e){super(),this._onClicked=this._register(new $e),this.onClicked=this._onClicked.event,this._button=me(e,document.createElement("button")),this._button.classList.add("insert-button"),this._button.textContent="Insert",this._button.onclick=t=>{this._onClicked.fire()}}get button(){return this._button}},nS=class extends Ns{constructor(e,t,n,r,o=!1){super(),this.model=t,this.pixelRatio=n,this._register(tR.onDidChange(()=>this.layout()));let s=ko(".colorpicker-widget");e.appendChild(s),this.header=this._register(new MM(s,this.model,r,o)),this.body=this._register(new NM(s,this.model,this.pixelRatio,o))}layout(){this.body.layout()}}});function Eee(i,e,t,n){return cm(this,void 0,void 0,function*(){let r=e.getValueInRange(t.range),{red:o,green:s,blue:a,alpha:l}=t.color,c=new Ls(Math.round(o*255),Math.round(s*255),Math.round(a*255),l),d=new ut(c),u=yield xM(e,t,n,tt.None),h=new eS(d,[],0);return h.colorPresentations=u||[],h.guessColorPresentation(d,r),i instanceof zv?new BM(i,P.lift(t.range),h,n):new HM(i,P.lift(t.range),h,n)})}function Tee(i,e,t,n,r){if(n.length===0||!e.hasModel())return oe.None;let o=new re,s=n[0],a=e.getModel(),l=s.model,c=o.add(new nS(r.fragment,l,e.getOption(138),t,i instanceof dm));r.setColorPicker(c);let d=new P(s.range.startLineNumber,s.range.startColumn,s.range.endLineNumber,s.range.endColumn);if(i instanceof dm){let u=n[0].model.color;i.color=u,rS(a,l,u,d,s),o.add(l.onColorFlushed(h=>{i.color=h}))}else o.add(l.onColorFlushed(u=>cm(this,void 0,void 0,function*(){yield rS(a,l,u,d,s),d=kee(e,d,l,r)})));return o.add(l.onDidChangeColor(u=>{rS(a,l,u,d,s)})),o}function kee(i,e,t,n){let r,o;if(t.presentation.textEdit){r=[t.presentation.textEdit],o=new P(t.presentation.textEdit.range.startLineNumber,t.presentation.textEdit.range.startColumn,t.presentation.textEdit.range.endLineNumber,t.presentation.textEdit.range.endColumn);let s=i.getModel()._setTrackedRange(null,o,3);i.pushUndoStop(),i.executeEdits("colorpicker",r),o=i.getModel()._getTrackedRange(s)||o}else r=[{range:e,text:t.presentation.label,forceMoveMarkers:!1}],o=e.setEndPosition(e.endLineNumber,e.startColumn+t.presentation.label.length),i.pushUndoStop(),i.executeEdits("colorpicker",r);return t.presentation.additionalTextEdits&&(r=[...t.presentation.additionalTextEdits],i.executeEdits("colorpicker",r),n&&n.hide()),i.pushUndoStop(),o}function rS(i,e,t,n,r){return cm(this,void 0,void 0,function*(){let o=yield xM(i,{range:n,color:{red:t.rgba.r/255,green:t.rgba.g/255,blue:t.rgba.b/255,alpha:t.rgba.a}},r.provider,tt.None);e.colorPresentations=o||[]})}var wee,xee,cm,BM,zv,HM,dm,zM=M(()=>{Dt();gi();ma();Ce();qe();TM();LM();yee();See();ar();wee=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},xee=function(i,e){return function(t,n){e(t,n,i)}},cm=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},BM=class{constructor(e,t,n,r){this.owner=e,this.range=t,this.model=n,this.provider=r,this.forceShowAtRange=!0}isValidForHoverAnchor(e){return e.type===1&&this.range.startColumn<=e.range.startColumn&&this.range.endColumn>=e.range.endColumn}},zv=class{constructor(e,t){this._editor=e,this._themeService=t,this.hoverOrdinal=2}computeSync(e,t){return[]}computeAsync(e,t,n){return Rr.fromPromise(this._computeAsync(e,t,n))}_computeAsync(e,t,n){return cm(this,void 0,void 0,function*(){if(!this._editor.hasModel())return[];let r=wc.get(this._editor);if(!r)return[];for(let o of t){if(!r.isColorDecoration(o))continue;let s=r.getColorData(o.range.getStartPosition());if(s)return[yield Eee(this,this._editor.getModel(),s.colorInfo,s.provider)]}return[]})}renderHoverParts(e,t){return Tee(this,this._editor,this._themeService,t,e)}};zv=wee([xee(1,pn)],zv);HM=class{constructor(e,t,n,r){this.owner=e,this.range=t,this.model=n,this.provider=r}},dm=class{constructor(e,t){this._editor=e,this._themeService=t,this._color=null}createColorHover(e,t,n){return cm(this,void 0,void 0,function*(){if(!this._editor.hasModel()||!wc.get(this._editor))return null;let o=yield Z9(n,this._editor.getModel(),tt.None),s=null,a=null;for(let u of o){let h=u.colorInfo;P.containsRange(h.range,e.range)&&(s=h,a=u.provider)}let l=s!=null?s:e,c=a!=null?a:t,d=!!s;return{colorHover:yield Eee(this,this._editor.getModel(),l,c),foundInEditor:d}})}updateEditorModel(e){return cm(this,void 0,void 0,function*(){if(!this._editor.hasModel())return;let t=e.model,n=new P(e.range.startLineNumber,e.range.startColumn,e.range.endLineNumber,e.range.endColumn);this._color&&(yield rS(this._editor.getModel(),t,this._color,n,e),n=kee(this._editor,n,t))})}renderHoverParts(e,t){return Tee(this,this._editor,this._themeService,t,e)}set color(e){this._color=e}get color(){return this._color}};dm=wee([xee(1,pn)],dm)});var Uv,Iee=M(()=>{Ce();et();qe();LM();zM();CC();lc();Uv=class extends oe{constructor(e){super(),this._editor=e,this._register(e.onMouseDown(t=>this.onMouseDown(t)))}dispose(){super.dispose()}onMouseDown(e){let t=e.target;if(t.type!==6||!t.detail.injectedText||t.detail.injectedText.options.attachedData!==AM||!t.range)return;let n=this._editor.getContribution(hr.ID);if(n&&!n.isColorPickerVisible()){let r=new P(t.range.startLineNumber,t.range.startColumn+1,t.range.endLineNumber,t.range.endColumn+1);n.showContentHover(r,1,0,!1)}}};Uv.ID="editor.contrib.colorContribution";Ae(Uv.ID,Uv,2);jo.register(zv)});var Mee,ta,Aee,xc,Lee,qbe,oS,UM,Ree=M(()=>{Ce();zM();Et();ck();Gn();Gt();xt();et();Vt();pt();ts();Kn();yM();Bt();tS();Mee=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},ta=function(i,e){return function(t,n){e(t,n,i)}},Aee=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},xc=class Dee extends oe{constructor(e,t,n,r,o,s,a){super(),this._editor=e,this._modelService=n,this._keybindingService=r,this._instantiationService=o,this._languageFeatureService=s,this._languageConfigurationService=a,this._standaloneColorPickerWidget=null,this._standaloneColorPickerVisible=O.standaloneColorPickerVisible.bindTo(t),this._standaloneColorPickerFocused=O.standaloneColorPickerFocused.bindTo(t)}showOrFocus(){var e;this._editor.hasModel()&&(this._standaloneColorPickerVisible.get()?this._standaloneColorPickerFocused.get()||(e=this._standaloneColorPickerWidget)===null||e===void 0||e.focus():this._standaloneColorPickerWidget=new oS(this._editor,this._standaloneColorPickerVisible,this._standaloneColorPickerFocused,this._instantiationService,this._modelService,this._keybindingService,this._languageFeatureService,this._languageConfigurationService))}hide(){var e;this._standaloneColorPickerFocused.set(!1),this._standaloneColorPickerVisible.set(!1),(e=this._standaloneColorPickerWidget)===null||e===void 0||e.hide(),this._editor.focus()}insertColor(){var e;(e=this._standaloneColorPickerWidget)===null||e===void 0||e.updateEditor(),this.hide()}static get(e){return e.getContribution(Dee.ID)}};xc.ID="editor.contrib.standaloneColorPickerController";xc=Mee([ta(1,Ke),ta(2,Si),ta(3,Ht),ta(4,Be),ta(5,be),ta(6,Tt)],xc);Ae(xc.ID,xc,1);Lee=8,qbe=22,oS=class Nee extends oe{constructor(e,t,n,r,o,s,a,l){var c;super(),this._editor=e,this._standaloneColorPickerVisible=t,this._standaloneColorPickerFocused=n,this._modelService=o,this._keybindingService=s,this._languageFeaturesService=a,this._languageConfigurationService=l,this.body=document.createElement("div"),this._position=void 0,this._colorHover=null,this._selectionSetInEditor=!1,this._onResult=this._register(new $e),this.onResult=this._onResult.event,this._standaloneColorPickerVisible.set(!0),this._standaloneColorPickerParticipant=r.createInstance(dm,this._editor),this._position=(c=this._editor._getViewModel())===null||c===void 0?void 0:c.getPrimaryCursorState().viewState.position;let d=this._editor.getSelection(),u=d?{startLineNumber:d.startLineNumber,startColumn:d.startColumn,endLineNumber:d.endLineNumber,endColumn:d.endColumn}:{startLineNumber:0,endLineNumber:0,endColumn:0,startColumn:0},h=this._register(ks(this.body));this._register(h.onDidBlur(p=>{this.hide()})),this._register(h.onDidFocus(p=>{this.focus()})),this._register(this._editor.onDidChangeCursorPosition(()=>{this._selectionSetInEditor?this._selectionSetInEditor=!1:this.hide()})),this._register(this._editor.onMouseMove(p=>{var m;let g=(m=p.target.element)===null||m===void 0?void 0:m.classList;g&&g.contains("colorpicker-color-decoration")&&this.hide()})),this._register(this.onResult(p=>{this._render(p.value,p.foundInEditor)})),this._start(u),this._editor.addContentWidget(this)}updateEditor(){this._colorHover&&this._standaloneColorPickerParticipant.updateEditorModel(this._colorHover)}getId(){return Nee.ID}getDomNode(){return this.body}getPosition(){if(!this._position)return null;let e=this._editor.getOption(58).above;return{position:this._position,secondaryPosition:this._position,preference:e?[1,2]:[2,1],positionAffinity:2}}hide(){this.dispose(),this._standaloneColorPickerVisible.set(!1),this._standaloneColorPickerFocused.set(!1),this._editor.removeContentWidget(this),this._editor.focus()}focus(){this._standaloneColorPickerFocused.set(!0),this.body.focus()}_start(e){return Aee(this,void 0,void 0,function*(){let t=yield this._computeAsync(e);t&&this._onResult.fire(new UM(t.result,t.foundInEditor))})}_computeAsync(e){return Aee(this,void 0,void 0,function*(){if(!this._editor.hasModel())return null;let t={range:e,color:{red:0,green:0,blue:0,alpha:1}},n=yield this._standaloneColorPickerParticipant.createColorHover(t,new Dh(this._modelService,this._languageConfigurationService),this._languageFeaturesService.colorProvider);return n?{result:n.colorHover,foundInEditor:n.foundInEditor}:null})}_render(e,t){let n=document.createDocumentFragment(),r=this._register(new Rg(this._keybindingService)),o,s={fragment:n,statusBar:r,setColorPicker:g=>o=g,onContentsChanged:()=>{},hide:()=>this.hide()};if(this._colorHover=e,this._register(this._standaloneColorPickerParticipant.renderHoverParts(s,[e])),o===void 0)return;this.body.classList.add("standalone-colorpicker-body"),this.body.style.maxHeight=Math.max(this._editor.getLayoutInfo().height/4,250)+"px",this.body.style.maxWidth=Math.max(this._editor.getLayoutInfo().width*.66,500)+"px",this.body.tabIndex=0,this.body.appendChild(n),o.layout();let a=o.body,l=a.saturationBox.domNode.clientWidth,c=a.domNode.clientWidth-l-qbe-Lee,d=o.body.enterButton;d==null||d.onClicked(()=>{this.updateEditor(),this.hide()});let u=o.header,h=u.pickedColorNode;h.style.width=l+Lee+"px";let p=u.originalColorNode;p.style.width=c+"px";let m=o.header.closeButton;m==null||m.onClicked(()=>{this.hide()}),t&&(d&&(d.button.textContent="Replace"),this._selectionSetInEditor=!0,this._editor.setSelection(e.range)),this._editor.layoutContentWidget(this)}};oS.ID="editor.contrib.standaloneColorPickerWidget";oS=Mee([ta(3,Be),ta(4,Si),ta(5,Ht),ta(6,be),ta(7,Tt)],oS);UM=class{constructor(e,t){this.value=e,this.foundInEditor=t}}});var jM,WM,VM,Oee=M(()=>{et();Re();Ree();Vt();Xi();tS();jM=class extends ua{constructor(){super({id:"editor.action.showOrFocusStandaloneColorPicker",title:{value:v("showOrFocusStandaloneColorPicker","Show or Focus Standalone Color Picker"),mnemonicTitle:v({key:"mishowOrFocusStandaloneColorPicker",comment:["&& denotes a mnemonic"]},"&&Show or Focus Standalone Color Picker"),original:"Show or Focus Standalone Color Picker"},precondition:void 0,menu:[{id:xe.CommandPalette}]})}runEditorCommand(e,t){var n;(n=xc.get(t))===null||n===void 0||n.showOrFocus()}},WM=class extends se{constructor(){super({id:"editor.action.hideColorPicker",label:v({key:"hideColorPicker",comment:["Action that hides the color picker"]},"Hide the Color Picker"),alias:"Hide the Color Picker",precondition:O.standaloneColorPickerVisible.isEqualTo(!0),kbOpts:{primary:9,weight:100}})}run(e,t){var n;(n=xc.get(t))===null||n===void 0||n.hide()}},VM=class extends se{constructor(){super({id:"editor.action.insertColorWithStandaloneColorPicker",label:v({key:"insertColorWithStandaloneColorPicker",comment:["Action that inserts color with standalone color picker"]},"Insert Color with Standalone Color Picker"),alias:"Insert Color with Standalone Color Picker",precondition:O.standaloneColorPickerFocused.isEqualTo(!0),kbOpts:{primary:3,weight:100}})}run(e,t){var n;(n=xc.get(t))===null||n===void 0||n.insertColor()}};X(WM);X(VM);mi(jM)});function Pee(i,e,t){var n,r;return{edits:[...e.map(o=>new Q_(i,typeof t.insertText=="string"?{range:o,text:t.insertText,insertAsSnippet:!1}:{range:o,text:t.insertText.snippet,insertAsSnippet:!0})),...(r=(n=t.additionalEdit)===null||n===void 0?void 0:n.edits)!==null&&r!==void 0?r:[]]}}var Fee=M(()=>{Qm()});function Bee(i,e){var t;return!!(!((t=i.pasteMimeTypes)===null||t===void 0)&&t.some(n=>e.matches(n)))}var Gbe,um,Ud,qM,GM,KM,jd,zee=M(()=>{Bt();oi();Dt();C0();Ce();vw();nr();b0();gE();Qm();qe();xt();Fee();lu();E0();Re();$m();pt();Et();Gc();kl();bE();Gbe=function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},um=function(i,e){return function(t,n){e(t,n,i)}},Ud=function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})},qM="editor.changePasteType",GM=new rt("pasteWidgetVisible",!1,v("pasteWidgetVisible","Whether the paste widget is showing")),KM="application/vnd.code.copyMetadata",jd=class Hee extends oe{static get(e){return e.getContribution(Hee.ID)}constructor(e,t,n,r,o,s,a){super(),this._bulkEditService=n,this._clipboardService=r,this._languageFeaturesService=o,this._quickInputService=s,this._progressService=a,this._editor=e;let l=e.getContainerDomNode();this._register(Rt(l,"copy",c=>this.handleCopy(c))),this._register(Rt(l,"cut",c=>this.handleCopy(c))),this._register(Rt(l,"paste",c=>this.handlePaste(c),!0)),this._pasteProgressManager=this._register(new rp("pasteIntoEditor",e,t)),this._postPasteWidgetManager=this._register(t.createInstance(op,"pasteIntoEditor",e,GM,{id:qM,label:v("postPasteWidgetTitle","Show paste options...")}))}changePasteType(){this._postPasteWidgetManager.tryShowSelector()}pasteAs(e){this._editor.focus();try{this._pasteAsActionContext={preferredId:e},document.execCommand("paste")}finally{this._pasteAsActionContext=void 0}}isPasteAsEnabled(){return this._editor.getOption(82).enabled&&!this._editor.getOption(88)}handleCopy(e){var t,n;if(!e.clipboardData||!this._editor.hasTextFocus()||!this.isPasteAsEnabled())return;let r=this._editor.getModel(),o=this._editor.getSelections();if(!r||!(o!=null&&o.length))return;let s=this._editor.getOption(35),a=o,l=o.length===1&&o[0].isEmpty();if(l){if(!s)return;a=[new P(a[0].startLineNumber,1,a[0].startLineNumber,1+r.getLineLength(a[0].startLineNumber))]}let c=(t=this._editor._getViewModel())===null||t===void 0?void 0:t.getPlainTextToCopy(o,s,Nc),u={multicursorText:Array.isArray(c)?c:null,pasteOnNewLine:l,mode:null},h=this._languageFeaturesService.documentPasteEditProvider.ordered(r).filter(S=>!!S.prepareDocumentPaste);if(!h.length){this.setCopyMetadata(e.clipboardData,{defaultPastePayload:u});return}let p=mE(e.clipboardData),m=h.flatMap(S=>{var k;return(k=S.copyMimeTypes)!==null&&k!==void 0?k:[]}),g=_d();this.setCopyMetadata(e.clipboardData,{id:g,providerCopyMimeTypes:m,defaultPastePayload:u});let b=Kt(S=>Ud(this,void 0,void 0,function*(){let k=vr(yield Promise.all(h.map(N=>Ud(this,void 0,void 0,function*(){try{return yield N.prepareDocumentPaste(r,a,p,S)}catch(A){console.error(A);return}}))));k.reverse();for(let N of k)for(let[A,B]of N)p.replace(A,B);return p}));(n=this._currentCopyOperation)===null||n===void 0||n.dataTransferPromise.cancel(),this._currentCopyOperation={handle:g,dataTransferPromise:b}}handlePaste(e){var t,n;return Ud(this,void 0,void 0,function*(){if(!e.clipboardData||!this._editor.hasTextFocus())return;(t=this._currentPasteOperation)===null||t===void 0||t.cancel(),this._currentPasteOperation=void 0;let r=this._editor.getModel(),o=this._editor.getSelections();if(!(o!=null&&o.length)||!r||!this.isPasteAsEnabled())return;let s=this.fetchCopyMetadata(e.clipboardData),a=my(e.clipboardData);a.delete(KM);let l=[...e.clipboardData.types,...(n=s==null?void 0:s.providerCopyMimeTypes)!==null&&n!==void 0?n:[],Vn.uriList],c=this._languageFeaturesService.documentPasteEditProvider.ordered(r).filter(d=>{var u;return(u=d.pasteMimeTypes)===null||u===void 0?void 0:u.some(h=>rq(h,l))});c.length&&(e.preventDefault(),e.stopImmediatePropagation(),this._pasteAsActionContext?this.showPasteAsPick(this._pasteAsActionContext.preferredId,c,o,a,s):this.doPasteInline(c,o,a,s))})}doPasteInline(e,t,n,r){let o=Kt(s=>Ud(this,void 0,void 0,function*(){let a=this._editor;if(!a.hasModel())return;let l=a.getModel(),c=new Sa(a,3,void 0,s);try{if(yield this.mergeInDataFromCopy(n,r,c.token),c.token.isCancellationRequested)return;let d=e.filter(h=>Bee(h,n));if(!d.length||d.length===1&&d[0].id==="text"){yield this.applyDefaultPasteHandler(n,r,c.token);return}let u=yield this.getPasteEdits(d,n,l,t,c.token);if(c.token.isCancellationRequested)return;if(u.length){let h=a.getOption(82).showPasteSelector==="afterPaste";return this._postPasteWidgetManager.applyEditAndShowIfNeeded(t,{activeEditIndex:0,allEdits:u},h,c.token)}yield this.applyDefaultPasteHandler(n,r,c.token)}finally{c.dispose(),this._currentPasteOperation===o&&(this._currentPasteOperation=void 0)}}));this._pasteProgressManager.showWhile(t[0].getEndPosition(),v("pasteIntoEditorProgress","Running paste handlers. Click to cancel"),o),this._currentPasteOperation=o}showPasteAsPick(e,t,n,r,o){let s=Kt(a=>Ud(this,void 0,void 0,function*(){let l=this._editor;if(!l.hasModel())return;let c=l.getModel(),d=new Sa(l,3,void 0,a);try{if(yield this.mergeInDataFromCopy(r,o,d.token),d.token.isCancellationRequested)return;let u=t.filter(g=>Bee(g,r)),h=yield this.getPasteEdits(u,r,c,n,d.token);if(d.token.isCancellationRequested||!h.length)return;let p;if(typeof e=="string")p=h.find(g=>g.id===e);else{let g=yield this._quickInputService.pick(h.map(b=>({label:b.label,description:b.id,detail:b.detail,edit:b})),{placeHolder:v("pasteAsPickerPlaceholder","Select Paste Action")});p=g==null?void 0:g.edit}if(!p)return;let m=Pee(c.uri,n,p);yield this._bulkEditService.apply(m,{editor:this._editor})}finally{d.dispose(),this._currentPasteOperation===s&&(this._currentPasteOperation=void 0)}}));this._progressService.withProgress({location:10,title:v("pasteAsProgress","Running paste handlers")},()=>s)}setCopyMetadata(e,t){e.setData(KM,JSON.stringify(t))}fetchCopyMetadata(e){let t=e.getData(KM);if(t)try{return JSON.parse(t)}catch(n){return}}mergeInDataFromCopy(e,t,n){var r;return Ud(this,void 0,void 0,function*(){if(t!=null&&t.id&&((r=this._currentCopyOperation)===null||r===void 0?void 0:r.handle)===t.id){let o=yield this._currentCopyOperation.dataTransferPromise;if(n.isCancellationRequested)return;for(let[s,a]of o)e.replace(s,a)}if(!e.has(Vn.uriList)){let o=yield this._clipboardService.readResources();if(n.isCancellationRequested)return;o.length&&e.append(Vn.uriList,y0(Uu.create(o)))}})}getPasteEdits(e,t,n,r,o){return Ud(this,void 0,void 0,function*(){let s=yield Vc(Promise.all(e.map(a=>{var l;try{return(l=a.provideDocumentPasteEdits)===null||l===void 0?void 0:l.call(a,n,r,t,o)}catch(c){console.error(c);return}})).then(vr),o);return s==null||s.sort((a,l)=>l.priority-a.priority),s!=null?s:[]})}applyDefaultPasteHandler(e,t,n){var r,o,s;return Ud(this,void 0,void 0,function*(){let a=(r=e.get(Vn.text))!==null&&r!==void 0?r:e.get("text");if(!a)return;let l=yield a.asString();if(n.isCancellationRequested)return;let c={text:l,pasteOnNewLine:(o=t==null?void 0:t.defaultPastePayload.pasteOnNewLine)!==null&&o!==void 0?o:!1,multicursorText:(s=t==null?void 0:t.defaultPastePayload.multicursorText)!==null&&s!==void 0?s:null,mode:null};this._editor.trigger("keyboard","paste",c)})}};jd.ID="editor.contrib.copyPasteActionController";jd=Gbe([um(1,Be),um(2,qc),um(3,Ds),um(4,be),um(5,lr),um(6,hP)],jd)});var Uee=M(()=>{et();db();zee();uE();Re();Ae(jd.ID,jd,0);Yc(py);Ne(new class extends xi{constructor(){super({id:qM,precondition:GM,kbOpts:{weight:100,primary:2137}})}runEditorCommand(i,e,t){var n;return(n=jd.get(e))===null||n===void 0?void 0:n.changePasteType()}});X(class extends se{constructor(){super({id:"editor.action.pasteAs",label:v("pasteAs","Paste As..."),alias:"Paste As...",precondition:void 0,description:{description:"Paste as",args:[{name:"args",schema:{type:"object",properties:{id:{type:"string",description:v("pasteAs.id","The id of the paste edit to try applying. If not provided, the editor will show a picker.")}}}}]}})}run(i,e,t){var n;let r=typeof(t==null?void 0:t.id)=="string"?t.id:void 0;return(n=jd.get(e))===null||n===void 0?void 0:n.pasteAs(r)}})});var jee=Ze($M=>{gi();Mi();Sn();ca();av();zi();var $be=$M&&$M.__awaiter||function(i,e,t,n){function r(o){return o instanceof t?o:new t(function(s){s(o)})}return new(t||(t=Promise))(function(o,s){function a(d){try{c(n.next(d))}catch(u){s(u)}}function l(d){try{c(n.throw(d))}catch(u){s(u)}}function c(d){d.done?o(d.value):r(d.value).then(a,l)}c((n=n.apply(i,e||[])).next())})};St.registerCommand("_executeDocumentSymbolProvider",function(i,...e){return $be(this,void 0,void 0,function*(){let[t]=e;Lt(ft.isUri(t));let n=i.get(Ch),o=yield i.get(xn).createModelReference(t);try{return(yield n.getOrCreate(o.object.textEditorModel,tt.None)).getTopLevelSymbols()}finally{o.dispose()}})})});var YM,Wee=M(()=>{ml();et();Re();YM=class extends se{constructor(){super({id:"editor.action.forceRetokenize",label:v("forceRetokenize","Developer: Force Retokenize"),alias:"Developer: Force Retokenize",precondition:void 0})}run(e,t){if(!t.hasModel())return;let n=t.getModel();n.tokenization.resetTokenization();let r=new Ln(!0);n.tokenization.forceTokenization(n.getLineCount()),r.stop(),console.log(`tokenization took ${r.elapsed()}`)}};X(YM)});var Nh,XM=M(()=>{Lo();Boe();Re();Xi();pt();Nh=class i extends rs{constructor(){super({id:i.ID,title:{value:v({key:"toggle.tabMovesFocus",comment:["Turn on/off use of tab key for moving focus around VS Code"]},"Toggle Tab Key Moves Focus"),original:"Toggle Tab Key Moves Focus"},precondition:void 0,keybinding:{primary:2091,mac:{primary:1323},weight:100},f1:!0})}run(e){let t=e.get(Ke).getContextKeyValue("focusedView")==="terminal"?"terminalFocus":"editorFocus",r=!Kw.getTabFocusMode(t);Kw.setTabFocusMode(r,t),r?Ni(v("toggle.tabMovesFocus.on","Pressing Tab will now move focus to the next focusable element")):Ni(v("toggle.tabMovesFocus.off","Pressing Tab will now insert the tab character"))}};Nh.ID="editor.action.toggleTabFocusMode";mi(Nh)});var L5t,M5t,z5t,Vee=M(()=>{R_();tF();Qoe();Yoe();f6();_6();C6();w6();k6();V6();X6();Iee();Oee();iE();rE();aE();lE();Uee();wE();Dy();Fy();g7();L5t=Bi(y7()),M5t=Bi(jee());gT();E0();Ag();oC();hC();CC();Nk();jk();z5t=Bi(qk());$k();pI();bI();wI();xI();zI();qI();XI();aA();lA();hA();vp();yA();A2();EA();Wee();XM();OA();PA();WA();b9();bL();yL();Xc();d0()});var Kee=M(()=>{});var qee=M(()=>{Kee()});var Xee=Ze(jv=>{qee();Bt();woe();Lo();Zm();Ce();nr();wi();Sn();et();Vt();XM();pt();Et();Gn();cs();Xc();var Gee=jv&&jv.__decorate||function(i,e,t,n){var r=arguments.length,o=r<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,e,t,n);else for(var a=i.length-1;a>=0;a--)(s=i[a])&&(o=(r<3?s(o):r>3?s(e,t,o):s(e,t))||o);return r>3&&o&&Object.defineProperty(e,t,o),o},sS=jv&&jv.__param||function(i,e){return function(t,n){e(t,n,i)}},$ee=new rt("accessibilityHelpWidgetVisible",!1),Rh=class Yee extends oe{static get(e){return e.getContribution(Yee.ID)}constructor(e,t){super(),this._editor=e,this._widget=this._register(t.createInstance(hm,this._editor))}show(){this._widget.show()}hide(){this._widget.hide()}};Rh.ID="editor.contrib.accessibilityHelpController";Rh=Gee([sS(1,Be)],Rh);function Ybe(i,e){return!i||i.length===0?Ki.noSelection:i.length===1?e?Mo(Ki.singleSelectionRange,i[0].positionLineNumber,i[0].positionColumn,e):Mo(Ki.singleSelection,i[0].positionLineNumber,i[0].positionColumn):e?Mo(Ki.multiSelectionRange,i.length,e):i.length>0?Mo(Ki.multiSelection,i.length):""}var hm=class aS extends Ns{constructor(e,t,n,r){super(),this._contextKeyService=t,this._keybindingService=n,this._openerService=r,this._editor=e,this._isVisibleKey=$ee.bindTo(this._contextKeyService),this._domNode=Lw(document.createElement("div")),this._domNode.setClassName("accessibilityHelpWidget"),this._domNode.setDisplay("none"),this._domNode.setAttribute("role","dialog"),this._domNode.setAttribute("aria-modal","true"),this._domNode.setAttribute("aria-hidden","true");let o=me(this._domNode.domNode,fe("h1",void 0,Ki.accessibilityHelpTitle));o.id="help-dialog-heading",this._domNode.setAttribute("aria-labelledby",o.id),this._contentDomNode=Lw(document.createElement("div")),this._contentDomNode.setAttribute("role","document"),this._contentDomNode.domNode.id="help-dialog-content",this._domNode.appendChild(this._contentDomNode),this._contentDomNode.setAttribute("aria-describedby",this._contentDomNode.domNode.id),this._isVisible=!1,this._register(this._editor.onDidLayoutChange(()=>{this._isVisible&&this._layout()})),this._register(es(this._contentDomNode.domNode,"keydown",s=>{if(this._isVisible&&(s.equals(2083)&&(Ni(Ki.emergencyConfOn),this._editor.updateOptions({accessibilitySupport:"on"}),mr(this._contentDomNode.domNode),this._buildContent(),this._contentDomNode.domNode.focus(),s.preventDefault(),s.stopPropagation()),s.equals(2086))){Ni(Ki.openingDocs);let a=this._editor.getRawOptions().accessibilityHelpUrl;typeof a=="undefined"&&(a="https://go.microsoft.com/fwlink/?linkid=852450"),this._openerService.open(ft.parse(a)),s.preventDefault(),s.stopPropagation()}})),this.onblur(this._contentDomNode.domNode,()=>{this.hide()}),this._editor.addOverlayWidget(this)}dispose(){this._editor.removeOverlayWidget(this),super.dispose()}getId(){return aS.ID}getDomNode(){return this._domNode.domNode}getPosition(){return{preference:null}}show(){this._isVisible||(this._isVisible=!0,this._isVisibleKey.set(!0),this._layout(),this._domNode.setDisplay("block"),this._domNode.setAttribute("aria-hidden","false"),this._contentDomNode.domNode.tabIndex=0,this._buildContent(),this._contentDomNode.domNode.focus())}_descriptionForCommand(e,t,n){let r=this._keybindingService.lookupKeybinding(e);return r?Mo(t,r.getAriaLabel()):Mo(n,e)}_buildContent(){let e=this._contentDomNode.domNode,t=this._editor.getOptions(),n=this._editor.getSelections(),r=0;if(n){let c=this._editor.getModel();c&&n.forEach(d=>{r+=c.getValueLengthInRange(d)})}me(e,fe("p",void 0,Ybe(n,r)));let o=me(e,fe("p"));t.get(59)?t.get(88)?o.textContent=Ki.readonlyDiffEditor:o.textContent=Ki.editableDiffEditor:t.get(88)?o.textContent=Ki.readonlyEditor:o.textContent=Ki.editableEditor;let s=me(e,fe("ul")),a=zn?Ki.changeConfigToOnMac:Ki.changeConfigToOnWinLinux;switch(t.get(2)){case 0:me(s,fe("li",void 0,a));break;case 2:me(s,fe("li",void 0,Ki.auto_on));break;case 1:me(s,fe("li",void 0,Ki.auto_off,a));break}t.get(139)?me(s,fe("li",void 0,this._descriptionForCommand(Nh.ID,Ki.tabFocusModeOnMsg,Ki.tabFocusModeOnMsgNoKb))):me(s,fe("li",void 0,this._descriptionForCommand(Nh.ID,Ki.tabFocusModeOffMsg,Ki.tabFocusModeOffMsgNoKb)));let l=zn?Ki.openDocMac:Ki.openDocWinLinux;me(s,fe("li",void 0,l)),me(e,fe("p",void 0,Ki.outroMsg))}hide(){this._isVisible&&(this._isVisible=!1,this._isVisibleKey.reset(),this._domNode.setDisplay("none"),this._domNode.setAttribute("aria-hidden","true"),this._contentDomNode.domNode.tabIndex=-1,mr(this._contentDomNode.domNode),this._editor.focus())}_layout(){let e=this._editor.getLayoutInfo(),t=Math.max(5,Math.min(aS.WIDTH,e.width-40)),n=Math.max(5,Math.min(aS.HEIGHT,e.height-40));this._domNode.setWidth(t),this._domNode.setHeight(n);let r=Math.round((e.height-n)/2);this._domNode.setTop(r);let o=Math.round((e.width-t)/2);this._domNode.setLeft(o)}};hm.ID="editor.contrib.accessibilityHelpWidget";hm.WIDTH=500;hm.HEIGHT=300;hm=Gee([sS(1,Ke),sS(2,Ht),sS(3,Ji)],hm);var QM=class extends se{constructor(){super({id:"editor.action.showAccessibilityHelp",label:Ki.showAccessibilityHelpAction,alias:"Show Accessibility Help",precondition:void 0,kbOpts:{primary:571,weight:100,linux:{primary:1595,secondary:[571]}}})}run(e,t){let n=Rh.get(t);n==null||n.show()}};Ae(Rh.ID,Rh,4);X(QM);var Xbe=xi.bindToContribution(Rh.get);Ne(new Xbe({id:"closeAccessibilityHelp",precondition:$ee,handler:i=>i.hide(),kbOpts:{weight:100+100,kbExpr:O.focus,primary:9,secondary:[1033]}}))});var Qee=M(()=>{});var Jee=M(()=>{Qee()});var Wv,lS,Zee=M(()=>{Jee();Bt();Ce();et();nr();Wv=class extends oe{constructor(e){super(),this.editor=e,this.widget=null,Tm&&(this._register(e.onDidChangeConfiguration(()=>this.update())),this.update())}update(){let e=!this.editor.getOption(88);!this.widget&&e?this.widget=new lS(this.editor):this.widget&&!e&&(this.widget.dispose(),this.widget=null)}dispose(){super.dispose(),this.widget&&(this.widget.dispose(),this.widget=null)}};Wv.ID="editor.contrib.iPadShowKeyboard";lS=class i extends oe{constructor(e){super(),this.editor=e,this._domNode=document.createElement("textarea"),this._domNode.className="iPadShowKeyboard",this._register(Rt(this._domNode,"touchstart",t=>{this.editor.focus()})),this._register(Rt(this._domNode,"focus",t=>{this.editor.focus()})),this.editor.addOverlayWidget(this)}dispose(){this.editor.removeOverlayWidget(this),super.dispose()}getId(){return i.ID}getDomNode(){return this._domNode}getPosition(){return{preference:1}}};lS.ID="editor.contrib.ShowKeyboardWidget";Ae(Wv.ID,Wv,3)});var JM,ete=M(()=>{et();pF();Xc();Tw();Joe();JM=class extends se{constructor(){super({id:"editor.action.toggleHighContrast",label:vF.toggleHighContrast,alias:"Toggle High Contrast Theme",precondition:void 0}),this._originalThemeName=null}run(e,t){let n=e.get(kb),r=n.getColorTheme();au(r.type)?(n.setTheme(this._originalThemeName||(Ew(r.type)?yF:bF)),this._originalThemeName=null):(n.setTheme(Ew(r.type)?CF:SF),this._originalThemeName=r.themeName)}};X(JM)});var Kyt,Gyt,tte=M(()=>{Vee();Kyt=Bi(Xee());Zee();Gyt=Bi(SL());wL();EL();DL();FL();HL();ete();Os()});var Vv={};zN(Vv,{CancellationTokenSource:()=>Zoe,Emitter:()=>ese,KeyCode:()=>tse,KeyMod:()=>ise,MarkerSeverity:()=>ase,MarkerTag:()=>lse,Position:()=>nse,Range:()=>rse,Selection:()=>ose,SelectionDirection:()=>sse,Token:()=>dse,Uri:()=>cse,editor:()=>du,languages:()=>ds});var Kv=M(()=>{ree();cee();gee();zL();use();tte()});var ste=Ze((l2t,ote)=>{var rte="Expected a function",ite=NaN,Qbe="[object Symbol]",Jbe=/^\s+|\s+$/g,Zbe=/^[-+]0x[0-9a-f]+$/i,e4e=/^0b[01]+$/i,t4e=/^0o[0-7]+$/i,i4e=parseInt,n4e=typeof global=="object"&&global&&global.Object===Object&&global,r4e=typeof self=="object"&&self&&self.Object===Object&&self,o4e=n4e||r4e||Function("return this")(),s4e=Object.prototype,a4e=s4e.toString,l4e=Math.max,c4e=Math.min,ZM=function(){return o4e.Date.now()};function d4e(i,e,t){var n,r,o,s,a,l,c=0,d=!1,u=!1,h=!0;if(typeof i!="function")throw new TypeError(rte);e=nte(e)||0,cS(t)&&(d=!!t.leading,u="maxWait"in t,o=u?l4e(nte(t.maxWait)||0,e):o,h="trailing"in t?!!t.trailing:h);function p(j){var z=n,J=r;return n=r=void 0,c=j,s=i.apply(J,z),s}function m(j){return c=j,a=setTimeout(S,e),d?p(j):s}function g(j){var z=j-l,J=j-c,ae=e-z;return u?c4e(ae,o-J):ae}function b(j){var z=j-l,J=j-c;return l===void 0||z>=e||z<0||u&&J>=o}function S(){var j=ZM();if(b(j))return k(j);a=setTimeout(S,g(j))}function k(j){return a=void 0,h&&n?p(j):(n=r=void 0,s)}function N(){a!==void 0&&clearTimeout(a),c=0,n=l=r=a=void 0}function A(){return a===void 0?s:k(ZM())}function B(){var j=ZM(),z=b(j);if(n=arguments,r=this,l=j,z){if(a===void 0)return m(l);if(u)return a=setTimeout(S,e),p(l)}return a===void 0&&(a=setTimeout(S,e)),s}return B.cancel=N,B.flush=A,B}function u4e(i,e,t){var n=!0,r=!0;if(typeof i!="function")throw new TypeError(rte);return cS(t)&&(n="leading"in t?!!t.leading:n,r="trailing"in t?!!t.trailing:r),d4e(i,e,{leading:n,maxWait:e,trailing:r})}function cS(i){var e=typeof i;return!!i&&(e=="object"||e=="function")}function h4e(i){return!!i&&typeof i=="object"}function f4e(i){return typeof i=="symbol"||h4e(i)&&a4e.call(i)==Qbe}function nte(i){if(typeof i=="number")return i;if(f4e(i))return ite;if(cS(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=cS(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=i.replace(Jbe,"");var t=e4e.test(i);return t||t4e.test(i)?i4e(i.slice(2),t?2:8):Zbe.test(i)?ite:+i}ote.exports=u4e});var Ate=Ze((c2t,Ite)=>{var p4e=1/0,m4e="[object Symbol]",g4e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,v4e=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pte="\\ud800-\\udfff",_4e="\\u0300-\\u036f\\ufe20-\\ufe23",b4e="\\u20d0-\\u20f0",mte="\\u2700-\\u27bf",gte="a-z\\xdf-\\xf6\\xf8-\\xff",y4e="\\xac\\xb1\\xd7\\xf7",C4e="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",S4e="\\u2000-\\u206f",w4e=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",vte="A-Z\\xc0-\\xd6\\xd8-\\xde",x4e="\\ufe0e\\ufe0f",_te=y4e+C4e+S4e+w4e,eD="['\u2019]",ate="["+_te+"]",bte="["+_4e+b4e+"]",yte="\\d+",E4e="["+mte+"]",Cte="["+gte+"]",Ste="[^"+pte+_te+yte+mte+gte+vte+"]",T4e="\\ud83c[\\udffb-\\udfff]",k4e="(?:"+bte+"|"+T4e+")",I4e="[^"+pte+"]",wte="(?:\\ud83c[\\udde6-\\uddff]){2}",xte="[\\ud800-\\udbff][\\udc00-\\udfff]",fm="["+vte+"]",A4e="\\u200d",lte="(?:"+Cte+"|"+Ste+")",L4e="(?:"+fm+"|"+Ste+")",cte="(?:"+eD+"(?:d|ll|m|re|s|t|ve))?",dte="(?:"+eD+"(?:D|LL|M|RE|S|T|VE))?",Ete=k4e+"?",Tte="["+x4e+"]?",M4e="(?:"+A4e+"(?:"+[I4e,wte,xte].join("|")+")"+Tte+Ete+")*",D4e=Tte+Ete+M4e,N4e="(?:"+[E4e,wte,xte].join("|")+")"+D4e,R4e=RegExp(eD,"g"),O4e=RegExp(bte,"g"),P4e=RegExp([fm+"?"+Cte+"+"+cte+"(?="+[ate,fm,"$"].join("|")+")",L4e+"+"+dte+"(?="+[ate,fm+lte,"$"].join("|")+")",fm+"?"+lte+"+"+cte,fm+"+"+dte,yte,N4e].join("|"),"g"),F4e=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,B4e={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"ss"},H4e=typeof global=="object"&&global&&global.Object===Object&&global,z4e=typeof self=="object"&&self&&self.Object===Object&&self,U4e=H4e||z4e||Function("return this")();function j4e(i,e,t,n){var r=-1,o=i?i.length:0;for(n&&o&&(t=i[++r]);++r{"use strict";var ni=He&&He.__extends||function(){var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},i(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");i(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();Object.defineProperty(He,"__esModule",{value:!0});He.DeleteLines=He.SearchReplace=He.Search=He.InvertSelection=He.GotoLine=He.RotateCursorOnScreen=He.InsertTabs=He.RevealToBottomAction=He.RevealToCenterAction=He.RevealToTopAction=He.RevealEditorAction=He.YankRotate=He.YankSelectionToRing=He.Yank=He.RedoAction=He.UndoAction=He.KeyBoardQuit=He.MoveCursorTop=He.MoveCursorBottom=He.MoveCursorWordLeft=He.MoveCursorWordRight=He.MoveCursorToLineStart=He.MoveCursorToLineEnd=He.MoveCursorRight=He.MoveCursorLeft=He.MoveCursorDown=He.MoveCursorUp=He.SetMark=He.InsertLineAfter=He.InsertLineBelow=He.KillLines=He.KillSelection=He.BaseAction=He.SOURCE=void 0;var yn=(Kv(),Kh(Vv));He.SOURCE="extension.emacs";function n5e(i,e,t,n,r){r===void 0&&(r=1);for(var o="cursor".concat(n==="word"?"Word":"").concat(t).concat(e?"Select":""),s=0;su?u:a.lineNumber+r;l=new yn.Position(h,s.getLineLength(h)+1)}var p=yn.Range.fromPositions(a,l);o?n.state.growRingTop(s.getValueInRange(p)):n.state.addToRing(s.getValueInRange(p)),t.executeEdits(He.SOURCE,[{range:p,text:""}]),t.setSelection(yn.Selection.fromPositions(a,a))},e}(tr);He.KillLines=o5e;var s5e=function(i){ni(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,n,r,o){var s=t.getPosition();t.trigger(He.SOURCE,"editor.action.insertLineAfter",null),t.setPosition(s)},e}(tr);He.InsertLineBelow=s5e;var a5e=function(i){ni(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,n,r,o){for(var s="",a=0;ac&&(a=c):a=1;var d=new yn.Position(a,1),u;if(!n.selectionMode)u=yn.Selection.fromPositions(d);else{var h=t.getSelection();h.getDirection()===yn.SelectionDirection.LTR?u=yn.Selection.fromPositions(h.getStartPosition(),d):u=yn.Selection.fromPositions(h.getEndPosition(),d)}t.setSelection(u),t.revealRangeInCenter(u)}).catch(function(){t.focus()})},e}(tr);He.GotoLine=I5e;var A5e=function(i){ni(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,n,r,o){var s=t.getSelection();if(!s.isEmpty()){var a;s.getDirection()===yn.SelectionDirection.LTR?a=yn.Selection.fromPositions(s.getEndPosition(),s.getStartPosition()):a=yn.Selection.fromPositions(s.getStartPosition(),s.getEndPosition()),t.setSelection(a)}},e}(tr);He.InvertSelection=A5e;var L5e=function(i){ni(e,i);function e(){return i.call(this,"editor.actions.findWithArgs")||this}return e}(Lte);He.Search=L5e;var M5e=function(i){ni(e,i);function e(){return i.call(this,"editor.action.startFindReplaceAction")||this}return e}(Lte);He.SearchReplace=M5e;var D5e=function(i){ni(e,i);function e(){return i!==null&&i.apply(this,arguments)||this}return e.prototype.run=function(t,n,r,o){n.selectionMode=!1;for(var s=0;s{"use strict";Object.defineProperty(ir,"__esModule",{value:!0});ir.getAllMappings=ir.unregisterKey=ir.registerGlobalCommand=ir.executeCommand=ir.COMMANDS=ir.prefixPreservingKeys=void 0;var fi=tD();ir.prefixPreservingKeys={"M-g":!0,"C-x":!0,"C-q":!0,"C-u":!0};var Rte=new fi.SetMark,uS=new fi.UndoAction,N5e=new fi.MoveCursorDown,R5e=new fi.MoveCursorUp,O5e=new fi.MoveCursorRight,P5e=new fi.MoveCursorLeft;ir.COMMANDS={"M-/":{description:"",action:"editor.action.triggerSuggest"},"C-'":{description:"",action:"editor.action.triggerSuggest"},"M-;":{description:"",action:"editor.action.commentLine"},"C-t":{description:"",action:"editor.action.transposeLetters"},"C-x C-p":{description:"",action:"editor.action.selectAll"},Tab:{description:"",action:"editor.action.formatDocument"},"C-Backspace":{description:"",action:"deleteWordLeft"},"C-d":{description:"",action:"deleteRight"},"M-Backspace":{description:"",action:"deleteWordLeft"},"M-Delete":{description:"",action:"deleteWordLeft"},"C-x C-u":{description:"",action:"editor.action.transformToUppercase"},"C-x C-l":{description:"",action:"editor.action.transformToLowercase"},"C-v":{description:"",action:"cursorPageDown"},PageDown:{description:"",action:"cursorPageDown"},"M-v":{description:"",action:"cursorPageUp"},PageUp:{description:"",action:"cursorPageUp"},"M-g n":{description:"",action:"editor.action.marker.next"},"M-g p":{description:"",action:"editor.action.marker.prev"},"M-C-n":{description:"",action:"editor.action.addSelectionToNextFindMatch"},"C-h":{description:"",action:"deleteLeft"},"M-d":{description:"",action:"deleteWordRight"},"S-C-":{description:"",action:"editor.action.triggerParameterHints"},"C-SPC":Rte,"S-C-2":Rte,"C-/":uS,"S-C--":uS,"C-z":uS,"C-x u":uS,"C-n":N5e,"C-p":R5e,"C-f":O5e,"C-b":P5e,"S-C-Backspace":new fi.DeleteLines,"M-f":new fi.MoveCursorWordRight,"M-b":new fi.MoveCursorWordLeft,"C-k":new fi.KillLines,"C-m":new fi.InsertLineAfter,"C-w":new fi.KillSelection,"C-o":new fi.InsertLineBelow,"C-g":new fi.KeyBoardQuit,"C-e":new fi.MoveCursorToLineEnd,"C-a":new fi.MoveCursorToLineStart,"C-y":new fi.Yank,"M-w":new fi.YankSelectionToRing,"M-y":new fi.YankRotate,"C-l":new fi.RevealToCenterAction,"C-q Tab":new fi.InsertTabs,"M-r":new fi.RotateCursorOnScreen,"M-g g":new fi.GotoLine,"M-g M-g":new fi.GotoLine,"C-x C-x":new fi.InvertSelection,"S-M-.":new fi.MoveCursorBottom,"S-M-,":new fi.MoveCursorTop,"C-s":new fi.Search,"C-r":new fi.Search,"S-M-5":new fi.SearchReplace};function F5e(i,e,t,n){var r=i.getEditor(),o=parseInt(t)||1;if(e.run){e.run(r,i,o,n);return}if(typeof e.action=="string")for(var s=0;s{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.Emitter=jr.Event=jr.monacoToEmacsKey=jr.modifierKeys=void 0;var U5e=(Kv(),Kh(Vv));jr.modifierKeys={Alt:"M",Control:"C",Ctrl:"C",Meta:"CMD",Shift:"S"};var Ote={Enter:"Return",Space:"SPC",Backslash:"\\",Slash:"/",Backquote:"`",BracketRight:"]",BracketLeft:"[",Comma:",",Period:".",Equal:"=",Minus:"-",Quote:"'",Semicolon:";"},j5e=["Key","Numpad"],Pte="Arrow";function W5e(i){var e=U5e.KeyCode[i.keyCode];if(jr.modifierKeys[e])return"";var t=j5e.some(function(n){return e.startsWith(n)})?e[e.length-1]:e;return e.endsWith(Pte)?t=e.substring(0,e.length-Pte.length):Ote[e]&&(t=Ote[t]),t.length===1&&(t=t.toLowerCase()),i.altKey&&(t="".concat(jr.modifierKeys.Alt,"-").concat(t)),i.ctrlKey&&(t="".concat(jr.modifierKeys.Ctrl,"-").concat(t)),i.metaKey&&(t="".concat(jr.modifierKeys.Meta,"-").concat(t)),i.shiftKey&&(t="".concat(jr.modifierKeys.Shift,"-").concat(t)),t}jr.monacoToEmacsKey=W5e;var V5e;(function(i){var e={dispose:function(){}};i.None=function(){return e}})(V5e=jr.Event||(jr.Event={}));var K5e=function(){function i(){this._listeners=[]}return Object.defineProperty(i.prototype,"event",{get:function(){var e=this;return this._event||(this._event=function(t){e._listeners.push(t);var n={dispose:function(){if(!e._disposed){var r=e._listeners.indexOf(t);r<0||e._listeners.splice(r,1)}}};return n}),this._event},enumerable:!1,configurable:!0}),i.prototype.fire=function(e){this._listeners.length&&this._listeners.forEach(function(t){return t(e)})},i.prototype.dispose=function(){this._disposed||(this._listeners=void 0,this._disposed=!0)},i}();jr.Emitter=K5e});var Bte=Ze(fS=>{"use strict";Object.defineProperty(fS,"__esModule",{value:!0});fS.BasicInputWidget=void 0;var q5e=(Kv(),Kh(Vv)),$o="ext-emacs-basic-input";function G5e(){return` + .`.concat($o,` { color: #d4d4d4; transition: top 200ms linear; visibility: hidden; @@ -100,11 +104,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho padding: 5px; } - .`).concat(Ko,".").concat(Ko,`-visible { + .`).concat($o,".").concat($o,`-visible { visibility: visible; } - .`).concat(Ko,` input { + .`).concat($o,` input { color: rgb(97, 97, 97); background-color: transparent; display: inline-block; @@ -121,69 +125,74 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho max-width: 50px; } - .`).concat(Ko,` input:focus { + .`).concat($o,` input:focus { outline: none; } - .vs .`).concat(Ko,` { + .vs .`).concat($o,` { color: rgb(97, 97, 97); background-color: #efeff2; box-shadow: 0 2px 8px #a8a8a8; } - .vs-dark .`).concat(Ko,` { + .vs-dark .`).concat($o,` { background-color: #2d2d30; box-shadow: 0 2px 8px #000000; } - .vs-dark .`).concat(Ko,` input { + .vs-dark .`).concat($o,` input { color: rgb(204, 204, 204); } - .hc-black .`).concat(Ko,` { + .hc-black .`).concat($o,` { border: 2px solid #6fc3df; background-color: #0c141f; color: #ffffff; } - .hc-black .`).concat(Ko,` input { + .hc-black .`).concat($o,` input { color: #ffffff; } -`)}var Vwe=function(){function i(){var e=this;this._pendingPromise=null,this.onKeyDown=function(r){(r.altKey||r.ctrlKey||r.metaKey)&&(r.preventDefault(),r.stopPropagation()),r.which===13?e._pendingPromise&&(r.preventDefault(),e._pendingPromise.resolve(r.target.value),e._pendingPromise=null):r.which===27&&e._pendingPromise&&(e._pendingPromise.reject(),e._pendingPromise=null)},this.onBlur=function(){e._pendingPromise&&(e._pendingPromise.reject(),e._pendingPromise=null)},this._dom=document.createElement("div"),this._messageDom=document.createElement("div");var t=document.createElement("div");this._dom.setAttribute("class",Ko),this._dom.setAttribute("aria-hidden","true"),this._input=document.createElement("input"),this._dom.appendChild(this._messageDom),t.appendChild(this._input),this._dom.appendChild(t),this.addListeners(),this._style=document.createElement("style"),this._style.type="text/css",this._style.textContent=Wwe(),(document.head||document.body).appendChild(this._style)}return i.prototype.getDomNode=function(){return this._dom},i.prototype.getId=function(){return"extension.emacs.basicinput"},i.prototype.getPosition=function(){return{preference:jwe.editor.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER}},i.prototype.addListeners=function(){this._input.addEventListener("keydown",this.onKeyDown),this._input.addEventListener("blur",this.onBlur)},i.prototype.showWidgetAndFocus=function(e){this._dom.classList.add("".concat(Ko,"-visible")),this._dom.setAttribute("aria-hidden","false"),this._messageDom.textContent=e,this._input.focus()},i.prototype.cleanup=function(){this._dom.classList.remove("".concat(Ko,"-visible")),this._dom.setAttribute("aria-hidden","true"),this._messageDom.textContent="",this._input.placeholder="",this._input.value=""},i.prototype.getInput=function(e){var t=this;return this._pendingPromise&&(this._pendingPromise.reject(),this._pendingPromise=null),new Promise(function(r,n){t._pendingPromise={resolve:function(o){r(o),t.cleanup()},reject:function(){n(),t.cleanup()}},t.showWidgetAndFocus(e)})},i.prototype.dispose=function(){this.cleanup(),this._input.removeEventListener("keydown",this.onKeyDown),this._input.removeEventListener("blur",this.onBlur),(document.head||document.body).removeChild(this._style)},i}();$4.BasicInputWidget=Vwe});var Vee=Qi(xc=>{"use strict";Object.defineProperty(xc,"__esModule",{value:!0});xc.State=xc.EAT_UP_KEY=void 0;var Wee=K4();xc.EAT_UP_KEY="==-==";var qwe=function(){function i(){this._inargumentMode=!1,this._killRing=[]}return i.prototype.updateAndGetKey=function(e){return e==="C-g"&&(this._inargumentMode||this._prefixKey)?(this.resetState(),xc.EAT_UP_KEY):this.updateCuMode(e)?xc.EAT_UP_KEY:this._prefixKey?"".concat(this._prefixKey," ").concat(e):Wee.prefixPreservingKeys[e]?(this._prefixKey=e,xc.EAT_UP_KEY):e},i.prototype.setLastCommandKey=function(e){this._lastCommandKey=e},i.prototype.isLastCommandKey=function(e){return this._lastCommandKey==e},i.prototype.resetState=function(e){e===void 0&&(e=!1),this._inargumentMode=e,this._prefixKey=null,e?this._lastInputBuffer=this._inputBuffer:this._lastInputBuffer=null,this._inputBuffer=null},i.prototype.updateCuMode=function(e){if(this._inargumentMode){if(typeof e=="string"&&/^\d$/.test(e))return this._inputBuffer=(this._inputBuffer||"")+e,!0;if(Wee.prefixPreservingKeys[e])return this.resetState(!0),!1}else if(!this._prefixKey&&e==="C-u")return this._inargumentMode=!0,this._inputBuffer=null,this._lastInputBuffer=null,!0},i.prototype.updateStateOnExecution=function(e){e===void 0&&(e=!1),this.resetState(e)},i.prototype.getInputBuffer=function(){return this._lastInputBuffer||this._inputBuffer},i.prototype.addToRing=function(e){this._killRing.push(e),this._killRing.length>50&&this._killRing.shift()},i.prototype.growRingTop=function(e){this._killRing.length||this.addToRing(e),this._killRing[this._killRing.length-1]+=e},i.prototype.getFromRing=function(e){return this._killRing[this._killRing.length-(e?Math.min(e,1):1)]||""},i.prototype.popFromRing=function(){return this._killRing.length>1?this._killRing.pop():this.getFromRing()},i.prototype.getReadableState=function(){var e="";return this._inargumentMode&&(e+="C-u",this._inputBuffer?e+=" ".concat(this._inputBuffer):this._lastInputBuffer&&(e+=" ".concat(this._lastInputBuffer))),this._prefixKey&&(e+=" ".concat(this._prefixKey)),e},i}();xc.State=qwe});var Yee=Qi(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});ym.getConfiguration=ym.EmacsExtension=void 0;var jh=(yv(),Qh(_v)),Kwe=dee(),G4=Nee(),qee=K4(),cR=Uee(),$we=jee(),Kee=Vee(),$ee=jh.editor,dR=$ee.TextEditorCursorBlinkingStyle,uR=$ee.TextEditorCursorStyle,Gwe=function(){function i(e){this._disposables=[],this._inSelectionMode=!1,this._changeDisposable=null,this._state=new Kee.State,this._onDidMarkChange=new cR.Emitter,this.onDidMarkChange=this._onDidMarkChange.event,this._onDidChangeKey=new cR.Emitter,this.onDidChangeKey=this._onDidChangeKey.event,this._editor=e;var t=Gee(e);this._intialCursorType=t.cursorStyle,this._intialCursorBlinking=t.cursorBlinking,this._basicInputWidget=new $we.BasicInputWidget}return i.prototype.start=function(){this._disposables.length||(this.addListeners(),this._editor.updateOptions({cursorStyle:G4(uR[uR.Block]),cursorBlinking:G4(dR[dR.Blink])}),this._editor.addOverlayWidget(this._basicInputWidget))},Object.defineProperty(i.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),i.prototype.getEditor=function(){return this._editor},i.prototype.addListeners=function(){this._disposables.push(this._editor.onKeyDown(this.onKeyDown.bind(this))),this._throttledScroll=Kwe(this.onEditorScroll.bind(this),500),this._disposables.push(this._editor.onDidScrollChange(this._throttledScroll))},i.prototype.cancelKey=function(e){e.preventDefault(),e.stopPropagation()},i.prototype.onKeyDown=function(e){if(!e.browserEvent.defaultPrevented){var t=(0,cR.monacoToEmacsKey)(e);if(t){if(t=this._state.updateAndGetKey(t),this._onDidChangeKey.fire(this._state.getReadableState()),t===Kee.EAT_UP_KEY){this._onDidChangeKey.fire(this._state.getReadableState()),this.cancelKey(e);return}var r=qee.COMMANDS[t];if(!r){this._onDidChangeKey.fire(this._state.getReadableState()),this._state.setLastCommandKey(t);return}this.cancelKey(e);var n=this._state.isLastCommandKey(t);(0,qee.executeCommand)(this,r,this._state.getInputBuffer(),n),this._state.setLastCommandKey(t),this._state.updateStateOnExecution()}}},i.prototype.onEditorScroll=function(){var e=this._editor.getLayoutInfo().height,t=this._editor.getScrolledVisiblePosition(this._editor.getPosition());if(!(t.top>=0&&t.top<=e)){var r=this._editor.getVisibleRanges();if(r.length){var n,o=this._editor.getSelection();t.top<0?n=new jh.Position(r[0].getStartPosition().lineNumber,1):t.top>e&&(n=new jh.Position(r[r.length-1].getEndPosition().lineNumber,1)),this._inSelectionMode?this._editor.setSelection(jh.Selection.fromPositions(o.getStartPosition(),n)):this._editor.setPosition(n)}}},i.prototype.onContentChange=function(){this.selectionMode=!1},i.prototype.clearState=function(){this._state.updateStateOnExecution()},Object.defineProperty(i.prototype,"selectionMode",{get:function(){return this._inSelectionMode},set:function(e){e!==this._inSelectionMode&&(this._inSelectionMode=e,e?this._changeDisposable=this._editor.onDidChangeModelContent(this.onContentChange.bind(this)):this._changeDisposable&&(this._changeDisposable.dispose(),this._changeDisposable=null),this._onDidMarkChange.fire(e))},enumerable:!1,configurable:!0}),i.prototype.getCursorAnchor=function(){var e=this._editor.getSelection(),t=e.getDirection();return t===jh.SelectionDirection.LTR?e.getEndPosition():e.getStartPosition()},i.prototype.getBasicInput=function(e){return this._basicInputWidget.getInput(e)},i.prototype.dispose=function(){this._disposables.forEach(function(e){return e.dispose()}),this._disposables=void 0,this._changeDisposable&&(this._changeDisposable.dispose(),this._changeDisposable=null),this._editor.updateOptions({cursorStyle:this._intialCursorType,cursorBlinking:this._intialCursorBlinking}),this._editor.removeOverlayWidget(this._basicInputWidget),this._basicInputWidget.dispose(),this._throttledScroll.cancel(),this._state=null},i}();ym.EmacsExtension=Gwe;function Gee(i){var e=i.getOption(jh.editor.EditorOption.cursorStyle),t=i.getOption(jh.editor.EditorOption.cursorBlinking);return{cursorStyle:G4(uR[e]),cursorBlinking:G4(dR[t])}}ym.getConfiguration=Gee});var Qee=Qi($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.Actions=$o.EmacsExtension=$o.unregisterKey=$o.getAllMappings=$o.registerGlobalCommand=void 0;var Xee=Yee();Object.defineProperty($o,"EmacsExtension",{enumerable:!0,get:function(){return Xee.EmacsExtension}});var hR=K4();Object.defineProperty($o,"registerGlobalCommand",{enumerable:!0,get:function(){return hR.registerGlobalCommand}});Object.defineProperty($o,"getAllMappings",{enumerable:!0,get:function(){return hR.getAllMappings}});Object.defineProperty($o,"unregisterKey",{enumerable:!0,get:function(){return hR.unregisterKey}});var Ywe=lR();$o.Actions=Ywe;$o.default=Xee.EmacsExtension});var mie=Qi((pie,p9)=>{(function(i){if(typeof pie=="object"&&typeof p9!="undefined")p9.exports=i();else if(typeof define=="function"&&define.amd)define([],i);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.HyperList=i()}})(function(){var i,e,t;return function(){function r(n,o,s){function a(d,u){if(!o[d]){if(!n[d]){var h=typeof lu=="function"&&lu;if(!u&&h)return h(d,!0);if(l)return l(d,!0);var f=new Error("Cannot find module '"+d+"'");throw f.code="MODULE_NOT_FOUND",f}var m=o[d]={exports:{}};n[d][0].call(m.exports,function(g){var w=n[d][1][g];return a(w||g)},m,m.exports,r,n,o,s)}return o[d].exports}for(var l=typeof lu=="function"&&lu,c=0;cw._averageHeight){var Y=w._renderChunk();w._lastRepaint=A,Y!==!1&&typeof _.afterRender=="function"&&_.afterRender()}}};E()}return s(f,[{key:"destroy",value:function(){window.cancelAnimationFrame(this._renderAnimationFrame)}},{key:"refresh",value:function(g,w){var _;if(Object.assign(this._config,c,w),!g||g.nodeType!==1)throw new Error("HyperList requires a valid DOM Node container");this._element=g;var E=this._config,L=this._scroller||E.scroller||document.createElement(E.scrollerTagName||"tr");if(typeof E.useFragment!="boolean"&&(this._config.useFragment=!0),!E.generate)throw new Error("Missing required `generate` function");if(!d(E.total))throw new Error("Invalid required `total` value, expected number");if(!Array.isArray(E.itemHeight)&&!d(E.itemHeight))throw new Error("\n Invalid required `itemHeight` value, expected number or array\n ".trim());d(E.itemHeight)?this._itemHeights=Array(E.total).fill(E.itemHeight):this._itemHeights=E.itemHeight,Object.keys(c).filter(function(dt){return dt in E}).forEach(function(dt){var be=E[dt],we=d(be);if(be&&typeof be!="string"&&typeof be!="number"){var X="Invalid optional `"+dt+"`, expected string or number";throw new Error(X)}else we&&(E[dt]=be+"px")});var A=!!E.horizontal,O=E[A?"width":"height"];if(O){var U=d(O),Y=U?!1:O.slice(-1)==="%",oe=U?O:parseInt(O.replace(/px|%/,""),10),te=window[A?"innerWidth":"innerHeight"];Y?this._containerSize=te*oe/100:this._containerSize=d(O)?O:oe}var Z=E.scrollContainer,ve=E.itemHeight*E.total,Pe=this._maxElementHeight;ve>Pe&&console.warn(["HyperList: The maximum element height",Pe+"px has","been exceeded; please reduce your item height."].join(" "));var Ee={width:""+E.width,height:Z?ve+"px":""+E.height,overflow:Z?"none":"auto",position:"relative"};f.mergeStyle(g,Ee),Z&&f.mergeStyle(E.scrollContainer,{overflow:"auto"});var Oe=(_={opacity:"0",position:"absolute"},a(_,A?"height":"width","1px"),a(_,A?"width":"height",ve+"px"),_);f.mergeStyle(L,Oe),this._scroller||g.appendChild(L);var Xe=this._computeScrollPadding();this._scrollPaddingBottom=Xe.bottom,this._scrollPaddingTop=Xe.top,this._scroller=L,this._scrollHeight=this._computeScrollHeight(),this._itemPositions=this._itemPositions||Array(E.total).fill(0),this._computePositions(0),this._renderChunk(this._lastRepaint!==null),typeof E.afterRender=="function"&&E.afterRender()}},{key:"_getRow",value:function(g){var w=this._config,_=w.generate(g),E=_.height;if(E!==void 0&&d(E)?(_=_.element,E!==this._itemHeights[g]&&(this._itemHeights[g]=E,this._computePositions(g),this._scrollHeight=this._computeScrollHeight(g))):E=this._itemHeights[g],!_||_.nodeType!==1)throw new Error("Generator did not return a DOM Node for index: "+g);u(_,w.rowClassName||"vrow");var L=this._itemPositions[g]+this._scrollPaddingTop;return f.mergeStyle(_,a({position:"absolute"},w.horizontal?"left":"top",L+"px")),_}},{key:"_getScrollPosition",value:function(){var g=this._config;return typeof g.overrideScrollPosition=="function"?g.overrideScrollPosition():this._element[g.horizontal?"scrollLeft":"scrollTop"]}},{key:"_renderChunk",value:function(g){var w=this._config,_=this._element,E=this._getScrollPosition(),L=w.total,A=w.reverse?this._getReverseFrom(E):this._getFrom(E)-1;if((A<0||A-this._screenItemsLen<0)&&(A=0),!g&&this._lastFrom===A)return!1;this._lastFrom=A;var O=A+this._cachedItemsLen;(O>L||O+this._cachedItemsLen>L)&&(O=L);var U=w.useFragment?document.createDocumentFragment():[],Y=this._scroller;U[w.useFragment?"appendChild":"push"](Y);for(var oe=A;oe0&&arguments[0]!==void 0?arguments[0]:1,w=this._config,_=w.total,E=w.reverse;g<1&&!E&&(g=1);for(var L=g;L<_;L++)E?L===0?this._itemPositions[0]=this._scrollHeight-this._itemHeights[0]:this._itemPositions[L]=this._itemPositions[L-1]-this._itemHeights[L]:this._itemPositions[L]=this._itemHeights[L-1]+this._itemPositions[L-1]}},{key:"_computeScrollHeight",value:function(){var g,w=this,_=this._config,E=!!_.horizontal,L=_.total,A=this._itemHeights.reduce(function(ve,Pe){return ve+Pe},0)+this._scrollPaddingBottom+this._scrollPaddingTop;f.mergeStyle(this._scroller,(g={opacity:0,position:"absolute",top:"0px"},a(g,E?"height":"width","1px"),a(g,E?"width":"height",A+"px"),g));var O=this._itemHeights.slice(0).sort(function(ve,Pe){return ve-Pe}),U=Math.floor(L/2),Y=L%2===0?(O[U]+O[U-1])/2:O[U],oe=E?"clientWidth":"clientHeight",te=_.scrollContainer?_.scrollContainer:this._element,Z=te[oe]?te[oe]:this._containerSize;return this._screenItemsLen=Math.ceil(Z/Y),this._containerSize=Z,this._cachedItemsLen=Math.max(this._cachedItemsLen||0,this._screenItemsLen*3),this._averageHeight=Y,_.reverse&&window.requestAnimationFrame(function(){E?w._element.scrollLeft=A:w._element.scrollTop=A}),A}},{key:"_computeScrollPadding",value:function(){var g=this._config,w=!!g.horizontal,_=g.reverse,E=window.getComputedStyle(this._element),L=function(O){var U=E.getPropertyValue("padding-"+O);return parseInt(U,10)||0};return w&&_?{bottom:L("left"),top:L("right")}:w?{bottom:L("right"),top:L("left")}:_?{bottom:L("top"),top:L("bottom")}:{bottom:L("bottom"),top:L("top")}}},{key:"_getFrom",value:function(g){for(var w=0;this._itemPositions[w]0&&this._itemPositions[w]{(function(i,e){"use strict";function t(){r.width=i.innerWidth,r.height=5*c.barThickness;var u=r.getContext("2d");u.shadowBlur=c.shadowBlur,u.shadowColor=c.shadowColor;var h,f=u.createLinearGradient(0,0,r.width,0);for(h in c.barColors)f.addColorStop(h,c.barColors[h]);u.lineWidth=c.barThickness,u.beginPath(),u.moveTo(0,c.barThickness/2),u.lineTo(Math.ceil(n*r.width),c.barThickness/2),u.strokeStyle=f,u.stroke()}var r,n,o,s=null,a=null,l=null,c={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},d={config:function(u){for(var h in u)c.hasOwnProperty(h)&&(c[h]=u[h])},show:function(u){var h,f;o||(u?l=l||setTimeout(()=>d.show(),u):(o=!0,a!==null&&i.cancelAnimationFrame(a),r||((f=(r=e.createElement("canvas")).style).position="fixed",f.top=f.left=f.right=f.margin=f.padding=0,f.zIndex=100001,f.display="none",c.className&&r.classList.add(c.className),e.body.appendChild(r),h="resize",u=t,(f=i).addEventListener?f.addEventListener(h,u,!1):f.attachEvent?f.attachEvent("on"+h,u):f["on"+h]=u),r.style.opacity=1,r.style.display="block",d.progress(0),c.autoRun&&function m(){s=i.requestAnimationFrame(m),d.progress("+"+.05*Math.pow(1-Math.sqrt(n),2))}()))},progress:function(u){return u===void 0||(typeof u=="string"&&(u=(0<=u.indexOf("+")||0<=u.indexOf("-")?n:0)+parseFloat(u)),n=1typeof i=="function"?i:function(){return i},Ene=typeof self!="undefined"?self:null,hg=typeof window!="undefined"?window:null,pg=Ene||hg||pg,Tne="2.0.0",Sa={connecting:0,open:1,closing:2,closed:3},Ine=1e4,Ane=1e3,Ro={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Il={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},zk={longpoll:"longpoll",websocket:"websocket"},Lne={complete:4},ay=class{constructor(i,e,t,r){this.channel=i,this.event=e,this.payload=t||function(){return{}},this.receivedResp=null,this.timeout=r,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(i){this.timeout=i,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(i,e){return this.hasReceived(i)&&e(this.receivedResp.response),this.recHooks.push({status:i,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:i,response:e,_ref:t}){this.recHooks.filter(r=>r.status===i).forEach(r=>r.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,i=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=i,this.matchReceive(i)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(i){return this.receivedResp&&this.receivedResp.status===i}trigger(i,e){this.channel.trigger(this.refEvent,{status:i,response:e})}},kz=class{constructor(i,e){this.callback=i,this.timerCalc=e,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},Dne=class{constructor(i,e,t){this.state=Ro.closed,this.topic=i,this.params=fg(e||{}),this.socket=t,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new ay(this,Il.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new kz(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Ro.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(r=>r.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Ro.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Ro.closed,this.socket.remove(this)}),this.onError(r=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,r),this.isJoining()&&this.joinPush.reset(),this.state=Ro.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new ay(this,Il.leave,fg({}),this.timeout).send(),this.state=Ro.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Il.reply,(r,n)=>{this.trigger(this.replyEventName(n),r)})}join(i=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=i,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(i){this.on(Il.close,i)}onError(i){return this.on(Il.error,e=>i(e))}on(i,e){let t=this.bindingRef++;return this.bindings.push({event:i,ref:t,callback:e}),t}off(i,e){this.bindings=this.bindings.filter(t=>!(t.event===i&&(typeof e=="undefined"||e===t.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(i,e,t=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${i}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let r=new ay(this,i,function(){return e},t);return this.canPush()?r.send():(r.startTimeout(),this.pushBuffer.push(r)),r}leave(i=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Ro.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Il.close,"leave")},t=new ay(this,Il.leave,fg({}),i);return t.receive("ok",()=>e()).receive("timeout",()=>e()),t.send(),this.canPush()||t.trigger("ok",{}),t}onMessage(i,e,t){return e}isMember(i,e,t,r){return this.topic!==i?!1:r&&r!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:i,event:e,payload:t,joinRef:r}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(i=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Ro.joining,this.joinPush.resend(i))}trigger(i,e,t,r){let n=this.onMessage(i,e,t,r);if(e&&!n)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(s=>s.event===i);for(let s=0;s{let a=this.parseJSON(i.responseText);s&&s(a)},o&&(i.ontimeout=o),i.onprogress=()=>{},i.send(r),i}static xhrRequest(i,e,t,r,n,o,s,a){return i.open(e,t,!0),i.timeout=o,i.setRequestHeader("Content-Type",r),i.onerror=()=>a&&a(null),i.onreadystatechange=()=>{if(i.readyState===Lne.complete&&a){let l=this.parseJSON(i.responseText);a(l)}},s&&(i.ontimeout=s),i.send(n),i}static parseJSON(i){if(!i||i==="")return null;try{return JSON.parse(i)}catch(e){return console&&console.log("failed to parse JSON response",i),null}}static serialize(i,e){let t=[];for(var r in i){if(!Object.prototype.hasOwnProperty.call(i,r))continue;let n=e?`${e}[${r}]`:r,o=i[r];typeof o=="object"?t.push(this.serialize(o,n)):t.push(encodeURIComponent(n)+"="+encodeURIComponent(o))}return t.join("&")}static appendParams(i,e){if(Object.keys(e).length===0)return i;let t=i.match(/\?/)?"&":"?";return`${i}${t}${this.serialize(e)}`}},Mne=i=>{let e="",t=new Uint8Array(i),r=t.byteLength;for(let n=0;nthis.ontimeout(),i=>{if(i){var{status:e,token:t,messages:r}=i;this.token=t}else e=0;switch(e){case 200:r.forEach(n=>{setTimeout(()=>this.onmessage({data:n}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Sa.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${e}`)}})}send(i){typeof i!="string"&&(i=Mne(i)),this.currentBatch?this.currentBatch.push(i):this.awaitingBatchAck?this.batchBuffer.push(i):(this.currentBatch=[i],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(i){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",i.join(` -`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(i,e,t){for(let n of this.reqs)n.abort();this.readyState=Sa.closed;let r=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:i,reason:e,wasClean:t});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent!="undefined"?this.onclose(new CloseEvent("close",r)):this.onclose(r)}ajax(i,e,t,r,n){let o,s=()=>{this.reqs.delete(o),r()};o=cy.request(i,this.endpointURL(),e,t,this.timeout,s,a=>{this.reqs.delete(o),this.isActive()&&n(a)}),this.reqs.add(o)}};var ly={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(i,e){if(i.payload.constructor===ArrayBuffer)return e(this.binaryEncode(i));{let t=[i.join_ref,i.ref,i.topic,i.event,i.payload];return e(JSON.stringify(t))}},decode(i,e){if(i.constructor===ArrayBuffer)return e(this.binaryDecode(i));{let[t,r,n,o,s]=JSON.parse(i);return e({join_ref:t,ref:r,topic:n,event:o,payload:s})}},binaryEncode(i){let{join_ref:e,ref:t,event:r,topic:n,payload:o}=i,s=this.META_LENGTH+e.length+t.length+n.length+r.length,a=new ArrayBuffer(this.HEADER_LENGTH+s),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,e.length),l.setUint8(c++,t.length),l.setUint8(c++,n.length),l.setUint8(c++,r.length),Array.from(e,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(t,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(n,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(r,u=>l.setUint8(c++,u.charCodeAt(0)));var d=new Uint8Array(a.byteLength+o.byteLength);return d.set(new Uint8Array(a),0),d.set(new Uint8Array(o),a.byteLength),d.buffer},binaryDecode(i){let e=new DataView(i),t=e.getUint8(0),r=new TextDecoder;switch(t){case this.KINDS.push:return this.decodePush(i,e,r);case this.KINDS.reply:return this.decodeReply(i,e,r);case this.KINDS.broadcast:return this.decodeBroadcast(i,e,r)}},decodePush(i,e,t){let r=e.getUint8(1),n=e.getUint8(2),o=e.getUint8(3),s=this.HEADER_LENGTH+this.META_LENGTH-1,a=t.decode(i.slice(s,s+r));s=s+r;let l=t.decode(i.slice(s,s+n));s=s+n;let c=t.decode(i.slice(s,s+o));s=s+o;let d=i.slice(s,i.byteLength);return{join_ref:a,ref:null,topic:l,event:c,payload:d}},decodeReply(i,e,t){let r=e.getUint8(1),n=e.getUint8(2),o=e.getUint8(3),s=e.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=t.decode(i.slice(a,a+r));a=a+r;let c=t.decode(i.slice(a,a+n));a=a+n;let d=t.decode(i.slice(a,a+o));a=a+o;let u=t.decode(i.slice(a,a+s));a=a+s;let h=i.slice(a,i.byteLength),f={status:u,response:h};return{join_ref:l,ref:c,topic:d,event:Il.reply,payload:f}},decodeBroadcast(i,e,t){let r=e.getUint8(1),n=e.getUint8(2),o=this.HEADER_LENGTH+2,s=t.decode(i.slice(o,o+r));o=o+r;let a=t.decode(i.slice(o,o+n));o=o+n;let l=i.slice(o,i.byteLength);return{join_ref:null,ref:null,topic:s,event:a,payload:l}}},dy=class{constructor(i,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=e.timeout||Ine,this.transport=e.transport||pg.WebSocket||Fk,this.establishedConnections=0,this.defaultEncoder=ly.encode.bind(ly),this.defaultDecoder=ly.decode.bind(ly),this.closeWasClean=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Fk?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let t=null;hg&&hg.addEventListener&&(hg.addEventListener("pagehide",r=>{this.conn&&(this.disconnect(),t=this.connectClock)}),hg.addEventListener("pageshow",r=>{t===this.connectClock&&(t=null,this.connect())})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=r=>e.rejoinAfterMs?e.rejoinAfterMs(r):[1e3,2e3,5e3][r-1]||1e4,this.reconnectAfterMs=r=>e.reconnectAfterMs?e.reconnectAfterMs(r):[10,50,100,150,200,250,500,1e3,2e3][r-1]||5e3,this.logger=e.logger||null,this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=fg(e.params||{}),this.endPoint=`${i}/${zk.websocket}`,this.vsn=e.vsn||Tne,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new kz(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return Fk}replaceTransport(i){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=i}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let i=cy.appendParams(cy.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return i.charAt(0)!=="/"?i:i.charAt(1)==="/"?`${this.protocol()}:${i}`:`${this.protocol()}://${location.host}${i}`}disconnect(i,e,t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(i,e,t)}connect(i){i&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=fg(i)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e))}log(i,e,t){this.logger(i,e,t)}hasLogger(){return this.logger!==null}onOpen(i){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,i]),e}onClose(i){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,i]),e}onError(i){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,i]),e}onMessage(i){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,i]),e}ping(i){if(!this.isConnected())return!1;let e=this.makeRef(),t=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let r=this.onMessage(n=>{n.ref===e&&(this.off([r]),i(Date.now()-t))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,i])=>i())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),Ane,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(i,e,t){if(!this.conn)return i&&i();this.waitForBufferDone(()=>{this.conn&&(e?this.conn.close(e,t||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),i&&i()})})}waitForBufferDone(i,e=1){if(e===5||!this.conn||!this.conn.bufferedAmount){i();return}setTimeout(()=>{this.waitForBufferDone(i,e+1)},150*e)}waitForSocketClosed(i,e=1){if(e===5||!this.conn||this.conn.readyState===Sa.closed){i();return}setTimeout(()=>{this.waitForSocketClosed(i,e+1)},150*e)}onConnClose(i){let e=i&&i.code;this.hasLogger()&&this.log("transport","close",i),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&e!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,t])=>t(i))}onConnError(i){this.hasLogger()&&this.log("transport",i);let e=this.transport,t=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,r])=>{r(i,e,t)}),(e===this.transport||t>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(i=>{i.isErrored()||i.isLeaving()||i.isClosed()||i.trigger(Il.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Sa.connecting:return"connecting";case Sa.open:return"open";case Sa.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(i){this.off(i.stateChangeRefs),this.channels=this.channels.filter(e=>e.joinRef()!==i.joinRef())}off(i){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([t])=>i.indexOf(t)===-1)}channel(i,e={}){let t=new Dne(i,e,this);return this.channels.push(t),t}push(i){if(this.hasLogger()){let{topic:e,event:t,payload:r,ref:n,join_ref:o}=i;this.log("push",`${e} ${t} (${o}, ${n})`,r)}this.isConnected()?this.encode(i,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(i,e=>this.conn.send(e)))}makeRef(){let i=this.ref+1;return i===this.ref?this.ref=0:this.ref=i,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(i=>i()),this.sendBuffer=[])}onConnMessage(i){this.decode(i.data,e=>{let{topic:t,event:r,payload:n,ref:o,join_ref:s}=e;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${n.status||""} ${t} ${r} ${o&&"("+o+")"||""}`,n);for(let a=0;at.topic===i&&(t.isJoined()||t.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${i}"`),e.leave())}};var Xz="consecutive-reloads",Nne=10,Rne=5e3,Pne=1e4,One=3e4,Qz=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading"],Ll="data-phx-component",Bk="data-phx-link",Fne="track-static",zne="data-phx-link-state",os="data-phx-ref",Su="data-phx-ref-src",Zz="track-uploads",Zc="data-phx-upload-ref",Zk="data-phx-preflighted-refs",Bne="data-phx-done-refs",Ez="drop-target",Yk="data-phx-active-refs",Cy="phx:live-file:updated",Jz="data-phx-skip",eB="data-phx-id",Tz="data-phx-prune",Iz="page-loading",Az="phx-connected",mg="phx-loading",Hk="phx-no-feedback",uy="phx-error",Lz="phx-client-error",Uk="phx-server-error",Tf="data-phx-parent-id",Jk="data-phx-main",Sg="data-phx-root-id",tB="viewport-top",iB="viewport-bottom",Hne="trigger-action",ky="feedback-for",Xk="phx-has-focused",Une=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],rB=["checkbox","radio"],Ey="phx-has-submitted",Jc="data-phx-session",Af=`[${Jc}]`,Dz="data-phx-sticky",xg="data-phx-static",jk="data-phx-readonly",hy="data-phx-disabled",Qk="disable-with",fy="data-phx-disable-with-restore",gg="hook",jne="debounce",Wne="throttle",Ty="update",py="stream",bg="data-phx-stream",Vne="key",ka="phxPrivate",Mz="auto-recover",my="phx:live-socket:debug",Wk="phx:live-socket:profiling",Vk="phx:live-socket:latency-sim",qne="progress",Nz="mounted",Kne=1,$ne=200,Gne="phx-",Yne=3e4,vg="debounce-trigger",gy="throttled",Rz="debounce-prev-key",Xne={debounce:300,throttle:300},by="d",Ea="s",qk="r",Po="c",Pz="e",Oz="r",Fz="t",Qne="p",zz="stream",Zne=class{constructor(i,e,t){this.liveSocket=t,this.entry=i,this.offset=0,this.chunkSize=e,this.chunkTimer=null,this.errored=!1,this.uploadChannel=t.channel(`lvu:${i.ref}`,{token:i.metadata()})}error(i){this.errored||(this.uploadChannel.leave(),this.errored=!0,clearTimeout(this.chunkTimer),this.entry.error(i))}upload(){this.uploadChannel.onError(i=>this.error(i)),this.uploadChannel.join().receive("ok",i=>this.readNextChunk()).receive("error",i=>this.error(i))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let i=new window.FileReader,e=this.entry.file.slice(this.offset,this.chunkSize+this.offset);i.onload=t=>{if(t.target.error===null)this.offset+=t.target.result.byteLength,this.pushChunk(t.target.result);else return Oo("Read error: "+t.target.error)},i.readAsArrayBuffer(e)}pushChunk(i){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",i).receive("ok",()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout(()=>this.readNextChunk(),this.liveSocket.getLatencySim()||0))}).receive("error",({reason:e})=>this.error(e))}},Oo=(i,e)=>console.error&&console.error(i,e),Al=i=>{let e=typeof i;return e==="number"||e==="string"&&/^(0|[1-9]\d*)$/.test(i)};function Jne(){let i=new Set,e=document.querySelectorAll("*[id]");for(let t=0,r=e.length;t{i.liveSocket.isDebugEnabled()&&console.log(`${i.id} ${e}: ${t} - `,r)},Kk=i=>typeof i=="function"?i:function(){return i},Sy=i=>JSON.parse(JSON.stringify(i)),Cg=(i,e,t)=>{do{if(i.matches(`[${e}]`)&&!i.disabled)return i;i=i.parentElement||i.parentNode}while(i!==null&&i.nodeType===1&&!(t&&t.isSameNode(i)||i.matches(Af)));return null},_g=i=>i!==null&&typeof i=="object"&&!(i instanceof Array),toe=(i,e)=>JSON.stringify(i)===JSON.stringify(e),Bz=i=>{for(let e in i)return!1;return!0},Qc=(i,e)=>i&&e(i),ioe=function(i,e,t,r){i.forEach(n=>{new Zne(n,t.config.chunk_size,r).upload()})},nB={canPushState(){return typeof history.pushState!="undefined"},dropLocal(i,e,t){return i.removeItem(this.localKey(e,t))},updateLocal(i,e,t,r,n){let o=this.getLocal(i,e,t),s=this.localKey(e,t),a=o===null?r:n(o);return i.setItem(s,JSON.stringify(a)),a},getLocal(i,e,t){return JSON.parse(i.getItem(this.localKey(e,t)))},updateCurrentState(i){this.canPushState()&&history.replaceState(i(history.state||{}),"",window.location.href)},pushState(i,e,t){if(this.canPushState()){if(t!==window.location.href){if(e.type=="redirect"&&e.scroll){let n=history.state||{};n.scroll=e.scroll,history.replaceState(n,"",window.location.href)}delete e.scroll,history[i+"State"](e,"",t||null);let r=this.getHashTargetEl(window.location.hash);r?r.scrollIntoView():e.type==="redirect"&&window.scroll(0,0)}}else this.redirect(t)},setCookie(i,e){document.cookie=`${i}=${e}`},getCookie(i){return document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${i}s*=s*([^;]*).*$)|^.*$`),"$1")},redirect(i,e){e&&nB.setCookie("__phoenix_flash__",e+"; max-age=60000; path=/"),window.location=i},localKey(i,e){return`${i}-${e}`},getHashTargetEl(i){let e=i.toString().substring(1);if(e!=="")return document.getElementById(e)||document.querySelector(`a[name="${e}"]`)}},Ta=nB,ns={byId(i){return document.getElementById(i)||Oo(`no id found for ${i}`)},removeClass(i,e){i.classList.remove(e),i.classList.length===0&&i.removeAttribute("class")},all(i,e,t){if(!i)return[];let r=Array.from(i.querySelectorAll(e));return t?r.forEach(t):r},childNodeLength(i){let e=document.createElement("template");return e.innerHTML=i,e.content.childElementCount},isUploadInput(i){return i.type==="file"&&i.getAttribute(Zc)!==null},isAutoUpload(i){return i.hasAttribute("data-phx-auto-upload")},findUploadInputs(i){return this.all(i,`input[type="file"][${Zc}]`)},findComponentNodeList(i,e){return this.filterWithinSameLiveView(this.all(i,`[${Ll}="${e}"]`),i)},isPhxDestroyed(i){return!!(i.id&&ns.private(i,"destroyed"))},wantsNewTab(i){let e=i.ctrlKey||i.shiftKey||i.metaKey||i.button&&i.button===1,t=i.target instanceof HTMLAnchorElement&&i.target.hasAttribute("download"),r=i.target.hasAttribute("target")&&i.target.getAttribute("target").toLowerCase()==="_blank";return e||r||t},isUnloadableFormSubmit(i){return i.target&&i.target.getAttribute("method")==="dialog"||i.submitter&&i.submitter.getAttribute("formmethod")==="dialog"?!1:!i.defaultPrevented&&!this.wantsNewTab(i)},isNewPageClick(i,e){let t=i.target instanceof HTMLAnchorElement?i.target.getAttribute("href"):null,r;if(i.defaultPrevented||t===null||this.wantsNewTab(i)||t.startsWith("mailto:")||t.startsWith("tel:")||i.target.isContentEditable)return!1;try{r=new URL(t)}catch(n){try{r=new URL(t,e)}catch(o){return!0}}return r.host===e.host&&r.protocol===e.protocol&&r.pathname===e.pathname&&r.search===e.search?r.hash===""&&!r.href.endsWith("#"):r.protocol.startsWith("http")},markPhxChildDestroyed(i){this.isPhxChild(i)&&i.setAttribute(Jc,""),this.putPrivate(i,"destroyed",!0)},findPhxChildrenInFragment(i,e){let t=document.createElement("template");return t.innerHTML=i,this.findPhxChildren(t.content,e)},isIgnored(i,e){return(i.getAttribute(e)||i.getAttribute("data-phx-update"))==="ignore"},isPhxUpdate(i,e,t){return i.getAttribute&&t.indexOf(i.getAttribute(e))>=0},findPhxSticky(i){return this.all(i,`[${Dz}]`)},findPhxChildren(i,e){return this.all(i,`${Af}[${Tf}="${e}"]`)},findParentCIDs(i,e){let t=new Set(e),r=e.reduce((n,o)=>{let s=`[${Ll}="${o}"] [${Ll}]`;return this.filterWithinSameLiveView(this.all(i,s),i).map(a=>parseInt(a.getAttribute(Ll))).forEach(a=>n.delete(a)),n},t);return r.size===0?new Set(e):r},filterWithinSameLiveView(i,e){return e.querySelector(Af)?i.filter(t=>this.withinSameLiveView(t,e)):i},withinSameLiveView(i,e){for(;i=i.parentNode;){if(i.isSameNode(e))return!0;if(i.getAttribute(Jc)!==null)return!1}},private(i,e){return i[ka]&&i[ka][e]},deletePrivate(i,e){i[ka]&&delete i[ka][e]},putPrivate(i,e,t){i[ka]||(i[ka]={}),i[ka][e]=t},updatePrivate(i,e,t,r){let n=this.private(i,e);n===void 0?this.putPrivate(i,e,r(t)):this.putPrivate(i,e,r(n))},copyPrivates(i,e){e[ka]&&(i[ka]=e[ka])},putTitle(i){let e=document.querySelector("title");if(e){let{prefix:t,suffix:r}=e.dataset;document.title=`${t||""}${i}${r||""}`}else document.title=i},debounce(i,e,t,r,n,o,s,a){let l=i.getAttribute(t),c=i.getAttribute(n);l===""&&(l=r),c===""&&(c=o);let d=l||c;switch(d){case null:return a();case"blur":this.once(i,"debounce-blur")&&i.addEventListener("blur",()=>a());return;default:let u=parseInt(d),h=()=>c?this.deletePrivate(i,gy):a(),f=this.incCycle(i,vg,h);if(isNaN(u))return Oo(`invalid throttle/debounce value: ${d}`);if(c){let g=!1;if(e.type==="keydown"){let w=this.private(i,Rz);this.putPrivate(i,Rz,e.key),g=w!==e.key}if(!g&&this.private(i,gy))return!1;a(),this.putPrivate(i,gy,!0),setTimeout(()=>{s()&&this.triggerCycle(i,vg)},u)}else setTimeout(()=>{s()&&this.triggerCycle(i,vg,f)},u);let m=i.form;m&&this.once(m,"bind-debounce")&&m.addEventListener("submit",()=>{Array.from(new FormData(m).entries(),([g])=>{let w=m.querySelector(`[name="${g}"]`);this.incCycle(w,vg),this.deletePrivate(w,gy)})}),this.once(i,"bind-debounce")&&i.addEventListener("blur",()=>this.triggerCycle(i,vg))}},triggerCycle(i,e,t){let[r,n]=this.private(i,e);t||(t=r),t===r&&(this.incCycle(i,e),n())},once(i,e){return this.private(i,e)===!0?!1:(this.putPrivate(i,e,!0),!0)},incCycle(i,e,t=function(){}){let[r]=this.private(i,e)||[0,t];return r++,this.putPrivate(i,e,[r,t]),r},maybeAddPrivateHooks(i,e,t){i.hasAttribute&&(i.hasAttribute(e)||i.hasAttribute(t))&&i.setAttribute("data-phx-hook","Phoenix.InfiniteScroll")},maybeHideFeedback(i,e,t){if(!(this.private(e,Xk)||this.private(e,Ey))){let r=[e.name];e.name.endsWith("[]")&&r.push(e.name.slice(0,-2));let n=r.map(o=>`[${t}="${o}"]`).join(", ");ns.all(i,n,o=>o.classList.add(Hk))}},resetForm(i,e){Array.from(i.elements).forEach(t=>{let r=`[${e}="${t.id}"], +`)}var $5e=function(){function i(){var e=this;this._pendingPromise=null,this.onKeyDown=function(n){(n.altKey||n.ctrlKey||n.metaKey)&&(n.preventDefault(),n.stopPropagation()),n.which===13?e._pendingPromise&&(n.preventDefault(),e._pendingPromise.resolve(n.target.value),e._pendingPromise=null):n.which===27&&e._pendingPromise&&(e._pendingPromise.reject(),e._pendingPromise=null)},this.onBlur=function(){e._pendingPromise&&(e._pendingPromise.reject(),e._pendingPromise=null)},this._dom=document.createElement("div"),this._messageDom=document.createElement("div");var t=document.createElement("div");this._dom.setAttribute("class",$o),this._dom.setAttribute("aria-hidden","true"),this._input=document.createElement("input"),this._dom.appendChild(this._messageDom),t.appendChild(this._input),this._dom.appendChild(t),this.addListeners(),this._style=document.createElement("style"),this._style.type="text/css",this._style.textContent=G5e(),(document.head||document.body).appendChild(this._style)}return i.prototype.getDomNode=function(){return this._dom},i.prototype.getId=function(){return"extension.emacs.basicinput"},i.prototype.getPosition=function(){return{preference:q5e.editor.OverlayWidgetPositionPreference.TOP_RIGHT_CORNER}},i.prototype.addListeners=function(){this._input.addEventListener("keydown",this.onKeyDown),this._input.addEventListener("blur",this.onBlur)},i.prototype.showWidgetAndFocus=function(e){this._dom.classList.add("".concat($o,"-visible")),this._dom.setAttribute("aria-hidden","false"),this._messageDom.textContent=e,this._input.focus()},i.prototype.cleanup=function(){this._dom.classList.remove("".concat($o,"-visible")),this._dom.setAttribute("aria-hidden","true"),this._messageDom.textContent="",this._input.placeholder="",this._input.value=""},i.prototype.getInput=function(e){var t=this;return this._pendingPromise&&(this._pendingPromise.reject(),this._pendingPromise=null),new Promise(function(n,r){t._pendingPromise={resolve:function(o){n(o),t.cleanup()},reject:function(){r(),t.cleanup()}},t.showWidgetAndFocus(e)})},i.prototype.dispose=function(){this.cleanup(),this._input.removeEventListener("keydown",this.onKeyDown),this._input.removeEventListener("blur",this.onBlur),(document.head||document.body).removeChild(this._style)},i}();fS.BasicInputWidget=$5e});var zte=Ze(Ec=>{"use strict";Object.defineProperty(Ec,"__esModule",{value:!0});Ec.State=Ec.EAT_UP_KEY=void 0;var Hte=hS();Ec.EAT_UP_KEY="==-==";var Y5e=function(){function i(){this._inargumentMode=!1,this._killRing=[]}return i.prototype.updateAndGetKey=function(e){return e==="C-g"&&(this._inargumentMode||this._prefixKey)?(this.resetState(),Ec.EAT_UP_KEY):this.updateCuMode(e)?Ec.EAT_UP_KEY:this._prefixKey?"".concat(this._prefixKey," ").concat(e):Hte.prefixPreservingKeys[e]?(this._prefixKey=e,Ec.EAT_UP_KEY):e},i.prototype.setLastCommandKey=function(e){this._lastCommandKey=e},i.prototype.isLastCommandKey=function(e){return this._lastCommandKey==e},i.prototype.resetState=function(e){e===void 0&&(e=!1),this._inargumentMode=e,this._prefixKey=null,e?this._lastInputBuffer=this._inputBuffer:this._lastInputBuffer=null,this._inputBuffer=null},i.prototype.updateCuMode=function(e){if(this._inargumentMode){if(typeof e=="string"&&/^\d$/.test(e))return this._inputBuffer=(this._inputBuffer||"")+e,!0;if(Hte.prefixPreservingKeys[e])return this.resetState(!0),!1}else if(!this._prefixKey&&e==="C-u")return this._inargumentMode=!0,this._inputBuffer=null,this._lastInputBuffer=null,!0},i.prototype.updateStateOnExecution=function(e){e===void 0&&(e=!1),this.resetState(e)},i.prototype.getInputBuffer=function(){return this._lastInputBuffer||this._inputBuffer},i.prototype.addToRing=function(e){this._killRing.push(e),this._killRing.length>50&&this._killRing.shift()},i.prototype.growRingTop=function(e){this._killRing.length||this.addToRing(e),this._killRing[this._killRing.length-1]+=e},i.prototype.getFromRing=function(e){return this._killRing[this._killRing.length-(e?Math.min(e,1):1)]||""},i.prototype.popFromRing=function(){return this._killRing.length>1?this._killRing.pop():this.getFromRing()},i.prototype.getReadableState=function(){var e="";return this._inargumentMode&&(e+="C-u",this._inputBuffer?e+=" ".concat(this._inputBuffer):this._lastInputBuffer&&(e+=" ".concat(this._lastInputBuffer))),this._prefixKey&&(e+=" ".concat(this._prefixKey)),e},i}();Ec.State=Y5e});var Kte=Ze(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});pm.getConfiguration=pm.EmacsExtension=void 0;var Oh=(Kv(),Kh(Vv)),X5e=ste(),pS=Ate(),Ute=hS(),iD=Fte(),Q5e=Bte(),jte=zte(),Wte=Oh.editor,nD=Wte.TextEditorCursorBlinkingStyle,rD=Wte.TextEditorCursorStyle,J5e=function(){function i(e){this._disposables=[],this._inSelectionMode=!1,this._changeDisposable=null,this._state=new jte.State,this._onDidMarkChange=new iD.Emitter,this.onDidMarkChange=this._onDidMarkChange.event,this._onDidChangeKey=new iD.Emitter,this.onDidChangeKey=this._onDidChangeKey.event,this._editor=e;var t=Vte(e);this._intialCursorType=t.cursorStyle,this._intialCursorBlinking=t.cursorBlinking,this._basicInputWidget=new Q5e.BasicInputWidget}return i.prototype.start=function(){this._disposables.length||(this.addListeners(),this._editor.updateOptions({cursorStyle:pS(rD[rD.Block]),cursorBlinking:pS(nD[nD.Blink])}),this._editor.addOverlayWidget(this._basicInputWidget))},Object.defineProperty(i.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),i.prototype.getEditor=function(){return this._editor},i.prototype.addListeners=function(){this._disposables.push(this._editor.onKeyDown(this.onKeyDown.bind(this))),this._throttledScroll=X5e(this.onEditorScroll.bind(this),500),this._disposables.push(this._editor.onDidScrollChange(this._throttledScroll))},i.prototype.cancelKey=function(e){e.preventDefault(),e.stopPropagation()},i.prototype.onKeyDown=function(e){if(!e.browserEvent.defaultPrevented){var t=(0,iD.monacoToEmacsKey)(e);if(t){if(t=this._state.updateAndGetKey(t),this._onDidChangeKey.fire(this._state.getReadableState()),t===jte.EAT_UP_KEY){this._onDidChangeKey.fire(this._state.getReadableState()),this.cancelKey(e);return}var n=Ute.COMMANDS[t];if(!n){this._onDidChangeKey.fire(this._state.getReadableState()),this._state.setLastCommandKey(t);return}this.cancelKey(e);var r=this._state.isLastCommandKey(t);(0,Ute.executeCommand)(this,n,this._state.getInputBuffer(),r),this._state.setLastCommandKey(t),this._state.updateStateOnExecution()}}},i.prototype.onEditorScroll=function(){var e=this._editor.getLayoutInfo().height,t=this._editor.getScrolledVisiblePosition(this._editor.getPosition());if(!(t.top>=0&&t.top<=e)){var n=this._editor.getVisibleRanges();if(n.length){var r,o=this._editor.getSelection();t.top<0?r=new Oh.Position(n[0].getStartPosition().lineNumber,1):t.top>e&&(r=new Oh.Position(n[n.length-1].getEndPosition().lineNumber,1)),this._inSelectionMode?this._editor.setSelection(Oh.Selection.fromPositions(o.getStartPosition(),r)):this._editor.setPosition(r)}}},i.prototype.onContentChange=function(){this.selectionMode=!1},i.prototype.clearState=function(){this._state.updateStateOnExecution()},Object.defineProperty(i.prototype,"selectionMode",{get:function(){return this._inSelectionMode},set:function(e){e!==this._inSelectionMode&&(this._inSelectionMode=e,e?this._changeDisposable=this._editor.onDidChangeModelContent(this.onContentChange.bind(this)):this._changeDisposable&&(this._changeDisposable.dispose(),this._changeDisposable=null),this._onDidMarkChange.fire(e))},enumerable:!1,configurable:!0}),i.prototype.getCursorAnchor=function(){var e=this._editor.getSelection(),t=e.getDirection();return t===Oh.SelectionDirection.LTR?e.getEndPosition():e.getStartPosition()},i.prototype.getBasicInput=function(e){return this._basicInputWidget.getInput(e)},i.prototype.dispose=function(){this._disposables.forEach(function(e){return e.dispose()}),this._disposables=void 0,this._changeDisposable&&(this._changeDisposable.dispose(),this._changeDisposable=null),this._editor.updateOptions({cursorStyle:this._intialCursorType,cursorBlinking:this._intialCursorBlinking}),this._editor.removeOverlayWidget(this._basicInputWidget),this._basicInputWidget.dispose(),this._throttledScroll.cancel(),this._state=null},i}();pm.EmacsExtension=J5e;function Vte(i){var e=i.getOption(Oh.editor.EditorOption.cursorStyle),t=i.getOption(Oh.editor.EditorOption.cursorBlinking);return{cursorStyle:pS(rD[e]),cursorBlinking:pS(nD[t])}}pm.getConfiguration=Vte});var Gte=Ze(Yo=>{"use strict";Object.defineProperty(Yo,"__esModule",{value:!0});Yo.Actions=Yo.EmacsExtension=Yo.unregisterKey=Yo.getAllMappings=Yo.registerGlobalCommand=void 0;var qte=Kte();Object.defineProperty(Yo,"EmacsExtension",{enumerable:!0,get:function(){return qte.EmacsExtension}});var oD=hS();Object.defineProperty(Yo,"registerGlobalCommand",{enumerable:!0,get:function(){return oD.registerGlobalCommand}});Object.defineProperty(Yo,"getAllMappings",{enumerable:!0,get:function(){return oD.getAllMappings}});Object.defineProperty(Yo,"unregisterKey",{enumerable:!0,get:function(){return oD.unregisterKey}});var Z5e=tD();Yo.Actions=Z5e;Yo.default=qte.EmacsExtension});var sD=Ze((v2t,$te)=>{function eye(i){var e=typeof i;return i!=null&&(e=="object"||e=="function")}$te.exports=eye});var Xte=Ze((_2t,Yte)=>{var tye=typeof global=="object"&&global&&global.Object===Object&&global;Yte.exports=tye});var aD=Ze((b2t,Qte)=>{var iye=Xte(),nye=typeof self=="object"&&self&&self.Object===Object&&self,rye=iye||nye||Function("return this")();Qte.exports=rye});var Zte=Ze((y2t,Jte)=>{var oye=aD(),sye=function(){return oye.Date.now()};Jte.exports=sye});var tie=Ze((C2t,eie)=>{var aye=/\s/;function lye(i){for(var e=i.length;e--&&aye.test(i.charAt(e)););return e}eie.exports=lye});var nie=Ze((S2t,iie)=>{var cye=tie(),dye=/^\s+/;function uye(i){return i&&i.slice(0,cye(i)+1).replace(dye,"")}iie.exports=uye});var lD=Ze((w2t,rie)=>{var hye=aD(),fye=hye.Symbol;rie.exports=fye});var lie=Ze((x2t,aie)=>{var oie=lD(),sie=Object.prototype,pye=sie.hasOwnProperty,mye=sie.toString,qv=oie?oie.toStringTag:void 0;function gye(i){var e=pye.call(i,qv),t=i[qv];try{i[qv]=void 0;var n=!0}catch(o){}var r=mye.call(i);return n&&(e?i[qv]=t:delete i[qv]),r}aie.exports=gye});var die=Ze((E2t,cie)=>{var vye=Object.prototype,_ye=vye.toString;function bye(i){return _ye.call(i)}cie.exports=bye});var pie=Ze((T2t,fie)=>{var uie=lD(),yye=lie(),Cye=die(),Sye="[object Null]",wye="[object Undefined]",hie=uie?uie.toStringTag:void 0;function xye(i){return i==null?i===void 0?wye:Sye:hie&&hie in Object(i)?yye(i):Cye(i)}fie.exports=xye});var gie=Ze((k2t,mie)=>{function Eye(i){return i!=null&&typeof i=="object"}mie.exports=Eye});var _ie=Ze((I2t,vie)=>{var Tye=pie(),kye=gie(),Iye="[object Symbol]";function Aye(i){return typeof i=="symbol"||kye(i)&&Tye(i)==Iye}vie.exports=Aye});var Sie=Ze((A2t,Cie)=>{var Lye=nie(),bie=sD(),Mye=_ie(),yie=0/0,Dye=/^[-+]0x[0-9a-f]+$/i,Nye=/^0b[01]+$/i,Rye=/^0o[0-7]+$/i,Oye=parseInt;function Pye(i){if(typeof i=="number")return i;if(Mye(i))return yie;if(bie(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=bie(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=Lye(i);var t=Nye.test(i);return t||Rye.test(i)?Oye(i.slice(2),t?2:8):Dye.test(i)?yie:+i}Cie.exports=Pye});var Eie=Ze((L2t,xie)=>{var Fye=sD(),cD=Zte(),wie=Sie(),Bye="Expected a function",Hye=Math.max,zye=Math.min;function Uye(i,e,t){var n,r,o,s,a,l,c=0,d=!1,u=!1,h=!0;if(typeof i!="function")throw new TypeError(Bye);e=wie(e)||0,Fye(t)&&(d=!!t.leading,u="maxWait"in t,o=u?Hye(wie(t.maxWait)||0,e):o,h="trailing"in t?!!t.trailing:h);function p(j){var z=n,J=r;return n=r=void 0,c=j,s=i.apply(J,z),s}function m(j){return c=j,a=setTimeout(S,e),d?p(j):s}function g(j){var z=j-l,J=j-c,ae=e-z;return u?zye(ae,o-J):ae}function b(j){var z=j-l,J=j-c;return l===void 0||z>=e||z<0||u&&J>=o}function S(){var j=cD();if(b(j))return k(j);a=setTimeout(S,g(j))}function k(j){return a=void 0,h&&n?p(j):(n=r=void 0,s)}function N(){a!==void 0&&clearTimeout(a),c=0,n=l=r=a=void 0}function A(){return a===void 0?s:k(cD())}function B(){var j=cD(),z=b(j);if(n=arguments,r=this,l=j,z){if(a===void 0)return m(l);if(u)return clearTimeout(a),a=setTimeout(S,e),p(l)}return a===void 0&&(a=setTimeout(S,e)),s}return B.cancel=N,B.flush=A,B}xie.exports=Uye});var Kne=Ze((Vne,uN)=>{(function(i){if(typeof Vne=="object"&&typeof uN!="undefined")uN.exports=i();else if(typeof define=="function"&&define.amd)define([],i);else{var e;typeof window!="undefined"?e=window:typeof global!="undefined"?e=global:typeof self!="undefined"?e=self:e=this,e.HyperList=i()}})(function(){var i,e,t;return function(){function n(r,o,s){function a(d,u){if(!o[d]){if(!r[d]){var h=typeof Yd=="function"&&Yd;if(!u&&h)return h(d,!0);if(l)return l(d,!0);var p=new Error("Cannot find module '"+d+"'");throw p.code="MODULE_NOT_FOUND",p}var m=o[d]={exports:{}};r[d][0].call(m.exports,function(g){var b=r[d][1][g];return a(b||g)},m,m.exports,n,r,o,s)}return o[d].exports}for(var l=typeof Yd=="function"&&Yd,c=0;cb._averageHeight){var z=b._renderChunk();b._lastRepaint=A,z!==!1&&typeof S.afterRender=="function"&&S.afterRender()}}};k()}return s(p,[{key:"destroy",value:function(){window.cancelAnimationFrame(this._renderAnimationFrame)}},{key:"refresh",value:function(g,b){var S;if(Object.assign(this._config,c,b),!g||g.nodeType!==1)throw new Error("HyperList requires a valid DOM Node container");this._element=g;var k=this._config,N=this._scroller||k.scroller||document.createElement(k.scrollerTagName||"tr");if(typeof k.useFragment!="boolean"&&(this._config.useFragment=!0),!k.generate)throw new Error("Missing required `generate` function");if(!d(k.total))throw new Error("Invalid required `total` value, expected number");if(!Array.isArray(k.itemHeight)&&!d(k.itemHeight))throw new Error("\n Invalid required `itemHeight` value, expected number or array\n ".trim());d(k.itemHeight)?this._itemHeights=Array(k.total).fill(k.itemHeight):this._itemHeights=k.itemHeight,Object.keys(c).filter(function(ee){return ee in k}).forEach(function(ee){var ye=k[ee],_e=d(ye);if(ye&&typeof ye!="string"&&typeof ye!="number"){var $="Invalid optional `"+ee+"`, expected string or number";throw new Error($)}else _e&&(k[ee]=ye+"px")});var A=!!k.horizontal,B=k[A?"width":"height"];if(B){var j=d(B),z=j?!1:B.slice(-1)==="%",J=j?B:parseInt(B.replace(/px|%/,""),10),ae=window[A?"innerWidth":"innerHeight"];z?this._containerSize=ae*J/100:this._containerSize=d(B)?B:J}var Le=k.scrollContainer,he=k.itemHeight*k.total,Xe=this._maxElementHeight;he>Xe&&console.warn(["HyperList: The maximum element height",Xe+"px has","been exceeded; please reduce your item height."].join(" "));var at={width:""+k.width,height:Le?he+"px":""+k.height,overflow:Le?"none":"auto",position:"relative"};p.mergeStyle(g,at),Le&&p.mergeStyle(k.scrollContainer,{overflow:"auto"});var ot=(S={opacity:"0",position:"absolute"},a(S,A?"height":"width","1px"),a(S,A?"width":"height",he+"px"),S);p.mergeStyle(N,ot),this._scroller||g.appendChild(N);var Nt=this._computeScrollPadding();this._scrollPaddingBottom=Nt.bottom,this._scrollPaddingTop=Nt.top,this._scroller=N,this._scrollHeight=this._computeScrollHeight(),this._itemPositions=this._itemPositions||Array(k.total).fill(0),this._computePositions(0),this._renderChunk(this._lastRepaint!==null),typeof k.afterRender=="function"&&k.afterRender()}},{key:"_getRow",value:function(g){var b=this._config,S=b.generate(g),k=S.height;if(k!==void 0&&d(k)?(S=S.element,k!==this._itemHeights[g]&&(this._itemHeights[g]=k,this._computePositions(g),this._scrollHeight=this._computeScrollHeight(g))):k=this._itemHeights[g],!S||S.nodeType!==1)throw new Error("Generator did not return a DOM Node for index: "+g);u(S,b.rowClassName||"vrow");var N=this._itemPositions[g]+this._scrollPaddingTop;return p.mergeStyle(S,a({position:"absolute"},b.horizontal?"left":"top",N+"px")),S}},{key:"_getScrollPosition",value:function(){var g=this._config;return typeof g.overrideScrollPosition=="function"?g.overrideScrollPosition():this._element[g.horizontal?"scrollLeft":"scrollTop"]}},{key:"_renderChunk",value:function(g){var b=this._config,S=this._element,k=this._getScrollPosition(),N=b.total,A=b.reverse?this._getReverseFrom(k):this._getFrom(k)-1;if((A<0||A-this._screenItemsLen<0)&&(A=0),!g&&this._lastFrom===A)return!1;this._lastFrom=A;var B=A+this._cachedItemsLen;(B>N||B+this._cachedItemsLen>N)&&(B=N);var j=b.useFragment?document.createDocumentFragment():[],z=this._scroller;j[b.useFragment?"appendChild":"push"](z);for(var J=A;J0&&arguments[0]!==void 0?arguments[0]:1,b=this._config,S=b.total,k=b.reverse;g<1&&!k&&(g=1);for(var N=g;N0&&this._itemPositions[b]{(function(i,e){"use strict";function t(){n.width=i.innerWidth,n.height=5*c.barThickness;var u=n.getContext("2d");u.shadowBlur=c.shadowBlur,u.shadowColor=c.shadowColor;var h,p=u.createLinearGradient(0,0,n.width,0);for(h in c.barColors)p.addColorStop(h,c.barColors[h]);u.lineWidth=c.barThickness,u.beginPath(),u.moveTo(0,c.barThickness/2),u.lineTo(Math.ceil(r*n.width),c.barThickness/2),u.strokeStyle=p,u.stroke()}var n,r,o,s=null,a=null,l=null,c={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},d={config:function(u){for(var h in u)c.hasOwnProperty(h)&&(c[h]=u[h])},show:function(u){var h,p;o||(u?l=l||setTimeout(()=>d.show(),u):(o=!0,a!==null&&i.cancelAnimationFrame(a),n||((p=(n=e.createElement("canvas")).style).position="fixed",p.top=p.left=p.right=p.margin=p.padding=0,p.zIndex=100001,p.display="none",c.className&&n.classList.add(c.className),e.body.appendChild(n),h="resize",u=t,(p=i).addEventListener?p.addEventListener(h,u,!1):p.attachEvent?p.attachEvent("on"+h,u):p["on"+h]=u),n.style.opacity=1,n.style.display="block",d.progress(0),c.autoRun&&function m(){s=i.requestAnimationFrame(m),d.progress("+"+.05*Math.pow(1-Math.sqrt(r),2))}()))},progress:function(u){return u===void 0||(typeof u=="string"&&(u=(0<=u.indexOf("+")||0<=u.indexOf("-")?r:0)+parseFloat(u)),r=1typeof i=="function"?i:function(){return i},hse=typeof self!="undefined"?self:null,s1=typeof window!="undefined"?window:null,l1=hse||s1||l1,fse="2.0.0",ka={connecting:0,open:1,closing:2,closed:3},pse=1e4,mse=1e3,Po={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Nl={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},o3={longpoll:"longpoll",websocket:"websocket"},gse={complete:4},Ab=class{constructor(i,e,t,n){this.channel=i,this.event=e,this.payload=t||function(){return{}},this.receivedResp=null,this.timeout=n,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(i){this.timeout=i,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(i,e){return this.hasReceived(i)&&e(this.receivedResp.response),this.recHooks.push({status:i,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:i,response:e,_ref:t}){this.recHooks.filter(n=>n.status===i).forEach(n=>n.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,i=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=i,this.matchReceive(i)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(i){return this.receivedResp&&this.receivedResp.status===i}trigger(i,e){this.channel.trigger(this.refEvent,{status:i,response:e})}},wF=class{constructor(i,e){this.callback=i,this.timerCalc=e,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},vse=class{constructor(i,e,t){this.state=Po.closed,this.topic=i,this.params=a1(e||{}),this.socket=t,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Ab(this,Nl.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new wF(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Po.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(n=>n.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Po.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Po.closed,this.socket.remove(this)}),this.onError(n=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,n),this.isJoining()&&this.joinPush.reset(),this.state=Po.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new Ab(this,Nl.leave,a1({}),this.timeout).send(),this.state=Po.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Nl.reply,(n,r)=>{this.trigger(this.replyEventName(r),n)})}join(i=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=i,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(i){this.on(Nl.close,i)}onError(i){return this.on(Nl.error,e=>i(e))}on(i,e){let t=this.bindingRef++;return this.bindings.push({event:i,ref:t,callback:e}),t}off(i,e){this.bindings=this.bindings.filter(t=>!(t.event===i&&(typeof e=="undefined"||e===t.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(i,e,t=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${i}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let n=new Ab(this,i,function(){return e},t);return this.canPush()?n.send():(n.startTimeout(),this.pushBuffer.push(n)),n}leave(i=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Po.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Nl.close,"leave")},t=new Ab(this,Nl.leave,a1({}),i);return t.receive("ok",()=>e()).receive("timeout",()=>e()),t.send(),this.canPush()||t.trigger("ok",{}),t}onMessage(i,e,t){return e}isMember(i,e,t,n){return this.topic!==i?!1:n&&n!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:i,event:e,payload:t,joinRef:n}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(i=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Po.joining,this.joinPush.resend(i))}trigger(i,e,t,n){let r=this.onMessage(i,e,t,n);if(e&&!r)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(s=>s.event===i);for(let s=0;s{let a=this.parseJSON(i.responseText);s&&s(a)},o&&(i.ontimeout=o),i.onprogress=()=>{},i.send(n),i}static xhrRequest(i,e,t,n,r,o,s,a){return i.open(e,t,!0),i.timeout=o,i.setRequestHeader("Content-Type",n),i.onerror=()=>a&&a(null),i.onreadystatechange=()=>{if(i.readyState===gse.complete&&a){let l=this.parseJSON(i.responseText);a(l)}},s&&(i.ontimeout=s),i.send(r),i}static parseJSON(i){if(!i||i==="")return null;try{return JSON.parse(i)}catch(e){return console&&console.log("failed to parse JSON response",i),null}}static serialize(i,e){let t=[];for(var n in i){if(!Object.prototype.hasOwnProperty.call(i,n))continue;let r=e?`${e}[${n}]`:n,o=i[n];typeof o=="object"?t.push(this.serialize(o,r)):t.push(encodeURIComponent(r)+"="+encodeURIComponent(o))}return t.join("&")}static appendParams(i,e){if(Object.keys(e).length===0)return i;let t=i.match(/\?/)?"&":"?";return`${i}${t}${this.serialize(e)}`}},_se=i=>{let e="",t=new Uint8Array(i),n=t.byteLength;for(let r=0;rthis.ontimeout(),i=>{if(i){var{status:e,token:t,messages:n}=i;this.token=t}else e=0;switch(e){case 200:n.forEach(r=>{setTimeout(()=>this.onmessage({data:r}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=ka.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${e}`)}})}send(i){typeof i!="string"&&(i=_se(i)),this.currentBatch?this.currentBatch.push(i):this.awaitingBatchAck?this.batchBuffer.push(i):(this.currentBatch=[i],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(i){this.awaitingBatchAck=!0,this.ajax("POST","application/x-ndjson",i.join(` +`),()=>this.onerror("timeout"),e=>{this.awaitingBatchAck=!1,!e||e.status!==200?(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(i,e,t){for(let r of this.reqs)r.abort();this.readyState=ka.closed;let n=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:i,reason:e,wasClean:t});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent!="undefined"?this.onclose(new CloseEvent("close",n)):this.onclose(n)}ajax(i,e,t,n,r){let o,s=()=>{this.reqs.delete(o),n()};o=Mb.request(i,this.endpointURL(),e,t,this.timeout,s,a=>{this.reqs.delete(o),this.isActive()&&r(a)}),this.reqs.add(o)}};var Lb={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(i,e){if(i.payload.constructor===ArrayBuffer)return e(this.binaryEncode(i));{let t=[i.join_ref,i.ref,i.topic,i.event,i.payload];return e(JSON.stringify(t))}},decode(i,e){if(i.constructor===ArrayBuffer)return e(this.binaryDecode(i));{let[t,n,r,o,s]=JSON.parse(i);return e({join_ref:t,ref:n,topic:r,event:o,payload:s})}},binaryEncode(i){let{join_ref:e,ref:t,event:n,topic:r,payload:o}=i,s=this.META_LENGTH+e.length+t.length+r.length+n.length,a=new ArrayBuffer(this.HEADER_LENGTH+s),l=new DataView(a),c=0;l.setUint8(c++,this.KINDS.push),l.setUint8(c++,e.length),l.setUint8(c++,t.length),l.setUint8(c++,r.length),l.setUint8(c++,n.length),Array.from(e,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(t,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(r,u=>l.setUint8(c++,u.charCodeAt(0))),Array.from(n,u=>l.setUint8(c++,u.charCodeAt(0)));var d=new Uint8Array(a.byteLength+o.byteLength);return d.set(new Uint8Array(a),0),d.set(new Uint8Array(o),a.byteLength),d.buffer},binaryDecode(i){let e=new DataView(i),t=e.getUint8(0),n=new TextDecoder;switch(t){case this.KINDS.push:return this.decodePush(i,e,n);case this.KINDS.reply:return this.decodeReply(i,e,n);case this.KINDS.broadcast:return this.decodeBroadcast(i,e,n)}},decodePush(i,e,t){let n=e.getUint8(1),r=e.getUint8(2),o=e.getUint8(3),s=this.HEADER_LENGTH+this.META_LENGTH-1,a=t.decode(i.slice(s,s+n));s=s+n;let l=t.decode(i.slice(s,s+r));s=s+r;let c=t.decode(i.slice(s,s+o));s=s+o;let d=i.slice(s,i.byteLength);return{join_ref:a,ref:null,topic:l,event:c,payload:d}},decodeReply(i,e,t){let n=e.getUint8(1),r=e.getUint8(2),o=e.getUint8(3),s=e.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,l=t.decode(i.slice(a,a+n));a=a+n;let c=t.decode(i.slice(a,a+r));a=a+r;let d=t.decode(i.slice(a,a+o));a=a+o;let u=t.decode(i.slice(a,a+s));a=a+s;let h=i.slice(a,i.byteLength),p={status:u,response:h};return{join_ref:l,ref:c,topic:d,event:Nl.reply,payload:p}},decodeBroadcast(i,e,t){let n=e.getUint8(1),r=e.getUint8(2),o=this.HEADER_LENGTH+2,s=t.decode(i.slice(o,o+n));o=o+n;let a=t.decode(i.slice(o,o+r));o=o+r;let l=i.slice(o,i.byteLength);return{join_ref:null,ref:null,topic:s,event:a,payload:l}}},Db=class{constructor(i,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=e.timeout||pse,this.transport=e.transport||l1.WebSocket||r3,this.establishedConnections=0,this.defaultEncoder=Lb.encode.bind(Lb),this.defaultDecoder=Lb.decode.bind(Lb),this.closeWasClean=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==r3?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let t=null;s1&&s1.addEventListener&&(s1.addEventListener("pagehide",n=>{this.conn&&(this.disconnect(),t=this.connectClock)}),s1.addEventListener("pageshow",n=>{t===this.connectClock&&(t=null,this.connect())})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=n=>e.rejoinAfterMs?e.rejoinAfterMs(n):[1e3,2e3,5e3][n-1]||1e4,this.reconnectAfterMs=n=>e.reconnectAfterMs?e.reconnectAfterMs(n):[10,50,100,150,200,250,500,1e3,2e3][n-1]||5e3,this.logger=e.logger||null,this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=a1(e.params||{}),this.endPoint=`${i}/${o3.websocket}`,this.vsn=e.vsn||fse,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new wF(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return r3}replaceTransport(i){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=i}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let i=Mb.appendParams(Mb.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return i.charAt(0)!=="/"?i:i.charAt(1)==="/"?`${this.protocol()}:${i}`:`${this.protocol()}://${location.host}${i}`}disconnect(i,e,t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(i,e,t)}connect(i){i&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=a1(i)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e))}log(i,e,t){this.logger(i,e,t)}hasLogger(){return this.logger!==null}onOpen(i){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,i]),e}onClose(i){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,i]),e}onError(i){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,i]),e}onMessage(i){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,i]),e}ping(i){if(!this.isConnected())return!1;let e=this.makeRef(),t=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let n=this.onMessage(r=>{r.ref===e&&(this.off([n]),i(Date.now()-t))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,i])=>i())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),mse,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(i,e,t){if(!this.conn)return i&&i();this.waitForBufferDone(()=>{this.conn&&(e?this.conn.close(e,t||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),i&&i()})})}waitForBufferDone(i,e=1){if(e===5||!this.conn||!this.conn.bufferedAmount){i();return}setTimeout(()=>{this.waitForBufferDone(i,e+1)},150*e)}waitForSocketClosed(i,e=1){if(e===5||!this.conn||this.conn.readyState===ka.closed){i();return}setTimeout(()=>{this.waitForSocketClosed(i,e+1)},150*e)}onConnClose(i){let e=i&&i.code;this.hasLogger()&&this.log("transport","close",i),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&e!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,t])=>t(i))}onConnError(i){this.hasLogger()&&this.log("transport",i);let e=this.transport,t=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,n])=>{n(i,e,t)}),(e===this.transport||t>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(i=>{i.isErrored()||i.isLeaving()||i.isClosed()||i.trigger(Nl.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case ka.connecting:return"connecting";case ka.open:return"open";case ka.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(i){this.off(i.stateChangeRefs),this.channels=this.channels.filter(e=>e.joinRef()!==i.joinRef())}off(i){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([t])=>i.indexOf(t)===-1)}channel(i,e={}){let t=new vse(i,e,this);return this.channels.push(t),t}push(i){if(this.hasLogger()){let{topic:e,event:t,payload:n,ref:r,join_ref:o}=i;this.log("push",`${e} ${t} (${o}, ${r})`,n)}this.isConnected()?this.encode(i,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(i,e=>this.conn.send(e)))}makeRef(){let i=this.ref+1;return i===this.ref?this.ref=0:this.ref=i,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(i=>i()),this.sendBuffer=[])}onConnMessage(i){this.decode(i.data,e=>{let{topic:t,event:n,payload:r,ref:o,join_ref:s}=e;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${r.status||""} ${t} ${n} ${o&&"("+o+")"||""}`,r);for(let a=0;at.topic===i&&(t.isJoined()||t.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${i}"`),e.leave())}};var $F="consecutive-reloads",bse=10,yse=5e3,Cse=1e4,Sse=3e4,YF=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading"],Ol="data-phx-component",s3="data-phx-link",wse="track-static",xse="data-phx-link-state",fs="data-phx-ref",uu="data-phx-ref-src",XF="track-uploads",Zc="data-phx-upload-ref",b3="data-phx-preflighted-refs",Ese="data-phx-done-refs",xF="drop-target",g3="data-phx-active-refs",Kb="phx:live-file:updated",QF="data-phx-skip",JF="data-phx-id",EF="data-phx-prune",TF="page-loading",kF="phx-connected",c1="phx-loading",a3="phx-no-feedback",Nb="phx-error",IF="phx-client-error",l3="phx-server-error",yf="data-phx-parent-id",y3="data-phx-main",_1="data-phx-root-id",ZF="viewport-top",eB="viewport-bottom",Tse="trigger-action",Gb="feedback-for",v3="phx-has-focused",kse=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],tB=["checkbox","radio"],$b="phx-has-submitted",ed="data-phx-session",Sf=`[${ed}]`,AF="data-phx-sticky",g1="data-phx-static",c3="data-phx-readonly",Rb="data-phx-disabled",_3="disable-with",Ob="data-phx-disable-with-restore",d1="hook",Ise="debounce",Ase="throttle",Yb="update",Pb="stream",u1="data-phx-stream",Lse="key",Ia="phxPrivate",LF="auto-recover",Fb="phx:live-socket:debug",d3="phx:live-socket:profiling",u3="phx:live-socket:latency-sim",Mse="progress",MF="mounted",Dse=1,Nse=200,Rse="phx-",Ose=3e4,h1="debounce-trigger",Bb="throttled",DF="debounce-prev-key",Pse={debounce:300,throttle:300},Hb="d",Aa="s",h3="r",Fo="c",NF="e",RF="r",OF="t",Fse="p",PF="stream",Bse=class{constructor(i,e,t){this.liveSocket=t,this.entry=i,this.offset=0,this.chunkSize=e,this.chunkTimer=null,this.errored=!1,this.uploadChannel=t.channel(`lvu:${i.ref}`,{token:i.metadata()})}error(i){this.errored||(this.uploadChannel.leave(),this.errored=!0,clearTimeout(this.chunkTimer),this.entry.error(i))}upload(){this.uploadChannel.onError(i=>this.error(i)),this.uploadChannel.join().receive("ok",i=>this.readNextChunk()).receive("error",i=>this.error(i))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let i=new window.FileReader,e=this.entry.file.slice(this.offset,this.chunkSize+this.offset);i.onload=t=>{if(t.target.error===null)this.offset+=t.target.result.byteLength,this.pushChunk(t.target.result);else return Bo("Read error: "+t.target.error)},i.readAsArrayBuffer(e)}pushChunk(i){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",i).receive("ok",()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout(()=>this.readNextChunk(),this.liveSocket.getLatencySim()||0))}).receive("error",({reason:e})=>this.error(e))}},Bo=(i,e)=>console.error&&console.error(i,e),Rl=i=>{let e=typeof i;return e==="number"||e==="string"&&/^(0|[1-9]\d*)$/.test(i)};function Hse(){let i=new Set,e=document.querySelectorAll("*[id]");for(let t=0,n=e.length;t{i.liveSocket.isDebugEnabled()&&console.log(`${i.id} ${e}: ${t} - `,n)},f3=i=>typeof i=="function"?i:function(){return i},qb=i=>JSON.parse(JSON.stringify(i)),v1=(i,e,t)=>{do{if(i.matches(`[${e}]`)&&!i.disabled)return i;i=i.parentElement||i.parentNode}while(i!==null&&i.nodeType===1&&!(t&&t.isSameNode(i)||i.matches(Sf)));return null},f1=i=>i!==null&&typeof i=="object"&&!(i instanceof Array),Use=(i,e)=>JSON.stringify(i)===JSON.stringify(e),FF=i=>{for(let e in i)return!1;return!0},Jc=(i,e)=>i&&e(i),jse=function(i,e,t,n){i.forEach(r=>{new Bse(r,t.config.chunk_size,n).upload()})},iB={canPushState(){return typeof history.pushState!="undefined"},dropLocal(i,e,t){return i.removeItem(this.localKey(e,t))},updateLocal(i,e,t,n,r){let o=this.getLocal(i,e,t),s=this.localKey(e,t),a=o===null?n:r(o);return i.setItem(s,JSON.stringify(a)),a},getLocal(i,e,t){return JSON.parse(i.getItem(this.localKey(e,t)))},updateCurrentState(i){this.canPushState()&&history.replaceState(i(history.state||{}),"",window.location.href)},pushState(i,e,t){if(this.canPushState()){if(t!==window.location.href){if(e.type=="redirect"&&e.scroll){let r=history.state||{};r.scroll=e.scroll,history.replaceState(r,"",window.location.href)}delete e.scroll,history[i+"State"](e,"",t||null);let n=this.getHashTargetEl(window.location.hash);n?n.scrollIntoView():e.type==="redirect"&&window.scroll(0,0)}}else this.redirect(t)},setCookie(i,e){document.cookie=`${i}=${e}`},getCookie(i){return document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${i}s*=s*([^;]*).*$)|^.*$`),"$1")},redirect(i,e){e&&iB.setCookie("__phoenix_flash__",e+"; max-age=60000; path=/"),window.location=i},localKey(i,e){return`${i}-${e}`},getHashTargetEl(i){let e=i.toString().substring(1);if(e!=="")return document.getElementById(e)||document.querySelector(`a[name="${e}"]`)}},La=iB,hs={byId(i){return document.getElementById(i)||Bo(`no id found for ${i}`)},removeClass(i,e){i.classList.remove(e),i.classList.length===0&&i.removeAttribute("class")},all(i,e,t){if(!i)return[];let n=Array.from(i.querySelectorAll(e));return t?n.forEach(t):n},childNodeLength(i){let e=document.createElement("template");return e.innerHTML=i,e.content.childElementCount},isUploadInput(i){return i.type==="file"&&i.getAttribute(Zc)!==null},isAutoUpload(i){return i.hasAttribute("data-phx-auto-upload")},findUploadInputs(i){return this.all(i,`input[type="file"][${Zc}]`)},findComponentNodeList(i,e){return this.filterWithinSameLiveView(this.all(i,`[${Ol}="${e}"]`),i)},isPhxDestroyed(i){return!!(i.id&&hs.private(i,"destroyed"))},wantsNewTab(i){let e=i.ctrlKey||i.shiftKey||i.metaKey||i.button&&i.button===1,t=i.target instanceof HTMLAnchorElement&&i.target.hasAttribute("download"),n=i.target.hasAttribute("target")&&i.target.getAttribute("target").toLowerCase()==="_blank";return e||n||t},isUnloadableFormSubmit(i){return i.target&&i.target.getAttribute("method")==="dialog"||i.submitter&&i.submitter.getAttribute("formmethod")==="dialog"?!1:!i.defaultPrevented&&!this.wantsNewTab(i)},isNewPageClick(i,e){let t=i.target instanceof HTMLAnchorElement?i.target.getAttribute("href"):null,n;if(i.defaultPrevented||t===null||this.wantsNewTab(i)||t.startsWith("mailto:")||t.startsWith("tel:")||i.target.isContentEditable)return!1;try{n=new URL(t)}catch(r){try{n=new URL(t,e)}catch(o){return!0}}return n.host===e.host&&n.protocol===e.protocol&&n.pathname===e.pathname&&n.search===e.search?n.hash===""&&!n.href.endsWith("#"):n.protocol.startsWith("http")},markPhxChildDestroyed(i){this.isPhxChild(i)&&i.setAttribute(ed,""),this.putPrivate(i,"destroyed",!0)},findPhxChildrenInFragment(i,e){let t=document.createElement("template");return t.innerHTML=i,this.findPhxChildren(t.content,e)},isIgnored(i,e){return(i.getAttribute(e)||i.getAttribute("data-phx-update"))==="ignore"},isPhxUpdate(i,e,t){return i.getAttribute&&t.indexOf(i.getAttribute(e))>=0},findPhxSticky(i){return this.all(i,`[${AF}]`)},findPhxChildren(i,e){return this.all(i,`${Sf}[${yf}="${e}"]`)},findParentCIDs(i,e){let t=new Set(e),n=e.reduce((r,o)=>{let s=`[${Ol}="${o}"] [${Ol}]`;return this.filterWithinSameLiveView(this.all(i,s),i).map(a=>parseInt(a.getAttribute(Ol))).forEach(a=>r.delete(a)),r},t);return n.size===0?new Set(e):n},filterWithinSameLiveView(i,e){return e.querySelector(Sf)?i.filter(t=>this.withinSameLiveView(t,e)):i},withinSameLiveView(i,e){for(;i=i.parentNode;){if(i.isSameNode(e))return!0;if(i.getAttribute(ed)!==null)return!1}},private(i,e){return i[Ia]&&i[Ia][e]},deletePrivate(i,e){i[Ia]&&delete i[Ia][e]},putPrivate(i,e,t){i[Ia]||(i[Ia]={}),i[Ia][e]=t},updatePrivate(i,e,t,n){let r=this.private(i,e);r===void 0?this.putPrivate(i,e,n(t)):this.putPrivate(i,e,n(r))},copyPrivates(i,e){e[Ia]&&(i[Ia]=e[Ia])},putTitle(i){let e=document.querySelector("title");if(e){let{prefix:t,suffix:n}=e.dataset;document.title=`${t||""}${i}${n||""}`}else document.title=i},debounce(i,e,t,n,r,o,s,a){let l=i.getAttribute(t),c=i.getAttribute(r);l===""&&(l=n),c===""&&(c=o);let d=l||c;switch(d){case null:return a();case"blur":this.once(i,"debounce-blur")&&i.addEventListener("blur",()=>a());return;default:let u=parseInt(d),h=()=>c?this.deletePrivate(i,Bb):a(),p=this.incCycle(i,h1,h);if(isNaN(u))return Bo(`invalid throttle/debounce value: ${d}`);if(c){let g=!1;if(e.type==="keydown"){let b=this.private(i,DF);this.putPrivate(i,DF,e.key),g=b!==e.key}if(!g&&this.private(i,Bb))return!1;a(),this.putPrivate(i,Bb,!0),setTimeout(()=>{s()&&this.triggerCycle(i,h1)},u)}else setTimeout(()=>{s()&&this.triggerCycle(i,h1,p)},u);let m=i.form;m&&this.once(m,"bind-debounce")&&m.addEventListener("submit",()=>{Array.from(new FormData(m).entries(),([g])=>{let b=m.querySelector(`[name="${g}"]`);this.incCycle(b,h1),this.deletePrivate(b,Bb)})}),this.once(i,"bind-debounce")&&i.addEventListener("blur",()=>this.triggerCycle(i,h1))}},triggerCycle(i,e,t){let[n,r]=this.private(i,e);t||(t=n),t===n&&(this.incCycle(i,e),r())},once(i,e){return this.private(i,e)===!0?!1:(this.putPrivate(i,e,!0),!0)},incCycle(i,e,t=function(){}){let[n]=this.private(i,e)||[0,t];return n++,this.putPrivate(i,e,[n,t]),n},maybeAddPrivateHooks(i,e,t){i.hasAttribute&&(i.hasAttribute(e)||i.hasAttribute(t))&&i.setAttribute("data-phx-hook","Phoenix.InfiniteScroll")},maybeHideFeedback(i,e,t){if(!(this.private(e,v3)||this.private(e,$b))){let n=[e.name];e.name.endsWith("[]")&&n.push(e.name.slice(0,-2));let r=n.map(o=>`[${t}="${o}"]`).join(", ");hs.all(i,r,o=>o.classList.add(a3))}},resetForm(i,e){Array.from(i.elements).forEach(t=>{let n=`[${e}="${t.id}"], [${e}="${t.name}"], - [${e}="${t.name.replace(/\[\]$/,"")}"]`;this.deletePrivate(t,Xk),this.deletePrivate(t,Ey),this.all(document,r,n=>{n.classList.add(Hk)})})},showError(i,e){(i.id||i.name)&&this.all(i.form,`[${e}="${i.id}"], [${e}="${i.name}"]`,t=>{this.removeClass(t,Hk)})},isPhxChild(i){return i.getAttribute&&i.getAttribute(Tf)},isPhxSticky(i){return i.getAttribute&&i.getAttribute(Dz)!==null},firstPhxChild(i){return this.isPhxChild(i)?i:this.all(i,`[${Tf}]`)[0]},dispatchEvent(i,e,t={}){let n={bubbles:t.bubbles===void 0?!0:!!t.bubbles,cancelable:!0,detail:t.detail||{}},o=e==="click"?new MouseEvent("click",n):new CustomEvent(e,n);i.dispatchEvent(o)},cloneNode(i,e){if(typeof e=="undefined")return i.cloneNode(!0);{let t=i.cloneNode(!1);return t.innerHTML=e,t}},mergeAttrs(i,e,t={}){let r=t.exclude||[],n=t.isIgnored,o=e.attributes;for(let a=o.length-1;a>=0;a--){let l=o[a].name;r.indexOf(l)<0&&i.setAttribute(l,e.getAttribute(l))}let s=i.attributes;for(let a=s.length-1;a>=0;a--){let l=s[a].name;n?l.startsWith("data-")&&!e.hasAttribute(l)&&i.removeAttribute(l):e.hasAttribute(l)||i.removeAttribute(l)}},mergeFocusedInput(i,e){i instanceof HTMLSelectElement||ns.mergeAttrs(i,e,{exclude:["value"]}),e.readOnly?i.setAttribute("readonly",!0):i.removeAttribute("readonly")},hasSelectionRange(i){return i.setSelectionRange&&(i.type==="text"||i.type==="textarea")},restoreFocus(i,e,t){if(!ns.isTextualInput(i))return;let r=i.matches(":focus");i.readOnly&&i.blur(),r||i.focus(),this.hasSelectionRange(i)&&i.setSelectionRange(e,t)},isFormInput(i){return/^(?:input|select|textarea)$/i.test(i.tagName)&&i.type!=="button"},syncAttrsToProps(i){i instanceof HTMLInputElement&&rB.indexOf(i.type.toLocaleLowerCase())>=0&&(i.checked=i.getAttribute("checked")!==null)},isTextualInput(i){return Une.indexOf(i.type)>=0},isNowTriggerFormExternal(i,e){return i.getAttribute&&i.getAttribute(e)!==null},syncPendingRef(i,e,t){let r=i.getAttribute(os);if(r===null)return!0;let n=i.getAttribute(Su);return ns.isFormInput(i)||i.getAttribute(t)!==null?(ns.isUploadInput(i)&&ns.mergeAttrs(i,e,{isIgnored:!0}),ns.putPrivate(i,os,e),!1):(Qz.forEach(o=>{i.classList.contains(o)&&e.classList.add(o)}),e.setAttribute(os,r),e.setAttribute(Su,n),!0)},cleanChildNodes(i,e){if(ns.isPhxUpdate(i,e,["append","prepend"])){let t=[];i.childNodes.forEach(r=>{r.id||(r.nodeType===Node.TEXT_NODE&&r.nodeValue.trim()===""||Oo(`only HTML element tags with an id are allowed inside containers with phx-update. + [${e}="${t.name.replace(/\[\]$/,"")}"]`;this.deletePrivate(t,v3),this.deletePrivate(t,$b),this.all(document,n,r=>{r.classList.add(a3)})})},showError(i,e){(i.id||i.name)&&this.all(i.form,`[${e}="${i.id}"], [${e}="${i.name}"]`,t=>{this.removeClass(t,a3)})},isPhxChild(i){return i.getAttribute&&i.getAttribute(yf)},isPhxSticky(i){return i.getAttribute&&i.getAttribute(AF)!==null},firstPhxChild(i){return this.isPhxChild(i)?i:this.all(i,`[${yf}]`)[0]},dispatchEvent(i,e,t={}){let r={bubbles:t.bubbles===void 0?!0:!!t.bubbles,cancelable:!0,detail:t.detail||{}},o=e==="click"?new MouseEvent("click",r):new CustomEvent(e,r);i.dispatchEvent(o)},cloneNode(i,e){if(typeof e=="undefined")return i.cloneNode(!0);{let t=i.cloneNode(!1);return t.innerHTML=e,t}},mergeAttrs(i,e,t={}){let n=t.exclude||[],r=t.isIgnored,o=e.attributes;for(let a=o.length-1;a>=0;a--){let l=o[a].name;n.indexOf(l)<0&&i.setAttribute(l,e.getAttribute(l))}let s=i.attributes;for(let a=s.length-1;a>=0;a--){let l=s[a].name;r?l.startsWith("data-")&&!e.hasAttribute(l)&&i.removeAttribute(l):e.hasAttribute(l)||i.removeAttribute(l)}},mergeFocusedInput(i,e){i instanceof HTMLSelectElement||hs.mergeAttrs(i,e,{exclude:["value"]}),e.readOnly?i.setAttribute("readonly",!0):i.removeAttribute("readonly")},hasSelectionRange(i){return i.setSelectionRange&&(i.type==="text"||i.type==="textarea")},restoreFocus(i,e,t){if(!hs.isTextualInput(i))return;let n=i.matches(":focus");i.readOnly&&i.blur(),n||i.focus(),this.hasSelectionRange(i)&&i.setSelectionRange(e,t)},isFormInput(i){return/^(?:input|select|textarea)$/i.test(i.tagName)&&i.type!=="button"},syncAttrsToProps(i){i instanceof HTMLInputElement&&tB.indexOf(i.type.toLocaleLowerCase())>=0&&(i.checked=i.getAttribute("checked")!==null)},isTextualInput(i){return kse.indexOf(i.type)>=0},isNowTriggerFormExternal(i,e){return i.getAttribute&&i.getAttribute(e)!==null},syncPendingRef(i,e,t){let n=i.getAttribute(fs);if(n===null)return!0;let r=i.getAttribute(uu);return hs.isFormInput(i)||i.getAttribute(t)!==null?(hs.isUploadInput(i)&&hs.mergeAttrs(i,e,{isIgnored:!0}),hs.putPrivate(i,fs,e),!1):(YF.forEach(o=>{i.classList.contains(o)&&e.classList.add(o)}),e.setAttribute(fs,n),e.setAttribute(uu,r),!0)},cleanChildNodes(i,e){if(hs.isPhxUpdate(i,e,["append","prepend"])){let t=[];i.childNodes.forEach(n=>{n.id||(n.nodeType===Node.TEXT_NODE&&n.nodeValue.trim()===""||Bo(`only HTML element tags with an id are allowed inside containers with phx-update. -removing illegal node: "${(r.outerHTML||r.nodeValue).trim()}" +removing illegal node: "${(n.outerHTML||n.nodeValue).trim()}" -`),t.push(r))}),t.forEach(r=>r.remove())}},replaceRootContainer(i,e,t){let r=new Set(["id",Jc,xg,Jk,Sg]);if(i.tagName.toLowerCase()===e.toLowerCase())return Array.from(i.attributes).filter(n=>!r.has(n.name.toLowerCase())).forEach(n=>i.removeAttribute(n.name)),Object.keys(t).filter(n=>!r.has(n.toLowerCase())).forEach(n=>i.setAttribute(n,t[n])),i;{let n=document.createElement(e);return Object.keys(t).forEach(o=>n.setAttribute(o,t[o])),r.forEach(o=>n.setAttribute(o,i.getAttribute(o))),n.innerHTML=i.innerHTML,i.replaceWith(n),n}},getSticky(i,e,t){let r=(ns.private(i,"sticky")||[]).find(([n])=>e===n);if(r){let[n,o,s]=r;return s}else return typeof t=="function"?t():t},deleteSticky(i,e){this.updatePrivate(i,"sticky",[],t=>t.filter(([r,n])=>r!==e))},putSticky(i,e,t){let r=t(i);this.updatePrivate(i,"sticky",[],n=>{let o=n.findIndex(([s])=>e===s);return o>=0?n[o]=[e,t,r]:n.push([e,t,r]),n})},applyStickyOperations(i){let e=ns.private(i,"sticky");e&&e.forEach(([t,r,n])=>this.putSticky(i,t,r))}},pe=ns,$k=class{static isActive(i,e){let t=e._phxRef===void 0,n=i.getAttribute(Yk).split(",").indexOf(mn.genFileRef(e))>=0;return e.size>0&&(t||n)}static isPreflighted(i,e){return i.getAttribute(Zk).split(",").indexOf(mn.genFileRef(e))>=0&&this.isActive(i,e)}constructor(i,e,t){this.ref=mn.genFileRef(e),this.fileEl=i,this.file=e,this.view=t,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(Cy,this._onElUpdated)}metadata(){return this.meta}progress(i){this._progress=Math.floor(i),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{mn.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}cancel(){this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(i="failed"){this.fileEl.removeEventListener(Cy,this._onElUpdated),this.view.pushFileProgress(this.fileEl,this.ref,{error:i}),pe.isAutoUpload(this.fileEl)||mn.clearFiles(this.fileEl)}onDone(i){this._onDone=()=>{this.fileEl.removeEventListener(Cy,this._onElUpdated),i()}}onElUpdated(){this.fileEl.getAttribute(Yk).split(",").indexOf(this.ref)===-1&&this.cancel()}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,relative_path:this.file.webkitRelativePath,size:this.file.size,type:this.file.type,ref:this.ref,meta:typeof this.file.meta=="function"?this.file.meta():void 0}}uploader(i){if(this.meta.uploader){let e=i[this.meta.uploader]||Oo(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:e}}else return{name:"channel",callback:ioe}}zipPostFlight(i){this.meta=i.entries[this.ref],this.meta||Oo(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:i})}},roe=0,mn=class{static genFileRef(i){let e=i._phxRef;return e!==void 0?e:(i._phxRef=(roe++).toString(),i._phxRef)}static getEntryDataURL(i,e,t){let r=this.activeFiles(i).find(n=>this.genFileRef(n)===e);t(URL.createObjectURL(r))}static hasUploadsInProgress(i){let e=0;return pe.findUploadInputs(i).forEach(t=>{t.getAttribute(Zk)!==t.getAttribute(Bne)&&e++}),e>0}static serializeUploads(i){let e=this.activeFiles(i),t={};return e.forEach(r=>{let n={path:i.name},o=i.getAttribute(Zc);t[o]=t[o]||[],n.ref=this.genFileRef(r),n.last_modified=r.lastModified,n.name=r.name||n.ref,n.relative_path=r.webkitRelativePath,n.type=r.type,n.size=r.size,typeof r.meta=="function"&&(n.meta=r.meta()),t[o].push(n)}),t}static clearFiles(i){i.value=null,i.removeAttribute(Zc),pe.putPrivate(i,"files",[])}static untrackFile(i,e){pe.putPrivate(i,"files",pe.private(i,"files").filter(t=>!Object.is(t,e)))}static trackFiles(i,e,t){if(i.getAttribute("multiple")!==null){let r=e.filter(n=>!this.activeFiles(i).find(o=>Object.is(o,n)));pe.putPrivate(i,"files",this.activeFiles(i).concat(r)),i.value=null}else t&&t.files.length>0&&(i.files=t.files),pe.putPrivate(i,"files",e)}static activeFileInputs(i){let e=pe.findUploadInputs(i);return Array.from(e).filter(t=>t.files&&this.activeFiles(t).length>0)}static activeFiles(i){return(pe.private(i,"files")||[]).filter(e=>$k.isActive(i,e))}static inputsAwaitingPreflight(i){let e=pe.findUploadInputs(i);return Array.from(e).filter(t=>this.filesAwaitingPreflight(t).length>0)}static filesAwaitingPreflight(i){return this.activeFiles(i).filter(e=>!$k.isPreflighted(i,e))}constructor(i,e,t){this.view=e,this.onComplete=t,this._entries=Array.from(mn.filesAwaitingPreflight(i)||[]).map(r=>new $k(i,r,e)),this.numEntriesInProgress=this._entries.length}entries(){return this._entries}initAdapterUpload(i,e,t){this._entries=this._entries.map(n=>(n.zipPostFlight(i),n.onDone(()=>{this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()}),n));let r=this._entries.reduce((n,o)=>{if(!o.meta)return n;let{name:s,callback:a}=o.uploader(t.uploaders);return n[s]=n[s]||{callback:a,entries:[]},n[s].entries.push(o),n},{});for(let n in r){let{callback:o,entries:s}=r[n];o(s,e,i,t)}}},noe={focusMain(){let i=document.querySelector("main h1, main, h1");if(i){let e=i.tabIndex;i.tabIndex=-1,i.focus(),i.tabIndex=e}},anyOf(i,e){return e.find(t=>i instanceof t)},isFocusable(i,e){return i instanceof HTMLAnchorElement&&i.rel!=="ignore"||i instanceof HTMLAreaElement&&i.href!==void 0||!i.disabled&&this.anyOf(i,[HTMLInputElement,HTMLSelectElement,HTMLTextAreaElement,HTMLButtonElement])||i instanceof HTMLIFrameElement||i.tabIndex>0||!e&&i.tabIndex===0&&i.getAttribute("tabindex")!==null&&i.getAttribute("aria-hidden")!=="true"},attemptFocus(i,e){if(this.isFocusable(i,e))try{i.focus()}catch(t){}return!!document.activeElement&&document.activeElement.isSameNode(i)},focusFirstInteractive(i){let e=i.firstElementChild;for(;e;){if(this.attemptFocus(e,!0)||this.focusFirstInteractive(e,!0))return!0;e=e.nextElementSibling}},focusFirst(i){let e=i.firstElementChild;for(;e;){if(this.attemptFocus(e)||this.focusFirst(e))return!0;e=e.nextElementSibling}},focusLast(i){let e=i.lastElementChild;for(;e;){if(this.attemptFocus(e)||this.focusLast(e))return!0;e=e.previousElementSibling}}},If=noe,oB={LiveFileUpload:{activeRefs(){return this.el.getAttribute(Yk)},preflightedRefs(){return this.el.getAttribute(Zk)},mounted(){this.preflightedWas=this.preflightedRefs()},updated(){let i=this.preflightedRefs();this.preflightedWas!==i&&(this.preflightedWas=i,i===""&&this.__view.cancelSubmit(this.el.form)),this.activeRefs()===""&&(this.el.value=null),this.el.dispatchEvent(new CustomEvent(Cy))}},LiveImgPreview:{mounted(){this.ref=this.el.getAttribute("data-phx-entry-ref"),this.inputEl=document.getElementById(this.el.getAttribute(Zc)),mn.getEntryDataURL(this.inputEl,this.ref,i=>{this.url=i,this.el.src=i})},destroyed(){URL.revokeObjectURL(this.url)}},FocusWrap:{mounted(){this.focusStart=this.el.firstElementChild,this.focusEnd=this.el.lastElementChild,this.focusStart.addEventListener("focus",()=>If.focusLast(this.el)),this.focusEnd.addEventListener("focus",()=>If.focusFirst(this.el)),this.el.addEventListener("phx:show-end",()=>this.el.focus()),window.getComputedStyle(this.el).display!=="none"&&If.focusFirst(this.el)}}},Hz=()=>document.documentElement.scrollTop||document.body.scrollTop,eE=()=>window.innerHeight||document.documentElement.clientHeight,ooe=i=>{let e=i.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.top<=eE()},soe=i=>{let e=i.getBoundingClientRect();return e.right>=0&&e.left>=0&&e.bottom<=eE()},Uz=i=>{let e=i.getBoundingClientRect();return e.top>=0&&e.left>=0&&e.top<=eE()};oB.InfiniteScroll={mounted(){let i=Hz(),e=!1,t=500,r=null,n=this.throttle(t,(a,l)=>{r=()=>!0,this.liveSocket.execJSHookPush(this.el,a,{id:l.id,_overran:!0},()=>{r=null})}),o=this.throttle(t,(a,l)=>{r=()=>l.scrollIntoView({block:"start"}),this.liveSocket.execJSHookPush(this.el,a,{id:l.id},()=>{r=null,Uz(l)||l.scrollIntoView({block:"start"})})}),s=this.throttle(t,(a,l)=>{r=()=>l.scrollIntoView({block:"end"}),this.liveSocket.execJSHookPush(this.el,a,{id:l.id},()=>{r=null,Uz(l)||l.scrollIntoView({block:"end"})})});this.onScroll=a=>{let l=Hz();if(r)return i=l,r();let c=this.el.getBoundingClientRect(),d=this.el.getAttribute(this.liveSocket.binding("viewport-top")),u=this.el.getAttribute(this.liveSocket.binding("viewport-bottom")),h=this.el.lastElementChild,f=this.el.firstElementChild,m=li;m&&d&&!e&&c.top>=0?(e=!0,n(d,f)):g&&e&&c.top<=0&&(e=!1),d&&m&&ooe(f)?o(d,f):u&&g&&soe(h)&&s(u,h),i=l},window.addEventListener("scroll",this.onScroll)},destroyed(){window.removeEventListener("scroll",this.onScroll)},throttle(i,e){let t=0,r;return(...n)=>{let o=Date.now(),s=i-(o-t);s<=0||s>i?(r&&(clearTimeout(r),r=null),t=o,e(...n)):r||(r=setTimeout(()=>{t=Date.now(),r=null,e(...n)},s))}}};var aoe=oB,loe=class{constructor(i,e,t){let r=new Set,n=new Set([...e.children].map(s=>s.id)),o=[];Array.from(i.children).forEach(s=>{if(s.id&&(r.add(s.id),n.has(s.id))){let a=s.previousElementSibling&&s.previousElementSibling.id;o.push({elementId:s.id,previousElementId:a})}}),this.containerId=e.id,this.updateType=t,this.elementsToModify=o,this.elementIdsToAdd=[...n].filter(s=>!r.has(s))}perform(){let i=pe.byId(this.containerId);this.elementsToModify.forEach(e=>{e.previousElementId?Qc(document.getElementById(e.previousElementId),t=>{Qc(document.getElementById(e.elementId),r=>{r.previousElementSibling&&r.previousElementSibling.id==t.id||t.insertAdjacentElement("afterend",r)})}):Qc(document.getElementById(e.elementId),t=>{t.previousElementSibling==null||i.insertAdjacentElement("afterbegin",t)})}),this.updateType=="prepend"&&this.elementIdsToAdd.reverse().forEach(e=>{Qc(document.getElementById(e),t=>i.insertAdjacentElement("afterbegin",t))})}},jz=11;function coe(i,e){var t=e.attributes,r,n,o,s,a;if(!(e.nodeType===jz||i.nodeType===jz)){for(var l=t.length-1;l>=0;l--)r=t[l],n=r.name,o=r.namespaceURI,s=r.value,o?(n=r.localName||n,a=i.getAttributeNS(o,n),a!==s&&(r.prefix==="xmlns"&&(n=r.name),i.setAttributeNS(o,n,s))):(a=i.getAttribute(n),a!==s&&i.setAttribute(n,s));for(var c=i.attributes,d=c.length-1;d>=0;d--)r=c[d],n=r.name,o=r.namespaceURI,o?(n=r.localName||n,e.hasAttributeNS(o,n)||i.removeAttributeNS(o,n)):e.hasAttribute(n)||i.removeAttribute(n)}}var vy,doe="http://www.w3.org/1999/xhtml",lo=typeof document=="undefined"?void 0:document,uoe=!!lo&&"content"in lo.createElement("template"),hoe=!!lo&&lo.createRange&&"createContextualFragment"in lo.createRange();function foe(i){var e=lo.createElement("template");return e.innerHTML=i,e.content.childNodes[0]}function poe(i){vy||(vy=lo.createRange(),vy.selectNode(lo.body));var e=vy.createContextualFragment(i);return e.childNodes[0]}function moe(i){var e=lo.createElement("body");return e.innerHTML=i,e.childNodes[0]}function goe(i){return i=i.trim(),uoe?foe(i):hoe?poe(i):moe(i)}function _y(i,e){var t=i.nodeName,r=e.nodeName,n,o;return t===r?!0:(n=t.charCodeAt(0),o=r.charCodeAt(0),n<=90&&o>=97?t===r.toUpperCase():o<=90&&n>=97?r===t.toUpperCase():!1)}function boe(i,e){return!e||e===doe?lo.createElement(i):lo.createElementNS(e,i)}function voe(i,e){for(var t=i.firstChild;t;){var r=t.nextSibling;e.appendChild(t),t=r}return e}function Gk(i,e,t){i[t]!==e[t]&&(i[t]=e[t],i[t]?i.setAttribute(t,""):i.removeAttribute(t))}var Wz={OPTION:function(i,e){var t=i.parentNode;if(t){var r=t.nodeName.toUpperCase();r==="OPTGROUP"&&(t=t.parentNode,r=t&&t.nodeName.toUpperCase()),r==="SELECT"&&!t.hasAttribute("multiple")&&(i.hasAttribute("selected")&&!e.selected&&(i.setAttribute("selected","selected"),i.removeAttribute("selected")),t.selectedIndex=-1)}Gk(i,e,"selected")},INPUT:function(i,e){Gk(i,e,"checked"),Gk(i,e,"disabled"),i.value!==e.value&&(i.value=e.value),e.hasAttribute("value")||i.removeAttribute("value")},TEXTAREA:function(i,e){var t=e.value;i.value!==t&&(i.value=t);var r=i.firstChild;if(r){var n=r.nodeValue;if(n==t||!t&&n==i.placeholder)return;r.nodeValue=t}},SELECT:function(i,e){if(!e.hasAttribute("multiple")){for(var t=-1,r=0,n=i.firstChild,o,s;n;)if(s=n.nodeName&&n.nodeName.toUpperCase(),s==="OPTGROUP")o=n,n=o.firstChild;else{if(s==="OPTION"){if(n.hasAttribute("selected")){t=r;break}r++}n=n.nextSibling,!n&&o&&(n=o.nextSibling,o=null)}i.selectedIndex=t}}},yg=1,Vz=11,qz=3,Kz=8;function Xc(){}function _oe(i){if(i)return i.getAttribute&&i.getAttribute("id")||i.id}function yoe(i){return function(t,r,n){if(n||(n={}),typeof r=="string")if(t.nodeName==="#document"||t.nodeName==="HTML"||t.nodeName==="BODY"){var o=r;r=lo.createElement("html"),r.innerHTML=o}else r=goe(r);else r.nodeType===Vz&&(r=r.firstElementChild);var s=n.getNodeKey||_oe,a=n.onBeforeNodeAdded||Xc,l=n.onNodeAdded||Xc,c=n.onBeforeElUpdated||Xc,d=n.onElUpdated||Xc,u=n.onBeforeNodeDiscarded||Xc,h=n.onNodeDiscarded||Xc,f=n.onBeforeElChildrenUpdated||Xc,m=n.skipFromChildren||Xc,g=n.addChild||function(be,we){return be.appendChild(we)},w=n.childrenOnly===!0,_=Object.create(null),E=[];function L(be){E.push(be)}function A(be,we){if(be.nodeType===yg)for(var X=be.firstChild;X;){var R=void 0;we&&(R=s(X))?L(R):(h(X),X.firstChild&&A(X,we)),X=X.nextSibling}}function O(be,we,X){u(be)!==!1&&(we&&we.removeChild(be),h(be),A(be,X))}function U(be){if(be.nodeType===yg||be.nodeType===Vz)for(var we=be.firstChild;we;){var X=s(we);X&&(_[X]=we),U(we),we=we.nextSibling}}U(t);function Y(be){l(be);for(var we=be.firstChild;we;){var X=we.nextSibling,R=s(we);if(R){var ne=_[R];ne&&_y(we,ne)?(we.parentNode.replaceChild(ne,we),te(ne,we)):Y(we)}else Y(we);we=X}}function oe(be,we,X){for(;we;){var R=we.nextSibling;(X=s(we))?L(X):O(we,be,!0),we=R}}function te(be,we,X){var R=s(we);R&&delete _[R],!(!X&&(c(be,we)===!1||(i(be,we),d(be),f(be,we)===!1)))&&(be.nodeName!=="TEXTAREA"?Z(be,we):Wz.TEXTAREA(be,we))}function Z(be,we){var X=m(be),R=we.firstChild,ne=be.firstChild,me,G,Tt,Ft,li;e:for(;R;){for(Ft=R.nextSibling,me=s(R);!X&≠){if(Tt=ne.nextSibling,R.isSameNode&&R.isSameNode(ne)){R=Ft,ne=Tt;continue e}G=s(ne);var Ai=ne.nodeType,Et=void 0;if(Ai===R.nodeType&&(Ai===yg?(me?me!==G&&((li=_[me])?Tt===li?Et=!1:(be.insertBefore(li,ne),G?L(G):O(ne,be,!0),ne=li):Et=!1):G&&(Et=!1),Et=Et!==!1&&_y(ne,R),Et&&te(ne,R)):(Ai===qz||Ai==Kz)&&(Et=!0,ne.nodeValue!==R.nodeValue&&(ne.nodeValue=R.nodeValue))),Et){R=Ft,ne=Tt;continue e}G?L(G):O(ne,be,!0),ne=Tt}if(me&&(li=_[me])&&_y(li,R))X||g(be,li),te(li,R);else{var Ii=a(R);Ii!==!1&&(Ii&&(R=Ii),R.actualize&&(R=R.actualize(be.ownerDocument||lo)),g(be,R),Y(R))}R=Ft,ne=Tt}oe(be,ne,G);var pi=Wz[be.nodeName];pi&&pi(be,we)}var ve=t,Pe=ve.nodeType,Ee=r.nodeType;if(!w){if(Pe===yg)Ee===yg?_y(t,r)||(h(t),ve=voe(t,boe(r.nodeName,r.namespaceURI))):ve=r;else if(Pe===qz||Pe===Kz){if(Ee===Pe)return ve.nodeValue!==r.nodeValue&&(ve.nodeValue=r.nodeValue),ve;ve=r}}if(ve===r)h(t);else{if(r.isSameNode&&r.isSameNode(ve))return;if(te(ve,r,w),E)for(var Oe=0,Xe=E.length;Oe{if(t&&t.isSameNode(r)&&pe.isFormInput(r))return pe.mergeFocusedInput(r,n),!1}})}constructor(i,e,t,r,n,o){this.view=i,this.liveSocket=i.liveSocket,this.container=e,this.id=t,this.rootID=i.root.id,this.html=r,this.streams=n,this.streamInserts={},this.targetCID=o,this.cidPatch=Al(this.targetCID),this.pendingRemoves=[],this.phxRemove=this.liveSocket.binding("remove"),this.callbacks={beforeadded:[],beforeupdated:[],beforephxChildAdded:[],afteradded:[],afterupdated:[],afterdiscarded:[],afterphxChildAdded:[],aftertransitionsDiscarded:[]}}before(i,e){this.callbacks[`before${i}`].push(e)}after(i,e){this.callbacks[`after${i}`].push(e)}trackBefore(i,...e){this.callbacks[`before${i}`].forEach(t=>t(...e))}trackAfter(i,...e){this.callbacks[`after${i}`].forEach(t=>t(...e))}markPrunableContentForRemoval(){let i=this.liveSocket.binding(Ty);pe.all(this.container,`[${i}=${py}]`,e=>e.innerHTML=""),pe.all(this.container,`[${i}=append] > *, [${i}=prepend] > *`,e=>{e.setAttribute(Tz,"")})}perform(i){let{view:e,liveSocket:t,container:r,html:n}=this,o=this.isCIDPatch()?this.targetCIDContainer(n):r;if(this.isCIDPatch()&&!o)return;let s=t.getActiveElement(),{selectionStart:a,selectionEnd:l}=s&&pe.hasSelectionRange(s)?s:{},c=t.binding(Ty),d=t.binding(ky),u=t.binding(Qk),h=t.binding(tB),f=t.binding(iB),m=t.binding(Hne),g=[],w=[],_=[],E=[],L=null;return this.trackBefore("added",r),this.trackBefore("updated",r,r),t.time("morphdom",()=>{this.streams.forEach(([A,O,U,Y])=>{Object.entries(O).forEach(([oe,[te,Z]])=>{this.streamInserts[oe]={ref:A,streamAt:te,limit:Z,resetKept:!1}}),Y!==void 0&&pe.all(r,`[${bg}="${A}"]`,oe=>{O[oe.id]?this.streamInserts[oe.id].resetKept=!0:this.removeStreamChildElement(oe)}),U.forEach(oe=>{let te=r.querySelector(`[id="${oe}"]`);te&&this.removeStreamChildElement(te)})}),$z(o,n,{childrenOnly:o.getAttribute(Ll)===null,getNodeKey:A=>pe.isPhxDestroyed(A)?null:i?A.id:A.id||A.getAttribute&&A.getAttribute(eB),skipFromChildren:A=>A.getAttribute(c)===py,addChild:(A,O)=>{let{ref:U,streamAt:Y,limit:oe}=this.getStreamInsert(O);if(U===void 0)return A.appendChild(O);if(pe.putSticky(O,bg,ve=>ve.setAttribute(bg,U)),Y===0)A.insertAdjacentElement("afterbegin",O);else if(Y===-1)A.appendChild(O);else if(Y>0){let ve=Array.from(A.children)[Y];A.insertBefore(O,ve)}let te=oe!==null&&Array.from(A.children),Z=[];oe&&oe<0&&te.length>oe*-1?Z=te.slice(0,te.length+oe):oe&&oe>=0&&te.length>oe&&(Z=te.slice(oe)),Z.forEach(ve=>{this.streamInserts[ve.id]||this.removeStreamChildElement(ve)})},onBeforeNodeAdded:A=>(pe.maybeAddPrivateHooks(A,h,f),this.trackBefore("added",A),A),onNodeAdded:A=>{A.getAttribute&&this.maybeReOrderStream(A),A instanceof HTMLImageElement&&A.srcset?A.srcset=A.srcset:A instanceof HTMLVideoElement&&A.autoplay&&A.play(),pe.isNowTriggerFormExternal(A,m)&&(L=A),A.getAttribute&&A.getAttribute("name")&&pe.isFormInput(A)&&w.push(A),(pe.isPhxChild(A)&&e.ownsElement(A)||pe.isPhxSticky(A)&&e.ownsElement(A.parentNode))&&this.trackAfter("phxChildAdded",A),g.push(A)},onBeforeElChildrenUpdated:(A,O)=>{if(A.getAttribute(c)===py){let U=Array.from(O.children).map(Y=>Y.id);Array.from(A.children).filter(Y=>{let{resetKept:oe}=this.getStreamInsert(Y);return oe}).sort((Y,oe)=>{let te=U.indexOf(Y.id),Z=U.indexOf(oe.id);return te===Z?0:teA.appendChild(Y))}},onNodeDiscarded:A=>this.onNodeDiscarded(A),onBeforeNodeDiscarded:A=>A.getAttribute&&A.getAttribute(Tz)!==null?!0:!(A.parentElement!==null&&A.id&&pe.isPhxUpdate(A.parentElement,c,[py,"append","prepend"])||this.maybePendingRemove(A)||this.skipCIDSibling(A)),onElUpdated:A=>{pe.isNowTriggerFormExternal(A,m)&&(L=A),_.push(A),this.maybeReOrderStream(A)},onBeforeElUpdated:(A,O)=>{if(pe.maybeAddPrivateHooks(O,h,f),pe.cleanChildNodes(O,c),this.skipCIDSibling(O)||pe.isPhxSticky(A))return!1;if(pe.isIgnored(A,c)||A.form&&A.form.isSameNode(L))return this.trackBefore("updated",A,O),pe.mergeAttrs(A,O,{isIgnored:!0}),_.push(A),pe.applyStickyOperations(A),!1;if(A.type==="number"&&A.validity&&A.validity.badInput)return!1;if(!pe.syncPendingRef(A,O,u))return pe.isUploadInput(A)&&(this.trackBefore("updated",A,O),_.push(A)),pe.applyStickyOperations(A),!1;if(pe.isPhxChild(O)){let Y=A.getAttribute(Jc);return pe.mergeAttrs(A,O,{exclude:[xg]}),Y!==""&&A.setAttribute(Jc,Y),A.setAttribute(Sg,this.rootID),pe.applyStickyOperations(A),!1}return pe.copyPrivates(O,A),s&&A.isSameNode(s)&&pe.isFormInput(A)&&A.type!=="hidden"?(this.trackBefore("updated",A,O),pe.mergeFocusedInput(A,O),pe.syncAttrsToProps(A),_.push(A),pe.applyStickyOperations(A),w.push(A),!1):(pe.isPhxUpdate(O,c,["append","prepend"])&&E.push(new loe(A,O,O.getAttribute(c))),pe.syncAttrsToProps(O),pe.applyStickyOperations(O),O.getAttribute("name")&&pe.isFormInput(O)&&w.push(O),this.trackBefore("updated",A,O),!0)}})}),t.isDebugEnabled()&&Jne(),E.length>0&&t.time("post-morph append/prepend restoration",()=>{E.forEach(A=>A.perform())}),w.forEach(A=>{pe.maybeHideFeedback(o,A,d)}),t.silenceEvents(()=>pe.restoreFocus(s,a,l)),pe.dispatchEvent(document,"phx:update"),g.forEach(A=>this.trackAfter("added",A)),_.forEach(A=>this.trackAfter("updated",A)),this.transitionPendingRemoves(),L&&(t.unload(),Object.getPrototypeOf(L).submit.call(L)),!0}onNodeDiscarded(i){(pe.isPhxChild(i)||pe.isPhxSticky(i))&&this.liveSocket.destroyViewByEl(i),this.trackAfter("discarded",i)}maybePendingRemove(i){return i.getAttribute&&i.getAttribute(this.phxRemove)!==null?(this.pendingRemoves.push(i),!0):!1}removeStreamChildElement(i){this.maybePendingRemove(i)||(i.remove(),this.onNodeDiscarded(i))}getStreamInsert(i){return(i.id?this.streamInserts[i.id]:{})||{}}maybeReOrderStream(i){let{ref:e,streamAt:t,limit:r}=this.getStreamInsert(i);if(t!==void 0){if(pe.putSticky(i,bg,n=>n.setAttribute(bg,e)),t===0)i.parentElement.insertBefore(i,i.parentElement.firstElementChild);else if(t>0){let n=Array.from(i.parentElement.children),o=n.indexOf(i);if(t>=n.length-1)i.parentElement.appendChild(i);else{let s=n[t];o>t?i.parentElement.insertBefore(i,s):i.parentElement.insertBefore(i,s.nextElementSibling)}}}}transitionPendingRemoves(){let{pendingRemoves:i,liveSocket:e}=this;i.length>0&&(e.transitionRemoves(i),e.requestDOMUpdate(()=>{i.forEach(t=>{let r=pe.firstPhxChild(t);r&&e.destroyViewByEl(r),t.remove()}),this.trackAfter("transitionsDiscarded",i)}))}isCIDPatch(){return this.cidPatch}skipCIDSibling(i){return i.nodeType===Node.ELEMENT_NODE&&i.hasAttribute(Jz)}targetCIDContainer(i){if(!this.isCIDPatch())return;let[e,...t]=pe.findComponentNodeList(this.container,this.targetCID);return t.length===0&&pe.childNodeLength(i)===1?e:e&&e.parentNode}indexOf(i,e){return Array.from(i.children).indexOf(e)}},xoe=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),Coe=new Set([">","/"," ",` -`," ","\r"]),Soe=new Set(["'",'"']),Gz=(i,e,t)=>{let r=0,n=!1,o,s,a,l,c,d;for(;r"?(n=!1,r+=3):r++;else if(f==="<"&&i.slice(r,r+4)===""?(r=!1,n+=3):n++;else if(p==="<"&&i.slice(n,n+4)===" + +`}return` + +`}}var Dle=/\r?\n|\r/g;function o4(i,e){let t=[],n=0,r=0,o;for(;o=Dle.exec(i);)s(i.slice(n,o.index)),t.push(o[0]),n=o.index+o[0].length,r++;return s(i.slice(n)),t.join("");function s(a){t.push(e(a,r,!a))}}function s4(i){if(!i._compiled){let e=(i.atBreak?"[\\r\\n][\\t ]*":"")+(i.before?"(?:"+i.before+")":"");i._compiled=new RegExp((e?"("+e+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(i.character)?"\\":"")+i.character+(i.after?"(?:"+i.after+")":""),"g")}return i._compiled}function cH(i,e){return lH(i,e.inConstruct,!0)&&!lH(i,e.notInConstruct,!1)}function lH(i,e,t){if(!e)return t;typeof e=="string"&&(e=[e]);let n=-1;for(;++n=c||d+10?" ":"")),a.shift(4),l+=a.move(o4(r4(n,o,a.current()),u)),c(),l;function u(h,p,m){return p?(m?"":" ")+h:h}}}function a4(i,e,t){let n=e.indexStack,r=i.children||[],o=[],s=-1,a=t.before;n.push(-1);let l=Pr(t);for(;++s0&&(a==="\r"||a===` +`)&&c.type==="html"&&(o[o.length-1]=o[o.length-1].replace(/(\r?\n|\r)$/," "),a=" ",l=Pr(t),l.move(o.join(""))),o.push(l.move(e.handle(c,i,e,Pt(De({},l.current()),{before:a,after:d})))),a=o[o.length-1].slice(-1)}return n.pop(),o.join("")}var fH={canContainEols:["delete"],enter:{strikethrough:Rle},exit:{strikethrough:Ole}},pH={unsafe:[{character:"~",inConstruct:"phrasing"}],handlers:{delete:mH}};mH.peek=Ple;function Rle(i){this.enter({type:"delete",children:[]},i)}function Ole(i){this.exit(i)}function mH(i,e,t,n){let r=Pr(n),o=t.enter("emphasis"),s=r.move("~~");return s+=a4(i,t,Pt(De({},r.current()),{before:s,after:"~"})),s+=r.move("~~"),o(),s}function Ple(){return"~"}G3.peek=Fle;function G3(i,e,t){let n=i.value||"",r="`",o=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(n);)r+="`";for(/[^ \r\n]/.test(n)&&(/^[ \r\n]/.test(n)&&/[ \r\n]$/.test(n)||/^`|`$/.test(n))&&(n=" "+n+" ");++ol&&(l=i[c].length);++ba[b])&&(a[b]=k)}m.push(S)}o[c]=m,s[c]=g}let d=-1;if(typeof t=="object"&&"length"in t)for(;++da[d]&&(a[d]=S),h[d]=S),u[d]=k}o.splice(1,0,u),s.splice(1,0,h),c=-1;let p=[];for(;++ct==="none"?null:t),children:[]},i),this.setData("inTable",!0)}function Ule(i){this.exit(i),this.setData("inTable")}function jle(i){this.enter({type:"tableRow",children:[]},i)}function $3(i){this.exit(i)}function _H(i){this.enter({type:"tableCell",children:[]},i)}function Wle(i){let e=this.resume();this.getData("inTable")&&(e=e.replace(/\\([\\|])/g,Vle));let t=this.stack[this.stack.length-1];t.value=e,this.exit(i)}function Vle(i,e){return e==="|"?e:i}function X3(i){let e=i||{},t=e.tableCellPadding,n=e.tablePipeAlign,r=e.stringLength,o=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{table:s,tableRow:a,tableCell:l,inlineCode:h}};function s(p,m,g,b){return c(d(p,g,b),p.align)}function a(p,m,g,b){let S=u(p,g,b),k=c([S]);return k.slice(0,k.indexOf(` +`))}function l(p,m,g,b){let S=g.enter("tableCell"),k=g.enter("phrasing"),N=a4(p,g,Pt(De({},b),{before:o,after:o}));return k(),S(),N}function c(p,m){return vH(p,{align:m,alignDelimiters:n,padding:t,stringLength:r})}function d(p,m,g){let b=p.children,S=-1,k=[],N=m.enter("table");for(;++S-1?e.start:1)+(t.options.incrementListMarker===!1?0:e.children.indexOf(i))+o);let s=o.length+1;(r==="tab"||r==="mixed"&&(e&&e.type==="list"&&e.spread||i.spread))&&(s=Math.ceil(s/4)*4);let a=Pr(n);a.move(o+" ".repeat(s-o.length)),a.shift(s);let l=t.enter("listItem"),c=o4(r4(i,t,a.current()),d);return l(),c;function d(u,h,p){return h?(p?"":" ".repeat(s))+u:(p?o:o+" ".repeat(s-o.length))+u}}var wH={exit:{taskListCheckValueChecked:SH,taskListCheckValueUnchecked:SH,paragraph:Kle}},xH={unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qle}};function SH(i){let e=this.stack[this.stack.length-2];e.checked=i.type==="taskListCheckValueChecked"}function Kle(i){let e=this.stack[this.stack.length-2],t=this.stack[this.stack.length-1],n=e.children,r=t.children[0],o=-1,s;if(e&&e.type==="listItem"&&typeof e.checked=="boolean"&&r&&r.type==="text"){for(;++os&&(s=o):o=1,r=n+1,n=t.indexOf(e,r);return s}function IH(){return{enter:{mathFlow:i,mathFlowFenceMeta:e,mathText:o},exit:{mathFlow:r,mathFlowFence:n,mathFlowFenceMeta:t,mathFlowValue:a,mathText:s,mathTextData:a}};function i(l){this.enter({type:"math",meta:null,value:"",data:{hName:"div",hProperties:{className:["math","math-display"]},hChildren:[{type:"text",value:""}]}},l)}function e(){this.buffer()}function t(){let l=this.resume(),c=this.stack[this.stack.length-1];c.meta=l}function n(){this.getData("mathFlowInside")||(this.buffer(),this.setData("mathFlowInside",!0))}function r(l){let c=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),d=this.exit(l);d.value=c,d.data.hChildren[0].value=c,this.setData("mathFlowInside")}function o(l){this.enter({type:"inlineMath",value:"",data:{hName:"span",hProperties:{className:["math","math-inline"]},hChildren:[{type:"text",value:""}]}},l),this.buffer()}function s(l){let c=this.resume(),d=this.exit(l);d.value=c,d.data.hChildren[0].value=c}function a(l){this.config.enter.data.call(this,l),this.config.exit.data.call(this,l)}}function AH(i={}){let e=i.singleDollarTextMath;return e==null&&(e=!0),n.peek=r,{unsafe:[{character:"\r",inConstruct:["mathFlowMeta"]},{character:"\r",inConstruct:["mathFlowMeta"]},e?{character:"$",inConstruct:["mathFlowMeta","phrasing"]}:{character:"$",after:"\\$",inConstruct:["mathFlowMeta","phrasing"]},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:t,inlineMath:n}};function t(o,s,a,l){let c=o.value||"",d="$".repeat(Math.max(kH(c,"$")+1,2)),u=a.enter("mathFlow"),h=Pr(l),p=h.move(d);if(o.meta){let m=a.enter("mathFlowMeta");p+=h.move(E1(a,o.meta,Pt(De({},h.current()),{before:p,after:" ",encode:["$"]}))),m()}return p+=h.move(` +`),c&&(p+=h.move(c+` +`)),p+=h.move(d),u(),p}function n(o){let s=o.value||"",a=1,l="";for(e||a++;new RegExp("(^|[^$])"+"\\$".repeat(a)+"([^$]|$)").test(s);)a++;/[^ \r\n]/.test(s)&&(/[ \r\n$]/.test(s.charAt(0))||/[ \r\n$]/.test(s.charAt(s.length-1)))&&(l=" ");let c="$".repeat(a);return c+l+s+l+c}function r(){return"$"}}function tx(i={}){let e=this.data();t("micromarkExtensions",ex(i)),t("fromMarkdownExtensions",IH()),t("toMarkdownExtensions",AH(i));function t(n,r){(e[n]?e[n]:e[n]=[]).push(r)}}var hi=function(i,e,t){var n={type:String(i)};return t==null&&(typeof e=="string"||Array.isArray(e))?t=e:Object.assign(n,e),Array.isArray(t)?n.children=t:t!=null&&(n.value=String(t)),n};var l4={}.hasOwnProperty;function Jle(i,e){let t=e.data||{};return"value"in e&&!(l4.call(t,"hName")||l4.call(t,"hProperties")||l4.call(t,"hChildren"))?i.augment(e,hi("text",e.value)):i(e,"div",bi(i,e))}function ix(i,e,t){let n=e&&e.type,r;if(!n)throw new Error("Expected node, got `"+e+"`");return l4.call(i.handlers,n)?r=i.handlers[n]:i.passThrough&&i.passThrough.includes(n)?r=Zle:r=i.unknownHandler,(typeof r=="function"?r:Jle)(i,e,t)}function Zle(i,e){return"children"in e?Pt(De({},e),{children:bi(i,e)}):e}function bi(i,e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r":""))+")"})),h;function h(){let p=[],m,g,b;if((!e||r(a,l,c[c.length-1]||null))&&(p=ece(t(a,c)),p[0]===nx))return p;if(a.children&&p[0]!==MH)for(g=(n?a.children.length:-1)+o,b=c.concat(a);g>-1&&g-1?n.offset:null}}}function RH(i){return!i||!i.position||!i.position.start||!i.position.start.line||!i.position.start.column||!i.position.end||!i.position.end.line||!i.position.end.column}var OH=function(i,e,t,n){typeof e=="function"&&typeof t!="function"&&(n=t,t=e,e=null),n4(i,e,r,n);function r(o,s){var a=s[s.length-1];return t(o,a?a.children.indexOf(o):null,a)}};var PH={}.hasOwnProperty;function BH(i){let e=Object.create(null);if(!i||!i.type)throw new Error("mdast-util-definitions expected node");return OH(i,"definition",t),n;function t(r){let o=FH(r.identifier);o&&!PH.call(e,o)&&(e[o]=r)}function n(r){let o=FH(r);return o&&PH.call(e,o)?e[o]:null}}function FH(i){return String(i||"").toUpperCase()}function ho(i,e){let t=[],n=-1;for(e&&t.push(hi("text",` +`));++n0&&t.push(hi("text",` +`)),t}function HH(i){let e=-1,t=[];for(;++e1?"-"+a:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:i.footnoteBackLabel},children:[{type:"text",value:"\u21A9"}]};a>1&&u.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(a)}]}),l.length>0&&l.push({type:"text",value:" "}),l.push(u)}let c=r[r.length-1];if(c&&c.type==="element"&&c.tagName==="p"){let u=c.children[c.children.length-1];u&&u.type==="text"?u.value+=" ":c.children.push({type:"text",value:" "}),c.children.push(...l)}else r.push(...l);let d={type:"element",tagName:"li",properties:{id:i.clobberPrefix+"fn-"+s},children:ho(r,!0)};n.position&&(d.position=n.position),t.push(d)}return t.length===0?null:{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:"h2",properties:{id:"footnote-label",className:["sr-only"]},children:[hi("text",i.footnoteLabel)]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:ho(t,!0)},{type:"text",value:` +`}]}}function zH(i,e){return i(e,"blockquote",ho(bi(i,e),!0))}function UH(i,e){return[i(e,"br"),hi("text",` +`)]}function jH(i,e){let t=e.value?e.value+` +`:"",n=e.lang&&e.lang.match(/^[^ \t]+(?=[ \t]|$)/),r={};n&&(r.className=["language-"+n]);let o=i(e,"code",r,[hi("text",t)]);return e.meta&&(o.data={meta:e.meta}),i(e.position,"pre",[o])}function WH(i,e){return i(e,"del",bi(i,e))}function VH(i,e){return i(e,"em",bi(i,e))}function c4(i,e){let t=String(e.identifier),n=t4(t.toLowerCase()),r=i.footnoteOrder.indexOf(t),o;r===-1?(i.footnoteOrder.push(t),i.footnoteCounts[t]=1,o=i.footnoteOrder.length):(i.footnoteCounts[t]++,o=r+1);let s=i.footnoteCounts[t];return i(e,"sup",[i(e.position,"a",{href:"#"+i.clobberPrefix+"fn-"+n,id:i.clobberPrefix+"fnref-"+n+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:"footnote-label"},[hi("text",String(o))])])}function KH(i,e){let t=i.footnoteById,n=1;for(;n in t;)n++;let r=String(n);return t[r]={type:"footnoteDefinition",identifier:r,children:[{type:"paragraph",children:e.children}],position:e.position},c4(i,{type:"footnoteReference",identifier:r,position:e.position})}function qH(i,e){return i(e,"h"+e.depth,bi(i,e))}function GH(i,e){return i.dangerous?i.augment(e,hi("raw",e.value)):null}var XH=Bi(T1(),1);function u4(i,e){let t=e.referenceType,n="]";if(t==="collapsed"?n+="[]":t==="full"&&(n+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return hi("text","!["+e.alt+n);let r=bi(i,e),o=r[0];o&&o.type==="text"?o.value="["+o.value:r.unshift(hi("text","["));let s=r[r.length-1];return s&&s.type==="text"?s.value+=n:r.push(hi("text",n)),r}function QH(i,e){let t=i.definition(e.identifier);if(!t)return u4(i,e);let n={src:(0,XH.default)(t.url||""),alt:e.alt};return t.title!==null&&t.title!==void 0&&(n.title=t.title),i(e,"img",n)}var JH=Bi(T1(),1);function ZH(i,e){let t={src:(0,JH.default)(e.url),alt:e.alt};return e.title!==null&&e.title!==void 0&&(t.title=e.title),i(e,"img",t)}function ez(i,e){return i(e,"code",[hi("text",e.value.replace(/\r?\n|\r/g," "))])}var tz=Bi(T1(),1);function iz(i,e){let t=i.definition(e.identifier);if(!t)return u4(i,e);let n={href:(0,tz.default)(t.url||"")};return t.title!==null&&t.title!==void 0&&(n.title=t.title),i(e,"a",n,bi(i,e))}var nz=Bi(T1(),1);function rz(i,e){let t={href:(0,nz.default)(e.url)};return e.title!==null&&e.title!==void 0&&(t.title=e.title),i(e,"a",t,bi(i,e))}function oz(i,e,t){let n=bi(i,e),r=t?ice(t):sz(e),o={},s=[];if(typeof e.checked=="boolean"){let c;n[0]&&n[0].type==="element"&&n[0].tagName==="p"?c=n[0]:(c=i(null,"p",[]),n.unshift(c)),c.children.length>0&&c.children.unshift(hi("text"," ")),c.children.unshift(i(null,"input",{type:"checkbox",checked:e.checked,disabled:!0})),o.className=["task-list-item"]}let a=-1;for(;++a1:e}function az(i,e){let t={},n=e.ordered?"ol":"ul",r=bi(i,e),o=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++o{let l=String(a.identifier).toUpperCase();nce.call(r,l)||(r[l]=a)}),s;function o(a,l){if(a&&"data"in a&&a.data){let c=a.data;c.hName&&(l.type!=="element"&&(l={type:"element",tagName:"",properties:{},children:[]}),l.tagName=c.hName),l.type==="element"&&c.hProperties&&(l.properties=De(De({},l.properties),c.hProperties)),"children"in l&&l.children&&c.hChildren&&(l.children=c.hChildren)}if(a){let c="type"in a?a:{position:a};RH(c)||(l.position={start:pu(c),end:kf(c)})}return l}function s(a,l,c,d){return Array.isArray(c)&&(d=c,c={}),o(a,{type:"element",tagName:l,properties:c||{},children:d||[]})}}function f4(i,e){let t=rce(i,e),n=ix(t,i,null),r=HH(t);return r&&n.children.push(hi("text",` +`),r),Array.isArray(n)?{type:"root",children:n}:n}var oce=function(i,e){return i&&"run"in i?sce(i,e):ace(i||e)},ox=oce;function sce(i,e){return(t,n,r)=>{i.run(f4(t,e),n,o=>{r(o)})}}function ace(i){return e=>f4(e,i)}var Yj=Bi(Wx(),1);var Kl=class{constructor(e,t,n){this.property=e,this.normal=t,n&&(this.space=n)}};Kl.prototype.property={};Kl.prototype.normal={};Kl.prototype.space=null;function Vx(i,e){let t={},n={},r=-1;for(;++rzt,booleanish:()=>gn,commaOrSpaceSeparated:()=>go,commaSeparated:()=>cd,number:()=>Te,overloadedBoolean:()=>Kx,spaceSeparated:()=>Ai});var Nue=0,zt=wu(),gn=wu(),Kx=wu(),Te=wu(),Ai=wu(),cd=wu(),go=wu();function wu(){return 2**++Nue}var qx=Object.keys(V1),xu=class extends Hr{constructor(e,t,n,r){let o=-1;if(super(e,t),wj(this,"space",r),typeof n=="number")for(;++o4&&t.slice(0,4)==="data"&&Oue.test(e)){if(e.charAt(4)==="-"){let o=e.slice(5).replace(Tj,Bue);n="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=e.slice(4);if(!Tj.test(o)){let s=o.replace(Pue,Fue);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}r=xu}return new r(n,e)}function Fue(i){return"-"+i.toLowerCase()}function Bue(i){return i.charAt(1).toUpperCase()}var Qx={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var js=Vx([$x,Gx,Yx,Xx,xj],"html"),Xr=Vx([$x,Gx,Yx,Xx,Ej],"svg");var kj=/[#.]/g,Ij=function(i,e="div"){for(var t=i||"",n={},r=0,o,s,a;r-1&&ss)return{line:a+1,column:s-(t[a-1]||0)+1,offset:s}}return{line:void 0,column:void 0,offset:void 0}}function o(s){var a=s&&s.line,l=s&&s.column,c;return typeof a=="number"&&typeof l=="number"&&!Number.isNaN(a)&&!Number.isNaN(l)&&a-1 in t&&(c=(t[a-2]||0)+l-1||0),c>-1&&c0?i.call(e,o,s,a):i.call(e,o,s)}function phe(i,e,t,n,r){let o=Us(n.schema,e),s;t==null||typeof t=="number"&&Number.isNaN(t)||t===!1&&(n.vue||n.vdom||n.hyperscript)||!t&&o.boolean&&(n.vue||n.vdom||n.hyperscript)||(Array.isArray(t)&&(t=o.commaSeparated?$4(t):G4(t)),o.boolean&&n.hyperscript&&(t=""),o.property==="style"&&typeof t=="string"&&(n.react||n.vue||n.vdom)&&(t=bhe(t,r)),n.vue?o.property!=="style"&&(s="attrs"):o.mustUseProperty||(n.vdom?o.property!=="style"&&(s="attributes"):n.hyperscript&&(s="attrs")),s?i[s]=Object.assign(i[s]||{},{[o.attribute]:t}):o.space&&n.react?i[dhe[o.property]||o.property]=t:i[o.attribute]=t)}function mhe(i){let e=i("div",{});return!!(e&&("_owner"in e||"_store"in e)&&(e.key===void 0||e.key===null))}function ghe(i){return"context"in i&&"cleanup"in i}function vhe(i){return i("div",{}).type==="VirtualNode"}function _he(i){let e=i("div",{});return!!(e&&e.context&&e.context._isVue)}function bhe(i,e){let t={};try{(0,Vj.default)(i,(n,r)=>{n.slice(0,4)==="-ms-"&&(n="ms-"+n.slice(4)),t[n.replace(/-([a-z])/g,(o,s)=>s.toUpperCase())]=r})}catch(n){throw n.message=e+"[style]"+n.message.slice(9),n}return t}var Gj={}.hasOwnProperty;function X4(i,e){var t=e||{};function n(r){var o=n.invalid,s=n.handlers;if(r&&Gj.call(r,i)&&(o=Gj.call(s,r[i])?s[r[i]]:n.unknown),o)return o.apply(this,arguments)}return n.handlers=t.handlers||{},n.invalid=t.invalid,n.unknown=t.unknown,n}var yhe={}.hasOwnProperty,$j=X4("type",{handlers:{root:Che,element:The,text:xhe,comment:Ehe,doctype:whe}});function r8(i,e){return $j(i,e==="svg"?Xr:js)}function Che(i,e){var t={nodeName:"#document",mode:(i.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return t.childNodes=o8(i.children,t,e),Hf(i,t)}function She(i,e){var t={nodeName:"#document-fragment",childNodes:[]};return t.childNodes=o8(i.children,t,e),Hf(i,t)}function whe(i){return Hf(i,{nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:void 0})}function xhe(i){return Hf(i,{nodeName:"#text",value:i.value,parentNode:void 0})}function Ehe(i){return Hf(i,{nodeName:"#comment",data:i.value,parentNode:void 0})}function The(i,e){var t=e.space;return Kj(n,Object.assign({},i,{children:[]}),{space:t});function n(r,o){var s=[],a,l,c,d,u;for(c in o)!yhe.call(o,c)||o[c]===!1||(a=Us(e,c),!(a.boolean&&!o[c])&&(l={name:c,value:o[c]===!0?"":String(o[c])},a.space&&a.space!=="html"&&a.space!=="svg"&&(d=c.indexOf(":"),d<0?l.prefix="":(l.name=c.slice(d+1),l.prefix=c.slice(0,d)),l.namespace=Qr[a.space]),s.push(l)));return e.space==="html"&&i.tagName==="svg"&&(e=Xr),u=Hf(i,{nodeName:r,tagName:r,attrs:s,namespaceURI:Qr[e.space],childNodes:[],parentNode:void 0}),u.childNodes=o8(i.children,u,e),r==="template"&&(u.content=She(i.content,e)),u}}function o8(i,e,t){var n=-1,r=[],o;if(i)for(;++n{let Le=z;if(Le.value.stitch&&ae!==null&&J!==null)return ae.children[J]=Le.value.stitch,J}),i.type!=="root"&&u.type==="root"&&u.children.length===1)return u.children[0];return u;function h(){let z={nodeName:"template",tagName:"template",attrs:[],namespaceURI:Qr.html,childNodes:[]},J={nodeName:"documentmock",tagName:"documentmock",attrs:[],namespaceURI:Qr.html,childNodes:[]},ae={nodeName:"#document-fragment",childNodes:[]};if(r._bootstrap(J,z),r._pushTmplInsertionMode(khe),r._initTokenizerForFragmentParsing(),r._insertFakeRootElement(),r._resetInsertionMode(),r._findFormInFragmentContext(),a=r.tokenizer,!a)throw new Error("Expected `tokenizer`");return l=a.preprocessor,d=a.__mixins[0],c=d.posTracker,o(i),r._adoptNodes(J.childNodes[0],ae),ae}function p(){let z=r.treeAdapter.createDocument();if(r._bootstrap(z,void 0),a=r.tokenizer,!a)throw new Error("Expected `tokenizer`");return l=a.preprocessor,d=a.__mixins[0],c=d.posTracker,o(i),z}function m(z){let J=-1;if(z)for(;++JJ4(e,t,i)}var Ho=class i{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?!e||!e.loc||!t.loc||e.loc.lexer!==t.loc.lexer?null:new i(e.loc.lexer,e.loc.start,t.loc.end):e&&e.loc}},za=class i{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new i(t,Ho.range(this,e))}},Ie=class i{constructor(e,t){this.position=void 0;var n="KaTeX parse error: "+e,r,o=t&&t.loc;if(o&&o.start<=o.end){var s=o.lexer.input;r=o.start;var a=o.end;r===s.length?n+=" at end of input: ":n+=" at position "+(r+1)+": ";var l=s.slice(r,a).replace(/[^]/g,"$&\u0332"),c;r>15?c="\u2026"+s.slice(r-15,r):c=s.slice(0,r);var d;a+15":">","<":"<",'"':""","'":"'"},qhe=/[&><"']/g;function Ghe(i){return String(i).replace(qhe,e=>Khe[e])}var kW=function i(e){return e.type==="ordgroup"||e.type==="color"?e.body.length===1?i(e.body[0]):e:e.type==="font"?i(e.body):e},$he=function(e){var t=kW(e);return t.type==="mathord"||t.type==="textord"||t.type==="atom"},Yhe=function(e){if(!e)throw new Error("Expected non-null, but got "+String(e));return e},Xhe=function(e){var t=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(e);return t!=null?t[1]:"_relative"},wt={contains:Uhe,deflt:jhe,escape:Ghe,hyphenate:Vhe,getBaseElem:kW,isCharacterBox:$he,protocolFromUrl:Xhe},d5={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:i=>"#"+i},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(i,e)=>(e.push(i),e)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:i=>Math.max(0,i),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:i=>Math.max(0,i),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:i=>Math.max(0,i),cli:"-e, --max-expand ",cliProcessor:i=>i==="Infinity"?1/0:parseInt(i)},globalGroup:{type:"boolean",cli:!1}};function Qhe(i){if(i.default)return i.default;var e=i.type,t=Array.isArray(e)?e[0]:e;if(typeof t!="string")return t.enum[0];switch(t){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}var X1=class{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(var t in d5)if(d5.hasOwnProperty(t)){var n=d5[t];this[t]=e[t]!==void 0?n.processor?n.processor(e[t]):e[t]:Qhe(n)}}reportNonstrict(e,t,n){var r=this.strict;if(typeof r=="function"&&(r=r(e,t,n)),!(!r||r==="ignore")){if(r===!0||r==="error")throw new Ie("LaTeX-incompatible input and strict mode is set to 'error': "+(t+" ["+e+"]"),n);r==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+t+" ["+e+"]"))}}useStrictBehavior(e,t,n){var r=this.strict;if(typeof r=="function")try{r=r(e,t,n)}catch(o){r="error"}return!r||r==="ignore"?!1:r===!0||r==="error"?!0:r==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(t+" ["+e+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+r+"': "+t+" ["+e+"]")),!1)}isTrusted(e){e.url&&!e.protocol&&(e.protocol=wt.protocolFromUrl(e.url));var t=typeof this.trust=="function"?this.trust(e):this.trust;return!!t}},Fa=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return Ba[Jhe[this.id]]}sub(){return Ba[Zhe[this.id]]}fracNum(){return Ba[efe[this.id]]}fracDen(){return Ba[tfe[this.id]]}cramp(){return Ba[ife[this.id]]}text(){return Ba[nfe[this.id]]}isTight(){return this.size>=2}},M8=0,h5=1,jf=2,Yl=3,Q1=4,_s=5,Wf=6,Zr=7,Ba=[new Fa(M8,0,!1),new Fa(h5,0,!0),new Fa(jf,1,!1),new Fa(Yl,1,!0),new Fa(Q1,2,!1),new Fa(_s,2,!0),new Fa(Wf,3,!1),new Fa(Zr,3,!0)],Jhe=[Q1,_s,Q1,_s,Wf,Zr,Wf,Zr],Zhe=[_s,_s,_s,_s,Zr,Zr,Zr,Zr],efe=[jf,Yl,Q1,_s,Wf,Zr,Wf,Zr],tfe=[Yl,Yl,_s,_s,Zr,Zr,Zr,Zr],ife=[h5,h5,Yl,Yl,_s,_s,Zr,Zr],nfe=[M8,h5,jf,Yl,jf,Yl,jf,Yl],_t={DISPLAY:Ba[M8],TEXT:Ba[jf],SCRIPT:Ba[Q1],SCRIPTSCRIPT:Ba[Wf]},b8=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function rfe(i){for(var e=0;e=r[0]&&i<=r[1])return t.name}return null}var u5=[];b8.forEach(i=>i.blocks.forEach(e=>u5.push(...e)));function IW(i){for(var e=0;e=u5[e]&&i<=u5[e+1])return!0;return!1}var Uf=80,ofe=function(e,t){return"M95,"+(622+e+t)+` c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 @@ -194,7 +203,7 @@ c5.3,-9.3,12,-14,20,-14 H400000v`+(40+e)+`H845.2724 s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},zce=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119 +M`+(834+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},sfe=function(e,t){return"M263,"+(601+e+t)+`c0.7,0,18,39.7,52,119 c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 c340,-704.7,510.7,-1060.3,512,-1067 l`+e/2.084+" -"+e+` @@ -204,7 +213,7 @@ s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5, c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Bce=function(e,t){return"M983 "+(10+e+t)+` +M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},afe=function(e,t){return"M983 "+(10+e+t)+` l`+e/3.13+" -"+e+` c4,-6.7,10,-10,18,-10 H400000v`+(40+e)+` H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 @@ -213,7 +222,7 @@ c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},Hce=function(e,t){return"M424,"+(2398+e+t)+` +M`+(1001+e)+" "+t+"h400000v"+(40+e)+"h-400000z"},lfe=function(e,t){return"M424,"+(2398+e+t)+` c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 @@ -223,18 +232,18 @@ v`+(40+e)+`H1014.6 s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2z M`+(1001+e)+" "+t+` -h400000v`+(40+e)+"h-400000z"},Uce=function(e,t){return"M473,"+(2713+e+t)+` +h400000v`+(40+e)+"h-400000z"},cfe=function(e,t){return"M473,"+(2713+e+t)+` c339.3,-1799.3,509.3,-2700,510,-2702 l`+e/5.298+" -"+e+` c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+e)+`H1017.7 s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},jce=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},Wce=function(e,t,r){var n=r-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+` -H742v`+n+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +606zM`+(1001+e)+" "+t+"h400000v"+(40+e)+"H1017.7z"},dfe=function(e){var t=e/2;return"M400000 "+e+" H0 L"+t+" 0 l65 45 L145 "+(e-80)+" H400000z"},ufe=function(e,t,n){var r=n-54-t-e;return"M702 "+(e+t)+"H400000"+(40+e)+` +H742v`+r+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},Vce=function(e,t,r){t=1e3*t;var n="";switch(e){case"sqrtMain":n=Fce(t,Wf);break;case"sqrtSize1":n=zce(t,Wf);break;case"sqrtSize2":n=Bce(t,Wf);break;case"sqrtSize3":n=Hce(t,Wf);break;case"sqrtSize4":n=Uce(t,Wf);break;case"sqrtTall":n=Wce(t,Wf,r)}return n},qce=function(e,t){switch(e){case"\u239C":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"\u239F":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23A2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23A5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23AA":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23D0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},wU={doubleleftarrow:`M262 157 +219 661 l218 661zM702 `+t+"H400000v"+(40+e)+"H742z"},hfe=function(e,t,n){t=1e3*t;var r="";switch(e){case"sqrtMain":r=ofe(t,Uf);break;case"sqrtSize1":r=sfe(t,Uf);break;case"sqrtSize2":r=afe(t,Uf);break;case"sqrtSize3":r=lfe(t,Uf);break;case"sqrtSize4":r=cfe(t,Uf);break;case"sqrtTall":r=ufe(t,Uf,n)}return r},ffe=function(e,t){switch(e){case"\u239C":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"\u2223":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"\u2225":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z");case"\u239F":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"\u23A2":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"\u23A5":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"\u23AA":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"\u23D0":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"\u2016":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z");default:return""}},Xj={doubleleftarrow:`M262 157 l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 @@ -409,7 +418,7 @@ M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z` c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, -231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Kce=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84 +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},pfe=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84 H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15 c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15 @@ -437,25 +446,15 @@ c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6 c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},Pu=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return Rt.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;tt.toText();return this.children.map(e).join("")}},Ma={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},tw={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},xU={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function $ce(i,e){Ma[i]=e}function Y5(i,e,t){if(!Ma[e])throw new Error("Font metrics not found for font: "+e+".");var r=i.charCodeAt(0),n=Ma[e][r];if(!n&&i[0]in xU&&(r=xU[i[0]].charCodeAt(0),n=Ma[e][r]),!n&&t==="text"&&JU(r)&&(n=Ma[e][77]),n)return{depth:n[0],height:n[1],italic:n[2],skew:n[3],width:n[4]}}var S5={};function Gce(i){var e;if(i>=5?e=0:i>=3?e=1:e=2,!S5[e]){var t=S5[e]={cssEmPerMu:tw.quad[e]/18};for(var r in tw)tw.hasOwnProperty(r)&&(t[r]=tw[r][e])}return S5[e]}var Yce=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],CU=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],SU=function(e,t){return t.size<2?e:Yce[e-1][t.size-1]},mw=class i{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||i.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=CU[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new i(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:SU(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:CU[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=SU(i.BASESIZE,e);return this.size===t&&this.textSize===i.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==i.BASESIZE?["sizing","reset-size"+this.size,"size"+i.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Gce(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};mw.BASESIZE=6;var F5={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Xce={ex:!0,em:!0,mu:!0},ej=function(e){return typeof e!="string"&&(e=e.unit),e in F5||e in Xce||e==="ex"},ur=function(e,t){var r;if(e.unit in F5)r=F5[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")r=t.fontMetrics().cssEmPerMu;else{var n;if(t.style.isTight()?n=t.havingStyle(t.style.text()):n=t,e.unit==="ex")r=n.fontMetrics().xHeight;else if(e.unit==="em")r=n.fontMetrics().quad;else throw new Be("Invalid unit: '"+e.unit+"'");n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)},$e=function(e){return+e.toFixed(4)+"em"},pd=function(e){return e.filter(t=>t).join(" ")},tj=function(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");var n=t.getColor();n&&(this.style.color=n)}},ij=function(e){var t=document.createElement(e);t.className=pd(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(t.style[r]=this.style[r]);for(var n in this.attributes)this.attributes.hasOwnProperty(n)&&t.setAttribute(n,this.attributes[n]);for(var o=0;o",t},Ou=class{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,tj.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Rt.contains(this.classes,e)}toNode(){return ij.call(this,"span")}toMarkup(){return rj.call(this,"span")}},Gg=class{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,tj.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return Rt.contains(this.classes,e)}toNode(){return ij.call(this,"a")}toMarkup(){return rj.call(this,"a")}},z5=class{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return Rt.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=""+this.alt+"0&&(t=document.createElement("span"),t.style.marginRight=$e(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=pd(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(t=t||document.createElement("span"),t.style[r]=this.style[r]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(r+="margin-right:"+this.italic+"em;");for(var n in this.style)this.style.hasOwnProperty(n)&&(r+=Rt.hyphenate(n)+":"+this.style[n]+";");r&&(e=!0,t+=' style="'+Rt.escape(r)+'"');var o=Rt.escape(this.text);return e?(t+=">",t+=o,t+="",t):o}},Fs=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);for(var n=0;n":""}},Yg=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&t.setAttribute(r,this.attributes[r]);return t}toMarkup(){var e=" but got "+String(i)+".")}var Jce={bin:1,close:1,inner:1,open:1,punct:1,rel:1},ede={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Gi={math:{},text:{}};function x(i,e,t,r,n,o){Gi[i][n]={font:e,group:t,replace:r},o&&r&&(Gi[i][r]=Gi[i][n])}var T="math",Le="text",D="main",q="ams",ir="accent-token",ot="bin",Jn="close",Kf="inner",St="mathord",Mr="op-token",Bo="open",xw="punct",K="rel",jl="spacing",J="textord";x(T,D,K,"\u2261","\\equiv",!0);x(T,D,K,"\u227A","\\prec",!0);x(T,D,K,"\u227B","\\succ",!0);x(T,D,K,"\u223C","\\sim",!0);x(T,D,K,"\u22A5","\\perp");x(T,D,K,"\u2AAF","\\preceq",!0);x(T,D,K,"\u2AB0","\\succeq",!0);x(T,D,K,"\u2243","\\simeq",!0);x(T,D,K,"\u2223","\\mid",!0);x(T,D,K,"\u226A","\\ll",!0);x(T,D,K,"\u226B","\\gg",!0);x(T,D,K,"\u224D","\\asymp",!0);x(T,D,K,"\u2225","\\parallel");x(T,D,K,"\u22C8","\\bowtie",!0);x(T,D,K,"\u2323","\\smile",!0);x(T,D,K,"\u2291","\\sqsubseteq",!0);x(T,D,K,"\u2292","\\sqsupseteq",!0);x(T,D,K,"\u2250","\\doteq",!0);x(T,D,K,"\u2322","\\frown",!0);x(T,D,K,"\u220B","\\ni",!0);x(T,D,K,"\u221D","\\propto",!0);x(T,D,K,"\u22A2","\\vdash",!0);x(T,D,K,"\u22A3","\\dashv",!0);x(T,D,K,"\u220B","\\owns");x(T,D,xw,".","\\ldotp");x(T,D,xw,"\u22C5","\\cdotp");x(T,D,J,"#","\\#");x(Le,D,J,"#","\\#");x(T,D,J,"&","\\&");x(Le,D,J,"&","\\&");x(T,D,J,"\u2135","\\aleph",!0);x(T,D,J,"\u2200","\\forall",!0);x(T,D,J,"\u210F","\\hbar",!0);x(T,D,J,"\u2203","\\exists",!0);x(T,D,J,"\u2207","\\nabla",!0);x(T,D,J,"\u266D","\\flat",!0);x(T,D,J,"\u2113","\\ell",!0);x(T,D,J,"\u266E","\\natural",!0);x(T,D,J,"\u2663","\\clubsuit",!0);x(T,D,J,"\u2118","\\wp",!0);x(T,D,J,"\u266F","\\sharp",!0);x(T,D,J,"\u2662","\\diamondsuit",!0);x(T,D,J,"\u211C","\\Re",!0);x(T,D,J,"\u2661","\\heartsuit",!0);x(T,D,J,"\u2111","\\Im",!0);x(T,D,J,"\u2660","\\spadesuit",!0);x(T,D,J,"\xA7","\\S",!0);x(Le,D,J,"\xA7","\\S");x(T,D,J,"\xB6","\\P",!0);x(Le,D,J,"\xB6","\\P");x(T,D,J,"\u2020","\\dag");x(Le,D,J,"\u2020","\\dag");x(Le,D,J,"\u2020","\\textdagger");x(T,D,J,"\u2021","\\ddag");x(Le,D,J,"\u2021","\\ddag");x(Le,D,J,"\u2021","\\textdaggerdbl");x(T,D,Jn,"\u23B1","\\rmoustache",!0);x(T,D,Bo,"\u23B0","\\lmoustache",!0);x(T,D,Jn,"\u27EF","\\rgroup",!0);x(T,D,Bo,"\u27EE","\\lgroup",!0);x(T,D,ot,"\u2213","\\mp",!0);x(T,D,ot,"\u2296","\\ominus",!0);x(T,D,ot,"\u228E","\\uplus",!0);x(T,D,ot,"\u2293","\\sqcap",!0);x(T,D,ot,"\u2217","\\ast");x(T,D,ot,"\u2294","\\sqcup",!0);x(T,D,ot,"\u25EF","\\bigcirc",!0);x(T,D,ot,"\u2219","\\bullet",!0);x(T,D,ot,"\u2021","\\ddagger");x(T,D,ot,"\u2240","\\wr",!0);x(T,D,ot,"\u2A3F","\\amalg");x(T,D,ot,"&","\\And");x(T,D,K,"\u27F5","\\longleftarrow",!0);x(T,D,K,"\u21D0","\\Leftarrow",!0);x(T,D,K,"\u27F8","\\Longleftarrow",!0);x(T,D,K,"\u27F6","\\longrightarrow",!0);x(T,D,K,"\u21D2","\\Rightarrow",!0);x(T,D,K,"\u27F9","\\Longrightarrow",!0);x(T,D,K,"\u2194","\\leftrightarrow",!0);x(T,D,K,"\u27F7","\\longleftrightarrow",!0);x(T,D,K,"\u21D4","\\Leftrightarrow",!0);x(T,D,K,"\u27FA","\\Longleftrightarrow",!0);x(T,D,K,"\u21A6","\\mapsto",!0);x(T,D,K,"\u27FC","\\longmapsto",!0);x(T,D,K,"\u2197","\\nearrow",!0);x(T,D,K,"\u21A9","\\hookleftarrow",!0);x(T,D,K,"\u21AA","\\hookrightarrow",!0);x(T,D,K,"\u2198","\\searrow",!0);x(T,D,K,"\u21BC","\\leftharpoonup",!0);x(T,D,K,"\u21C0","\\rightharpoonup",!0);x(T,D,K,"\u2199","\\swarrow",!0);x(T,D,K,"\u21BD","\\leftharpoondown",!0);x(T,D,K,"\u21C1","\\rightharpoondown",!0);x(T,D,K,"\u2196","\\nwarrow",!0);x(T,D,K,"\u21CC","\\rightleftharpoons",!0);x(T,q,K,"\u226E","\\nless",!0);x(T,q,K,"\uE010","\\@nleqslant");x(T,q,K,"\uE011","\\@nleqq");x(T,q,K,"\u2A87","\\lneq",!0);x(T,q,K,"\u2268","\\lneqq",!0);x(T,q,K,"\uE00C","\\@lvertneqq");x(T,q,K,"\u22E6","\\lnsim",!0);x(T,q,K,"\u2A89","\\lnapprox",!0);x(T,q,K,"\u2280","\\nprec",!0);x(T,q,K,"\u22E0","\\npreceq",!0);x(T,q,K,"\u22E8","\\precnsim",!0);x(T,q,K,"\u2AB9","\\precnapprox",!0);x(T,q,K,"\u2241","\\nsim",!0);x(T,q,K,"\uE006","\\@nshortmid");x(T,q,K,"\u2224","\\nmid",!0);x(T,q,K,"\u22AC","\\nvdash",!0);x(T,q,K,"\u22AD","\\nvDash",!0);x(T,q,K,"\u22EA","\\ntriangleleft");x(T,q,K,"\u22EC","\\ntrianglelefteq",!0);x(T,q,K,"\u228A","\\subsetneq",!0);x(T,q,K,"\uE01A","\\@varsubsetneq");x(T,q,K,"\u2ACB","\\subsetneqq",!0);x(T,q,K,"\uE017","\\@varsubsetneqq");x(T,q,K,"\u226F","\\ngtr",!0);x(T,q,K,"\uE00F","\\@ngeqslant");x(T,q,K,"\uE00E","\\@ngeqq");x(T,q,K,"\u2A88","\\gneq",!0);x(T,q,K,"\u2269","\\gneqq",!0);x(T,q,K,"\uE00D","\\@gvertneqq");x(T,q,K,"\u22E7","\\gnsim",!0);x(T,q,K,"\u2A8A","\\gnapprox",!0);x(T,q,K,"\u2281","\\nsucc",!0);x(T,q,K,"\u22E1","\\nsucceq",!0);x(T,q,K,"\u22E9","\\succnsim",!0);x(T,q,K,"\u2ABA","\\succnapprox",!0);x(T,q,K,"\u2246","\\ncong",!0);x(T,q,K,"\uE007","\\@nshortparallel");x(T,q,K,"\u2226","\\nparallel",!0);x(T,q,K,"\u22AF","\\nVDash",!0);x(T,q,K,"\u22EB","\\ntriangleright");x(T,q,K,"\u22ED","\\ntrianglerighteq",!0);x(T,q,K,"\uE018","\\@nsupseteqq");x(T,q,K,"\u228B","\\supsetneq",!0);x(T,q,K,"\uE01B","\\@varsupsetneq");x(T,q,K,"\u2ACC","\\supsetneqq",!0);x(T,q,K,"\uE019","\\@varsupsetneqq");x(T,q,K,"\u22AE","\\nVdash",!0);x(T,q,K,"\u2AB5","\\precneqq",!0);x(T,q,K,"\u2AB6","\\succneqq",!0);x(T,q,K,"\uE016","\\@nsubseteqq");x(T,q,ot,"\u22B4","\\unlhd");x(T,q,ot,"\u22B5","\\unrhd");x(T,q,K,"\u219A","\\nleftarrow",!0);x(T,q,K,"\u219B","\\nrightarrow",!0);x(T,q,K,"\u21CD","\\nLeftarrow",!0);x(T,q,K,"\u21CF","\\nRightarrow",!0);x(T,q,K,"\u21AE","\\nleftrightarrow",!0);x(T,q,K,"\u21CE","\\nLeftrightarrow",!0);x(T,q,K,"\u25B3","\\vartriangle");x(T,q,J,"\u210F","\\hslash");x(T,q,J,"\u25BD","\\triangledown");x(T,q,J,"\u25CA","\\lozenge");x(T,q,J,"\u24C8","\\circledS");x(T,q,J,"\xAE","\\circledR");x(Le,q,J,"\xAE","\\circledR");x(T,q,J,"\u2221","\\measuredangle",!0);x(T,q,J,"\u2204","\\nexists");x(T,q,J,"\u2127","\\mho");x(T,q,J,"\u2132","\\Finv",!0);x(T,q,J,"\u2141","\\Game",!0);x(T,q,J,"\u2035","\\backprime");x(T,q,J,"\u25B2","\\blacktriangle");x(T,q,J,"\u25BC","\\blacktriangledown");x(T,q,J,"\u25A0","\\blacksquare");x(T,q,J,"\u29EB","\\blacklozenge");x(T,q,J,"\u2605","\\bigstar");x(T,q,J,"\u2222","\\sphericalangle",!0);x(T,q,J,"\u2201","\\complement",!0);x(T,q,J,"\xF0","\\eth",!0);x(Le,D,J,"\xF0","\xF0");x(T,q,J,"\u2571","\\diagup");x(T,q,J,"\u2572","\\diagdown");x(T,q,J,"\u25A1","\\square");x(T,q,J,"\u25A1","\\Box");x(T,q,J,"\u25CA","\\Diamond");x(T,q,J,"\xA5","\\yen",!0);x(Le,q,J,"\xA5","\\yen",!0);x(T,q,J,"\u2713","\\checkmark",!0);x(Le,q,J,"\u2713","\\checkmark");x(T,q,J,"\u2136","\\beth",!0);x(T,q,J,"\u2138","\\daleth",!0);x(T,q,J,"\u2137","\\gimel",!0);x(T,q,J,"\u03DD","\\digamma",!0);x(T,q,J,"\u03F0","\\varkappa");x(T,q,Bo,"\u250C","\\@ulcorner",!0);x(T,q,Jn,"\u2510","\\@urcorner",!0);x(T,q,Bo,"\u2514","\\@llcorner",!0);x(T,q,Jn,"\u2518","\\@lrcorner",!0);x(T,q,K,"\u2266","\\leqq",!0);x(T,q,K,"\u2A7D","\\leqslant",!0);x(T,q,K,"\u2A95","\\eqslantless",!0);x(T,q,K,"\u2272","\\lesssim",!0);x(T,q,K,"\u2A85","\\lessapprox",!0);x(T,q,K,"\u224A","\\approxeq",!0);x(T,q,ot,"\u22D6","\\lessdot");x(T,q,K,"\u22D8","\\lll",!0);x(T,q,K,"\u2276","\\lessgtr",!0);x(T,q,K,"\u22DA","\\lesseqgtr",!0);x(T,q,K,"\u2A8B","\\lesseqqgtr",!0);x(T,q,K,"\u2251","\\doteqdot");x(T,q,K,"\u2253","\\risingdotseq",!0);x(T,q,K,"\u2252","\\fallingdotseq",!0);x(T,q,K,"\u223D","\\backsim",!0);x(T,q,K,"\u22CD","\\backsimeq",!0);x(T,q,K,"\u2AC5","\\subseteqq",!0);x(T,q,K,"\u22D0","\\Subset",!0);x(T,q,K,"\u228F","\\sqsubset",!0);x(T,q,K,"\u227C","\\preccurlyeq",!0);x(T,q,K,"\u22DE","\\curlyeqprec",!0);x(T,q,K,"\u227E","\\precsim",!0);x(T,q,K,"\u2AB7","\\precapprox",!0);x(T,q,K,"\u22B2","\\vartriangleleft");x(T,q,K,"\u22B4","\\trianglelefteq");x(T,q,K,"\u22A8","\\vDash",!0);x(T,q,K,"\u22AA","\\Vvdash",!0);x(T,q,K,"\u2323","\\smallsmile");x(T,q,K,"\u2322","\\smallfrown");x(T,q,K,"\u224F","\\bumpeq",!0);x(T,q,K,"\u224E","\\Bumpeq",!0);x(T,q,K,"\u2267","\\geqq",!0);x(T,q,K,"\u2A7E","\\geqslant",!0);x(T,q,K,"\u2A96","\\eqslantgtr",!0);x(T,q,K,"\u2273","\\gtrsim",!0);x(T,q,K,"\u2A86","\\gtrapprox",!0);x(T,q,ot,"\u22D7","\\gtrdot");x(T,q,K,"\u22D9","\\ggg",!0);x(T,q,K,"\u2277","\\gtrless",!0);x(T,q,K,"\u22DB","\\gtreqless",!0);x(T,q,K,"\u2A8C","\\gtreqqless",!0);x(T,q,K,"\u2256","\\eqcirc",!0);x(T,q,K,"\u2257","\\circeq",!0);x(T,q,K,"\u225C","\\triangleq",!0);x(T,q,K,"\u223C","\\thicksim");x(T,q,K,"\u2248","\\thickapprox");x(T,q,K,"\u2AC6","\\supseteqq",!0);x(T,q,K,"\u22D1","\\Supset",!0);x(T,q,K,"\u2290","\\sqsupset",!0);x(T,q,K,"\u227D","\\succcurlyeq",!0);x(T,q,K,"\u22DF","\\curlyeqsucc",!0);x(T,q,K,"\u227F","\\succsim",!0);x(T,q,K,"\u2AB8","\\succapprox",!0);x(T,q,K,"\u22B3","\\vartriangleright");x(T,q,K,"\u22B5","\\trianglerighteq");x(T,q,K,"\u22A9","\\Vdash",!0);x(T,q,K,"\u2223","\\shortmid");x(T,q,K,"\u2225","\\shortparallel");x(T,q,K,"\u226C","\\between",!0);x(T,q,K,"\u22D4","\\pitchfork",!0);x(T,q,K,"\u221D","\\varpropto");x(T,q,K,"\u25C0","\\blacktriangleleft");x(T,q,K,"\u2234","\\therefore",!0);x(T,q,K,"\u220D","\\backepsilon");x(T,q,K,"\u25B6","\\blacktriangleright");x(T,q,K,"\u2235","\\because",!0);x(T,q,K,"\u22D8","\\llless");x(T,q,K,"\u22D9","\\gggtr");x(T,q,ot,"\u22B2","\\lhd");x(T,q,ot,"\u22B3","\\rhd");x(T,q,K,"\u2242","\\eqsim",!0);x(T,D,K,"\u22C8","\\Join");x(T,q,K,"\u2251","\\Doteq",!0);x(T,q,ot,"\u2214","\\dotplus",!0);x(T,q,ot,"\u2216","\\smallsetminus");x(T,q,ot,"\u22D2","\\Cap",!0);x(T,q,ot,"\u22D3","\\Cup",!0);x(T,q,ot,"\u2A5E","\\doublebarwedge",!0);x(T,q,ot,"\u229F","\\boxminus",!0);x(T,q,ot,"\u229E","\\boxplus",!0);x(T,q,ot,"\u22C7","\\divideontimes",!0);x(T,q,ot,"\u22C9","\\ltimes",!0);x(T,q,ot,"\u22CA","\\rtimes",!0);x(T,q,ot,"\u22CB","\\leftthreetimes",!0);x(T,q,ot,"\u22CC","\\rightthreetimes",!0);x(T,q,ot,"\u22CF","\\curlywedge",!0);x(T,q,ot,"\u22CE","\\curlyvee",!0);x(T,q,ot,"\u229D","\\circleddash",!0);x(T,q,ot,"\u229B","\\circledast",!0);x(T,q,ot,"\u22C5","\\centerdot");x(T,q,ot,"\u22BA","\\intercal",!0);x(T,q,ot,"\u22D2","\\doublecap");x(T,q,ot,"\u22D3","\\doublecup");x(T,q,ot,"\u22A0","\\boxtimes",!0);x(T,q,K,"\u21E2","\\dashrightarrow",!0);x(T,q,K,"\u21E0","\\dashleftarrow",!0);x(T,q,K,"\u21C7","\\leftleftarrows",!0);x(T,q,K,"\u21C6","\\leftrightarrows",!0);x(T,q,K,"\u21DA","\\Lleftarrow",!0);x(T,q,K,"\u219E","\\twoheadleftarrow",!0);x(T,q,K,"\u21A2","\\leftarrowtail",!0);x(T,q,K,"\u21AB","\\looparrowleft",!0);x(T,q,K,"\u21CB","\\leftrightharpoons",!0);x(T,q,K,"\u21B6","\\curvearrowleft",!0);x(T,q,K,"\u21BA","\\circlearrowleft",!0);x(T,q,K,"\u21B0","\\Lsh",!0);x(T,q,K,"\u21C8","\\upuparrows",!0);x(T,q,K,"\u21BF","\\upharpoonleft",!0);x(T,q,K,"\u21C3","\\downharpoonleft",!0);x(T,D,K,"\u22B6","\\origof",!0);x(T,D,K,"\u22B7","\\imageof",!0);x(T,q,K,"\u22B8","\\multimap",!0);x(T,q,K,"\u21AD","\\leftrightsquigarrow",!0);x(T,q,K,"\u21C9","\\rightrightarrows",!0);x(T,q,K,"\u21C4","\\rightleftarrows",!0);x(T,q,K,"\u21A0","\\twoheadrightarrow",!0);x(T,q,K,"\u21A3","\\rightarrowtail",!0);x(T,q,K,"\u21AC","\\looparrowright",!0);x(T,q,K,"\u21B7","\\curvearrowright",!0);x(T,q,K,"\u21BB","\\circlearrowright",!0);x(T,q,K,"\u21B1","\\Rsh",!0);x(T,q,K,"\u21CA","\\downdownarrows",!0);x(T,q,K,"\u21BE","\\upharpoonright",!0);x(T,q,K,"\u21C2","\\downharpoonright",!0);x(T,q,K,"\u21DD","\\rightsquigarrow",!0);x(T,q,K,"\u21DD","\\leadsto");x(T,q,K,"\u21DB","\\Rrightarrow",!0);x(T,q,K,"\u21BE","\\restriction");x(T,D,J,"\u2018","`");x(T,D,J,"$","\\$");x(Le,D,J,"$","\\$");x(Le,D,J,"$","\\textdollar");x(T,D,J,"%","\\%");x(Le,D,J,"%","\\%");x(T,D,J,"_","\\_");x(Le,D,J,"_","\\_");x(Le,D,J,"_","\\textunderscore");x(T,D,J,"\u2220","\\angle",!0);x(T,D,J,"\u221E","\\infty",!0);x(T,D,J,"\u2032","\\prime");x(T,D,J,"\u25B3","\\triangle");x(T,D,J,"\u0393","\\Gamma",!0);x(T,D,J,"\u0394","\\Delta",!0);x(T,D,J,"\u0398","\\Theta",!0);x(T,D,J,"\u039B","\\Lambda",!0);x(T,D,J,"\u039E","\\Xi",!0);x(T,D,J,"\u03A0","\\Pi",!0);x(T,D,J,"\u03A3","\\Sigma",!0);x(T,D,J,"\u03A5","\\Upsilon",!0);x(T,D,J,"\u03A6","\\Phi",!0);x(T,D,J,"\u03A8","\\Psi",!0);x(T,D,J,"\u03A9","\\Omega",!0);x(T,D,J,"A","\u0391");x(T,D,J,"B","\u0392");x(T,D,J,"E","\u0395");x(T,D,J,"Z","\u0396");x(T,D,J,"H","\u0397");x(T,D,J,"I","\u0399");x(T,D,J,"K","\u039A");x(T,D,J,"M","\u039C");x(T,D,J,"N","\u039D");x(T,D,J,"O","\u039F");x(T,D,J,"P","\u03A1");x(T,D,J,"T","\u03A4");x(T,D,J,"X","\u03A7");x(T,D,J,"\xAC","\\neg",!0);x(T,D,J,"\xAC","\\lnot");x(T,D,J,"\u22A4","\\top");x(T,D,J,"\u22A5","\\bot");x(T,D,J,"\u2205","\\emptyset");x(T,q,J,"\u2205","\\varnothing");x(T,D,St,"\u03B1","\\alpha",!0);x(T,D,St,"\u03B2","\\beta",!0);x(T,D,St,"\u03B3","\\gamma",!0);x(T,D,St,"\u03B4","\\delta",!0);x(T,D,St,"\u03F5","\\epsilon",!0);x(T,D,St,"\u03B6","\\zeta",!0);x(T,D,St,"\u03B7","\\eta",!0);x(T,D,St,"\u03B8","\\theta",!0);x(T,D,St,"\u03B9","\\iota",!0);x(T,D,St,"\u03BA","\\kappa",!0);x(T,D,St,"\u03BB","\\lambda",!0);x(T,D,St,"\u03BC","\\mu",!0);x(T,D,St,"\u03BD","\\nu",!0);x(T,D,St,"\u03BE","\\xi",!0);x(T,D,St,"\u03BF","\\omicron",!0);x(T,D,St,"\u03C0","\\pi",!0);x(T,D,St,"\u03C1","\\rho",!0);x(T,D,St,"\u03C3","\\sigma",!0);x(T,D,St,"\u03C4","\\tau",!0);x(T,D,St,"\u03C5","\\upsilon",!0);x(T,D,St,"\u03D5","\\phi",!0);x(T,D,St,"\u03C7","\\chi",!0);x(T,D,St,"\u03C8","\\psi",!0);x(T,D,St,"\u03C9","\\omega",!0);x(T,D,St,"\u03B5","\\varepsilon",!0);x(T,D,St,"\u03D1","\\vartheta",!0);x(T,D,St,"\u03D6","\\varpi",!0);x(T,D,St,"\u03F1","\\varrho",!0);x(T,D,St,"\u03C2","\\varsigma",!0);x(T,D,St,"\u03C6","\\varphi",!0);x(T,D,ot,"\u2217","*",!0);x(T,D,ot,"+","+");x(T,D,ot,"\u2212","-",!0);x(T,D,ot,"\u22C5","\\cdot",!0);x(T,D,ot,"\u2218","\\circ",!0);x(T,D,ot,"\xF7","\\div",!0);x(T,D,ot,"\xB1","\\pm",!0);x(T,D,ot,"\xD7","\\times",!0);x(T,D,ot,"\u2229","\\cap",!0);x(T,D,ot,"\u222A","\\cup",!0);x(T,D,ot,"\u2216","\\setminus",!0);x(T,D,ot,"\u2227","\\land");x(T,D,ot,"\u2228","\\lor");x(T,D,ot,"\u2227","\\wedge",!0);x(T,D,ot,"\u2228","\\vee",!0);x(T,D,J,"\u221A","\\surd");x(T,D,Bo,"\u27E8","\\langle",!0);x(T,D,Bo,"\u2223","\\lvert");x(T,D,Bo,"\u2225","\\lVert");x(T,D,Jn,"?","?");x(T,D,Jn,"!","!");x(T,D,Jn,"\u27E9","\\rangle",!0);x(T,D,Jn,"\u2223","\\rvert");x(T,D,Jn,"\u2225","\\rVert");x(T,D,K,"=","=");x(T,D,K,":",":");x(T,D,K,"\u2248","\\approx",!0);x(T,D,K,"\u2245","\\cong",!0);x(T,D,K,"\u2265","\\ge");x(T,D,K,"\u2265","\\geq",!0);x(T,D,K,"\u2190","\\gets");x(T,D,K,">","\\gt",!0);x(T,D,K,"\u2208","\\in",!0);x(T,D,K,"\uE020","\\@not");x(T,D,K,"\u2282","\\subset",!0);x(T,D,K,"\u2283","\\supset",!0);x(T,D,K,"\u2286","\\subseteq",!0);x(T,D,K,"\u2287","\\supseteq",!0);x(T,q,K,"\u2288","\\nsubseteq",!0);x(T,q,K,"\u2289","\\nsupseteq",!0);x(T,D,K,"\u22A8","\\models");x(T,D,K,"\u2190","\\leftarrow",!0);x(T,D,K,"\u2264","\\le");x(T,D,K,"\u2264","\\leq",!0);x(T,D,K,"<","\\lt",!0);x(T,D,K,"\u2192","\\rightarrow",!0);x(T,D,K,"\u2192","\\to");x(T,q,K,"\u2271","\\ngeq",!0);x(T,q,K,"\u2270","\\nleq",!0);x(T,D,jl,"\xA0","\\ ");x(T,D,jl,"\xA0","\\space");x(T,D,jl,"\xA0","\\nobreakspace");x(Le,D,jl,"\xA0","\\ ");x(Le,D,jl,"\xA0"," ");x(Le,D,jl,"\xA0","\\space");x(Le,D,jl,"\xA0","\\nobreakspace");x(T,D,jl,null,"\\nobreak");x(T,D,jl,null,"\\allowbreak");x(T,D,xw,",",",");x(T,D,xw,";",";");x(T,q,ot,"\u22BC","\\barwedge",!0);x(T,q,ot,"\u22BB","\\veebar",!0);x(T,D,ot,"\u2299","\\odot",!0);x(T,D,ot,"\u2295","\\oplus",!0);x(T,D,ot,"\u2297","\\otimes",!0);x(T,D,J,"\u2202","\\partial",!0);x(T,D,ot,"\u2298","\\oslash",!0);x(T,q,ot,"\u229A","\\circledcirc",!0);x(T,q,ot,"\u22A1","\\boxdot",!0);x(T,D,ot,"\u25B3","\\bigtriangleup");x(T,D,ot,"\u25BD","\\bigtriangledown");x(T,D,ot,"\u2020","\\dagger");x(T,D,ot,"\u22C4","\\diamond");x(T,D,ot,"\u22C6","\\star");x(T,D,ot,"\u25C3","\\triangleleft");x(T,D,ot,"\u25B9","\\triangleright");x(T,D,Bo,"{","\\{");x(Le,D,J,"{","\\{");x(Le,D,J,"{","\\textbraceleft");x(T,D,Jn,"}","\\}");x(Le,D,J,"}","\\}");x(Le,D,J,"}","\\textbraceright");x(T,D,Bo,"{","\\lbrace");x(T,D,Jn,"}","\\rbrace");x(T,D,Bo,"[","\\lbrack",!0);x(Le,D,J,"[","\\lbrack",!0);x(T,D,Jn,"]","\\rbrack",!0);x(Le,D,J,"]","\\rbrack",!0);x(T,D,Bo,"(","\\lparen",!0);x(T,D,Jn,")","\\rparen",!0);x(Le,D,J,"<","\\textless",!0);x(Le,D,J,">","\\textgreater",!0);x(T,D,Bo,"\u230A","\\lfloor",!0);x(T,D,Jn,"\u230B","\\rfloor",!0);x(T,D,Bo,"\u2308","\\lceil",!0);x(T,D,Jn,"\u2309","\\rceil",!0);x(T,D,J,"\\","\\backslash");x(T,D,J,"\u2223","|");x(T,D,J,"\u2223","\\vert");x(Le,D,J,"|","\\textbar",!0);x(T,D,J,"\u2225","\\|");x(T,D,J,"\u2225","\\Vert");x(Le,D,J,"\u2225","\\textbardbl");x(Le,D,J,"~","\\textasciitilde");x(Le,D,J,"\\","\\textbackslash");x(Le,D,J,"^","\\textasciicircum");x(T,D,K,"\u2191","\\uparrow",!0);x(T,D,K,"\u21D1","\\Uparrow",!0);x(T,D,K,"\u2193","\\downarrow",!0);x(T,D,K,"\u21D3","\\Downarrow",!0);x(T,D,K,"\u2195","\\updownarrow",!0);x(T,D,K,"\u21D5","\\Updownarrow",!0);x(T,D,Mr,"\u2210","\\coprod");x(T,D,Mr,"\u22C1","\\bigvee");x(T,D,Mr,"\u22C0","\\bigwedge");x(T,D,Mr,"\u2A04","\\biguplus");x(T,D,Mr,"\u22C2","\\bigcap");x(T,D,Mr,"\u22C3","\\bigcup");x(T,D,Mr,"\u222B","\\int");x(T,D,Mr,"\u222B","\\intop");x(T,D,Mr,"\u222C","\\iint");x(T,D,Mr,"\u222D","\\iiint");x(T,D,Mr,"\u220F","\\prod");x(T,D,Mr,"\u2211","\\sum");x(T,D,Mr,"\u2A02","\\bigotimes");x(T,D,Mr,"\u2A01","\\bigoplus");x(T,D,Mr,"\u2A00","\\bigodot");x(T,D,Mr,"\u222E","\\oint");x(T,D,Mr,"\u222F","\\oiint");x(T,D,Mr,"\u2230","\\oiiint");x(T,D,Mr,"\u2A06","\\bigsqcup");x(T,D,Mr,"\u222B","\\smallint");x(Le,D,Kf,"\u2026","\\textellipsis");x(T,D,Kf,"\u2026","\\mathellipsis");x(Le,D,Kf,"\u2026","\\ldots",!0);x(T,D,Kf,"\u2026","\\ldots",!0);x(T,D,Kf,"\u22EF","\\@cdots",!0);x(T,D,Kf,"\u22F1","\\ddots",!0);x(T,D,J,"\u22EE","\\varvdots");x(T,D,ir,"\u02CA","\\acute");x(T,D,ir,"\u02CB","\\grave");x(T,D,ir,"\xA8","\\ddot");x(T,D,ir,"~","\\tilde");x(T,D,ir,"\u02C9","\\bar");x(T,D,ir,"\u02D8","\\breve");x(T,D,ir,"\u02C7","\\check");x(T,D,ir,"^","\\hat");x(T,D,ir,"\u20D7","\\vec");x(T,D,ir,"\u02D9","\\dot");x(T,D,ir,"\u02DA","\\mathring");x(T,D,St,"\uE131","\\@imath");x(T,D,St,"\uE237","\\@jmath");x(T,D,J,"\u0131","\u0131");x(T,D,J,"\u0237","\u0237");x(Le,D,J,"\u0131","\\i",!0);x(Le,D,J,"\u0237","\\j",!0);x(Le,D,J,"\xDF","\\ss",!0);x(Le,D,J,"\xE6","\\ae",!0);x(Le,D,J,"\u0153","\\oe",!0);x(Le,D,J,"\xF8","\\o",!0);x(Le,D,J,"\xC6","\\AE",!0);x(Le,D,J,"\u0152","\\OE",!0);x(Le,D,J,"\xD8","\\O",!0);x(Le,D,ir,"\u02CA","\\'");x(Le,D,ir,"\u02CB","\\`");x(Le,D,ir,"\u02C6","\\^");x(Le,D,ir,"\u02DC","\\~");x(Le,D,ir,"\u02C9","\\=");x(Le,D,ir,"\u02D8","\\u");x(Le,D,ir,"\u02D9","\\.");x(Le,D,ir,"\xB8","\\c");x(Le,D,ir,"\u02DA","\\r");x(Le,D,ir,"\u02C7","\\v");x(Le,D,ir,"\xA8",'\\"');x(Le,D,ir,"\u02DD","\\H");x(Le,D,ir,"\u25EF","\\textcircled");var nj={"--":!0,"---":!0,"``":!0,"''":!0};x(Le,D,J,"\u2013","--",!0);x(Le,D,J,"\u2013","\\textendash");x(Le,D,J,"\u2014","---",!0);x(Le,D,J,"\u2014","\\textemdash");x(Le,D,J,"\u2018","`",!0);x(Le,D,J,"\u2018","\\textquoteleft");x(Le,D,J,"\u2019","'",!0);x(Le,D,J,"\u2019","\\textquoteright");x(Le,D,J,"\u201C","``",!0);x(Le,D,J,"\u201C","\\textquotedblleft");x(Le,D,J,"\u201D","''",!0);x(Le,D,J,"\u201D","\\textquotedblright");x(T,D,J,"\xB0","\\degree",!0);x(Le,D,J,"\xB0","\\degree");x(Le,D,J,"\xB0","\\textdegree",!0);x(T,D,J,"\xA3","\\pounds");x(T,D,J,"\xA3","\\mathsterling",!0);x(Le,D,J,"\xA3","\\pounds");x(Le,D,J,"\xA3","\\textsterling",!0);x(T,q,J,"\u2720","\\maltese");x(Le,q,J,"\u2720","\\maltese");var EU='0123456789/@."';for(iw=0;iw0)return Os(o,c,n,t,s.concat(d));if(l){var u,h;if(l==="boldsymbol"){var f=rde(o,n,t,s,r);u=f.fontName,h=[f.fontClass]}else a?(u=aj[l].fontName,h=[l]):(u=aw(l,t.fontWeight,t.fontShape),h=[l,t.fontWeight,t.fontShape]);if(Cw(o,u,n).metrics)return Os(o,u,n,t,s.concat(h));if(nj.hasOwnProperty(o)&&u.slice(0,10)==="Typewriter"){for(var m=[],g=0;g{if(pd(i.classes)!==pd(e.classes)||i.skew!==e.skew||i.maxFontSize!==e.maxFontSize)return!1;if(i.classes.length===1){var t=i.classes[0];if(t==="mbin"||t==="mord")return!1}for(var r in i.style)if(i.style.hasOwnProperty(r)&&i.style[r]!==e.style[r])return!1;for(var n in e.style)if(e.style.hasOwnProperty(n)&&i.style[n]!==e.style[n])return!1;return!0},sde=i=>{for(var e=0;et&&(t=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>n&&(n=s.maxFontSize)}e.height=t,e.depth=r,e.maxFontSize=n},ho=function(e,t,r,n){var o=new Ou(e,t,r,n);return X5(o),o},oj=(i,e,t,r)=>new Ou(i,e,t,r),ade=function(e,t,r){var n=ho([e],[],t);return n.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),n.style.borderBottomWidth=$e(n.height),n.maxFontSize=1,n},lde=function(e,t,r,n){var o=new Gg(e,t,r,n);return X5(o),o},sj=function(e){var t=new Pu(e);return X5(t),t},cde=function(e,t){return e instanceof Pu?ho([],[e],t):e},dde=function(e){if(e.positionType==="individualShift"){for(var t=e.children,r=[t[0]],n=-t[0].shift-t[0].elem.depth,o=n,s=1;s{var t=ho(["mspace"],[],e),r=ur(i,e);return t.style.marginRight=$e(r),t},aw=function(e,t,r){var n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}var o;return t==="textbf"&&r==="textit"?o="BoldItalic":t==="textbf"?o="Bold":t==="textit"?o="Italic":o="Regular",n+"-"+o},aj={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},lj={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},fde=function(e,t){var[r,n,o]=lj[e],s=new Ra(r),a=new Fs([s],{width:$e(n),height:$e(o),style:"width:"+$e(n),viewBox:"0 0 "+1e3*n+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),l=oj(["overlay"],[a],t);return l.height=o,l.style.height=$e(o),l.style.width=$e(n),l},ae={fontMap:aj,makeSymbol:Os,mathsym:ide,makeSpan:ho,makeSvgSpan:oj,makeLineSpan:ade,makeAnchor:lde,makeFragment:sj,wrapFragment:cde,makeVList:ude,makeOrd:nde,makeGlue:hde,staticSvg:fde,svgData:lj,tryCombineChars:sde},dr={number:3,unit:"mu"},Nu={number:4,unit:"mu"},Fl={number:5,unit:"mu"},pde={mord:{mop:dr,mbin:Nu,mrel:Fl,minner:dr},mop:{mord:dr,mop:dr,mrel:Fl,minner:dr},mbin:{mord:Nu,mop:Nu,mopen:Nu,minner:Nu},mrel:{mord:Fl,mop:Fl,mopen:Fl,minner:Fl},mopen:{},mclose:{mop:dr,mbin:Nu,mrel:Fl,minner:dr},mpunct:{mord:dr,mop:dr,mrel:Fl,mopen:dr,mclose:dr,mpunct:dr,minner:dr},minner:{mord:dr,mop:dr,mbin:Nu,mrel:Fl,mopen:dr,mpunct:dr,minner:dr}},mde={mord:{mop:dr},mop:{mord:dr,mop:dr},mbin:{},mrel:{},mopen:{},mclose:{mop:dr},mpunct:{},minner:{mop:dr}},cj={},bw={},vw={};function rt(i){for(var{type:e,names:t,props:r,handler:n,htmlBuilder:o,mathmlBuilder:s}=i,a={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:n},l=0;l{var w=g.classes[0],_=m.classes[0];w==="mbin"&&Rt.contains(bde,_)?g.classes[0]="mord":_==="mbin"&&Rt.contains(gde,w)&&(m.classes[0]="mord")},{node:u},h,f),AU(o,(m,g)=>{var w=H5(g),_=H5(m),E=w&&_?m.hasClass("mtight")?mde[w][_]:pde[w][_]:null;if(E)return ae.makeGlue(E,c)},{node:u},h,f),o},AU=function i(e,t,r,n,o){n&&e.push(n);for(var s=0;sh=>{e.splice(u+1,0,h),s++})(s)}n&&e.pop()},dj=function(e){return e instanceof Pu||e instanceof Gg||e instanceof Ou&&e.hasClass("enclosing")?e:null},yde=function i(e,t){var r=dj(e);if(r){var n=r.children;if(n.length){if(t==="right")return i(n[n.length-1],"right");if(t==="left")return i(n[0],"left")}}return e},H5=function(e,t){return e?(t&&(e=yde(e,t)),_de[e.classes[0]]||null):null},Xg=function(e,t){var r=["nulldelimiter"].concat(e.baseSizingClasses());return Hl(t.concat(r))},vi=function(e,t,r){if(!e)return Hl();if(bw[e.type]){var n=bw[e.type](e,t);if(r&&t.size!==r.size){n=Hl(t.sizingClasses(r),[n],t);var o=t.sizeMultiplier/r.sizeMultiplier;n.height*=o,n.depth*=o}return n}else throw new Be("Got group of unknown type: '"+e.type+"'")};function lw(i,e){var t=Hl(["base"],i,e),r=Hl(["strut"]);return r.style.height=$e(t.height+t.depth),t.depth&&(r.style.verticalAlign=$e(-t.depth)),t.children.unshift(r),t}function U5(i,e){var t=null;i.length===1&&i[0].type==="tag"&&(t=i[0].tag,i=i[0].body);var r=Wr(i,e,"root"),n;r.length===2&&r[1].hasClass("tag")&&(n=r.pop());for(var o=[],s=[],a=0;a0&&(o.push(lw(s,e)),s=[]),o.push(r[a]));s.length>0&&o.push(lw(s,e));var c;t?(c=lw(Wr(t,e,!0)),c.classes=["tag"],o.push(c)):n&&o.push(n);var d=Hl(["katex-html"],o);if(d.setAttribute("aria-hidden","true"),c){var u=c.children[0];u.style.height=$e(d.height+d.depth),d.depth&&(u.style.verticalAlign=$e(-d.depth))}return d}function uj(i){return new Pu(i)}var fo=class{constructor(e,t,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=r||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=pd(this.classes));for(var r=0;r0&&(e+=' class ="'+Rt.escape(pd(this.classes))+'"'),e+=">";for(var r=0;r",e}toText(){return this.children.map(e=>e.toText()).join("")}},Ru=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return Rt.escape(this.toText())}toText(){return this.text}},j5=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",$e(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},Ne={MathNode:fo,TextNode:Ru,SpaceNode:j5,newDocumentFragment:uj},as=function(e,t,r){return Gi[t][e]&&Gi[t][e].replace&&e.charCodeAt(0)!==55349&&!(nj.hasOwnProperty(e)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(e=Gi[t][e].replace),new Ne.TextNode(e)},Q5=function(e){return e.length===1?e[0]:new Ne.MathNode("mrow",e)},Z5=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var r=t.font;if(!r||r==="mathnormal")return null;var n=e.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var o=e.text;if(Rt.contains(["\\imath","\\jmath"],o))return null;Gi[n][o]&&Gi[n][o].replace&&(o=Gi[n][o].replace);var s=ae.fontMap[r].fontName;return Y5(o,s,n)?ae.fontMap[r].variant:null},mo=function(e,t,r){if(e.length===1){var n=Bi(e[0],t);return r&&n instanceof fo&&n.type==="mo"&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}for(var o=[],s,a=0;a0&&(u.text=u.text.slice(0,1)+"\u0338"+u.text.slice(1),o.pop())}}}o.push(l),s=l}return o},md=function(e,t,r){return Q5(mo(e,t,r))},Bi=function(e,t){if(!e)return new Ne.MathNode("mrow");if(vw[e.type]){var r=vw[e.type](e,t);return r}else throw new Be("Got group of unknown type: '"+e.type+"'")};function LU(i,e,t,r,n){var o=mo(i,t),s;o.length===1&&o[0]instanceof fo&&Rt.contains(["mrow","mtable"],o[0].type)?s=o[0]:s=new Ne.MathNode("mrow",o);var a=new Ne.MathNode("annotation",[new Ne.TextNode(e)]);a.setAttribute("encoding","application/x-tex");var l=new Ne.MathNode("semantics",[s,a]),c=new Ne.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&c.setAttribute("display","block");var d=n?"katex":"katex-mathml";return ae.makeSpan([d],[c])}var hj=function(e){return new mw({style:e.displayMode?kt.DISPLAY:kt.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},fj=function(e,t){if(t.displayMode){var r=["katex-display"];t.leqno&&r.push("leqno"),t.fleqn&&r.push("fleqn"),e=ae.makeSpan(r,[e])}return e},wde=function(e,t,r){var n=hj(r),o;if(r.output==="mathml")return LU(e,t,n,r.displayMode,!0);if(r.output==="html"){var s=U5(e,n);o=ae.makeSpan(["katex"],[s])}else{var a=LU(e,t,n,r.displayMode,!1),l=U5(e,n);o=ae.makeSpan(["katex"],[a,l])}return fj(o,r)},xde=function(e,t,r){var n=hj(r),o=U5(e,n),s=ae.makeSpan(["katex"],[o]);return fj(s,r)},Cde={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},Sde=function(e){var t=new Ne.MathNode("mo",[new Ne.TextNode(Cde[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},kde={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ede=function(e){return e.type==="ordgroup"?e.body.length:1},Tde=function(e,t){function r(){var a=4e5,l=e.label.slice(1);if(Rt.contains(["widehat","widecheck","widetilde","utilde"],l)){var c=e,d=Ede(c.base),u,h,f;if(d>5)l==="widehat"||l==="widecheck"?(u=420,a=2364,f=.42,h=l+"4"):(u=312,a=2340,f=.34,h="tilde4");else{var m=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(a=[0,1062,2364,2364,2364][m],u=[0,239,300,360,420][m],f=[0,.24,.3,.3,.36,.42][m],h=l+m):(a=[0,600,1033,2339,2340][m],u=[0,260,286,306,312][m],f=[0,.26,.286,.3,.306,.34][m],h="tilde"+m)}var g=new Ra(h),w=new Fs([g],{width:"100%",height:$e(f),viewBox:"0 0 "+a+" "+u,preserveAspectRatio:"none"});return{span:ae.makeSvgSpan([],[w],t),minWidth:0,height:f}}else{var _=[],E=kde[l],[L,A,O]=E,U=O/1e3,Y=L.length,oe,te;if(Y===1){var Z=E[3];oe=["hide-tail"],te=[Z]}else if(Y===2)oe=["halfarrow-left","halfarrow-right"],te=["xMinYMin","xMaxYMin"];else if(Y===3)oe=["brace-left","brace-center","brace-right"],te=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+Y+" children.");for(var ve=0;ve0&&(n.style.minWidth=$e(o)),n},Ide=function(e,t,r,n,o){var s,a=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(s=ae.makeSpan(["stretchy",t],[],o),t==="fbox"){var l=o.color&&o.getColor();l&&(s.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new Yg({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&c.push(new Yg({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new Fs(c,{width:"100%",height:$e(a)});s=ae.makeSvgSpan([],[d],o)}return s.height=a,s.style.height=$e(a),s},Ul={encloseSpan:Ide,mathMLnode:Sde,svgSpan:Tde};function Zt(i,e){if(!i||i.type!==e)throw new Error("Expected node of type "+e+", but got "+(i?"node of type "+i.type:String(i)));return i}function J5(i){var e=Sw(i);if(!e)throw new Error("Expected node of symbol group type, but got "+(i?"node of type "+i.type:String(i)));return e}function Sw(i){return i&&(i.type==="atom"||ede.hasOwnProperty(i.type))?i:null}var e6=(i,e)=>{var t,r,n;i&&i.type==="supsub"?(r=Zt(i.base,"accent"),t=r.base,i.base=t,n=Zce(vi(i,e)),i.base=r):(r=Zt(i,"accent"),t=r.base);var o=vi(t,e.havingCrampedStyle()),s=r.isShifty&&Rt.isCharacterBox(t),a=0;if(s){var l=Rt.getBaseElem(t),c=vi(l,e.havingCrampedStyle());a=kU(c).skew}var d=r.label==="\\c",u=d?o.height+o.depth:Math.min(o.height,e.fontMetrics().xHeight),h;if(r.isStretchy)h=Ul.svgSpan(r,e),h=ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+$e(2*a)+")",marginLeft:$e(2*a)}:void 0}]},e);else{var f,m;r.label==="\\vec"?(f=ae.staticSvg("vec",e),m=ae.svgData.vec[1]):(f=ae.makeOrd({mode:r.mode,text:r.label},e,"textord"),f=kU(f),f.italic=0,m=f.width,d&&(u+=f.depth)),h=ae.makeSpan(["accent-body"],[f]);var g=r.label==="\\textcircled";g&&(h.classes.push("accent-full"),u=o.height);var w=a;g||(w-=m/2),h.style.left=$e(w),r.label==="\\textcircled"&&(h.style.top=".2em"),h=ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-u},{type:"elem",elem:h}]},e)}var _=ae.makeSpan(["mord","accent"],[h],e);return n?(n.children[0]=_,n.height=Math.max(_.height,n.height),n.classes[0]="mord",n):_},pj=(i,e)=>{var t=i.isStretchy?Ul.mathMLnode(i.label):new Ne.MathNode("mo",[as(i.label,i.mode)]),r=new Ne.MathNode("mover",[Bi(i.base,e),t]);return r.setAttribute("accent","true"),r},Ade=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(i=>"\\"+i).join("|"));rt({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(i,e)=>{var t=_w(e[0]),r=!Ade.test(i.funcName),n=!r||i.funcName==="\\widehat"||i.funcName==="\\widetilde"||i.funcName==="\\widecheck";return{type:"accent",mode:i.parser.mode,label:i.funcName,isStretchy:r,isShifty:n,base:t}},htmlBuilder:e6,mathmlBuilder:pj});rt({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(i,e)=>{var t=e[0],r=i.parser.mode;return r==="math"&&(i.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+i.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:i.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:e6,mathmlBuilder:pj});rt({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(i,e)=>{var{parser:t,funcName:r}=i,n=e[0];return{type:"accentUnder",mode:t.mode,label:r,base:n}},htmlBuilder:(i,e)=>{var t=vi(i.base,e),r=Ul.svgSpan(i,e),n=i.label==="\\utilde"?.12:0,o=ae.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:n},{type:"elem",elem:t}]},e);return ae.makeSpan(["mord","accentunder"],[o],e)},mathmlBuilder:(i,e)=>{var t=Ul.mathMLnode(i.label),r=new Ne.MathNode("munder",[Bi(i.base,e),t]);return r.setAttribute("accentunder","true"),r}});var cw=i=>{var e=new Ne.MathNode("mpadded",i?[i]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};rt({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(i,e,t){var{parser:r,funcName:n}=i;return{type:"xArrow",mode:r.mode,label:n,body:e[0],below:t[0]}},htmlBuilder(i,e){var t=e.style,r=e.havingStyle(t.sup()),n=ae.wrapFragment(vi(i.body,r,e),e),o=i.label.slice(0,2)==="\\x"?"x":"cd";n.classes.push(o+"-arrow-pad");var s;i.below&&(r=e.havingStyle(t.sub()),s=ae.wrapFragment(vi(i.below,r,e),e),s.classes.push(o+"-arrow-pad"));var a=Ul.svgSpan(i,e),l=-e.fontMetrics().axisHeight+.5*a.height,c=-e.fontMetrics().axisHeight-.5*a.height-.111;(n.depth>.25||i.label==="\\xleftequilibrium")&&(c-=n.depth);var d;if(s){var u=-e.fontMetrics().axisHeight+s.height+.5*a.height+.111;d=ae.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:c},{type:"elem",elem:a,shift:l},{type:"elem",elem:s,shift:u}]},e)}else d=ae.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:c},{type:"elem",elem:a,shift:l}]},e);return d.children[0].children[0].children[1].classes.push("svg-align"),ae.makeSpan(["mrel","x-arrow"],[d],e)},mathmlBuilder(i,e){var t=Ul.mathMLnode(i.label);t.setAttribute("minsize",i.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(i.body){var n=cw(Bi(i.body,e));if(i.below){var o=cw(Bi(i.below,e));r=new Ne.MathNode("munderover",[t,o,n])}else r=new Ne.MathNode("mover",[t,n])}else if(i.below){var s=cw(Bi(i.below,e));r=new Ne.MathNode("munder",[t,s])}else r=cw(),r=new Ne.MathNode("mover",[t,r]);return r}});var Lde=ae.makeSpan;function mj(i,e){var t=Wr(i.body,e,!0);return Lde([i.mclass],t,e)}function gj(i,e){var t,r=mo(i.body,e);return i.mclass==="minner"?t=new Ne.MathNode("mpadded",r):i.mclass==="mord"?i.isCharacterBox?(t=r[0],t.type="mi"):t=new Ne.MathNode("mi",r):(i.isCharacterBox?(t=r[0],t.type="mo"):t=new Ne.MathNode("mo",r),i.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):i.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):i.mclass==="mopen"||i.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):i.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}rt({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(i,e){var{parser:t,funcName:r}=i,n=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+r.slice(5),body:Er(n),isCharacterBox:Rt.isCharacterBox(n)}},htmlBuilder:mj,mathmlBuilder:gj});var kw=i=>{var e=i.type==="ordgroup"&&i.body.length?i.body[0]:i;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};rt({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(i,e){var{parser:t}=i;return{type:"mclass",mode:t.mode,mclass:kw(e[0]),body:Er(e[1]),isCharacterBox:Rt.isCharacterBox(e[1])}}});rt({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(i,e){var{parser:t,funcName:r}=i,n=e[1],o=e[0],s;r!=="\\stackrel"?s=kw(n):s="mrel";var a={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:Er(n)},l={type:"supsub",mode:o.mode,base:a,sup:r==="\\underset"?null:o,sub:r==="\\underset"?o:null};return{type:"mclass",mode:t.mode,mclass:s,body:[l],isCharacterBox:Rt.isCharacterBox(l)}},htmlBuilder:mj,mathmlBuilder:gj});rt({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(i,e){var{parser:t}=i;return{type:"pmb",mode:t.mode,mclass:kw(e[0]),body:Er(e[0])}},htmlBuilder(i,e){var t=Wr(i.body,e,!0),r=ae.makeSpan([i.mclass],t,e);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(i,e){var t=mo(i.body,e),r=new Ne.MathNode("mstyle",t);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Dde={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},DU=()=>({type:"styling",body:[],mode:"math",style:"display"}),MU=i=>i.type==="textord"&&i.text==="@",Mde=(i,e)=>(i.type==="mathord"||i.type==="atom")&&i.text===e;function Nde(i,e,t){var r=Dde[i];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(r,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var n=t.callFunction("\\\\cdleft",[e[0]],[]),o={type:"atom",text:r,mode:"math",family:"rel"},s=t.callFunction("\\Big",[o],[]),a=t.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[n,s,a]};return t.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Rde(i){var e=[];for(i.gullet.beginGroup(),i.gullet.macros.set("\\cr","\\\\\\relax"),i.gullet.beginGroup();;){e.push(i.parseExpression(!1,"\\\\")),i.gullet.endGroup(),i.gullet.beginGroup();var t=i.fetch().text;if(t==="&"||t==="\\\\")i.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Be("Expected \\\\ or \\cr or \\end",i.nextToken)}for(var r=[],n=[r],o=0;o-1))if("<>AV".indexOf(c)>-1)for(var u=0;u<2;u++){for(var h=!0,f=l+1;fAV=|." after @',s[l]);var m=Nde(c,d,i),g={type:"styling",body:[m],mode:"math",style:"display"};r.push(g),a=DU()}o%2===0?r.push(a):r.shift(),r=[],n.push(r)}i.gullet.endGroup(),i.gullet.endGroup();var w=new Array(n[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:n,arraystretch:1,addJot:!0,rowGaps:[null],cols:w,colSeparationType:"CD",hLinesBeforeRow:new Array(n.length+1).fill([])}}rt({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(i,e){var{parser:t,funcName:r}=i;return{type:"cdlabel",mode:t.mode,side:r.slice(4),label:e[0]}},htmlBuilder(i,e){var t=e.havingStyle(e.style.sup()),r=ae.wrapFragment(vi(i.label,t,e),e);return r.classes.push("cd-label-"+i.side),r.style.bottom=$e(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(i,e){var t=new Ne.MathNode("mrow",[Bi(i.label,e)]);return t=new Ne.MathNode("mpadded",[t]),t.setAttribute("width","0"),i.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new Ne.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});rt({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(i,e){var{parser:t}=i;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(i,e){var t=ae.wrapFragment(vi(i.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(i,e){return new Ne.MathNode("mrow",[Bi(i.fragment,e)])}});rt({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(i,e){for(var{parser:t}=i,r=Zt(e[0],"ordgroup"),n=r.body,o="",s=0;s=1114111)throw new Be("\\@char with invalid code point "+o);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:t.mode,text:c}}});var bj=(i,e)=>{var t=Wr(i.body,e.withColor(i.color),!1);return ae.makeFragment(t)},vj=(i,e)=>{var t=mo(i.body,e.withColor(i.color)),r=new Ne.MathNode("mstyle",t);return r.setAttribute("mathcolor",i.color),r};rt({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(i,e){var{parser:t}=i,r=Zt(e[0],"color-token").color,n=e[1];return{type:"color",mode:t.mode,color:r,body:Er(n)}},htmlBuilder:bj,mathmlBuilder:vj});rt({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(i,e){var{parser:t,breakOnTokenText:r}=i,n=Zt(e[0],"color-token").color;t.gullet.macros.set("\\current@color",n);var o=t.parseExpression(!0,r);return{type:"color",mode:t.mode,color:n,body:o}},htmlBuilder:bj,mathmlBuilder:vj});rt({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(i,e,t){var{parser:r}=i,n=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,o=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:o,size:n&&Zt(n,"size").value}},htmlBuilder(i,e){var t=ae.makeSpan(["mspace"],[],e);return i.newLine&&(t.classes.push("newline"),i.size&&(t.style.marginTop=$e(ur(i.size,e)))),t},mathmlBuilder(i,e){var t=new Ne.MathNode("mspace");return i.newLine&&(t.setAttribute("linebreak","newline"),i.size&&t.setAttribute("height",$e(ur(i.size,e)))),t}});var W5={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},_j=i=>{var e=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Be("Expected a control sequence",i);return e},Pde=i=>{var e=i.gullet.popToken();return e.text==="="&&(e=i.gullet.popToken(),e.text===" "&&(e=i.gullet.popToken())),e},yj=(i,e,t,r)=>{var n=i.gullet.macros.get(t.text);n==null&&(t.noexpand=!0,n={tokens:[t],numArgs:0,unexpandable:!i.gullet.isExpandable(t.text)}),i.gullet.macros.set(e,n,r)};rt({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(i){var{parser:e,funcName:t}=i;e.consumeSpaces();var r=e.fetch();if(W5[r.text])return(t==="\\global"||t==="\\\\globallong")&&(r.text=W5[r.text]),Zt(e.parseFunction(),"internal");throw new Be("Invalid token after macro prefix",r)}});rt({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i){var{parser:e,funcName:t}=i,r=e.gullet.popToken(),n=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(n))throw new Be("Expected a control sequence",r);for(var o=0,s,a=[[]];e.gullet.future().text!=="{";)if(r=e.gullet.popToken(),r.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),a[o].push("{");break}if(r=e.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Be('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==o+1)throw new Be('Argument number "'+r.text+'" out of order');o++,a.push([])}else{if(r.text==="EOF")throw new Be("Expected a macro definition");a[o].push(r.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(t==="\\edef"||t==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(n,{tokens:l,numArgs:o,delimiters:a},t===W5[t]),{type:"internal",mode:e.mode}}});rt({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i){var{parser:e,funcName:t}=i,r=_j(e.gullet.popToken());e.gullet.consumeSpaces();var n=Pde(e);return yj(e,r,n,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});rt({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i){var{parser:e,funcName:t}=i,r=_j(e.gullet.popToken()),n=e.gullet.popToken(),o=e.gullet.popToken();return yj(e,r,o,t==="\\\\globalfuture"),e.gullet.pushToken(o),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}});var Vg=function(e,t,r){var n=Gi.math[e]&&Gi.math[e].replace,o=Y5(n||e,t,r);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return o},t6=function(e,t,r,n){var o=r.havingBaseStyle(t),s=ae.makeSpan(n.concat(o.sizingClasses(r)),[e],r),a=o.sizeMultiplier/r.sizeMultiplier;return s.height*=a,s.depth*=a,s.maxFontSize=o.sizeMultiplier,s},wj=function(e,t,r){var n=t.havingBaseStyle(r),o=(1-t.sizeMultiplier/n.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=$e(o),e.height-=o,e.depth+=o},Ode=function(e,t,r,n,o,s){var a=ae.makeSymbol(e,"Main-Regular",o,n),l=t6(a,t,n,s);return r&&wj(l,n,t),l},Fde=function(e,t,r,n){return ae.makeSymbol(e,"Size"+t+"-Regular",r,n)},xj=function(e,t,r,n,o,s){var a=Fde(e,t,o,n),l=t6(ae.makeSpan(["delimsizing","size"+t],[a],n),kt.TEXT,n,s);return r&&wj(l,n,kt.TEXT),l},T5=function(e,t,r){var n;t==="Size1-Regular"?n="delim-size1":n="delim-size4";var o=ae.makeSpan(["delimsizinginner",n],[ae.makeSpan([],[ae.makeSymbol(e,t,r)])]);return{type:"elem",elem:o}},I5=function(e,t,r){var n=Ma["Size4-Regular"][e.charCodeAt(0)]?Ma["Size4-Regular"][e.charCodeAt(0)][4]:Ma["Size1-Regular"][e.charCodeAt(0)][4],o=new Ra("inner",qce(e,Math.round(1e3*t))),s=new Fs([o],{width:$e(n),height:$e(t),style:"width:"+$e(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=ae.makeSvgSpan([],[s],r);return a.height=t,a.style.height=$e(t),a.style.width=$e(n),{type:"elem",elem:a}},V5=.008,dw={type:"kern",size:-1*V5},zde=["|","\\lvert","\\rvert","\\vert"],Bde=["\\|","\\lVert","\\rVert","\\Vert"],Cj=function(e,t,r,n,o,s){var a,l,c,d,u="",h=0;a=c=d=e,l=null;var f="Size1-Regular";e==="\\uparrow"?c=d="\u23D0":e==="\\Uparrow"?c=d="\u2016":e==="\\downarrow"?a=c="\u23D0":e==="\\Downarrow"?a=c="\u2016":e==="\\updownarrow"?(a="\\uparrow",c="\u23D0",d="\\downarrow"):e==="\\Updownarrow"?(a="\\Uparrow",c="\u2016",d="\\Downarrow"):Rt.contains(zde,e)?(c="\u2223",u="vert",h=333):Rt.contains(Bde,e)?(c="\u2225",u="doublevert",h=556):e==="["||e==="\\lbrack"?(a="\u23A1",c="\u23A2",d="\u23A3",f="Size4-Regular",u="lbrack",h=667):e==="]"||e==="\\rbrack"?(a="\u23A4",c="\u23A5",d="\u23A6",f="Size4-Regular",u="rbrack",h=667):e==="\\lfloor"||e==="\u230A"?(c=a="\u23A2",d="\u23A3",f="Size4-Regular",u="lfloor",h=667):e==="\\lceil"||e==="\u2308"?(a="\u23A1",c=d="\u23A2",f="Size4-Regular",u="lceil",h=667):e==="\\rfloor"||e==="\u230B"?(c=a="\u23A5",d="\u23A6",f="Size4-Regular",u="rfloor",h=667):e==="\\rceil"||e==="\u2309"?(a="\u23A4",c=d="\u23A5",f="Size4-Regular",u="rceil",h=667):e==="("||e==="\\lparen"?(a="\u239B",c="\u239C",d="\u239D",f="Size4-Regular",u="lparen",h=875):e===")"||e==="\\rparen"?(a="\u239E",c="\u239F",d="\u23A0",f="Size4-Regular",u="rparen",h=875):e==="\\{"||e==="\\lbrace"?(a="\u23A7",l="\u23A8",d="\u23A9",c="\u23AA",f="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(a="\u23AB",l="\u23AC",d="\u23AD",c="\u23AA",f="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(a="\u23A7",d="\u23A9",c="\u23AA",f="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(a="\u23AB",d="\u23AD",c="\u23AA",f="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(a="\u23A7",d="\u23AD",c="\u23AA",f="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(a="\u23AB",d="\u23A9",c="\u23AA",f="Size4-Regular");var m=Vg(a,f,o),g=m.height+m.depth,w=Vg(c,f,o),_=w.height+w.depth,E=Vg(d,f,o),L=E.height+E.depth,A=0,O=1;if(l!==null){var U=Vg(l,f,o);A=U.height+U.depth,O=2}var Y=g+L+A,oe=Math.max(0,Math.ceil((t-Y)/(O*_))),te=Y+oe*O*_,Z=n.fontMetrics().axisHeight;r&&(Z*=n.sizeMultiplier);var ve=te/2-Z,Pe=[];if(u.length>0){var Ee=te-g-L,Oe=Math.round(te*1e3),Xe=Kce(u,Math.round(Ee*1e3)),dt=new Ra(u,Xe),be=(h/1e3).toFixed(3)+"em",we=(Oe/1e3).toFixed(3)+"em",X=new Fs([dt],{width:be,height:we,viewBox:"0 0 "+h+" "+Oe}),R=ae.makeSvgSpan([],[X],n);R.height=Oe/1e3,R.style.width=be,R.style.height=we,Pe.push({type:"elem",elem:R})}else{if(Pe.push(T5(d,f,o)),Pe.push(dw),l===null){var ne=te-g-L+2*V5;Pe.push(I5(c,ne,n))}else{var me=(te-g-L-A)/2+2*V5;Pe.push(I5(c,me,n)),Pe.push(dw),Pe.push(T5(l,f,o)),Pe.push(dw),Pe.push(I5(c,me,n))}Pe.push(dw),Pe.push(T5(a,f,o))}var G=n.havingBaseStyle(kt.TEXT),Tt=ae.makeVList({positionType:"bottom",positionData:ve,children:Pe},G);return t6(ae.makeSpan(["delimsizing","mult"],[Tt],G),kt.TEXT,n,s)},A5=80,L5=.08,D5=function(e,t,r,n,o){var s=Vce(e,n,r),a=new Ra(e,s),l=new Fs([a],{width:"400em",height:$e(t),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return ae.makeSvgSpan(["hide-tail"],[l],o)},Hde=function(e,t){var r=t.havingBaseSizing(),n=Tj("\\surd",e*r.sizeMultiplier,Ej,r),o=r.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),a,l=0,c=0,d=0,u;return n.type==="small"?(d=1e3+1e3*s+A5,e<1?o=1:e<1.4&&(o=.7),l=(1+s+L5)/o,c=(1+s)/o,a=D5("sqrtMain",l,d,s,t),a.style.minWidth="0.853em",u=.833/o):n.type==="large"?(d=(1e3+A5)*qg[n.size],c=(qg[n.size]+s)/o,l=(qg[n.size]+s+L5)/o,a=D5("sqrtSize"+n.size,l,d,s,t),a.style.minWidth="1.02em",u=1/o):(l=e+s+L5,c=e+s,d=Math.floor(1e3*e+s)+A5,a=D5("sqrtTall",l,d,s,t),a.style.minWidth="0.742em",u=1.056),a.height=c,a.style.height=$e(l),{span:a,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},Sj=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Ude=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],kj=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],qg=[0,1.2,1.8,2.4,3],jde=function(e,t,r,n,o){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),Rt.contains(Sj,e)||Rt.contains(kj,e))return xj(e,t,!1,r,n,o);if(Rt.contains(Ude,e))return Cj(e,qg[t],!1,r,n,o);throw new Be("Illegal delimiter: '"+e+"'")},Wde=[{type:"small",style:kt.SCRIPTSCRIPT},{type:"small",style:kt.SCRIPT},{type:"small",style:kt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Vde=[{type:"small",style:kt.SCRIPTSCRIPT},{type:"small",style:kt.SCRIPT},{type:"small",style:kt.TEXT},{type:"stack"}],Ej=[{type:"small",style:kt.SCRIPTSCRIPT},{type:"small",style:kt.SCRIPT},{type:"small",style:kt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],qde=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},Tj=function(e,t,r,n){for(var o=Math.min(2,3-n.style.size),s=o;st)return r[s]}return r[r.length-1]},Ij=function(e,t,r,n,o,s){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var a;Rt.contains(kj,e)?a=Wde:Rt.contains(Sj,e)?a=Ej:a=Vde;var l=Tj(e,t,a,n);return l.type==="small"?Ode(e,l.style,r,n,o,s):l.type==="large"?xj(e,l.size,r,n,o,s):Cj(e,t,r,n,o,s)},Kde=function(e,t,r,n,o,s){var a=n.fontMetrics().axisHeight*n.sizeMultiplier,l=901,c=5/n.fontMetrics().ptPerEm,d=Math.max(t-a,r+a),u=Math.max(d/500*l,2*d-c);return Ij(e,u,!0,n,o,s)},Bl={sqrtImage:Hde,sizedDelim:jde,sizeToMaxHeight:qg,customSizedDelim:Ij,leftRightDelim:Kde},NU={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},$de=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function Ew(i,e){var t=Sw(i);if(t&&Rt.contains($de,t.text))return t;throw t?new Be("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",i):new Be("Invalid delimiter type '"+i.type+"'",i)}rt({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(i,e)=>{var t=Ew(e[0],i);return{type:"delimsizing",mode:i.parser.mode,size:NU[i.funcName].size,mclass:NU[i.funcName].mclass,delim:t.text}},htmlBuilder:(i,e)=>i.delim==="."?ae.makeSpan([i.mclass]):Bl.sizedDelim(i.delim,i.size,e,i.mode,[i.mclass]),mathmlBuilder:i=>{var e=[];i.delim!=="."&&e.push(as(i.delim,i.mode));var t=new Ne.MathNode("mo",e);i.mclass==="mopen"||i.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var r=$e(Bl.sizeToMaxHeight[i.size]);return t.setAttribute("minsize",r),t.setAttribute("maxsize",r),t}});function RU(i){if(!i.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}rt({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(i,e)=>{var t=i.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new Be("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:i.parser.mode,delim:Ew(e[0],i).text,color:t}}});rt({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(i,e)=>{var t=Ew(e[0],i),r=i.parser;++r.leftrightDepth;var n=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var o=Zt(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:n,left:t.text,right:o.delim,rightColor:o.color}},htmlBuilder:(i,e)=>{RU(i);for(var t=Wr(i.body,e,!0,["mopen","mclose"]),r=0,n=0,o=!1,s=0;s{RU(i);var t=mo(i.body,e);if(i.left!=="."){var r=new Ne.MathNode("mo",[as(i.left,i.mode)]);r.setAttribute("fence","true"),t.unshift(r)}if(i.right!=="."){var n=new Ne.MathNode("mo",[as(i.right,i.mode)]);n.setAttribute("fence","true"),i.rightColor&&n.setAttribute("mathcolor",i.rightColor),t.push(n)}return Q5(t)}});rt({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(i,e)=>{var t=Ew(e[0],i);if(!i.parser.leftrightDepth)throw new Be("\\middle without preceding \\left",t);return{type:"middle",mode:i.parser.mode,delim:t.text}},htmlBuilder:(i,e)=>{var t;if(i.delim===".")t=Xg(e,[]);else{t=Bl.sizedDelim(i.delim,1,e,i.mode,[]);var r={delim:i.delim,options:e};t.isMiddle=r}return t},mathmlBuilder:(i,e)=>{var t=i.delim==="\\vert"||i.delim==="|"?as("|","text"):as(i.delim,i.mode),r=new Ne.MathNode("mo",[t]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var i6=(i,e)=>{var t=ae.wrapFragment(vi(i.body,e),e),r=i.label.slice(1),n=e.sizeMultiplier,o,s=0,a=Rt.isCharacterBox(i.body);if(r==="sout")o=ae.makeSpan(["stretchy","sout"]),o.height=e.fontMetrics().defaultRuleThickness/n,s=-.5*e.fontMetrics().xHeight;else if(r==="phase"){var l=ur({number:.6,unit:"pt"},e),c=ur({number:.35,unit:"ex"},e),d=e.havingBaseSizing();n=n/d.sizeMultiplier;var u=t.height+t.depth+l+c;t.style.paddingLeft=$e(u/2+l);var h=Math.floor(1e3*u*n),f=jce(h),m=new Fs([new Ra("phase",f)],{width:"400em",height:$e(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});o=ae.makeSvgSpan(["hide-tail"],[m],e),o.style.height=$e(u),s=t.depth+l+c}else{/cancel/.test(r)?a||t.classes.push("cancel-pad"):r==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var g=0,w=0,_=0;/box/.test(r)?(_=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),g=e.fontMetrics().fboxsep+(r==="colorbox"?0:_),w=g):r==="angl"?(_=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),g=4*_,w=Math.max(0,.25-t.depth)):(g=a?.2:0,w=g),o=Ul.encloseSpan(t,r,g,w,e),/fbox|boxed|fcolorbox/.test(r)?(o.style.borderStyle="solid",o.style.borderWidth=$e(_)):r==="angl"&&_!==.049&&(o.style.borderTopWidth=$e(_),o.style.borderRightWidth=$e(_)),s=t.depth+w,i.backgroundColor&&(o.style.backgroundColor=i.backgroundColor,i.borderColor&&(o.style.borderColor=i.borderColor))}var E;if(i.backgroundColor)E=ae.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:s},{type:"elem",elem:t,shift:0}]},e);else{var L=/cancel|phase/.test(r)?["svg-align"]:[];E=ae.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:o,shift:s,wrapperClasses:L}]},e)}return/cancel/.test(r)&&(E.height=t.height,E.depth=t.depth),/cancel/.test(r)&&!a?ae.makeSpan(["mord","cancel-lap"],[E],e):ae.makeSpan(["mord"],[E],e)},r6=(i,e)=>{var t=0,r=new Ne.MathNode(i.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Bi(i.body,e)]);switch(i.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*t+"pt"),r.setAttribute("height","+"+2*t+"pt"),r.setAttribute("lspace",t+"pt"),r.setAttribute("voffset",t+"pt"),i.label==="\\fcolorbox"){var n=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);r.setAttribute("style","border: "+n+"em solid "+String(i.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return i.backgroundColor&&r.setAttribute("mathbackground",i.backgroundColor),r};rt({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(i,e,t){var{parser:r,funcName:n}=i,o=Zt(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:r.mode,label:n,backgroundColor:o,body:s}},htmlBuilder:i6,mathmlBuilder:r6});rt({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(i,e,t){var{parser:r,funcName:n}=i,o=Zt(e[0],"color-token").color,s=Zt(e[1],"color-token").color,a=e[2];return{type:"enclose",mode:r.mode,label:n,backgroundColor:s,borderColor:o,body:a}},htmlBuilder:i6,mathmlBuilder:r6});rt({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(i,e){var{parser:t}=i;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});rt({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(i,e){var{parser:t,funcName:r}=i,n=e[0];return{type:"enclose",mode:t.mode,label:r,body:n}},htmlBuilder:i6,mathmlBuilder:r6});rt({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(i,e){var{parser:t}=i;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var Aj={};function Pa(i){for(var{type:e,names:t,props:r,handler:n,htmlBuilder:o,mathmlBuilder:s}=i,a={type:e,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:n},l=0;l{var e=i.parser.settings;if(!e.displayMode)throw new Be("{"+i.envName+"} can be used only in display mode.")};function n6(i){if(i.indexOf("ed")===-1)return i.indexOf("*")===-1}function gd(i,e,t){var{hskipBeforeAndAfter:r,addJot:n,cols:o,arraystretch:s,colSeparationType:a,autoTag:l,singleRow:c,emptySingleRow:d,maxNumCols:u,leqno:h}=e;if(i.gullet.beginGroup(),c||i.gullet.macros.set("\\cr","\\\\\\relax"),!s){var f=i.gullet.expandMacroAsText("\\arraystretch");if(f==null)s=1;else if(s=parseFloat(f),!s||s<0)throw new Be("Invalid \\arraystretch: "+f)}i.gullet.beginGroup();var m=[],g=[m],w=[],_=[],E=l!=null?[]:void 0;function L(){l&&i.gullet.macros.set("\\@eqnsw","1",!0)}function A(){E&&(i.gullet.macros.get("\\df@tag")?(E.push(i.subparse([new Na("\\df@tag")])),i.gullet.macros.set("\\df@tag",void 0,!0)):E.push(!!l&&i.gullet.macros.get("\\@eqnsw")==="1"))}for(L(),_.push(PU(i));;){var O=i.parseExpression(!1,c?"\\end":"\\\\");i.gullet.endGroup(),i.gullet.beginGroup(),O={type:"ordgroup",mode:i.mode,body:O},t&&(O={type:"styling",mode:i.mode,style:t,body:[O]}),m.push(O);var U=i.fetch().text;if(U==="&"){if(u&&m.length===u){if(c||a)throw new Be("Too many tab characters: &",i.nextToken);i.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}i.consume()}else if(U==="\\end"){A(),m.length===1&&O.type==="styling"&&O.body[0].body.length===0&&(g.length>1||!d)&&g.pop(),_.length0&&(L+=.25),c.push({pos:L,isDashed:Go[fr]})}for(A(s[0]),r=0;r0&&(ve+=E,YGo))for(r=0;r=a)){var Ai=void 0;(n>0||e.hskipBeforeAndAfter)&&(Ai=Rt.deflt(me.pregap,h),Ai!==0&&(Xe=ae.makeSpan(["arraycolsep"],[]),Xe.style.width=$e(Ai),Oe.push(Xe)));var Et=[];for(r=0;r0){for(var no=ae.makeLineSpan("hline",t,d),Ic=ae.makeLineSpan("hdashline",t,d),Ac=[{type:"elem",elem:l,shift:0}];c.length>0;){var ol=c.pop(),ou=ol.pos-Pe;ol.isDashed?Ac.push({type:"elem",elem:Ic,shift:ou}):Ac.push({type:"elem",elem:no,shift:ou})}l=ae.makeVList({positionType:"individualShift",children:Ac},t)}if(be.length===0)return ae.makeSpan(["mord"],[l],t);var Fr=ae.makeVList({positionType:"individualShift",children:be},t);return Fr=ae.makeSpan(["tag"],[Fr],t),ae.makeFragment([l,Fr])},Gde={c:"center ",l:"left ",r:"right "},Fa=function(e,t){for(var r=[],n=new Ne.MathNode("mtd",[],["mtr-glue"]),o=new Ne.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var m=e.cols,g="",w=!1,_=0,E=m.length;m[0].type==="separator"&&(h+="top ",_=1),m[m.length-1].type==="separator"&&(h+="bottom ",E-=1);for(var L=_;L0?"left ":"",h+=oe[oe.length-1].length>0?"right ":"";for(var te=1;te-1?"alignat":"align",o=e.envName==="split",s=gd(e.parser,{cols:r,addJot:!0,autoTag:o?void 0:n6(e.envName),emptySingleRow:!0,colSeparationType:n,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),a,l=0,c={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var d="",u=0;u0&&f&&(w=1),r[m]={type:"align",align:g,pregap:w,postgap:0}}return s.colSeparationType=f?"align":"alignat",s};Pa({type:"array",names:["array","darray"],props:{numArgs:1},handler(i,e){var t=Sw(e[0]),r=t?[e[0]]:Zt(e[0],"ordgroup").body,n=r.map(function(s){var a=J5(s),l=a.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Be("Unknown column alignment: "+l,s)}),o={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return gd(i.parser,o,o6(i.envName))},htmlBuilder:Oa,mathmlBuilder:Fa});Pa({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(i){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[i.envName.replace("*","")],t="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(i.envName.charAt(i.envName.length-1)==="*"){var n=i.parser;if(n.consumeSpaces(),n.fetch().text==="["){if(n.consume(),n.consumeSpaces(),t=n.fetch().text,"lcr".indexOf(t)===-1)throw new Be("Expected l or c or r",n.nextToken);n.consume(),n.consumeSpaces(),n.expect("]"),n.consume(),r.cols=[{type:"align",align:t}]}}var o=gd(i.parser,r,o6(i.envName)),s=Math.max(0,...o.body.map(a=>a.length));return o.cols=new Array(s).fill({type:"align",align:t}),e?{type:"leftright",mode:i.mode,body:[o],left:e[0],right:e[1],rightColor:void 0}:o},htmlBuilder:Oa,mathmlBuilder:Fa});Pa({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(i){var e={arraystretch:.5},t=gd(i.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:Oa,mathmlBuilder:Fa});Pa({type:"array",names:["subarray"],props:{numArgs:1},handler(i,e){var t=Sw(e[0]),r=t?[e[0]]:Zt(e[0],"ordgroup").body,n=r.map(function(s){var a=J5(s),l=a.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Be("Unknown column alignment: "+l,s)});if(n.length>1)throw new Be("{subarray} can contain only one column");var o={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=gd(i.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new Be("{subarray} can contain only one column");return o},htmlBuilder:Oa,mathmlBuilder:Fa});Pa({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(i){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=gd(i.parser,e,o6(i.envName));return{type:"leftright",mode:i.mode,body:[t],left:i.envName.indexOf("r")>-1?".":"\\{",right:i.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Oa,mathmlBuilder:Fa});Pa({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Dj,htmlBuilder:Oa,mathmlBuilder:Fa});Pa({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(i){Rt.contains(["gather","gather*"],i.envName)&&Tw(i);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:n6(i.envName),emptySingleRow:!0,leqno:i.parser.settings.leqno};return gd(i.parser,e,"display")},htmlBuilder:Oa,mathmlBuilder:Fa});Pa({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Dj,htmlBuilder:Oa,mathmlBuilder:Fa});Pa({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(i){Tw(i);var e={autoTag:n6(i.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:i.parser.settings.leqno};return gd(i.parser,e,"display")},htmlBuilder:Oa,mathmlBuilder:Fa});Pa({type:"array",names:["CD"],props:{numArgs:0},handler(i){return Tw(i),Rde(i.parser)},htmlBuilder:Oa,mathmlBuilder:Fa});P("\\nonumber","\\gdef\\@eqnsw{0}");P("\\notag","\\nonumber");rt({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(i,e){throw new Be(i.funcName+" valid only within array environment")}});var OU=Aj;rt({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(i,e){var{parser:t,funcName:r}=i,n=e[0];if(n.type!=="ordgroup")throw new Be("Invalid environment name",n);for(var o="",s=0;s{var t=i.font,r=e.withFont(t);return vi(i.body,r)},Nj=(i,e)=>{var t=i.font,r=e.withFont(t);return Bi(i.body,r)},FU={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};rt({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(i,e)=>{var{parser:t,funcName:r}=i,n=_w(e[0]),o=r;return o in FU&&(o=FU[o]),{type:"font",mode:t.mode,font:o.slice(1),body:n}},htmlBuilder:Mj,mathmlBuilder:Nj});rt({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(i,e)=>{var{parser:t}=i,r=e[0],n=Rt.isCharacterBox(r);return{type:"mclass",mode:t.mode,mclass:kw(r),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:r}],isCharacterBox:n}}});rt({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(i,e)=>{var{parser:t,funcName:r,breakOnTokenText:n}=i,{mode:o}=t,s=t.parseExpression(!0,n),a="math"+r.slice(1);return{type:"font",mode:o,font:a,body:{type:"ordgroup",mode:t.mode,body:s}}},htmlBuilder:Mj,mathmlBuilder:Nj});var Rj=(i,e)=>{var t=e;return i==="display"?t=t.id>=kt.SCRIPT.id?t.text():kt.DISPLAY:i==="text"&&t.size===kt.DISPLAY.size?t=kt.TEXT:i==="script"?t=kt.SCRIPT:i==="scriptscript"&&(t=kt.SCRIPTSCRIPT),t},s6=(i,e)=>{var t=Rj(i.size,e.style),r=t.fracNum(),n=t.fracDen(),o;o=e.havingStyle(r);var s=vi(i.numer,o,e);if(i.continued){var a=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height0?m=3*h:m=7*h,g=e.fontMetrics().denom1):(u>0?(f=e.fontMetrics().num2,m=h):(f=e.fontMetrics().num3,m=3*h),g=e.fontMetrics().denom2);var w;if(d){var E=e.fontMetrics().axisHeight;f-s.depth-(E+.5*u){var t=new Ne.MathNode("mfrac",[Bi(i.numer,e),Bi(i.denom,e)]);if(!i.hasBarLine)t.setAttribute("linethickness","0px");else if(i.barSize){var r=ur(i.barSize,e);t.setAttribute("linethickness",$e(r))}var n=Rj(i.size,e.style);if(n.size!==e.style.size){t=new Ne.MathNode("mstyle",[t]);var o=n.size===kt.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",o),t.setAttribute("scriptlevel","0")}if(i.leftDelim!=null||i.rightDelim!=null){var s=[];if(i.leftDelim!=null){var a=new Ne.MathNode("mo",[new Ne.TextNode(i.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),s.push(a)}if(s.push(t),i.rightDelim!=null){var l=new Ne.MathNode("mo",[new Ne.TextNode(i.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return Q5(s)}return t};rt({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(i,e)=>{var{parser:t,funcName:r}=i,n=e[0],o=e[1],s,a=null,l=null,c="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,a="(",l=")";break;case"\\\\bracefrac":s=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:n,denom:o,hasBarLine:s,leftDelim:a,rightDelim:l,size:c,barSize:null}},htmlBuilder:s6,mathmlBuilder:a6});rt({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(i,e)=>{var{parser:t,funcName:r}=i,n=e[0],o=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:n,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});rt({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(i){var{parser:e,funcName:t,token:r}=i,n;switch(t){case"\\over":n="\\frac";break;case"\\choose":n="\\binom";break;case"\\atop":n="\\\\atopfrac";break;case"\\brace":n="\\\\bracefrac";break;case"\\brack":n="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:n,token:r}}});var zU=["display","text","script","scriptscript"],BU=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};rt({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(i,e){var{parser:t}=i,r=e[4],n=e[5],o=_w(e[0]),s=o.type==="atom"&&o.family==="open"?BU(o.text):null,a=_w(e[1]),l=a.type==="atom"&&a.family==="close"?BU(a.text):null,c=Zt(e[2],"size"),d,u=null;c.isBlank?d=!0:(u=c.value,d=u.number>0);var h="auto",f=e[3];if(f.type==="ordgroup"){if(f.body.length>0){var m=Zt(f.body[0],"textord");h=zU[Number(m.text)]}}else f=Zt(f,"textord"),h=zU[Number(f.text)];return{type:"genfrac",mode:t.mode,numer:r,denom:n,continued:!1,hasBarLine:d,barSize:u,leftDelim:s,rightDelim:l,size:h}},htmlBuilder:s6,mathmlBuilder:a6});rt({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(i,e){var{parser:t,funcName:r,token:n}=i;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:Zt(e[0],"size").value,token:n}}});rt({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(i,e)=>{var{parser:t,funcName:r}=i,n=e[0],o=Tce(Zt(e[1],"infix").size),s=e[2],a=o.number>0;return{type:"genfrac",mode:t.mode,numer:n,denom:s,continued:!1,hasBarLine:a,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:s6,mathmlBuilder:a6});var Pj=(i,e)=>{var t=e.style,r,n;i.type==="supsub"?(r=i.sup?vi(i.sup,e.havingStyle(t.sup()),e):vi(i.sub,e.havingStyle(t.sub()),e),n=Zt(i.base,"horizBrace")):n=Zt(i,"horizBrace");var o=vi(n.base,e.havingBaseStyle(kt.DISPLAY)),s=Ul.svgSpan(n,e),a;if(n.isOver?(a=ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),a.children[0].children[0].children[1].classes.push("svg-align")):(a=ae.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),a.children[0].children[0].children[0].classes.push("svg-align")),r){var l=ae.makeSpan(["mord",n.isOver?"mover":"munder"],[a],e);n.isOver?a=ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},e):a=ae.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return ae.makeSpan(["mord",n.isOver?"mover":"munder"],[a],e)},Yde=(i,e)=>{var t=Ul.mathMLnode(i.label);return new Ne.MathNode(i.isOver?"mover":"munder",[Bi(i.base,e),t])};rt({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(i,e){var{parser:t,funcName:r}=i;return{type:"horizBrace",mode:t.mode,label:r,isOver:/^\\over/.test(r),base:e[0]}},htmlBuilder:Pj,mathmlBuilder:Yde});rt({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(i,e)=>{var{parser:t}=i,r=e[1],n=Zt(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:n})?{type:"href",mode:t.mode,href:n,body:Er(r)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(i,e)=>{var t=Wr(i.body,e,!1);return ae.makeAnchor(i.href,[],t,e)},mathmlBuilder:(i,e)=>{var t=md(i.body,e);return t instanceof fo||(t=new fo("mrow",[t])),t.setAttribute("href",i.href),t}});rt({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(i,e)=>{var{parser:t}=i,r=Zt(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:r}))return t.formatUnsupportedCmd("\\url");for(var n=[],o=0;o{var{parser:t,funcName:r,token:n}=i,o=Zt(e[0],"raw").string,s=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var a,l={};switch(r){case"\\htmlClass":l.class=o,a={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,a={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,a={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var c=o.split(","),d=0;d{var t=Wr(i.body,e,!1),r=["enclosing"];i.attributes.class&&r.push(...i.attributes.class.trim().split(/\s+/));var n=ae.makeSpan(r,t,e);for(var o in i.attributes)o!=="class"&&i.attributes.hasOwnProperty(o)&&n.setAttribute(o,i.attributes[o]);return n},mathmlBuilder:(i,e)=>md(i.body,e)});rt({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(i,e)=>{var{parser:t}=i;return{type:"htmlmathml",mode:t.mode,html:Er(e[0]),mathml:Er(e[1])}},htmlBuilder:(i,e)=>{var t=Wr(i.html,e,!1);return ae.makeFragment(t)},mathmlBuilder:(i,e)=>md(i.mathml,e)});var M5=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Be("Invalid size: '"+e+"' in \\includegraphics");var r={number:+(t[1]+t[2]),unit:t[3]};if(!ej(r))throw new Be("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};rt({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(i,e,t)=>{var{parser:r}=i,n={number:0,unit:"em"},o={number:.9,unit:"em"},s={number:0,unit:"em"},a="";if(t[0])for(var l=Zt(t[0],"raw").string,c=l.split(","),d=0;d{var t=ur(i.height,e),r=0;i.totalheight.number>0&&(r=ur(i.totalheight,e)-t);var n=0;i.width.number>0&&(n=ur(i.width,e));var o={height:$e(t+r)};n>0&&(o.width=$e(n)),r>0&&(o.verticalAlign=$e(-r));var s=new z5(i.src,i.alt,o);return s.height=t,s.depth=r,s},mathmlBuilder:(i,e)=>{var t=new Ne.MathNode("mglyph",[]);t.setAttribute("alt",i.alt);var r=ur(i.height,e),n=0;if(i.totalheight.number>0&&(n=ur(i.totalheight,e)-r,t.setAttribute("valign",$e(-n))),t.setAttribute("height",$e(r+n)),i.width.number>0){var o=ur(i.width,e);t.setAttribute("width",$e(o))}return t.setAttribute("src",i.src),t}});rt({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(i,e){var{parser:t,funcName:r}=i,n=Zt(e[0],"size");if(t.settings.strict){var o=r[1]==="m",s=n.value.unit==="mu";o?(s||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+n.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:n.value}},htmlBuilder(i,e){return ae.makeGlue(i.dimension,e)},mathmlBuilder(i,e){var t=ur(i.dimension,e);return new Ne.SpaceNode(t)}});rt({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(i,e)=>{var{parser:t,funcName:r}=i,n=e[0];return{type:"lap",mode:t.mode,alignment:r.slice(5),body:n}},htmlBuilder:(i,e)=>{var t;i.alignment==="clap"?(t=ae.makeSpan([],[vi(i.body,e)]),t=ae.makeSpan(["inner"],[t],e)):t=ae.makeSpan(["inner"],[vi(i.body,e)]);var r=ae.makeSpan(["fix"],[]),n=ae.makeSpan([i.alignment],[t,r],e),o=ae.makeSpan(["strut"]);return o.style.height=$e(n.height+n.depth),n.depth&&(o.style.verticalAlign=$e(-n.depth)),n.children.unshift(o),n=ae.makeSpan(["thinbox"],[n],e),ae.makeSpan(["mord","vbox"],[n],e)},mathmlBuilder:(i,e)=>{var t=new Ne.MathNode("mpadded",[Bi(i.body,e)]);if(i.alignment!=="rlap"){var r=i.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",r+"width")}return t.setAttribute("width","0px"),t}});rt({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(i,e){var{funcName:t,parser:r}=i,n=r.mode;r.switchMode("math");var o=t==="\\("?"\\)":"$",s=r.parseExpression(!1,o);return r.expect(o),r.switchMode(n),{type:"styling",mode:r.mode,style:"text",body:s}}});rt({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(i,e){throw new Be("Mismatched "+i.funcName)}});var HU=(i,e)=>{switch(e.style.size){case kt.DISPLAY.size:return i.display;case kt.TEXT.size:return i.text;case kt.SCRIPT.size:return i.script;case kt.SCRIPTSCRIPT.size:return i.scriptscript;default:return i.text}};rt({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(i,e)=>{var{parser:t}=i;return{type:"mathchoice",mode:t.mode,display:Er(e[0]),text:Er(e[1]),script:Er(e[2]),scriptscript:Er(e[3])}},htmlBuilder:(i,e)=>{var t=HU(i,e),r=Wr(t,e,!1);return ae.makeFragment(r)},mathmlBuilder:(i,e)=>{var t=HU(i,e);return md(t,e)}});var Oj=(i,e,t,r,n,o,s)=>{i=ae.makeSpan([],[i]);var a=t&&Rt.isCharacterBox(t),l,c;if(e){var d=vi(e,r.havingStyle(n.sup()),r);c={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(t){var u=vi(t,r.havingStyle(n.sub()),r);l={elem:u,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-u.height)}}var h;if(c&&l){var f=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+i.depth+s;h=ae.makeVList({positionType:"bottom",positionData:f,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:$e(-o)},{type:"kern",size:l.kern},{type:"elem",elem:i},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:$e(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var m=i.height-s;h=ae.makeVList({positionType:"top",positionData:m,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:$e(-o)},{type:"kern",size:l.kern},{type:"elem",elem:i}]},r)}else if(c){var g=i.depth+s;h=ae.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:i},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:$e(o)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return i;var w=[h];if(l&&o!==0&&!a){var _=ae.makeSpan(["mspace"],[],r);_.style.marginRight=$e(o),w.unshift(_)}return ae.makeSpan(["mop","op-limits"],w,r)},Fj=["\\smallint"],$f=(i,e)=>{var t,r,n=!1,o;i.type==="supsub"?(t=i.sup,r=i.sub,o=Zt(i.base,"op"),n=!0):o=Zt(i,"op");var s=e.style,a=!1;s.size===kt.DISPLAY.size&&o.symbol&&!Rt.contains(Fj,o.name)&&(a=!0);var l;if(o.symbol){var c=a?"Size2-Regular":"Size1-Regular",d="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(d=o.name.slice(1),o.name=d==="oiint"?"\\iint":"\\iiint"),l=ae.makeSymbol(o.name,c,"math",e,["mop","op-symbol",a?"large-op":"small-op"]),d.length>0){var u=l.italic,h=ae.staticSvg(d+"Size"+(a?"2":"1"),e);l=ae.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:h,shift:a?.08:0}]},e),o.name="\\"+d,l.classes.unshift("mop"),l.italic=u}}else if(o.body){var f=Wr(o.body,e,!0);f.length===1&&f[0]instanceof po?(l=f[0],l.classes[0]="mop"):l=ae.makeSpan(["mop"],f,e)}else{for(var m=[],g=1;g{var t;if(i.symbol)t=new fo("mo",[as(i.name,i.mode)]),Rt.contains(Fj,i.name)&&t.setAttribute("largeop","false");else if(i.body)t=new fo("mo",mo(i.body,e));else{t=new fo("mi",[new Ru(i.name.slice(1))]);var r=new fo("mo",[as("\u2061","text")]);i.parentIsSupSub?t=new fo("mrow",[t,r]):t=uj([t,r])}return t},Xde={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};rt({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(i,e)=>{var{parser:t,funcName:r}=i,n=r;return n.length===1&&(n=Xde[n]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:$f,mathmlBuilder:Qg});rt({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(i,e)=>{var{parser:t}=i,r=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Er(r)}},htmlBuilder:$f,mathmlBuilder:Qg});var Qde={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};rt({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(i){var{parser:e,funcName:t}=i;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:$f,mathmlBuilder:Qg});rt({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(i){var{parser:e,funcName:t}=i;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:$f,mathmlBuilder:Qg});rt({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(i){var{parser:e,funcName:t}=i,r=t;return r.length===1&&(r=Qde[r]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:$f,mathmlBuilder:Qg});var zj=(i,e)=>{var t,r,n=!1,o;i.type==="supsub"?(t=i.sup,r=i.sub,o=Zt(i.base,"operatorname"),n=!0):o=Zt(i,"operatorname");var s;if(o.body.length>0){for(var a=o.body.map(u=>{var h=u.text;return typeof h=="string"?{type:"textord",mode:u.mode,text:h}:u}),l=Wr(a,e.withFont("mathrm"),!0),c=0;c{for(var t=mo(i.body,e.withFont("mathrm")),r=!0,n=0;nd.toText()).join("");t=[new Ne.TextNode(a)]}var l=new Ne.MathNode("mi",t);l.setAttribute("mathvariant","normal");var c=new Ne.MathNode("mo",[as("\u2061","text")]);return i.parentIsSupSub?new Ne.MathNode("mrow",[l,c]):Ne.newDocumentFragment([l,c])};rt({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(i,e)=>{var{parser:t,funcName:r}=i,n=e[0];return{type:"operatorname",mode:t.mode,body:Er(n),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:zj,mathmlBuilder:Zde});P("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Fu({type:"ordgroup",htmlBuilder(i,e){return i.semisimple?ae.makeFragment(Wr(i.body,e,!1)):ae.makeSpan(["mord"],Wr(i.body,e,!0),e)},mathmlBuilder(i,e){return md(i.body,e,!0)}});rt({type:"overline",names:["\\overline"],props:{numArgs:1},handler(i,e){var{parser:t}=i,r=e[0];return{type:"overline",mode:t.mode,body:r}},htmlBuilder(i,e){var t=vi(i.body,e.havingCrampedStyle()),r=ae.makeLineSpan("overline-line",e),n=e.fontMetrics().defaultRuleThickness,o=ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*n},{type:"elem",elem:r},{type:"kern",size:n}]},e);return ae.makeSpan(["mord","overline"],[o],e)},mathmlBuilder(i,e){var t=new Ne.MathNode("mo",[new Ne.TextNode("\u203E")]);t.setAttribute("stretchy","true");var r=new Ne.MathNode("mover",[Bi(i.body,e),t]);return r.setAttribute("accent","true"),r}});rt({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(i,e)=>{var{parser:t}=i,r=e[0];return{type:"phantom",mode:t.mode,body:Er(r)}},htmlBuilder:(i,e)=>{var t=Wr(i.body,e.withPhantom(),!1);return ae.makeFragment(t)},mathmlBuilder:(i,e)=>{var t=mo(i.body,e);return new Ne.MathNode("mphantom",t)}});rt({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(i,e)=>{var{parser:t}=i,r=e[0];return{type:"hphantom",mode:t.mode,body:r}},htmlBuilder:(i,e)=>{var t=ae.makeSpan([],[vi(i.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var r=0;r{var t=mo(Er(i.body),e),r=new Ne.MathNode("mphantom",t),n=new Ne.MathNode("mpadded",[r]);return n.setAttribute("height","0px"),n.setAttribute("depth","0px"),n}});rt({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(i,e)=>{var{parser:t}=i,r=e[0];return{type:"vphantom",mode:t.mode,body:r}},htmlBuilder:(i,e)=>{var t=ae.makeSpan(["inner"],[vi(i.body,e.withPhantom())]),r=ae.makeSpan(["fix"],[]);return ae.makeSpan(["mord","rlap"],[t,r],e)},mathmlBuilder:(i,e)=>{var t=mo(Er(i.body),e),r=new Ne.MathNode("mphantom",t),n=new Ne.MathNode("mpadded",[r]);return n.setAttribute("width","0px"),n}});rt({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(i,e){var{parser:t}=i,r=Zt(e[0],"size").value,n=e[1];return{type:"raisebox",mode:t.mode,dy:r,body:n}},htmlBuilder(i,e){var t=vi(i.body,e),r=ur(i.dy,e);return ae.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(i,e){var t=new Ne.MathNode("mpadded",[Bi(i.body,e)]),r=i.dy.number+i.dy.unit;return t.setAttribute("voffset",r),t}});rt({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(i){var{parser:e}=i;return{type:"internal",mode:e.mode}}});rt({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(i,e,t){var{parser:r}=i,n=t[0],o=Zt(e[0],"size"),s=Zt(e[1],"size");return{type:"rule",mode:r.mode,shift:n&&Zt(n,"size").value,width:o.value,height:s.value}},htmlBuilder(i,e){var t=ae.makeSpan(["mord","rule"],[],e),r=ur(i.width,e),n=ur(i.height,e),o=i.shift?ur(i.shift,e):0;return t.style.borderRightWidth=$e(r),t.style.borderTopWidth=$e(n),t.style.bottom=$e(o),t.width=r,t.height=n+o,t.depth=-o,t.maxFontSize=n*1.125*e.sizeMultiplier,t},mathmlBuilder(i,e){var t=ur(i.width,e),r=ur(i.height,e),n=i.shift?ur(i.shift,e):0,o=e.color&&e.getColor()||"black",s=new Ne.MathNode("mspace");s.setAttribute("mathbackground",o),s.setAttribute("width",$e(t)),s.setAttribute("height",$e(r));var a=new Ne.MathNode("mpadded",[s]);return n>=0?a.setAttribute("height",$e(n)):(a.setAttribute("height",$e(n)),a.setAttribute("depth",$e(-n))),a.setAttribute("voffset",$e(n)),a}});function Bj(i,e,t){for(var r=Wr(i,e,!1),n=e.sizeMultiplier/t.sizeMultiplier,o=0;o{var t=e.havingSize(i.size);return Bj(i.body,t,e)};rt({type:"sizing",names:UU,props:{numArgs:0,allowedInText:!0},handler:(i,e)=>{var{breakOnTokenText:t,funcName:r,parser:n}=i,o=n.parseExpression(!1,t);return{type:"sizing",mode:n.mode,size:UU.indexOf(r)+1,body:o}},htmlBuilder:Jde,mathmlBuilder:(i,e)=>{var t=e.havingSize(i.size),r=mo(i.body,t),n=new Ne.MathNode("mstyle",r);return n.setAttribute("mathsize",$e(t.sizeMultiplier)),n}});rt({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(i,e,t)=>{var{parser:r}=i,n=!1,o=!1,s=t[0]&&Zt(t[0],"ordgroup");if(s)for(var a="",l=0;l{var t=ae.makeSpan([],[vi(i.body,e)]);if(!i.smashHeight&&!i.smashDepth)return t;if(i.smashHeight&&(t.height=0,t.children))for(var r=0;r{var t=new Ne.MathNode("mpadded",[Bi(i.body,e)]);return i.smashHeight&&t.setAttribute("height","0px"),i.smashDepth&&t.setAttribute("depth","0px"),t}});rt({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(i,e,t){var{parser:r}=i,n=t[0],o=e[0];return{type:"sqrt",mode:r.mode,body:o,index:n}},htmlBuilder(i,e){var t=vi(i.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=ae.wrapFragment(t,e);var r=e.fontMetrics(),n=r.defaultRuleThickness,o=n;e.style.idt.height+t.depth+s&&(s=(s+u-t.height-t.depth)/2);var h=l.height-t.height-s-c;t.style.paddingLeft=$e(d);var f=ae.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+h)},{type:"elem",elem:l},{type:"kern",size:c}]},e);if(i.index){var m=e.havingStyle(kt.SCRIPTSCRIPT),g=vi(i.index,m,e),w=.6*(f.height-f.depth),_=ae.makeVList({positionType:"shift",positionData:-w,children:[{type:"elem",elem:g}]},e),E=ae.makeSpan(["root"],[_]);return ae.makeSpan(["mord","sqrt"],[E,f],e)}else return ae.makeSpan(["mord","sqrt"],[f],e)},mathmlBuilder(i,e){var{body:t,index:r}=i;return r?new Ne.MathNode("mroot",[Bi(t,e),Bi(r,e)]):new Ne.MathNode("msqrt",[Bi(t,e)])}});var jU={display:kt.DISPLAY,text:kt.TEXT,script:kt.SCRIPT,scriptscript:kt.SCRIPTSCRIPT};rt({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i,e){var{breakOnTokenText:t,funcName:r,parser:n}=i,o=n.parseExpression(!0,t),s=r.slice(1,r.length-5);return{type:"styling",mode:n.mode,style:s,body:o}},htmlBuilder(i,e){var t=jU[i.style],r=e.havingStyle(t).withFont("");return Bj(i.body,r,e)},mathmlBuilder(i,e){var t=jU[i.style],r=e.havingStyle(t),n=mo(i.body,r),o=new Ne.MathNode("mstyle",n),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},a=s[i.style];return o.setAttribute("scriptlevel",a[0]),o.setAttribute("displaystyle",a[1]),o}});var eue=function(e,t){var r=e.base;if(r)if(r.type==="op"){var n=r.limits&&(t.style.size===kt.DISPLAY.size||r.alwaysHandleSupSub);return n?$f:null}else if(r.type==="operatorname"){var o=r.alwaysHandleSupSub&&(t.style.size===kt.DISPLAY.size||r.limits);return o?zj:null}else{if(r.type==="accent")return Rt.isCharacterBox(r.base)?e6:null;if(r.type==="horizBrace"){var s=!e.sub;return s===r.isOver?Pj:null}else return null}else return null};Fu({type:"supsub",htmlBuilder(i,e){var t=eue(i,e);if(t)return t(i,e);var{base:r,sup:n,sub:o}=i,s=vi(r,e),a,l,c=e.fontMetrics(),d=0,u=0,h=r&&Rt.isCharacterBox(r);if(n){var f=e.havingStyle(e.style.sup());a=vi(n,f,e),h||(d=s.height-f.fontMetrics().supDrop*f.sizeMultiplier/e.sizeMultiplier)}if(o){var m=e.havingStyle(e.style.sub());l=vi(o,m,e),h||(u=s.depth+m.fontMetrics().subDrop*m.sizeMultiplier/e.sizeMultiplier)}var g;e.style===kt.DISPLAY?g=c.sup1:e.style.cramped?g=c.sup3:g=c.sup2;var w=e.sizeMultiplier,_=$e(.5/c.ptPerEm/w),E=null;if(l){var L=i.base&&i.base.type==="op"&&i.base.name&&(i.base.name==="\\oiint"||i.base.name==="\\oiiint");(s instanceof po||L)&&(E=$e(-s.italic))}var A;if(a&&l){d=Math.max(d,g,a.depth+.25*c.xHeight),u=Math.max(u,c.sub2);var O=c.defaultRuleThickness,U=4*O;if(d-a.depth-(l.height-u)0&&(d+=Y,u-=Y)}var oe=[{type:"elem",elem:l,shift:u,marginRight:_,marginLeft:E},{type:"elem",elem:a,shift:-d,marginRight:_}];A=ae.makeVList({positionType:"individualShift",children:oe},e)}else if(l){u=Math.max(u,c.sub1,l.height-.8*c.xHeight);var te=[{type:"elem",elem:l,marginLeft:E,marginRight:_}];A=ae.makeVList({positionType:"shift",positionData:u,children:te},e)}else if(a)d=Math.max(d,g,a.depth+.25*c.xHeight),A=ae.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:a,marginRight:_}]},e);else throw new Error("supsub must have either sup or sub.");var Z=H5(s,"right")||"mord";return ae.makeSpan([Z],[s,ae.makeSpan(["msupsub"],[A])],e)},mathmlBuilder(i,e){var t=!1,r,n;i.base&&i.base.type==="horizBrace"&&(n=!!i.sup,n===i.base.isOver&&(t=!0,r=i.base.isOver)),i.base&&(i.base.type==="op"||i.base.type==="operatorname")&&(i.base.parentIsSupSub=!0);var o=[Bi(i.base,e)];i.sub&&o.push(Bi(i.sub,e)),i.sup&&o.push(Bi(i.sup,e));var s;if(t)s=r?"mover":"munder";else if(i.sub)if(i.sup){var c=i.base;c&&c.type==="op"&&c.limits&&e.style===kt.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(e.style===kt.DISPLAY||c.limits)?s="munderover":s="msubsup"}else{var l=i.base;l&&l.type==="op"&&l.limits&&(e.style===kt.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===kt.DISPLAY)?s="munder":s="msub"}else{var a=i.base;a&&a.type==="op"&&a.limits&&(e.style===kt.DISPLAY||a.alwaysHandleSupSub)||a&&a.type==="operatorname"&&a.alwaysHandleSupSub&&(a.limits||e.style===kt.DISPLAY)?s="mover":s="msup"}return new Ne.MathNode(s,o)}});Fu({type:"atom",htmlBuilder(i,e){return ae.mathsym(i.text,i.mode,e,["m"+i.family])},mathmlBuilder(i,e){var t=new Ne.MathNode("mo",[as(i.text,i.mode)]);if(i.family==="bin"){var r=Z5(i,e);r==="bold-italic"&&t.setAttribute("mathvariant",r)}else i.family==="punct"?t.setAttribute("separator","true"):(i.family==="open"||i.family==="close")&&t.setAttribute("stretchy","false");return t}});var Hj={mi:"italic",mn:"normal",mtext:"normal"};Fu({type:"mathord",htmlBuilder(i,e){return ae.makeOrd(i,e,"mathord")},mathmlBuilder(i,e){var t=new Ne.MathNode("mi",[as(i.text,i.mode,e)]),r=Z5(i,e)||"italic";return r!==Hj[t.type]&&t.setAttribute("mathvariant",r),t}});Fu({type:"textord",htmlBuilder(i,e){return ae.makeOrd(i,e,"textord")},mathmlBuilder(i,e){var t=as(i.text,i.mode,e),r=Z5(i,e)||"normal",n;return i.mode==="text"?n=new Ne.MathNode("mtext",[t]):/[0-9]/.test(i.text)?n=new Ne.MathNode("mn",[t]):i.text==="\\prime"?n=new Ne.MathNode("mo",[t]):n=new Ne.MathNode("mi",[t]),r!==Hj[n.type]&&n.setAttribute("mathvariant",r),n}});var N5={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},R5={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Fu({type:"spacing",htmlBuilder(i,e){if(R5.hasOwnProperty(i.text)){var t=R5[i.text].className||"";if(i.mode==="text"){var r=ae.makeOrd(i,e,"textord");return r.classes.push(t),r}else return ae.makeSpan(["mspace",t],[ae.mathsym(i.text,i.mode,e)],e)}else{if(N5.hasOwnProperty(i.text))return ae.makeSpan(["mspace",N5[i.text]],[],e);throw new Be('Unknown type of space "'+i.text+'"')}},mathmlBuilder(i,e){var t;if(R5.hasOwnProperty(i.text))t=new Ne.MathNode("mtext",[new Ne.TextNode("\xA0")]);else{if(N5.hasOwnProperty(i.text))return new Ne.MathNode("mspace");throw new Be('Unknown type of space "'+i.text+'"')}return t}});var WU=()=>{var i=new Ne.MathNode("mtd",[]);return i.setAttribute("width","50%"),i};Fu({type:"tag",mathmlBuilder(i,e){var t=new Ne.MathNode("mtable",[new Ne.MathNode("mtr",[WU(),new Ne.MathNode("mtd",[md(i.body,e)]),WU(),new Ne.MathNode("mtd",[md(i.tag,e)])])]);return t.setAttribute("width","100%"),t}});var VU={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},qU={"\\textbf":"textbf","\\textmd":"textmd"},tue={"\\textit":"textit","\\textup":"textup"},KU=(i,e)=>{var t=i.font;return t?VU[t]?e.withTextFontFamily(VU[t]):qU[t]?e.withTextFontWeight(qU[t]):e.withTextFontShape(tue[t]):e};rt({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(i,e){var{parser:t,funcName:r}=i,n=e[0];return{type:"text",mode:t.mode,body:Er(n),font:r}},htmlBuilder(i,e){var t=KU(i,e),r=Wr(i.body,t,!0);return ae.makeSpan(["mord","text"],r,t)},mathmlBuilder(i,e){var t=KU(i,e);return md(i.body,t)}});rt({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(i,e){var{parser:t}=i;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(i,e){var t=vi(i.body,e),r=ae.makeLineSpan("underline-line",e),n=e.fontMetrics().defaultRuleThickness,o=ae.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:n},{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:t}]},e);return ae.makeSpan(["mord","underline"],[o],e)},mathmlBuilder(i,e){var t=new Ne.MathNode("mo",[new Ne.TextNode("\u203E")]);t.setAttribute("stretchy","true");var r=new Ne.MathNode("munder",[Bi(i.body,e),t]);return r.setAttribute("accentunder","true"),r}});rt({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(i,e){var{parser:t}=i;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(i,e){var t=vi(i.body,e),r=e.fontMetrics().axisHeight,n=.5*(t.height-r-(t.depth+r));return ae.makeVList({positionType:"shift",positionData:n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(i,e){return new Ne.MathNode("mpadded",[Bi(i.body,e)],["vcenter"])}});rt({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(i,e,t){throw new Be("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(i,e){for(var t=$U(i),r=[],n=e.havingStyle(e.style.text()),o=0;oi.body.replace(/ /g,i.star?"\u2423":"\xA0"),fd=cj,Uj=`[ \r - ]`,iue="\\\\[a-zA-Z@]+",rue="\\\\[^\uD800-\uDFFF]",nue="("+iue+")"+Uj+"*",oue=`\\\\( +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}},Iu=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return wt.contains(this.classes,e)}toNode(){for(var e=document.createDocumentFragment(),t=0;tt.toText();return this.children.map(e).join("")}},Ha={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},Z4={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Qj={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function mfe(i,e){Ha[i]=e}function D8(i,e,t){if(!Ha[e])throw new Error("Font metrics not found for font: "+e+".");var n=i.charCodeAt(0),r=Ha[e][n];if(!r&&i[0]in Qj&&(n=Qj[i[0]].charCodeAt(0),r=Ha[e][n]),!r&&t==="text"&&IW(n)&&(r=Ha[e][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}var a8={};function gfe(i){var e;if(i>=5?e=0:i>=3?e=1:e=2,!a8[e]){var t=a8[e]={cssEmPerMu:Z4.quad[e]/18};for(var n in Z4)Z4.hasOwnProperty(n)&&(t[n]=Z4[n][e])}return a8[e]}var vfe=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Jj=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Zj=function(e,t){return t.size<2?e:vfe[e-1][t.size-1]},f5=class i{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||i.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=Jj[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return new i(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:Zj(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:Jj[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=Zj(i.BASESIZE,e);return this.size===t&&this.textSize===i.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==i.BASESIZE?["sizing","reset-size"+this.size,"size"+i.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=gfe(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}};f5.BASESIZE=6;var y8={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},_fe={ex:!0,em:!0,mu:!0},AW=function(e){return typeof e!="string"&&(e=e.unit),e in y8||e in _fe||e==="ex"},cn=function(e,t){var n;if(e.unit in y8)n=y8[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if(e.unit==="mu")n=t.fontMetrics().cssEmPerMu;else{var r;if(t.style.isTight()?r=t.havingStyle(t.style.text()):r=t,e.unit==="ex")n=r.fontMetrics().xHeight;else if(e.unit==="em")n=r.fontMetrics().quad;else throw new Ie("Invalid unit: '"+e.unit+"'");r!==t&&(n*=r.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},ze=function(e){return+e.toFixed(4)+"em"},hd=function(e){return e.filter(t=>t).join(" ")},LW=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var r=t.getColor();r&&(this.style.color=r)}},MW=function(e){var t=document.createElement(e);t.className=hd(this.classes);for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var r in this.attributes)this.attributes.hasOwnProperty(r)&&t.setAttribute(r,this.attributes[r]);for(var o=0;o",t},Au=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,LW.call(this,e,n,r),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return wt.contains(this.classes,e)}toNode(){return MW.call(this,"span")}toMarkup(){return DW.call(this,"span")}},J1=class{constructor(e,t,n,r){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,LW.call(this,t,r),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return wt.contains(this.classes,e)}toNode(){return MW.call(this,"a")}toMarkup(){return DW.call(this,"a")}},C8=class{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return wt.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(var t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e=""+this.alt+"0&&(t=document.createElement("span"),t.style.marginRight=ze(this.italic)),this.classes.length>0&&(t=t||document.createElement("span"),t.className=hd(this.classes));for(var n in this.style)this.style.hasOwnProperty(n)&&(t=t||document.createElement("span"),t.style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="0&&(n+="margin-right:"+this.italic+"em;");for(var r in this.style)this.style.hasOwnProperty(r)&&(n+=wt.hyphenate(r)+":"+this.style[r]+";");n&&(e=!0,t+=' style="'+wt.escape(n)+'"');var o=wt.escape(this.text);return e?(t+=">",t+=o,t+="",t):o}},Vs=class{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"svg");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);for(var r=0;r":""}},Z1=class{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e="http://www.w3.org/2000/svg",t=document.createElementNS(e,"line");for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);return t}toMarkup(){var e=" but got "+String(i)+".")}var Cfe={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Sfe={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Wi={math:{},text:{}};function y(i,e,t,n,r,o){Wi[i][r]={font:e,group:t,replace:n},o&&n&&(Wi[i][n]=Wi[i][r])}var E="math",we="text",L="main",W="ams",Zi="accent-token",Je="bin",eo="close",Vf="inner",bt="mathord",Nn="op-token",zo="open",y5="punct",V="rel",Zl="spacing",Y="textord";y(E,L,V,"\u2261","\\equiv",!0);y(E,L,V,"\u227A","\\prec",!0);y(E,L,V,"\u227B","\\succ",!0);y(E,L,V,"\u223C","\\sim",!0);y(E,L,V,"\u22A5","\\perp");y(E,L,V,"\u2AAF","\\preceq",!0);y(E,L,V,"\u2AB0","\\succeq",!0);y(E,L,V,"\u2243","\\simeq",!0);y(E,L,V,"\u2223","\\mid",!0);y(E,L,V,"\u226A","\\ll",!0);y(E,L,V,"\u226B","\\gg",!0);y(E,L,V,"\u224D","\\asymp",!0);y(E,L,V,"\u2225","\\parallel");y(E,L,V,"\u22C8","\\bowtie",!0);y(E,L,V,"\u2323","\\smile",!0);y(E,L,V,"\u2291","\\sqsubseteq",!0);y(E,L,V,"\u2292","\\sqsupseteq",!0);y(E,L,V,"\u2250","\\doteq",!0);y(E,L,V,"\u2322","\\frown",!0);y(E,L,V,"\u220B","\\ni",!0);y(E,L,V,"\u221D","\\propto",!0);y(E,L,V,"\u22A2","\\vdash",!0);y(E,L,V,"\u22A3","\\dashv",!0);y(E,L,V,"\u220B","\\owns");y(E,L,y5,".","\\ldotp");y(E,L,y5,"\u22C5","\\cdotp");y(E,L,Y,"#","\\#");y(we,L,Y,"#","\\#");y(E,L,Y,"&","\\&");y(we,L,Y,"&","\\&");y(E,L,Y,"\u2135","\\aleph",!0);y(E,L,Y,"\u2200","\\forall",!0);y(E,L,Y,"\u210F","\\hbar",!0);y(E,L,Y,"\u2203","\\exists",!0);y(E,L,Y,"\u2207","\\nabla",!0);y(E,L,Y,"\u266D","\\flat",!0);y(E,L,Y,"\u2113","\\ell",!0);y(E,L,Y,"\u266E","\\natural",!0);y(E,L,Y,"\u2663","\\clubsuit",!0);y(E,L,Y,"\u2118","\\wp",!0);y(E,L,Y,"\u266F","\\sharp",!0);y(E,L,Y,"\u2662","\\diamondsuit",!0);y(E,L,Y,"\u211C","\\Re",!0);y(E,L,Y,"\u2661","\\heartsuit",!0);y(E,L,Y,"\u2111","\\Im",!0);y(E,L,Y,"\u2660","\\spadesuit",!0);y(E,L,Y,"\xA7","\\S",!0);y(we,L,Y,"\xA7","\\S");y(E,L,Y,"\xB6","\\P",!0);y(we,L,Y,"\xB6","\\P");y(E,L,Y,"\u2020","\\dag");y(we,L,Y,"\u2020","\\dag");y(we,L,Y,"\u2020","\\textdagger");y(E,L,Y,"\u2021","\\ddag");y(we,L,Y,"\u2021","\\ddag");y(we,L,Y,"\u2021","\\textdaggerdbl");y(E,L,eo,"\u23B1","\\rmoustache",!0);y(E,L,zo,"\u23B0","\\lmoustache",!0);y(E,L,eo,"\u27EF","\\rgroup",!0);y(E,L,zo,"\u27EE","\\lgroup",!0);y(E,L,Je,"\u2213","\\mp",!0);y(E,L,Je,"\u2296","\\ominus",!0);y(E,L,Je,"\u228E","\\uplus",!0);y(E,L,Je,"\u2293","\\sqcap",!0);y(E,L,Je,"\u2217","\\ast");y(E,L,Je,"\u2294","\\sqcup",!0);y(E,L,Je,"\u25EF","\\bigcirc",!0);y(E,L,Je,"\u2219","\\bullet",!0);y(E,L,Je,"\u2021","\\ddagger");y(E,L,Je,"\u2240","\\wr",!0);y(E,L,Je,"\u2A3F","\\amalg");y(E,L,Je,"&","\\And");y(E,L,V,"\u27F5","\\longleftarrow",!0);y(E,L,V,"\u21D0","\\Leftarrow",!0);y(E,L,V,"\u27F8","\\Longleftarrow",!0);y(E,L,V,"\u27F6","\\longrightarrow",!0);y(E,L,V,"\u21D2","\\Rightarrow",!0);y(E,L,V,"\u27F9","\\Longrightarrow",!0);y(E,L,V,"\u2194","\\leftrightarrow",!0);y(E,L,V,"\u27F7","\\longleftrightarrow",!0);y(E,L,V,"\u21D4","\\Leftrightarrow",!0);y(E,L,V,"\u27FA","\\Longleftrightarrow",!0);y(E,L,V,"\u21A6","\\mapsto",!0);y(E,L,V,"\u27FC","\\longmapsto",!0);y(E,L,V,"\u2197","\\nearrow",!0);y(E,L,V,"\u21A9","\\hookleftarrow",!0);y(E,L,V,"\u21AA","\\hookrightarrow",!0);y(E,L,V,"\u2198","\\searrow",!0);y(E,L,V,"\u21BC","\\leftharpoonup",!0);y(E,L,V,"\u21C0","\\rightharpoonup",!0);y(E,L,V,"\u2199","\\swarrow",!0);y(E,L,V,"\u21BD","\\leftharpoondown",!0);y(E,L,V,"\u21C1","\\rightharpoondown",!0);y(E,L,V,"\u2196","\\nwarrow",!0);y(E,L,V,"\u21CC","\\rightleftharpoons",!0);y(E,W,V,"\u226E","\\nless",!0);y(E,W,V,"\uE010","\\@nleqslant");y(E,W,V,"\uE011","\\@nleqq");y(E,W,V,"\u2A87","\\lneq",!0);y(E,W,V,"\u2268","\\lneqq",!0);y(E,W,V,"\uE00C","\\@lvertneqq");y(E,W,V,"\u22E6","\\lnsim",!0);y(E,W,V,"\u2A89","\\lnapprox",!0);y(E,W,V,"\u2280","\\nprec",!0);y(E,W,V,"\u22E0","\\npreceq",!0);y(E,W,V,"\u22E8","\\precnsim",!0);y(E,W,V,"\u2AB9","\\precnapprox",!0);y(E,W,V,"\u2241","\\nsim",!0);y(E,W,V,"\uE006","\\@nshortmid");y(E,W,V,"\u2224","\\nmid",!0);y(E,W,V,"\u22AC","\\nvdash",!0);y(E,W,V,"\u22AD","\\nvDash",!0);y(E,W,V,"\u22EA","\\ntriangleleft");y(E,W,V,"\u22EC","\\ntrianglelefteq",!0);y(E,W,V,"\u228A","\\subsetneq",!0);y(E,W,V,"\uE01A","\\@varsubsetneq");y(E,W,V,"\u2ACB","\\subsetneqq",!0);y(E,W,V,"\uE017","\\@varsubsetneqq");y(E,W,V,"\u226F","\\ngtr",!0);y(E,W,V,"\uE00F","\\@ngeqslant");y(E,W,V,"\uE00E","\\@ngeqq");y(E,W,V,"\u2A88","\\gneq",!0);y(E,W,V,"\u2269","\\gneqq",!0);y(E,W,V,"\uE00D","\\@gvertneqq");y(E,W,V,"\u22E7","\\gnsim",!0);y(E,W,V,"\u2A8A","\\gnapprox",!0);y(E,W,V,"\u2281","\\nsucc",!0);y(E,W,V,"\u22E1","\\nsucceq",!0);y(E,W,V,"\u22E9","\\succnsim",!0);y(E,W,V,"\u2ABA","\\succnapprox",!0);y(E,W,V,"\u2246","\\ncong",!0);y(E,W,V,"\uE007","\\@nshortparallel");y(E,W,V,"\u2226","\\nparallel",!0);y(E,W,V,"\u22AF","\\nVDash",!0);y(E,W,V,"\u22EB","\\ntriangleright");y(E,W,V,"\u22ED","\\ntrianglerighteq",!0);y(E,W,V,"\uE018","\\@nsupseteqq");y(E,W,V,"\u228B","\\supsetneq",!0);y(E,W,V,"\uE01B","\\@varsupsetneq");y(E,W,V,"\u2ACC","\\supsetneqq",!0);y(E,W,V,"\uE019","\\@varsupsetneqq");y(E,W,V,"\u22AE","\\nVdash",!0);y(E,W,V,"\u2AB5","\\precneqq",!0);y(E,W,V,"\u2AB6","\\succneqq",!0);y(E,W,V,"\uE016","\\@nsubseteqq");y(E,W,Je,"\u22B4","\\unlhd");y(E,W,Je,"\u22B5","\\unrhd");y(E,W,V,"\u219A","\\nleftarrow",!0);y(E,W,V,"\u219B","\\nrightarrow",!0);y(E,W,V,"\u21CD","\\nLeftarrow",!0);y(E,W,V,"\u21CF","\\nRightarrow",!0);y(E,W,V,"\u21AE","\\nleftrightarrow",!0);y(E,W,V,"\u21CE","\\nLeftrightarrow",!0);y(E,W,V,"\u25B3","\\vartriangle");y(E,W,Y,"\u210F","\\hslash");y(E,W,Y,"\u25BD","\\triangledown");y(E,W,Y,"\u25CA","\\lozenge");y(E,W,Y,"\u24C8","\\circledS");y(E,W,Y,"\xAE","\\circledR");y(we,W,Y,"\xAE","\\circledR");y(E,W,Y,"\u2221","\\measuredangle",!0);y(E,W,Y,"\u2204","\\nexists");y(E,W,Y,"\u2127","\\mho");y(E,W,Y,"\u2132","\\Finv",!0);y(E,W,Y,"\u2141","\\Game",!0);y(E,W,Y,"\u2035","\\backprime");y(E,W,Y,"\u25B2","\\blacktriangle");y(E,W,Y,"\u25BC","\\blacktriangledown");y(E,W,Y,"\u25A0","\\blacksquare");y(E,W,Y,"\u29EB","\\blacklozenge");y(E,W,Y,"\u2605","\\bigstar");y(E,W,Y,"\u2222","\\sphericalangle",!0);y(E,W,Y,"\u2201","\\complement",!0);y(E,W,Y,"\xF0","\\eth",!0);y(we,L,Y,"\xF0","\xF0");y(E,W,Y,"\u2571","\\diagup");y(E,W,Y,"\u2572","\\diagdown");y(E,W,Y,"\u25A1","\\square");y(E,W,Y,"\u25A1","\\Box");y(E,W,Y,"\u25CA","\\Diamond");y(E,W,Y,"\xA5","\\yen",!0);y(we,W,Y,"\xA5","\\yen",!0);y(E,W,Y,"\u2713","\\checkmark",!0);y(we,W,Y,"\u2713","\\checkmark");y(E,W,Y,"\u2136","\\beth",!0);y(E,W,Y,"\u2138","\\daleth",!0);y(E,W,Y,"\u2137","\\gimel",!0);y(E,W,Y,"\u03DD","\\digamma",!0);y(E,W,Y,"\u03F0","\\varkappa");y(E,W,zo,"\u250C","\\@ulcorner",!0);y(E,W,eo,"\u2510","\\@urcorner",!0);y(E,W,zo,"\u2514","\\@llcorner",!0);y(E,W,eo,"\u2518","\\@lrcorner",!0);y(E,W,V,"\u2266","\\leqq",!0);y(E,W,V,"\u2A7D","\\leqslant",!0);y(E,W,V,"\u2A95","\\eqslantless",!0);y(E,W,V,"\u2272","\\lesssim",!0);y(E,W,V,"\u2A85","\\lessapprox",!0);y(E,W,V,"\u224A","\\approxeq",!0);y(E,W,Je,"\u22D6","\\lessdot");y(E,W,V,"\u22D8","\\lll",!0);y(E,W,V,"\u2276","\\lessgtr",!0);y(E,W,V,"\u22DA","\\lesseqgtr",!0);y(E,W,V,"\u2A8B","\\lesseqqgtr",!0);y(E,W,V,"\u2251","\\doteqdot");y(E,W,V,"\u2253","\\risingdotseq",!0);y(E,W,V,"\u2252","\\fallingdotseq",!0);y(E,W,V,"\u223D","\\backsim",!0);y(E,W,V,"\u22CD","\\backsimeq",!0);y(E,W,V,"\u2AC5","\\subseteqq",!0);y(E,W,V,"\u22D0","\\Subset",!0);y(E,W,V,"\u228F","\\sqsubset",!0);y(E,W,V,"\u227C","\\preccurlyeq",!0);y(E,W,V,"\u22DE","\\curlyeqprec",!0);y(E,W,V,"\u227E","\\precsim",!0);y(E,W,V,"\u2AB7","\\precapprox",!0);y(E,W,V,"\u22B2","\\vartriangleleft");y(E,W,V,"\u22B4","\\trianglelefteq");y(E,W,V,"\u22A8","\\vDash",!0);y(E,W,V,"\u22AA","\\Vvdash",!0);y(E,W,V,"\u2323","\\smallsmile");y(E,W,V,"\u2322","\\smallfrown");y(E,W,V,"\u224F","\\bumpeq",!0);y(E,W,V,"\u224E","\\Bumpeq",!0);y(E,W,V,"\u2267","\\geqq",!0);y(E,W,V,"\u2A7E","\\geqslant",!0);y(E,W,V,"\u2A96","\\eqslantgtr",!0);y(E,W,V,"\u2273","\\gtrsim",!0);y(E,W,V,"\u2A86","\\gtrapprox",!0);y(E,W,Je,"\u22D7","\\gtrdot");y(E,W,V,"\u22D9","\\ggg",!0);y(E,W,V,"\u2277","\\gtrless",!0);y(E,W,V,"\u22DB","\\gtreqless",!0);y(E,W,V,"\u2A8C","\\gtreqqless",!0);y(E,W,V,"\u2256","\\eqcirc",!0);y(E,W,V,"\u2257","\\circeq",!0);y(E,W,V,"\u225C","\\triangleq",!0);y(E,W,V,"\u223C","\\thicksim");y(E,W,V,"\u2248","\\thickapprox");y(E,W,V,"\u2AC6","\\supseteqq",!0);y(E,W,V,"\u22D1","\\Supset",!0);y(E,W,V,"\u2290","\\sqsupset",!0);y(E,W,V,"\u227D","\\succcurlyeq",!0);y(E,W,V,"\u22DF","\\curlyeqsucc",!0);y(E,W,V,"\u227F","\\succsim",!0);y(E,W,V,"\u2AB8","\\succapprox",!0);y(E,W,V,"\u22B3","\\vartriangleright");y(E,W,V,"\u22B5","\\trianglerighteq");y(E,W,V,"\u22A9","\\Vdash",!0);y(E,W,V,"\u2223","\\shortmid");y(E,W,V,"\u2225","\\shortparallel");y(E,W,V,"\u226C","\\between",!0);y(E,W,V,"\u22D4","\\pitchfork",!0);y(E,W,V,"\u221D","\\varpropto");y(E,W,V,"\u25C0","\\blacktriangleleft");y(E,W,V,"\u2234","\\therefore",!0);y(E,W,V,"\u220D","\\backepsilon");y(E,W,V,"\u25B6","\\blacktriangleright");y(E,W,V,"\u2235","\\because",!0);y(E,W,V,"\u22D8","\\llless");y(E,W,V,"\u22D9","\\gggtr");y(E,W,Je,"\u22B2","\\lhd");y(E,W,Je,"\u22B3","\\rhd");y(E,W,V,"\u2242","\\eqsim",!0);y(E,L,V,"\u22C8","\\Join");y(E,W,V,"\u2251","\\Doteq",!0);y(E,W,Je,"\u2214","\\dotplus",!0);y(E,W,Je,"\u2216","\\smallsetminus");y(E,W,Je,"\u22D2","\\Cap",!0);y(E,W,Je,"\u22D3","\\Cup",!0);y(E,W,Je,"\u2A5E","\\doublebarwedge",!0);y(E,W,Je,"\u229F","\\boxminus",!0);y(E,W,Je,"\u229E","\\boxplus",!0);y(E,W,Je,"\u22C7","\\divideontimes",!0);y(E,W,Je,"\u22C9","\\ltimes",!0);y(E,W,Je,"\u22CA","\\rtimes",!0);y(E,W,Je,"\u22CB","\\leftthreetimes",!0);y(E,W,Je,"\u22CC","\\rightthreetimes",!0);y(E,W,Je,"\u22CF","\\curlywedge",!0);y(E,W,Je,"\u22CE","\\curlyvee",!0);y(E,W,Je,"\u229D","\\circleddash",!0);y(E,W,Je,"\u229B","\\circledast",!0);y(E,W,Je,"\u22C5","\\centerdot");y(E,W,Je,"\u22BA","\\intercal",!0);y(E,W,Je,"\u22D2","\\doublecap");y(E,W,Je,"\u22D3","\\doublecup");y(E,W,Je,"\u22A0","\\boxtimes",!0);y(E,W,V,"\u21E2","\\dashrightarrow",!0);y(E,W,V,"\u21E0","\\dashleftarrow",!0);y(E,W,V,"\u21C7","\\leftleftarrows",!0);y(E,W,V,"\u21C6","\\leftrightarrows",!0);y(E,W,V,"\u21DA","\\Lleftarrow",!0);y(E,W,V,"\u219E","\\twoheadleftarrow",!0);y(E,W,V,"\u21A2","\\leftarrowtail",!0);y(E,W,V,"\u21AB","\\looparrowleft",!0);y(E,W,V,"\u21CB","\\leftrightharpoons",!0);y(E,W,V,"\u21B6","\\curvearrowleft",!0);y(E,W,V,"\u21BA","\\circlearrowleft",!0);y(E,W,V,"\u21B0","\\Lsh",!0);y(E,W,V,"\u21C8","\\upuparrows",!0);y(E,W,V,"\u21BF","\\upharpoonleft",!0);y(E,W,V,"\u21C3","\\downharpoonleft",!0);y(E,L,V,"\u22B6","\\origof",!0);y(E,L,V,"\u22B7","\\imageof",!0);y(E,W,V,"\u22B8","\\multimap",!0);y(E,W,V,"\u21AD","\\leftrightsquigarrow",!0);y(E,W,V,"\u21C9","\\rightrightarrows",!0);y(E,W,V,"\u21C4","\\rightleftarrows",!0);y(E,W,V,"\u21A0","\\twoheadrightarrow",!0);y(E,W,V,"\u21A3","\\rightarrowtail",!0);y(E,W,V,"\u21AC","\\looparrowright",!0);y(E,W,V,"\u21B7","\\curvearrowright",!0);y(E,W,V,"\u21BB","\\circlearrowright",!0);y(E,W,V,"\u21B1","\\Rsh",!0);y(E,W,V,"\u21CA","\\downdownarrows",!0);y(E,W,V,"\u21BE","\\upharpoonright",!0);y(E,W,V,"\u21C2","\\downharpoonright",!0);y(E,W,V,"\u21DD","\\rightsquigarrow",!0);y(E,W,V,"\u21DD","\\leadsto");y(E,W,V,"\u21DB","\\Rrightarrow",!0);y(E,W,V,"\u21BE","\\restriction");y(E,L,Y,"\u2018","`");y(E,L,Y,"$","\\$");y(we,L,Y,"$","\\$");y(we,L,Y,"$","\\textdollar");y(E,L,Y,"%","\\%");y(we,L,Y,"%","\\%");y(E,L,Y,"_","\\_");y(we,L,Y,"_","\\_");y(we,L,Y,"_","\\textunderscore");y(E,L,Y,"\u2220","\\angle",!0);y(E,L,Y,"\u221E","\\infty",!0);y(E,L,Y,"\u2032","\\prime");y(E,L,Y,"\u25B3","\\triangle");y(E,L,Y,"\u0393","\\Gamma",!0);y(E,L,Y,"\u0394","\\Delta",!0);y(E,L,Y,"\u0398","\\Theta",!0);y(E,L,Y,"\u039B","\\Lambda",!0);y(E,L,Y,"\u039E","\\Xi",!0);y(E,L,Y,"\u03A0","\\Pi",!0);y(E,L,Y,"\u03A3","\\Sigma",!0);y(E,L,Y,"\u03A5","\\Upsilon",!0);y(E,L,Y,"\u03A6","\\Phi",!0);y(E,L,Y,"\u03A8","\\Psi",!0);y(E,L,Y,"\u03A9","\\Omega",!0);y(E,L,Y,"A","\u0391");y(E,L,Y,"B","\u0392");y(E,L,Y,"E","\u0395");y(E,L,Y,"Z","\u0396");y(E,L,Y,"H","\u0397");y(E,L,Y,"I","\u0399");y(E,L,Y,"K","\u039A");y(E,L,Y,"M","\u039C");y(E,L,Y,"N","\u039D");y(E,L,Y,"O","\u039F");y(E,L,Y,"P","\u03A1");y(E,L,Y,"T","\u03A4");y(E,L,Y,"X","\u03A7");y(E,L,Y,"\xAC","\\neg",!0);y(E,L,Y,"\xAC","\\lnot");y(E,L,Y,"\u22A4","\\top");y(E,L,Y,"\u22A5","\\bot");y(E,L,Y,"\u2205","\\emptyset");y(E,W,Y,"\u2205","\\varnothing");y(E,L,bt,"\u03B1","\\alpha",!0);y(E,L,bt,"\u03B2","\\beta",!0);y(E,L,bt,"\u03B3","\\gamma",!0);y(E,L,bt,"\u03B4","\\delta",!0);y(E,L,bt,"\u03F5","\\epsilon",!0);y(E,L,bt,"\u03B6","\\zeta",!0);y(E,L,bt,"\u03B7","\\eta",!0);y(E,L,bt,"\u03B8","\\theta",!0);y(E,L,bt,"\u03B9","\\iota",!0);y(E,L,bt,"\u03BA","\\kappa",!0);y(E,L,bt,"\u03BB","\\lambda",!0);y(E,L,bt,"\u03BC","\\mu",!0);y(E,L,bt,"\u03BD","\\nu",!0);y(E,L,bt,"\u03BE","\\xi",!0);y(E,L,bt,"\u03BF","\\omicron",!0);y(E,L,bt,"\u03C0","\\pi",!0);y(E,L,bt,"\u03C1","\\rho",!0);y(E,L,bt,"\u03C3","\\sigma",!0);y(E,L,bt,"\u03C4","\\tau",!0);y(E,L,bt,"\u03C5","\\upsilon",!0);y(E,L,bt,"\u03D5","\\phi",!0);y(E,L,bt,"\u03C7","\\chi",!0);y(E,L,bt,"\u03C8","\\psi",!0);y(E,L,bt,"\u03C9","\\omega",!0);y(E,L,bt,"\u03B5","\\varepsilon",!0);y(E,L,bt,"\u03D1","\\vartheta",!0);y(E,L,bt,"\u03D6","\\varpi",!0);y(E,L,bt,"\u03F1","\\varrho",!0);y(E,L,bt,"\u03C2","\\varsigma",!0);y(E,L,bt,"\u03C6","\\varphi",!0);y(E,L,Je,"\u2217","*",!0);y(E,L,Je,"+","+");y(E,L,Je,"\u2212","-",!0);y(E,L,Je,"\u22C5","\\cdot",!0);y(E,L,Je,"\u2218","\\circ",!0);y(E,L,Je,"\xF7","\\div",!0);y(E,L,Je,"\xB1","\\pm",!0);y(E,L,Je,"\xD7","\\times",!0);y(E,L,Je,"\u2229","\\cap",!0);y(E,L,Je,"\u222A","\\cup",!0);y(E,L,Je,"\u2216","\\setminus",!0);y(E,L,Je,"\u2227","\\land");y(E,L,Je,"\u2228","\\lor");y(E,L,Je,"\u2227","\\wedge",!0);y(E,L,Je,"\u2228","\\vee",!0);y(E,L,Y,"\u221A","\\surd");y(E,L,zo,"\u27E8","\\langle",!0);y(E,L,zo,"\u2223","\\lvert");y(E,L,zo,"\u2225","\\lVert");y(E,L,eo,"?","?");y(E,L,eo,"!","!");y(E,L,eo,"\u27E9","\\rangle",!0);y(E,L,eo,"\u2223","\\rvert");y(E,L,eo,"\u2225","\\rVert");y(E,L,V,"=","=");y(E,L,V,":",":");y(E,L,V,"\u2248","\\approx",!0);y(E,L,V,"\u2245","\\cong",!0);y(E,L,V,"\u2265","\\ge");y(E,L,V,"\u2265","\\geq",!0);y(E,L,V,"\u2190","\\gets");y(E,L,V,">","\\gt",!0);y(E,L,V,"\u2208","\\in",!0);y(E,L,V,"\uE020","\\@not");y(E,L,V,"\u2282","\\subset",!0);y(E,L,V,"\u2283","\\supset",!0);y(E,L,V,"\u2286","\\subseteq",!0);y(E,L,V,"\u2287","\\supseteq",!0);y(E,W,V,"\u2288","\\nsubseteq",!0);y(E,W,V,"\u2289","\\nsupseteq",!0);y(E,L,V,"\u22A8","\\models");y(E,L,V,"\u2190","\\leftarrow",!0);y(E,L,V,"\u2264","\\le");y(E,L,V,"\u2264","\\leq",!0);y(E,L,V,"<","\\lt",!0);y(E,L,V,"\u2192","\\rightarrow",!0);y(E,L,V,"\u2192","\\to");y(E,W,V,"\u2271","\\ngeq",!0);y(E,W,V,"\u2270","\\nleq",!0);y(E,L,Zl,"\xA0","\\ ");y(E,L,Zl,"\xA0","\\space");y(E,L,Zl,"\xA0","\\nobreakspace");y(we,L,Zl,"\xA0","\\ ");y(we,L,Zl,"\xA0"," ");y(we,L,Zl,"\xA0","\\space");y(we,L,Zl,"\xA0","\\nobreakspace");y(E,L,Zl,null,"\\nobreak");y(E,L,Zl,null,"\\allowbreak");y(E,L,y5,",",",");y(E,L,y5,";",";");y(E,W,Je,"\u22BC","\\barwedge",!0);y(E,W,Je,"\u22BB","\\veebar",!0);y(E,L,Je,"\u2299","\\odot",!0);y(E,L,Je,"\u2295","\\oplus",!0);y(E,L,Je,"\u2297","\\otimes",!0);y(E,L,Y,"\u2202","\\partial",!0);y(E,L,Je,"\u2298","\\oslash",!0);y(E,W,Je,"\u229A","\\circledcirc",!0);y(E,W,Je,"\u22A1","\\boxdot",!0);y(E,L,Je,"\u25B3","\\bigtriangleup");y(E,L,Je,"\u25BD","\\bigtriangledown");y(E,L,Je,"\u2020","\\dagger");y(E,L,Je,"\u22C4","\\diamond");y(E,L,Je,"\u22C6","\\star");y(E,L,Je,"\u25C3","\\triangleleft");y(E,L,Je,"\u25B9","\\triangleright");y(E,L,zo,"{","\\{");y(we,L,Y,"{","\\{");y(we,L,Y,"{","\\textbraceleft");y(E,L,eo,"}","\\}");y(we,L,Y,"}","\\}");y(we,L,Y,"}","\\textbraceright");y(E,L,zo,"{","\\lbrace");y(E,L,eo,"}","\\rbrace");y(E,L,zo,"[","\\lbrack",!0);y(we,L,Y,"[","\\lbrack",!0);y(E,L,eo,"]","\\rbrack",!0);y(we,L,Y,"]","\\rbrack",!0);y(E,L,zo,"(","\\lparen",!0);y(E,L,eo,")","\\rparen",!0);y(we,L,Y,"<","\\textless",!0);y(we,L,Y,">","\\textgreater",!0);y(E,L,zo,"\u230A","\\lfloor",!0);y(E,L,eo,"\u230B","\\rfloor",!0);y(E,L,zo,"\u2308","\\lceil",!0);y(E,L,eo,"\u2309","\\rceil",!0);y(E,L,Y,"\\","\\backslash");y(E,L,Y,"\u2223","|");y(E,L,Y,"\u2223","\\vert");y(we,L,Y,"|","\\textbar",!0);y(E,L,Y,"\u2225","\\|");y(E,L,Y,"\u2225","\\Vert");y(we,L,Y,"\u2225","\\textbardbl");y(we,L,Y,"~","\\textasciitilde");y(we,L,Y,"\\","\\textbackslash");y(we,L,Y,"^","\\textasciicircum");y(E,L,V,"\u2191","\\uparrow",!0);y(E,L,V,"\u21D1","\\Uparrow",!0);y(E,L,V,"\u2193","\\downarrow",!0);y(E,L,V,"\u21D3","\\Downarrow",!0);y(E,L,V,"\u2195","\\updownarrow",!0);y(E,L,V,"\u21D5","\\Updownarrow",!0);y(E,L,Nn,"\u2210","\\coprod");y(E,L,Nn,"\u22C1","\\bigvee");y(E,L,Nn,"\u22C0","\\bigwedge");y(E,L,Nn,"\u2A04","\\biguplus");y(E,L,Nn,"\u22C2","\\bigcap");y(E,L,Nn,"\u22C3","\\bigcup");y(E,L,Nn,"\u222B","\\int");y(E,L,Nn,"\u222B","\\intop");y(E,L,Nn,"\u222C","\\iint");y(E,L,Nn,"\u222D","\\iiint");y(E,L,Nn,"\u220F","\\prod");y(E,L,Nn,"\u2211","\\sum");y(E,L,Nn,"\u2A02","\\bigotimes");y(E,L,Nn,"\u2A01","\\bigoplus");y(E,L,Nn,"\u2A00","\\bigodot");y(E,L,Nn,"\u222E","\\oint");y(E,L,Nn,"\u222F","\\oiint");y(E,L,Nn,"\u2230","\\oiiint");y(E,L,Nn,"\u2A06","\\bigsqcup");y(E,L,Nn,"\u222B","\\smallint");y(we,L,Vf,"\u2026","\\textellipsis");y(E,L,Vf,"\u2026","\\mathellipsis");y(we,L,Vf,"\u2026","\\ldots",!0);y(E,L,Vf,"\u2026","\\ldots",!0);y(E,L,Vf,"\u22EF","\\@cdots",!0);y(E,L,Vf,"\u22F1","\\ddots",!0);y(E,L,Y,"\u22EE","\\varvdots");y(E,L,Zi,"\u02CA","\\acute");y(E,L,Zi,"\u02CB","\\grave");y(E,L,Zi,"\xA8","\\ddot");y(E,L,Zi,"~","\\tilde");y(E,L,Zi,"\u02C9","\\bar");y(E,L,Zi,"\u02D8","\\breve");y(E,L,Zi,"\u02C7","\\check");y(E,L,Zi,"^","\\hat");y(E,L,Zi,"\u20D7","\\vec");y(E,L,Zi,"\u02D9","\\dot");y(E,L,Zi,"\u02DA","\\mathring");y(E,L,bt,"\uE131","\\@imath");y(E,L,bt,"\uE237","\\@jmath");y(E,L,Y,"\u0131","\u0131");y(E,L,Y,"\u0237","\u0237");y(we,L,Y,"\u0131","\\i",!0);y(we,L,Y,"\u0237","\\j",!0);y(we,L,Y,"\xDF","\\ss",!0);y(we,L,Y,"\xE6","\\ae",!0);y(we,L,Y,"\u0153","\\oe",!0);y(we,L,Y,"\xF8","\\o",!0);y(we,L,Y,"\xC6","\\AE",!0);y(we,L,Y,"\u0152","\\OE",!0);y(we,L,Y,"\xD8","\\O",!0);y(we,L,Zi,"\u02CA","\\'");y(we,L,Zi,"\u02CB","\\`");y(we,L,Zi,"\u02C6","\\^");y(we,L,Zi,"\u02DC","\\~");y(we,L,Zi,"\u02C9","\\=");y(we,L,Zi,"\u02D8","\\u");y(we,L,Zi,"\u02D9","\\.");y(we,L,Zi,"\xB8","\\c");y(we,L,Zi,"\u02DA","\\r");y(we,L,Zi,"\u02C7","\\v");y(we,L,Zi,"\xA8",'\\"');y(we,L,Zi,"\u02DD","\\H");y(we,L,Zi,"\u25EF","\\textcircled");var NW={"--":!0,"---":!0,"``":!0,"''":!0};y(we,L,Y,"\u2013","--",!0);y(we,L,Y,"\u2013","\\textendash");y(we,L,Y,"\u2014","---",!0);y(we,L,Y,"\u2014","\\textemdash");y(we,L,Y,"\u2018","`",!0);y(we,L,Y,"\u2018","\\textquoteleft");y(we,L,Y,"\u2019","'",!0);y(we,L,Y,"\u2019","\\textquoteright");y(we,L,Y,"\u201C","``",!0);y(we,L,Y,"\u201C","\\textquotedblleft");y(we,L,Y,"\u201D","''",!0);y(we,L,Y,"\u201D","\\textquotedblright");y(E,L,Y,"\xB0","\\degree",!0);y(we,L,Y,"\xB0","\\degree");y(we,L,Y,"\xB0","\\textdegree",!0);y(E,L,Y,"\xA3","\\pounds");y(E,L,Y,"\xA3","\\mathsterling",!0);y(we,L,Y,"\xA3","\\pounds");y(we,L,Y,"\xA3","\\textsterling",!0);y(E,W,Y,"\u2720","\\maltese");y(we,W,Y,"\u2720","\\maltese");var tW='0123456789/@."';for(e5=0;e5{if(hd(i.classes)!==hd(e.classes)||i.skew!==e.skew||i.maxFontSize!==e.maxFontSize)return!1;if(i.classes.length===1){var t=i.classes[0];if(t==="mbin"||t==="mord")return!1}for(var n in i.style)if(i.style.hasOwnProperty(n)&&i.style[n]!==e.style[n])return!1;for(var r in e.style)if(e.style.hasOwnProperty(r)&&i.style[r]!==e.style[r])return!1;return!0},Ife=i=>{for(var e=0;et&&(t=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>r&&(r=s.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=r},vo=function(e,t,n,r){var o=new Au(e,t,n,r);return N8(o),o},RW=(i,e,t,n)=>new Au(i,e,t,n),Afe=function(e,t,n){var r=vo([e],[],t);return r.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),r.style.borderBottomWidth=ze(r.height),r.maxFontSize=1,r},Lfe=function(e,t,n,r){var o=new J1(e,t,n,r);return N8(o),o},OW=function(e){var t=new Iu(e);return N8(t),t},Mfe=function(e,t){return e instanceof Iu?vo([],[e],t):e},Dfe=function(e){if(e.positionType==="individualShift"){for(var t=e.children,n=[t[0]],r=-t[0].shift-t[0].elem.depth,o=r,s=1;s{var t=vo(["mspace"],[],e),n=cn(i,e);return t.style.marginRight=ze(n),t},o5=function(e,t,n){var r="";switch(e){case"amsrm":r="AMS";break;case"textrm":r="Main";break;case"textsf":r="SansSerif";break;case"texttt":r="Typewriter";break;default:r=e}var o;return t==="textbf"&&n==="textit"?o="BoldItalic":t==="textbf"?o="Bold":t==="textit"?o="Italic":o="Regular",r+"-"+o},PW={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},FW={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},Ofe=function(e,t){var[n,r,o]=FW[e],s=new Ua(n),a=new Vs([s],{width:ze(r),height:ze(o),style:"width:"+ze(r),viewBox:"0 0 "+1e3*r+" "+1e3*o,preserveAspectRatio:"xMinYMin"}),l=RW(["overlay"],[a],t);return l.height=o,l.style.height=ze(o),l.style.width=ze(r),l},ie={fontMap:PW,makeSymbol:Ws,mathsym:xfe,makeSpan:vo,makeSvgSpan:RW,makeLineSpan:Afe,makeAnchor:Lfe,makeFragment:OW,wrapFragment:Mfe,makeVList:Nfe,makeOrd:Tfe,makeGlue:Rfe,staticSvg:Ofe,svgData:FW,tryCombineChars:Ife},ln={number:3,unit:"mu"},Tu={number:4,unit:"mu"},$l={number:5,unit:"mu"},Pfe={mord:{mop:ln,mbin:Tu,mrel:$l,minner:ln},mop:{mord:ln,mop:ln,mrel:$l,minner:ln},mbin:{mord:Tu,mop:Tu,mopen:Tu,minner:Tu},mrel:{mord:$l,mop:$l,mopen:$l,minner:$l},mopen:{},mclose:{mop:ln,mbin:Tu,mrel:$l,minner:ln},mpunct:{mord:ln,mop:ln,mrel:$l,mopen:ln,mclose:ln,mpunct:ln,minner:ln},minner:{mord:ln,mop:ln,mbin:Tu,mrel:$l,mopen:ln,mpunct:ln,minner:ln}},Ffe={mord:{mop:ln},mop:{mord:ln,mop:ln},mbin:{},mrel:{},mopen:{},mclose:{mop:ln},mpunct:{},minner:{mop:ln}},BW={},m5={},g5={};function Ye(i){for(var{type:e,names:t,props:n,handler:r,htmlBuilder:o,mathmlBuilder:s}=i,a={type:e,numArgs:n.numArgs,argTypes:n.argTypes,allowedInArgument:!!n.allowedInArgument,allowedInText:!!n.allowedInText,allowedInMath:n.allowedInMath===void 0?!0:n.allowedInMath,numOptionalArgs:n.numOptionalArgs||0,infix:!!n.infix,primitive:!!n.primitive,handler:r},l=0;l{var b=g.classes[0],S=m.classes[0];b==="mbin"&&wt.contains(Hfe,S)?g.classes[0]="mord":S==="mbin"&&wt.contains(Bfe,b)&&(m.classes[0]="mord")},{node:u},h,p),rW(o,(m,g)=>{var b=w8(g),S=w8(m),k=b&&S?m.hasClass("mtight")?Ffe[b][S]:Pfe[b][S]:null;if(k)return ie.makeGlue(k,c)},{node:u},h,p),o},rW=function i(e,t,n,r,o){r&&e.push(r);for(var s=0;sh=>{e.splice(u+1,0,h),s++})(s)}r&&e.pop()},HW=function(e){return e instanceof Iu||e instanceof J1||e instanceof Au&&e.hasClass("enclosing")?e:null},jfe=function i(e,t){var n=HW(e);if(n){var r=n.children;if(r.length){if(t==="right")return i(r[r.length-1],"right");if(t==="left")return i(r[0],"left")}}return e},w8=function(e,t){return e?(t&&(e=jfe(e,t)),Ufe[e.classes[0]]||null):null},e0=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return Ql(t.concat(n))},ci=function(e,t,n){if(!e)return Ql();if(m5[e.type]){var r=m5[e.type](e,t);if(n&&t.size!==n.size){r=Ql(t.sizingClasses(n),[r],t);var o=t.sizeMultiplier/n.sizeMultiplier;r.height*=o,r.depth*=o}return r}else throw new Ie("Got group of unknown type: '"+e.type+"'")};function s5(i,e){var t=Ql(["base"],i,e),n=Ql(["strut"]);return n.style.height=ze(t.height+t.depth),t.depth&&(n.style.verticalAlign=ze(-t.depth)),t.children.unshift(n),t}function x8(i,e){var t=null;i.length===1&&i[0].type==="tag"&&(t=i[0].tag,i=i[0].body);var n=Yn(i,e,"root"),r;n.length===2&&n[1].hasClass("tag")&&(r=n.pop());for(var o=[],s=[],a=0;a0&&(o.push(s5(s,e)),s=[]),o.push(n[a]));s.length>0&&o.push(s5(s,e));var c;t?(c=s5(Yn(t,e,!0)),c.classes=["tag"],o.push(c)):r&&o.push(r);var d=Ql(["katex-html"],o);if(d.setAttribute("aria-hidden","true"),c){var u=c.children[0];u.style.height=ze(d.height+d.depth),d.depth&&(u.style.verticalAlign=ze(-d.depth))}return d}function zW(i){return new Iu(i)}var _o=class{constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=hd(this.classes));for(var n=0;n0&&(e+=' class ="'+wt.escape(hd(this.classes))+'"'),e+=">";for(var n=0;n",e}toText(){return this.children.map(e=>e.toText()).join("")}},ku=class{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return wt.escape(this.toText())}toText(){return this.text}},E8=class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character="\u200A":e>=.1666&&e<=.1667?this.character="\u2009":e>=.2222&&e<=.2223?this.character="\u2005":e>=.2777&&e<=.2778?this.character="\u2005\u200A":e>=-.05556&&e<=-.05555?this.character="\u200A\u2063":e>=-.1667&&e<=-.1666?this.character="\u2009\u2063":e>=-.2223&&e<=-.2222?this.character="\u205F\u2063":e>=-.2778&&e<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",ze(this.width)),e}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}},Ee={MathNode:_o,TextNode:ku,SpaceNode:E8,newDocumentFragment:zW},bs=function(e,t,n){return Wi[t][e]&&Wi[t][e].replace&&e.charCodeAt(0)!==55349&&!(NW.hasOwnProperty(e)&&n&&(n.fontFamily&&n.fontFamily.slice(4,6)==="tt"||n.font&&n.font.slice(4,6)==="tt"))&&(e=Wi[t][e].replace),new Ee.TextNode(e)},R8=function(e){return e.length===1?e[0]:new Ee.MathNode("mrow",e)},O8=function(e,t){if(t.fontFamily==="texttt")return"monospace";if(t.fontFamily==="textsf")return t.fontShape==="textit"&&t.fontWeight==="textbf"?"sans-serif-bold-italic":t.fontShape==="textit"?"sans-serif-italic":t.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(t.fontShape==="textit"&&t.fontWeight==="textbf")return"bold-italic";if(t.fontShape==="textit")return"italic";if(t.fontWeight==="textbf")return"bold";var n=t.font;if(!n||n==="mathnormal")return null;var r=e.mode;if(n==="mathit")return"italic";if(n==="boldsymbol")return e.type==="textord"?"bold":"bold-italic";if(n==="mathbf")return"bold";if(n==="mathbb")return"double-struck";if(n==="mathfrak")return"fraktur";if(n==="mathscr"||n==="mathcal")return"script";if(n==="mathsf")return"sans-serif";if(n==="mathtt")return"monospace";var o=e.text;if(wt.contains(["\\imath","\\jmath"],o))return null;Wi[r][o]&&Wi[r][o].replace&&(o=Wi[r][o].replace);var s=ie.fontMap[n].fontName;return D8(o,s,r)?ie.fontMap[n].variant:null},yo=function(e,t,n){if(e.length===1){var r=Oi(e[0],t);return n&&r instanceof _o&&r.type==="mo"&&(r.setAttribute("lspace","0em"),r.setAttribute("rspace","0em")),[r]}for(var o=[],s,a=0;a0&&(u.text=u.text.slice(0,1)+"\u0338"+u.text.slice(1),o.pop())}}}o.push(l),s=l}return o},fd=function(e,t,n){return R8(yo(e,t,n))},Oi=function(e,t){if(!e)return new Ee.MathNode("mrow");if(g5[e.type]){var n=g5[e.type](e,t);return n}else throw new Ie("Got group of unknown type: '"+e.type+"'")};function oW(i,e,t,n,r){var o=yo(i,t),s;o.length===1&&o[0]instanceof _o&&wt.contains(["mrow","mtable"],o[0].type)?s=o[0]:s=new Ee.MathNode("mrow",o);var a=new Ee.MathNode("annotation",[new Ee.TextNode(e)]);a.setAttribute("encoding","application/x-tex");var l=new Ee.MathNode("semantics",[s,a]),c=new Ee.MathNode("math",[l]);c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),n&&c.setAttribute("display","block");var d=r?"katex":"katex-mathml";return ie.makeSpan([d],[c])}var UW=function(e){return new f5({style:e.displayMode?_t.DISPLAY:_t.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},jW=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=ie.makeSpan(n,[e])}return e},Wfe=function(e,t,n){var r=UW(n),o;if(n.output==="mathml")return oW(e,t,r,n.displayMode,!0);if(n.output==="html"){var s=x8(e,r);o=ie.makeSpan(["katex"],[s])}else{var a=oW(e,t,r,n.displayMode,!1),l=x8(e,r);o=ie.makeSpan(["katex"],[a,l])}return jW(o,n)},Vfe=function(e,t,n){var r=UW(n),o=x8(e,r),s=ie.makeSpan(["katex"],[o]);return jW(s,n)},Kfe={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},qfe=function(e){var t=new Ee.MathNode("mo",[new Ee.TextNode(Kfe[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},Gfe={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},$fe=function(e){return e.type==="ordgroup"?e.body.length:1},Yfe=function(e,t){function n(){var a=4e5,l=e.label.slice(1);if(wt.contains(["widehat","widecheck","widetilde","utilde"],l)){var c=e,d=$fe(c.base),u,h,p;if(d>5)l==="widehat"||l==="widecheck"?(u=420,a=2364,p=.42,h=l+"4"):(u=312,a=2340,p=.34,h="tilde4");else{var m=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(a=[0,1062,2364,2364,2364][m],u=[0,239,300,360,420][m],p=[0,.24,.3,.3,.36,.42][m],h=l+m):(a=[0,600,1033,2339,2340][m],u=[0,260,286,306,312][m],p=[0,.26,.286,.3,.306,.34][m],h="tilde"+m)}var g=new Ua(h),b=new Vs([g],{width:"100%",height:ze(p),viewBox:"0 0 "+a+" "+u,preserveAspectRatio:"none"});return{span:ie.makeSvgSpan([],[b],t),minWidth:0,height:p}}else{var S=[],k=Gfe[l],[N,A,B]=k,j=B/1e3,z=N.length,J,ae;if(z===1){var Le=k[3];J=["hide-tail"],ae=[Le]}else if(z===2)J=["halfarrow-left","halfarrow-right"],ae=["xMinYMin","xMaxYMin"];else if(z===3)J=["brace-left","brace-center","brace-right"],ae=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+z+" children.");for(var he=0;he0&&(r.style.minWidth=ze(o)),r},Xfe=function(e,t,n,r,o){var s,a=e.height+e.depth+n+r;if(/fbox|color|angl/.test(t)){if(s=ie.makeSpan(["stretchy",t],[],o),t==="fbox"){var l=o.color&&o.getColor();l&&(s.style.borderColor=l)}}else{var c=[];/^[bx]cancel$/.test(t)&&c.push(new Z1({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&c.push(new Z1({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new Vs(c,{width:"100%",height:ze(a)});s=ie.makeSvgSpan([],[d],o)}return s.height=a,s.style.height=ze(a),s},Jl={encloseSpan:Xfe,mathMLnode:qfe,svgSpan:Yfe};function jt(i,e){if(!i||i.type!==e)throw new Error("Expected node of type "+e+", but got "+(i?"node of type "+i.type:String(i)));return i}function P8(i){var e=S5(i);if(!e)throw new Error("Expected node of symbol group type, but got "+(i?"node of type "+i.type:String(i)));return e}function S5(i){return i&&(i.type==="atom"||Sfe.hasOwnProperty(i.type))?i:null}var F8=(i,e)=>{var t,n,r;i&&i.type==="supsub"?(n=jt(i.base,"accent"),t=n.base,i.base=t,r=yfe(ci(i,e)),i.base=n):(n=jt(i,"accent"),t=n.base);var o=ci(t,e.havingCrampedStyle()),s=n.isShifty&&wt.isCharacterBox(t),a=0;if(s){var l=wt.getBaseElem(t),c=ci(l,e.havingCrampedStyle());a=eW(c).skew}var d=n.label==="\\c",u=d?o.height+o.depth:Math.min(o.height,e.fontMetrics().xHeight),h;if(n.isStretchy)h=Jl.svgSpan(n,e),h=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+ze(2*a)+")",marginLeft:ze(2*a)}:void 0}]},e);else{var p,m;n.label==="\\vec"?(p=ie.staticSvg("vec",e),m=ie.svgData.vec[1]):(p=ie.makeOrd({mode:n.mode,text:n.label},e,"textord"),p=eW(p),p.italic=0,m=p.width,d&&(u+=p.depth)),h=ie.makeSpan(["accent-body"],[p]);var g=n.label==="\\textcircled";g&&(h.classes.push("accent-full"),u=o.height);var b=a;g||(b-=m/2),h.style.left=ze(b),n.label==="\\textcircled"&&(h.style.top=".2em"),h=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:-u},{type:"elem",elem:h}]},e)}var S=ie.makeSpan(["mord","accent"],[h],e);return r?(r.children[0]=S,r.height=Math.max(S.height,r.height),r.classes[0]="mord",r):S},WW=(i,e)=>{var t=i.isStretchy?Jl.mathMLnode(i.label):new Ee.MathNode("mo",[bs(i.label,i.mode)]),n=new Ee.MathNode("mover",[Oi(i.base,e),t]);return n.setAttribute("accent","true"),n},Qfe=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(i=>"\\"+i).join("|"));Ye({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(i,e)=>{var t=v5(e[0]),n=!Qfe.test(i.funcName),r=!n||i.funcName==="\\widehat"||i.funcName==="\\widetilde"||i.funcName==="\\widecheck";return{type:"accent",mode:i.parser.mode,label:i.funcName,isStretchy:n,isShifty:r,base:t}},htmlBuilder:F8,mathmlBuilder:WW});Ye({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(i,e)=>{var t=e[0],n=i.parser.mode;return n==="math"&&(i.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+i.funcName+" works only in text mode"),n="text"),{type:"accent",mode:n,label:i.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:F8,mathmlBuilder:WW});Ye({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(i,e)=>{var{parser:t,funcName:n}=i,r=e[0];return{type:"accentUnder",mode:t.mode,label:n,base:r}},htmlBuilder:(i,e)=>{var t=ci(i.base,e),n=Jl.svgSpan(i,e),r=i.label==="\\utilde"?.12:0,o=ie.makeVList({positionType:"top",positionData:t.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:r},{type:"elem",elem:t}]},e);return ie.makeSpan(["mord","accentunder"],[o],e)},mathmlBuilder:(i,e)=>{var t=Jl.mathMLnode(i.label),n=new Ee.MathNode("munder",[Oi(i.base,e),t]);return n.setAttribute("accentunder","true"),n}});var a5=i=>{var e=new Ee.MathNode("mpadded",i?[i]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e};Ye({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(i,e,t){var{parser:n,funcName:r}=i;return{type:"xArrow",mode:n.mode,label:r,body:e[0],below:t[0]}},htmlBuilder(i,e){var t=e.style,n=e.havingStyle(t.sup()),r=ie.wrapFragment(ci(i.body,n,e),e),o=i.label.slice(0,2)==="\\x"?"x":"cd";r.classes.push(o+"-arrow-pad");var s;i.below&&(n=e.havingStyle(t.sub()),s=ie.wrapFragment(ci(i.below,n,e),e),s.classes.push(o+"-arrow-pad"));var a=Jl.svgSpan(i,e),l=-e.fontMetrics().axisHeight+.5*a.height,c=-e.fontMetrics().axisHeight-.5*a.height-.111;(r.depth>.25||i.label==="\\xleftequilibrium")&&(c-=r.depth);var d;if(s){var u=-e.fontMetrics().axisHeight+s.height+.5*a.height+.111;d=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:c},{type:"elem",elem:a,shift:l},{type:"elem",elem:s,shift:u}]},e)}else d=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:r,shift:c},{type:"elem",elem:a,shift:l}]},e);return d.children[0].children[0].children[1].classes.push("svg-align"),ie.makeSpan(["mrel","x-arrow"],[d],e)},mathmlBuilder(i,e){var t=Jl.mathMLnode(i.label);t.setAttribute("minsize",i.label.charAt(0)==="x"?"1.75em":"3.0em");var n;if(i.body){var r=a5(Oi(i.body,e));if(i.below){var o=a5(Oi(i.below,e));n=new Ee.MathNode("munderover",[t,o,r])}else n=new Ee.MathNode("mover",[t,r])}else if(i.below){var s=a5(Oi(i.below,e));n=new Ee.MathNode("munder",[t,s])}else n=a5(),n=new Ee.MathNode("mover",[t,n]);return n}});var Jfe=ie.makeSpan;function VW(i,e){var t=Yn(i.body,e,!0);return Jfe([i.mclass],t,e)}function KW(i,e){var t,n=yo(i.body,e);return i.mclass==="minner"?t=new Ee.MathNode("mpadded",n):i.mclass==="mord"?i.isCharacterBox?(t=n[0],t.type="mi"):t=new Ee.MathNode("mi",n):(i.isCharacterBox?(t=n[0],t.type="mo"):t=new Ee.MathNode("mo",n),i.mclass==="mbin"?(t.attributes.lspace="0.22em",t.attributes.rspace="0.22em"):i.mclass==="mpunct"?(t.attributes.lspace="0em",t.attributes.rspace="0.17em"):i.mclass==="mopen"||i.mclass==="mclose"?(t.attributes.lspace="0em",t.attributes.rspace="0em"):i.mclass==="minner"&&(t.attributes.lspace="0.0556em",t.attributes.width="+0.1111em")),t}Ye({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(i,e){var{parser:t,funcName:n}=i,r=e[0];return{type:"mclass",mode:t.mode,mclass:"m"+n.slice(5),body:Tn(r),isCharacterBox:wt.isCharacterBox(r)}},htmlBuilder:VW,mathmlBuilder:KW});var w5=i=>{var e=i.type==="ordgroup"&&i.body.length?i.body[0]:i;return e.type==="atom"&&(e.family==="bin"||e.family==="rel")?"m"+e.family:"mord"};Ye({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(i,e){var{parser:t}=i;return{type:"mclass",mode:t.mode,mclass:w5(e[0]),body:Tn(e[1]),isCharacterBox:wt.isCharacterBox(e[1])}}});Ye({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(i,e){var{parser:t,funcName:n}=i,r=e[1],o=e[0],s;n!=="\\stackrel"?s=w5(r):s="mrel";var a={type:"op",mode:r.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:n!=="\\stackrel",body:Tn(r)},l={type:"supsub",mode:o.mode,base:a,sup:n==="\\underset"?null:o,sub:n==="\\underset"?o:null};return{type:"mclass",mode:t.mode,mclass:s,body:[l],isCharacterBox:wt.isCharacterBox(l)}},htmlBuilder:VW,mathmlBuilder:KW});Ye({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(i,e){var{parser:t}=i;return{type:"pmb",mode:t.mode,mclass:w5(e[0]),body:Tn(e[0])}},htmlBuilder(i,e){var t=Yn(i.body,e,!0),n=ie.makeSpan([i.mclass],t,e);return n.style.textShadow="0.02em 0.01em 0.04px",n},mathmlBuilder(i,e){var t=yo(i.body,e),n=new Ee.MathNode("mstyle",t);return n.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),n}});var Zfe={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},sW=()=>({type:"styling",body:[],mode:"math",style:"display"}),aW=i=>i.type==="textord"&&i.text==="@",epe=(i,e)=>(i.type==="mathord"||i.type==="atom")&&i.text===e;function tpe(i,e,t){var n=Zfe[i];switch(n){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return t.callFunction(n,[e[0]],[e[1]]);case"\\uparrow":case"\\downarrow":{var r=t.callFunction("\\\\cdleft",[e[0]],[]),o={type:"atom",text:n,mode:"math",family:"rel"},s=t.callFunction("\\Big",[o],[]),a=t.callFunction("\\\\cdright",[e[1]],[]),l={type:"ordgroup",mode:"math",body:[r,s,a]};return t.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return t.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var c={type:"textord",text:"\\Vert",mode:"math"};return t.callFunction("\\Big",[c],[])}default:return{type:"textord",text:" ",mode:"math"}}}function ipe(i){var e=[];for(i.gullet.beginGroup(),i.gullet.macros.set("\\cr","\\\\\\relax"),i.gullet.beginGroup();;){e.push(i.parseExpression(!1,"\\\\")),i.gullet.endGroup(),i.gullet.beginGroup();var t=i.fetch().text;if(t==="&"||t==="\\\\")i.consume();else if(t==="\\end"){e[e.length-1].length===0&&e.pop();break}else throw new Ie("Expected \\\\ or \\cr or \\end",i.nextToken)}for(var n=[],r=[n],o=0;o-1))if("<>AV".indexOf(c)>-1)for(var u=0;u<2;u++){for(var h=!0,p=l+1;pAV=|." after @',s[l]);var m=tpe(c,d,i),g={type:"styling",body:[m],mode:"math",style:"display"};n.push(g),a=sW()}o%2===0?n.push(a):n.shift(),n=[],r.push(n)}i.gullet.endGroup(),i.gullet.endGroup();var b=new Array(r[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:r,arraystretch:1,addJot:!0,rowGaps:[null],cols:b,colSeparationType:"CD",hLinesBeforeRow:new Array(r.length+1).fill([])}}Ye({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(i,e){var{parser:t,funcName:n}=i;return{type:"cdlabel",mode:t.mode,side:n.slice(4),label:e[0]}},htmlBuilder(i,e){var t=e.havingStyle(e.style.sup()),n=ie.wrapFragment(ci(i.label,t,e),e);return n.classes.push("cd-label-"+i.side),n.style.bottom=ze(.8-n.depth),n.height=0,n.depth=0,n},mathmlBuilder(i,e){var t=new Ee.MathNode("mrow",[Oi(i.label,e)]);return t=new Ee.MathNode("mpadded",[t]),t.setAttribute("width","0"),i.side==="left"&&t.setAttribute("lspace","-1width"),t.setAttribute("voffset","0.7em"),t=new Ee.MathNode("mstyle",[t]),t.setAttribute("displaystyle","false"),t.setAttribute("scriptlevel","1"),t}});Ye({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(i,e){var{parser:t}=i;return{type:"cdlabelparent",mode:t.mode,fragment:e[0]}},htmlBuilder(i,e){var t=ie.wrapFragment(ci(i.fragment,e),e);return t.classes.push("cd-vert-arrow"),t},mathmlBuilder(i,e){return new Ee.MathNode("mrow",[Oi(i.fragment,e)])}});Ye({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(i,e){for(var{parser:t}=i,n=jt(e[0],"ordgroup"),r=n.body,o="",s=0;s=1114111)throw new Ie("\\@char with invalid code point "+o);return l<=65535?c=String.fromCharCode(l):(l-=65536,c=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:t.mode,text:c}}});var qW=(i,e)=>{var t=Yn(i.body,e.withColor(i.color),!1);return ie.makeFragment(t)},GW=(i,e)=>{var t=yo(i.body,e.withColor(i.color)),n=new Ee.MathNode("mstyle",t);return n.setAttribute("mathcolor",i.color),n};Ye({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(i,e){var{parser:t}=i,n=jt(e[0],"color-token").color,r=e[1];return{type:"color",mode:t.mode,color:n,body:Tn(r)}},htmlBuilder:qW,mathmlBuilder:GW});Ye({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(i,e){var{parser:t,breakOnTokenText:n}=i,r=jt(e[0],"color-token").color;t.gullet.macros.set("\\current@color",r);var o=t.parseExpression(!0,n);return{type:"color",mode:t.mode,color:r,body:o}},htmlBuilder:qW,mathmlBuilder:GW});Ye({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(i,e,t){var{parser:n}=i,r=n.gullet.future().text==="["?n.parseSizeGroup(!0):null,o=!n.settings.displayMode||!n.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:n.mode,newLine:o,size:r&&jt(r,"size").value}},htmlBuilder(i,e){var t=ie.makeSpan(["mspace"],[],e);return i.newLine&&(t.classes.push("newline"),i.size&&(t.style.marginTop=ze(cn(i.size,e)))),t},mathmlBuilder(i,e){var t=new Ee.MathNode("mspace");return i.newLine&&(t.setAttribute("linebreak","newline"),i.size&&t.setAttribute("height",ze(cn(i.size,e)))),t}});var T8={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},$W=i=>{var e=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new Ie("Expected a control sequence",i);return e},npe=i=>{var e=i.gullet.popToken();return e.text==="="&&(e=i.gullet.popToken(),e.text===" "&&(e=i.gullet.popToken())),e},YW=(i,e,t,n)=>{var r=i.gullet.macros.get(t.text);r==null&&(t.noexpand=!0,r={tokens:[t],numArgs:0,unexpandable:!i.gullet.isExpandable(t.text)}),i.gullet.macros.set(e,r,n)};Ye({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(i){var{parser:e,funcName:t}=i;e.consumeSpaces();var n=e.fetch();if(T8[n.text])return(t==="\\global"||t==="\\\\globallong")&&(n.text=T8[n.text]),jt(e.parseFunction(),"internal");throw new Ie("Invalid token after macro prefix",n)}});Ye({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i){var{parser:e,funcName:t}=i,n=e.gullet.popToken(),r=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(r))throw new Ie("Expected a control sequence",n);for(var o=0,s,a=[[]];e.gullet.future().text!=="{";)if(n=e.gullet.popToken(),n.text==="#"){if(e.gullet.future().text==="{"){s=e.gullet.future(),a[o].push("{");break}if(n=e.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new Ie('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==o+1)throw new Ie('Argument number "'+n.text+'" out of order');o++,a.push([])}else{if(n.text==="EOF")throw new Ie("Expected a macro definition");a[o].push(n.text)}var{tokens:l}=e.gullet.consumeArg();return s&&l.unshift(s),(t==="\\edef"||t==="\\xdef")&&(l=e.gullet.expandTokens(l),l.reverse()),e.gullet.macros.set(r,{tokens:l,numArgs:o,delimiters:a},t===T8[t]),{type:"internal",mode:e.mode}}});Ye({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i){var{parser:e,funcName:t}=i,n=$W(e.gullet.popToken());e.gullet.consumeSpaces();var r=npe(e);return YW(e,n,r,t==="\\\\globallet"),{type:"internal",mode:e.mode}}});Ye({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i){var{parser:e,funcName:t}=i,n=$W(e.gullet.popToken()),r=e.gullet.popToken(),o=e.gullet.popToken();return YW(e,n,o,t==="\\\\globalfuture"),e.gullet.pushToken(o),e.gullet.pushToken(r),{type:"internal",mode:e.mode}}});var $1=function(e,t,n){var r=Wi.math[e]&&Wi.math[e].replace,o=D8(r||e,t,n);if(!o)throw new Error("Unsupported symbol "+e+" and font size "+t+".");return o},B8=function(e,t,n,r){var o=n.havingBaseStyle(t),s=ie.makeSpan(r.concat(o.sizingClasses(n)),[e],n),a=o.sizeMultiplier/n.sizeMultiplier;return s.height*=a,s.depth*=a,s.maxFontSize=o.sizeMultiplier,s},XW=function(e,t,n){var r=t.havingBaseStyle(n),o=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=ze(o),e.height-=o,e.depth+=o},rpe=function(e,t,n,r,o,s){var a=ie.makeSymbol(e,"Main-Regular",o,r),l=B8(a,t,r,s);return n&&XW(l,r,t),l},ope=function(e,t,n,r){return ie.makeSymbol(e,"Size"+t+"-Regular",n,r)},QW=function(e,t,n,r,o,s){var a=ope(e,t,o,r),l=B8(ie.makeSpan(["delimsizing","size"+t],[a],r),_t.TEXT,r,s);return n&&XW(l,r,_t.TEXT),l},d8=function(e,t,n){var r;t==="Size1-Regular"?r="delim-size1":r="delim-size4";var o=ie.makeSpan(["delimsizinginner",r],[ie.makeSpan([],[ie.makeSymbol(e,t,n)])]);return{type:"elem",elem:o}},u8=function(e,t,n){var r=Ha["Size4-Regular"][e.charCodeAt(0)]?Ha["Size4-Regular"][e.charCodeAt(0)][4]:Ha["Size1-Regular"][e.charCodeAt(0)][4],o=new Ua("inner",ffe(e,Math.round(1e3*t))),s=new Vs([o],{width:ze(r),height:ze(t),style:"width:"+ze(r),viewBox:"0 0 "+1e3*r+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),a=ie.makeSvgSpan([],[s],n);return a.height=t,a.style.height=ze(t),a.style.width=ze(r),{type:"elem",elem:a}},k8=.008,l5={type:"kern",size:-1*k8},spe=["|","\\lvert","\\rvert","\\vert"],ape=["\\|","\\lVert","\\rVert","\\Vert"],JW=function(e,t,n,r,o,s){var a,l,c,d,u="",h=0;a=c=d=e,l=null;var p="Size1-Regular";e==="\\uparrow"?c=d="\u23D0":e==="\\Uparrow"?c=d="\u2016":e==="\\downarrow"?a=c="\u23D0":e==="\\Downarrow"?a=c="\u2016":e==="\\updownarrow"?(a="\\uparrow",c="\u23D0",d="\\downarrow"):e==="\\Updownarrow"?(a="\\Uparrow",c="\u2016",d="\\Downarrow"):wt.contains(spe,e)?(c="\u2223",u="vert",h=333):wt.contains(ape,e)?(c="\u2225",u="doublevert",h=556):e==="["||e==="\\lbrack"?(a="\u23A1",c="\u23A2",d="\u23A3",p="Size4-Regular",u="lbrack",h=667):e==="]"||e==="\\rbrack"?(a="\u23A4",c="\u23A5",d="\u23A6",p="Size4-Regular",u="rbrack",h=667):e==="\\lfloor"||e==="\u230A"?(c=a="\u23A2",d="\u23A3",p="Size4-Regular",u="lfloor",h=667):e==="\\lceil"||e==="\u2308"?(a="\u23A1",c=d="\u23A2",p="Size4-Regular",u="lceil",h=667):e==="\\rfloor"||e==="\u230B"?(c=a="\u23A5",d="\u23A6",p="Size4-Regular",u="rfloor",h=667):e==="\\rceil"||e==="\u2309"?(a="\u23A4",c=d="\u23A5",p="Size4-Regular",u="rceil",h=667):e==="("||e==="\\lparen"?(a="\u239B",c="\u239C",d="\u239D",p="Size4-Regular",u="lparen",h=875):e===")"||e==="\\rparen"?(a="\u239E",c="\u239F",d="\u23A0",p="Size4-Regular",u="rparen",h=875):e==="\\{"||e==="\\lbrace"?(a="\u23A7",l="\u23A8",d="\u23A9",c="\u23AA",p="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(a="\u23AB",l="\u23AC",d="\u23AD",c="\u23AA",p="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(a="\u23A7",d="\u23A9",c="\u23AA",p="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(a="\u23AB",d="\u23AD",c="\u23AA",p="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(a="\u23A7",d="\u23AD",c="\u23AA",p="Size4-Regular"):(e==="\\rmoustache"||e==="\u23B1")&&(a="\u23AB",d="\u23A9",c="\u23AA",p="Size4-Regular");var m=$1(a,p,o),g=m.height+m.depth,b=$1(c,p,o),S=b.height+b.depth,k=$1(d,p,o),N=k.height+k.depth,A=0,B=1;if(l!==null){var j=$1(l,p,o);A=j.height+j.depth,B=2}var z=g+N+A,J=Math.max(0,Math.ceil((t-z)/(B*S))),ae=z+J*B*S,Le=r.fontMetrics().axisHeight;n&&(Le*=r.sizeMultiplier);var he=ae/2-Le,Xe=[];if(u.length>0){var at=ae-g-N,ot=Math.round(ae*1e3),Nt=pfe(u,Math.round(at*1e3)),ee=new Ua(u,Nt),ye=(h/1e3).toFixed(3)+"em",_e=(ot/1e3).toFixed(3)+"em",$=new Vs([ee],{width:ye,height:_e,viewBox:"0 0 "+h+" "+ot}),Q=ie.makeSvgSpan([],[$],r);Q.height=ot/1e3,Q.style.width=ye,Q.style.height=_e,Xe.push({type:"elem",elem:Q})}else{if(Xe.push(d8(d,p,o)),Xe.push(l5),l===null){var ne=ae-g-N+2*k8;Xe.push(u8(c,ne,r))}else{var de=(ae-g-N-A)/2+2*k8;Xe.push(u8(c,de,r)),Xe.push(l5),Xe.push(d8(l,p,o)),Xe.push(l5),Xe.push(u8(c,de,r))}Xe.push(l5),Xe.push(d8(a,p,o))}var Yt=r.havingBaseStyle(_t.TEXT),Qt=ie.makeVList({positionType:"bottom",positionData:he,children:Xe},Yt);return B8(ie.makeSpan(["delimsizing","mult"],[Qt],Yt),_t.TEXT,r,s)},h8=80,f8=.08,p8=function(e,t,n,r,o){var s=hfe(e,r,n),a=new Ua(e,s),l=new Vs([a],{width:"400em",height:ze(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return ie.makeSvgSpan(["hide-tail"],[l],o)},lpe=function(e,t){var n=t.havingBaseSizing(),r=iV("\\surd",e*n.sizeMultiplier,tV,n),o=n.sizeMultiplier,s=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),a,l=0,c=0,d=0,u;return r.type==="small"?(d=1e3+1e3*s+h8,e<1?o=1:e<1.4&&(o=.7),l=(1+s+f8)/o,c=(1+s)/o,a=p8("sqrtMain",l,d,s,t),a.style.minWidth="0.853em",u=.833/o):r.type==="large"?(d=(1e3+h8)*Y1[r.size],c=(Y1[r.size]+s)/o,l=(Y1[r.size]+s+f8)/o,a=p8("sqrtSize"+r.size,l,d,s,t),a.style.minWidth="1.02em",u=1/o):(l=e+s+f8,c=e+s,d=Math.floor(1e3*e+s)+h8,a=p8("sqrtTall",l,d,s,t),a.style.minWidth="0.742em",u=1.056),a.height=c,a.style.height=ze(l),{span:a,advanceWidth:u,ruleWidth:(t.fontMetrics().sqrtRuleThickness+s)*o}},ZW=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],cpe=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],eV=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],Y1=[0,1.2,1.8,2.4,3],dpe=function(e,t,n,r,o){if(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),wt.contains(ZW,e)||wt.contains(eV,e))return QW(e,t,!1,n,r,o);if(wt.contains(cpe,e))return JW(e,Y1[t],!1,n,r,o);throw new Ie("Illegal delimiter: '"+e+"'")},upe=[{type:"small",style:_t.SCRIPTSCRIPT},{type:"small",style:_t.SCRIPT},{type:"small",style:_t.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],hpe=[{type:"small",style:_t.SCRIPTSCRIPT},{type:"small",style:_t.SCRIPT},{type:"small",style:_t.TEXT},{type:"stack"}],tV=[{type:"small",style:_t.SCRIPTSCRIPT},{type:"small",style:_t.SCRIPT},{type:"small",style:_t.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],fpe=function(e){if(e.type==="small")return"Main-Regular";if(e.type==="large")return"Size"+e.size+"-Regular";if(e.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+e.type+"' here.")},iV=function(e,t,n,r){for(var o=Math.min(2,3-r.style.size),s=o;st)return n[s]}return n[n.length-1]},nV=function(e,t,n,r,o,s){e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle");var a;wt.contains(eV,e)?a=upe:wt.contains(ZW,e)?a=tV:a=hpe;var l=iV(e,t,a,r);return l.type==="small"?rpe(e,l.style,n,r,o,s):l.type==="large"?QW(e,l.size,n,r,o,s):JW(e,t,n,r,o,s)},ppe=function(e,t,n,r,o,s){var a=r.fontMetrics().axisHeight*r.sizeMultiplier,l=901,c=5/r.fontMetrics().ptPerEm,d=Math.max(t-a,n+a),u=Math.max(d/500*l,2*d-c);return nV(e,u,!0,r,o,s)},Xl={sqrtImage:lpe,sizedDelim:dpe,sizeToMaxHeight:Y1,customSizedDelim:nV,leftRightDelim:ppe},lW={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},mpe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function x5(i,e){var t=S5(i);if(t&&wt.contains(mpe,t.text))return t;throw t?new Ie("Invalid delimiter '"+t.text+"' after '"+e.funcName+"'",i):new Ie("Invalid delimiter type '"+i.type+"'",i)}Ye({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(i,e)=>{var t=x5(e[0],i);return{type:"delimsizing",mode:i.parser.mode,size:lW[i.funcName].size,mclass:lW[i.funcName].mclass,delim:t.text}},htmlBuilder:(i,e)=>i.delim==="."?ie.makeSpan([i.mclass]):Xl.sizedDelim(i.delim,i.size,e,i.mode,[i.mclass]),mathmlBuilder:i=>{var e=[];i.delim!=="."&&e.push(bs(i.delim,i.mode));var t=new Ee.MathNode("mo",e);i.mclass==="mopen"||i.mclass==="mclose"?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true");var n=ze(Xl.sizeToMaxHeight[i.size]);return t.setAttribute("minsize",n),t.setAttribute("maxsize",n),t}});function cW(i){if(!i.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Ye({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(i,e)=>{var t=i.parser.gullet.macros.get("\\current@color");if(t&&typeof t!="string")throw new Ie("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:i.parser.mode,delim:x5(e[0],i).text,color:t}}});Ye({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(i,e)=>{var t=x5(e[0],i),n=i.parser;++n.leftrightDepth;var r=n.parseExpression(!1);--n.leftrightDepth,n.expect("\\right",!1);var o=jt(n.parseFunction(),"leftright-right");return{type:"leftright",mode:n.mode,body:r,left:t.text,right:o.delim,rightColor:o.color}},htmlBuilder:(i,e)=>{cW(i);for(var t=Yn(i.body,e,!0,["mopen","mclose"]),n=0,r=0,o=!1,s=0;s{cW(i);var t=yo(i.body,e);if(i.left!=="."){var n=new Ee.MathNode("mo",[bs(i.left,i.mode)]);n.setAttribute("fence","true"),t.unshift(n)}if(i.right!=="."){var r=new Ee.MathNode("mo",[bs(i.right,i.mode)]);r.setAttribute("fence","true"),i.rightColor&&r.setAttribute("mathcolor",i.rightColor),t.push(r)}return R8(t)}});Ye({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(i,e)=>{var t=x5(e[0],i);if(!i.parser.leftrightDepth)throw new Ie("\\middle without preceding \\left",t);return{type:"middle",mode:i.parser.mode,delim:t.text}},htmlBuilder:(i,e)=>{var t;if(i.delim===".")t=e0(e,[]);else{t=Xl.sizedDelim(i.delim,1,e,i.mode,[]);var n={delim:i.delim,options:e};t.isMiddle=n}return t},mathmlBuilder:(i,e)=>{var t=i.delim==="\\vert"||i.delim==="|"?bs("|","text"):bs(i.delim,i.mode),n=new Ee.MathNode("mo",[t]);return n.setAttribute("fence","true"),n.setAttribute("lspace","0.05em"),n.setAttribute("rspace","0.05em"),n}});var H8=(i,e)=>{var t=ie.wrapFragment(ci(i.body,e),e),n=i.label.slice(1),r=e.sizeMultiplier,o,s=0,a=wt.isCharacterBox(i.body);if(n==="sout")o=ie.makeSpan(["stretchy","sout"]),o.height=e.fontMetrics().defaultRuleThickness/r,s=-.5*e.fontMetrics().xHeight;else if(n==="phase"){var l=cn({number:.6,unit:"pt"},e),c=cn({number:.35,unit:"ex"},e),d=e.havingBaseSizing();r=r/d.sizeMultiplier;var u=t.height+t.depth+l+c;t.style.paddingLeft=ze(u/2+l);var h=Math.floor(1e3*u*r),p=dfe(h),m=new Vs([new Ua("phase",p)],{width:"400em",height:ze(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});o=ie.makeSvgSpan(["hide-tail"],[m],e),o.style.height=ze(u),s=t.depth+l+c}else{/cancel/.test(n)?a||t.classes.push("cancel-pad"):n==="angl"?t.classes.push("anglpad"):t.classes.push("boxpad");var g=0,b=0,S=0;/box/.test(n)?(S=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness),g=e.fontMetrics().fboxsep+(n==="colorbox"?0:S),b=g):n==="angl"?(S=Math.max(e.fontMetrics().defaultRuleThickness,e.minRuleThickness),g=4*S,b=Math.max(0,.25-t.depth)):(g=a?.2:0,b=g),o=Jl.encloseSpan(t,n,g,b,e),/fbox|boxed|fcolorbox/.test(n)?(o.style.borderStyle="solid",o.style.borderWidth=ze(S)):n==="angl"&&S!==.049&&(o.style.borderTopWidth=ze(S),o.style.borderRightWidth=ze(S)),s=t.depth+b,i.backgroundColor&&(o.style.backgroundColor=i.backgroundColor,i.borderColor&&(o.style.borderColor=i.borderColor))}var k;if(i.backgroundColor)k=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:o,shift:s},{type:"elem",elem:t,shift:0}]},e);else{var N=/cancel|phase/.test(n)?["svg-align"]:[];k=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:t,shift:0},{type:"elem",elem:o,shift:s,wrapperClasses:N}]},e)}return/cancel/.test(n)&&(k.height=t.height,k.depth=t.depth),/cancel/.test(n)&&!a?ie.makeSpan(["mord","cancel-lap"],[k],e):ie.makeSpan(["mord"],[k],e)},z8=(i,e)=>{var t=0,n=new Ee.MathNode(i.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Oi(i.body,e)]);switch(i.label){case"\\cancel":n.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":n.setAttribute("notation","downdiagonalstrike");break;case"\\phase":n.setAttribute("notation","phasorangle");break;case"\\sout":n.setAttribute("notation","horizontalstrike");break;case"\\fbox":n.setAttribute("notation","box");break;case"\\angl":n.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(t=e.fontMetrics().fboxsep*e.fontMetrics().ptPerEm,n.setAttribute("width","+"+2*t+"pt"),n.setAttribute("height","+"+2*t+"pt"),n.setAttribute("lspace",t+"pt"),n.setAttribute("voffset",t+"pt"),i.label==="\\fcolorbox"){var r=Math.max(e.fontMetrics().fboxrule,e.minRuleThickness);n.setAttribute("style","border: "+r+"em solid "+String(i.borderColor))}break;case"\\xcancel":n.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return i.backgroundColor&&n.setAttribute("mathbackground",i.backgroundColor),n};Ye({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(i,e,t){var{parser:n,funcName:r}=i,o=jt(e[0],"color-token").color,s=e[1];return{type:"enclose",mode:n.mode,label:r,backgroundColor:o,body:s}},htmlBuilder:H8,mathmlBuilder:z8});Ye({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(i,e,t){var{parser:n,funcName:r}=i,o=jt(e[0],"color-token").color,s=jt(e[1],"color-token").color,a=e[2];return{type:"enclose",mode:n.mode,label:r,backgroundColor:s,borderColor:o,body:a}},htmlBuilder:H8,mathmlBuilder:z8});Ye({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(i,e){var{parser:t}=i;return{type:"enclose",mode:t.mode,label:"\\fbox",body:e[0]}}});Ye({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(i,e){var{parser:t,funcName:n}=i,r=e[0];return{type:"enclose",mode:t.mode,label:n,body:r}},htmlBuilder:H8,mathmlBuilder:z8});Ye({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(i,e){var{parser:t}=i;return{type:"enclose",mode:t.mode,label:"\\angl",body:e[0]}}});var rV={};function ja(i){for(var{type:e,names:t,props:n,handler:r,htmlBuilder:o,mathmlBuilder:s}=i,a={type:e,numArgs:n.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:r},l=0;l{var e=i.parser.settings;if(!e.displayMode)throw new Ie("{"+i.envName+"} can be used only in display mode.")};function U8(i){if(i.indexOf("ed")===-1)return i.indexOf("*")===-1}function pd(i,e,t){var{hskipBeforeAndAfter:n,addJot:r,cols:o,arraystretch:s,colSeparationType:a,autoTag:l,singleRow:c,emptySingleRow:d,maxNumCols:u,leqno:h}=e;if(i.gullet.beginGroup(),c||i.gullet.macros.set("\\cr","\\\\\\relax"),!s){var p=i.gullet.expandMacroAsText("\\arraystretch");if(p==null)s=1;else if(s=parseFloat(p),!s||s<0)throw new Ie("Invalid \\arraystretch: "+p)}i.gullet.beginGroup();var m=[],g=[m],b=[],S=[],k=l!=null?[]:void 0;function N(){l&&i.gullet.macros.set("\\@eqnsw","1",!0)}function A(){k&&(i.gullet.macros.get("\\df@tag")?(k.push(i.subparse([new za("\\df@tag")])),i.gullet.macros.set("\\df@tag",void 0,!0)):k.push(!!l&&i.gullet.macros.get("\\@eqnsw")==="1"))}for(N(),S.push(dW(i));;){var B=i.parseExpression(!1,c?"\\end":"\\\\");i.gullet.endGroup(),i.gullet.beginGroup(),B={type:"ordgroup",mode:i.mode,body:B},t&&(B={type:"styling",mode:i.mode,style:t,body:[B]}),m.push(B);var j=i.fetch().text;if(j==="&"){if(u&&m.length===u){if(c||a)throw new Ie("Too many tab characters: &",i.nextToken);i.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}i.consume()}else if(j==="\\end"){A(),m.length===1&&B.type==="styling"&&B.body[0].body.length===0&&(g.length>1||!d)&&g.pop(),S.length0&&(N+=.25),c.push({pos:N,isDashed:fl[Bn]})}for(A(s[0]),n=0;n0&&(he+=k,zfl))for(n=0;n=a)){var $i=void 0;(r>0||e.hskipBeforeAndAfter)&&($i=wt.deflt(de.pregap,h),$i!==0&&(Nt=ie.makeSpan(["arraycolsep"],[]),Nt.style.width=ze($i),ot.push(Nt)));var ai=[];for(n=0;n0){for(var qd=ie.makeLineSpan("hline",t,d),n_=ie.makeLineSpan("hdashline",t,d),_m=[{type:"elem",elem:l,shift:0}];c.length>0;){var Wh=c.pop(),r_=Wh.pos-Xe;Wh.isDashed?_m.push({type:"elem",elem:n_,shift:r_}):_m.push({type:"elem",elem:qd,shift:r_})}l=ie.makeVList({positionType:"individualShift",children:_m},t)}if(ye.length===0)return ie.makeSpan(["mord"],[l],t);var fr=ie.makeVList({positionType:"individualShift",children:ye},t);return fr=ie.makeSpan(["tag"],[fr],t),ie.makeFragment([l,fr])},gpe={c:"center ",l:"left ",r:"right "},Va=function(e,t){for(var n=[],r=new Ee.MathNode("mtd",[],["mtr-glue"]),o=new Ee.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var m=e.cols,g="",b=!1,S=0,k=m.length;m[0].type==="separator"&&(h+="top ",S=1),m[m.length-1].type==="separator"&&(h+="bottom ",k-=1);for(var N=S;N0?"left ":"",h+=J[J.length-1].length>0?"right ":"";for(var ae=1;ae-1?"alignat":"align",o=e.envName==="split",s=pd(e.parser,{cols:n,addJot:!0,autoTag:o?void 0:U8(e.envName),emptySingleRow:!0,colSeparationType:r,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),a,l=0,c={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&t[0].type==="ordgroup"){for(var d="",u=0;u0&&p&&(b=1),n[m]={type:"align",align:g,pregap:b,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};ja({type:"array",names:["array","darray"],props:{numArgs:1},handler(i,e){var t=S5(e[0]),n=t?[e[0]]:jt(e[0],"ordgroup").body,r=n.map(function(s){var a=P8(s),l=a.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Ie("Unknown column alignment: "+l,s)}),o={cols:r,hskipBeforeAndAfter:!0,maxNumCols:r.length};return pd(i.parser,o,j8(i.envName))},htmlBuilder:Wa,mathmlBuilder:Va});ja({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(i){var e={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[i.envName.replace("*","")],t="c",n={hskipBeforeAndAfter:!1,cols:[{type:"align",align:t}]};if(i.envName.charAt(i.envName.length-1)==="*"){var r=i.parser;if(r.consumeSpaces(),r.fetch().text==="["){if(r.consume(),r.consumeSpaces(),t=r.fetch().text,"lcr".indexOf(t)===-1)throw new Ie("Expected l or c or r",r.nextToken);r.consume(),r.consumeSpaces(),r.expect("]"),r.consume(),n.cols=[{type:"align",align:t}]}}var o=pd(i.parser,n,j8(i.envName)),s=Math.max(0,...o.body.map(a=>a.length));return o.cols=new Array(s).fill({type:"align",align:t}),e?{type:"leftright",mode:i.mode,body:[o],left:e[0],right:e[1],rightColor:void 0}:o},htmlBuilder:Wa,mathmlBuilder:Va});ja({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(i){var e={arraystretch:.5},t=pd(i.parser,e,"script");return t.colSeparationType="small",t},htmlBuilder:Wa,mathmlBuilder:Va});ja({type:"array",names:["subarray"],props:{numArgs:1},handler(i,e){var t=S5(e[0]),n=t?[e[0]]:jt(e[0],"ordgroup").body,r=n.map(function(s){var a=P8(s),l=a.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Ie("Unknown column alignment: "+l,s)});if(r.length>1)throw new Ie("{subarray} can contain only one column");var o={cols:r,hskipBeforeAndAfter:!1,arraystretch:.5};if(o=pd(i.parser,o,"script"),o.body.length>0&&o.body[0].length>1)throw new Ie("{subarray} can contain only one column");return o},htmlBuilder:Wa,mathmlBuilder:Va});ja({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(i){var e={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},t=pd(i.parser,e,j8(i.envName));return{type:"leftright",mode:i.mode,body:[t],left:i.envName.indexOf("r")>-1?".":"\\{",right:i.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:Wa,mathmlBuilder:Va});ja({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:sV,htmlBuilder:Wa,mathmlBuilder:Va});ja({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(i){wt.contains(["gather","gather*"],i.envName)&&E5(i);var e={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:U8(i.envName),emptySingleRow:!0,leqno:i.parser.settings.leqno};return pd(i.parser,e,"display")},htmlBuilder:Wa,mathmlBuilder:Va});ja({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:sV,htmlBuilder:Wa,mathmlBuilder:Va});ja({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(i){E5(i);var e={autoTag:U8(i.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:i.parser.settings.leqno};return pd(i.parser,e,"display")},htmlBuilder:Wa,mathmlBuilder:Va});ja({type:"array",names:["CD"],props:{numArgs:0},handler(i){return E5(i),ipe(i.parser)},htmlBuilder:Wa,mathmlBuilder:Va});R("\\nonumber","\\gdef\\@eqnsw{0}");R("\\notag","\\nonumber");Ye({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(i,e){throw new Ie(i.funcName+" valid only within array environment")}});var uW=rV;Ye({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(i,e){var{parser:t,funcName:n}=i,r=e[0];if(r.type!=="ordgroup")throw new Ie("Invalid environment name",r);for(var o="",s=0;s{var t=i.font,n=e.withFont(t);return ci(i.body,n)},lV=(i,e)=>{var t=i.font,n=e.withFont(t);return Oi(i.body,n)},hW={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Ye({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(i,e)=>{var{parser:t,funcName:n}=i,r=v5(e[0]),o=n;return o in hW&&(o=hW[o]),{type:"font",mode:t.mode,font:o.slice(1),body:r}},htmlBuilder:aV,mathmlBuilder:lV});Ye({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(i,e)=>{var{parser:t}=i,n=e[0],r=wt.isCharacterBox(n);return{type:"mclass",mode:t.mode,mclass:w5(n),body:[{type:"font",mode:t.mode,font:"boldsymbol",body:n}],isCharacterBox:r}}});Ye({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(i,e)=>{var{parser:t,funcName:n,breakOnTokenText:r}=i,{mode:o}=t,s=t.parseExpression(!0,r),a="math"+n.slice(1);return{type:"font",mode:o,font:a,body:{type:"ordgroup",mode:t.mode,body:s}}},htmlBuilder:aV,mathmlBuilder:lV});var cV=(i,e)=>{var t=e;return i==="display"?t=t.id>=_t.SCRIPT.id?t.text():_t.DISPLAY:i==="text"&&t.size===_t.DISPLAY.size?t=_t.TEXT:i==="script"?t=_t.SCRIPT:i==="scriptscript"&&(t=_t.SCRIPTSCRIPT),t},W8=(i,e)=>{var t=cV(i.size,e.style),n=t.fracNum(),r=t.fracDen(),o;o=e.havingStyle(n);var s=ci(i.numer,o,e);if(i.continued){var a=8.5/e.fontMetrics().ptPerEm,l=3.5/e.fontMetrics().ptPerEm;s.height=s.height0?m=3*h:m=7*h,g=e.fontMetrics().denom1):(u>0?(p=e.fontMetrics().num2,m=h):(p=e.fontMetrics().num3,m=3*h),g=e.fontMetrics().denom2);var b;if(d){var k=e.fontMetrics().axisHeight;p-s.depth-(k+.5*u){var t=new Ee.MathNode("mfrac",[Oi(i.numer,e),Oi(i.denom,e)]);if(!i.hasBarLine)t.setAttribute("linethickness","0px");else if(i.barSize){var n=cn(i.barSize,e);t.setAttribute("linethickness",ze(n))}var r=cV(i.size,e.style);if(r.size!==e.style.size){t=new Ee.MathNode("mstyle",[t]);var o=r.size===_t.DISPLAY.size?"true":"false";t.setAttribute("displaystyle",o),t.setAttribute("scriptlevel","0")}if(i.leftDelim!=null||i.rightDelim!=null){var s=[];if(i.leftDelim!=null){var a=new Ee.MathNode("mo",[new Ee.TextNode(i.leftDelim.replace("\\",""))]);a.setAttribute("fence","true"),s.push(a)}if(s.push(t),i.rightDelim!=null){var l=new Ee.MathNode("mo",[new Ee.TextNode(i.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return R8(s)}return t};Ye({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(i,e)=>{var{parser:t,funcName:n}=i,r=e[0],o=e[1],s,a=null,l=null,c="auto";switch(n){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,a="(",l=")";break;case"\\\\bracefrac":s=!1,a="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,a="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(n){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text";break}return{type:"genfrac",mode:t.mode,continued:!1,numer:r,denom:o,hasBarLine:s,leftDelim:a,rightDelim:l,size:c,barSize:null}},htmlBuilder:W8,mathmlBuilder:V8});Ye({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(i,e)=>{var{parser:t,funcName:n}=i,r=e[0],o=e[1];return{type:"genfrac",mode:t.mode,continued:!0,numer:r,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});Ye({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(i){var{parser:e,funcName:t,token:n}=i,r;switch(t){case"\\over":r="\\frac";break;case"\\choose":r="\\binom";break;case"\\atop":r="\\\\atopfrac";break;case"\\brace":r="\\\\bracefrac";break;case"\\brack":r="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:e.mode,replaceWith:r,token:n}}});var fW=["display","text","script","scriptscript"],pW=function(e){var t=null;return e.length>0&&(t=e,t=t==="."?null:t),t};Ye({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(i,e){var{parser:t}=i,n=e[4],r=e[5],o=v5(e[0]),s=o.type==="atom"&&o.family==="open"?pW(o.text):null,a=v5(e[1]),l=a.type==="atom"&&a.family==="close"?pW(a.text):null,c=jt(e[2],"size"),d,u=null;c.isBlank?d=!0:(u=c.value,d=u.number>0);var h="auto",p=e[3];if(p.type==="ordgroup"){if(p.body.length>0){var m=jt(p.body[0],"textord");h=fW[Number(m.text)]}}else p=jt(p,"textord"),h=fW[Number(p.text)];return{type:"genfrac",mode:t.mode,numer:n,denom:r,continued:!1,hasBarLine:d,barSize:u,leftDelim:s,rightDelim:l,size:h}},htmlBuilder:W8,mathmlBuilder:V8});Ye({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(i,e){var{parser:t,funcName:n,token:r}=i;return{type:"infix",mode:t.mode,replaceWith:"\\\\abovefrac",size:jt(e[0],"size").value,token:r}}});Ye({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(i,e)=>{var{parser:t,funcName:n}=i,r=e[0],o=Yhe(jt(e[1],"infix").size),s=e[2],a=o.number>0;return{type:"genfrac",mode:t.mode,numer:r,denom:s,continued:!1,hasBarLine:a,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:W8,mathmlBuilder:V8});var dV=(i,e)=>{var t=e.style,n,r;i.type==="supsub"?(n=i.sup?ci(i.sup,e.havingStyle(t.sup()),e):ci(i.sub,e.havingStyle(t.sub()),e),r=jt(i.base,"horizBrace")):r=jt(i,"horizBrace");var o=ci(r.base,e.havingBaseStyle(_t.DISPLAY)),s=Jl.svgSpan(r,e),a;if(r.isOver?(a=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:o},{type:"kern",size:.1},{type:"elem",elem:s}]},e),a.children[0].children[0].children[1].classes.push("svg-align")):(a=ie.makeVList({positionType:"bottom",positionData:o.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:o}]},e),a.children[0].children[0].children[0].classes.push("svg-align")),n){var l=ie.makeSpan(["mord",r.isOver?"mover":"munder"],[a],e);r.isOver?a=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:n}]},e):a=ie.makeVList({positionType:"bottom",positionData:l.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:l}]},e)}return ie.makeSpan(["mord",r.isOver?"mover":"munder"],[a],e)},vpe=(i,e)=>{var t=Jl.mathMLnode(i.label);return new Ee.MathNode(i.isOver?"mover":"munder",[Oi(i.base,e),t])};Ye({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(i,e){var{parser:t,funcName:n}=i;return{type:"horizBrace",mode:t.mode,label:n,isOver:/^\\over/.test(n),base:e[0]}},htmlBuilder:dV,mathmlBuilder:vpe});Ye({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(i,e)=>{var{parser:t}=i,n=e[1],r=jt(e[0],"url").url;return t.settings.isTrusted({command:"\\href",url:r})?{type:"href",mode:t.mode,href:r,body:Tn(n)}:t.formatUnsupportedCmd("\\href")},htmlBuilder:(i,e)=>{var t=Yn(i.body,e,!1);return ie.makeAnchor(i.href,[],t,e)},mathmlBuilder:(i,e)=>{var t=fd(i.body,e);return t instanceof _o||(t=new _o("mrow",[t])),t.setAttribute("href",i.href),t}});Ye({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(i,e)=>{var{parser:t}=i,n=jt(e[0],"url").url;if(!t.settings.isTrusted({command:"\\url",url:n}))return t.formatUnsupportedCmd("\\url");for(var r=[],o=0;o{var{parser:t,funcName:n,token:r}=i,o=jt(e[0],"raw").string,s=e[1];t.settings.strict&&t.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var a,l={};switch(n){case"\\htmlClass":l.class=o,a={command:"\\htmlClass",class:o};break;case"\\htmlId":l.id=o,a={command:"\\htmlId",id:o};break;case"\\htmlStyle":l.style=o,a={command:"\\htmlStyle",style:o};break;case"\\htmlData":{for(var c=o.split(","),d=0;d{var t=Yn(i.body,e,!1),n=["enclosing"];i.attributes.class&&n.push(...i.attributes.class.trim().split(/\s+/));var r=ie.makeSpan(n,t,e);for(var o in i.attributes)o!=="class"&&i.attributes.hasOwnProperty(o)&&r.setAttribute(o,i.attributes[o]);return r},mathmlBuilder:(i,e)=>fd(i.body,e)});Ye({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(i,e)=>{var{parser:t}=i;return{type:"htmlmathml",mode:t.mode,html:Tn(e[0]),mathml:Tn(e[1])}},htmlBuilder:(i,e)=>{var t=Yn(i.html,e,!1);return ie.makeFragment(t)},mathmlBuilder:(i,e)=>fd(i.mathml,e)});var m8=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new Ie("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!AW(n))throw new Ie("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};Ye({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(i,e,t)=>{var{parser:n}=i,r={number:0,unit:"em"},o={number:.9,unit:"em"},s={number:0,unit:"em"},a="";if(t[0])for(var l=jt(t[0],"raw").string,c=l.split(","),d=0;d{var t=cn(i.height,e),n=0;i.totalheight.number>0&&(n=cn(i.totalheight,e)-t);var r=0;i.width.number>0&&(r=cn(i.width,e));var o={height:ze(t+n)};r>0&&(o.width=ze(r)),n>0&&(o.verticalAlign=ze(-n));var s=new C8(i.src,i.alt,o);return s.height=t,s.depth=n,s},mathmlBuilder:(i,e)=>{var t=new Ee.MathNode("mglyph",[]);t.setAttribute("alt",i.alt);var n=cn(i.height,e),r=0;if(i.totalheight.number>0&&(r=cn(i.totalheight,e)-n,t.setAttribute("valign",ze(-r))),t.setAttribute("height",ze(n+r)),i.width.number>0){var o=cn(i.width,e);t.setAttribute("width",ze(o))}return t.setAttribute("src",i.src),t}});Ye({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(i,e){var{parser:t,funcName:n}=i,r=jt(e[0],"size");if(t.settings.strict){var o=n[1]==="m",s=r.value.unit==="mu";o?(s||t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" supports only mu units, "+("not "+r.value.unit+" units")),t.mode!=="math"&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" works only in math mode")):s&&t.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+n+" doesn't support mu units")}return{type:"kern",mode:t.mode,dimension:r.value}},htmlBuilder(i,e){return ie.makeGlue(i.dimension,e)},mathmlBuilder(i,e){var t=cn(i.dimension,e);return new Ee.SpaceNode(t)}});Ye({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(i,e)=>{var{parser:t,funcName:n}=i,r=e[0];return{type:"lap",mode:t.mode,alignment:n.slice(5),body:r}},htmlBuilder:(i,e)=>{var t;i.alignment==="clap"?(t=ie.makeSpan([],[ci(i.body,e)]),t=ie.makeSpan(["inner"],[t],e)):t=ie.makeSpan(["inner"],[ci(i.body,e)]);var n=ie.makeSpan(["fix"],[]),r=ie.makeSpan([i.alignment],[t,n],e),o=ie.makeSpan(["strut"]);return o.style.height=ze(r.height+r.depth),r.depth&&(o.style.verticalAlign=ze(-r.depth)),r.children.unshift(o),r=ie.makeSpan(["thinbox"],[r],e),ie.makeSpan(["mord","vbox"],[r],e)},mathmlBuilder:(i,e)=>{var t=new Ee.MathNode("mpadded",[Oi(i.body,e)]);if(i.alignment!=="rlap"){var n=i.alignment==="llap"?"-1":"-0.5";t.setAttribute("lspace",n+"width")}return t.setAttribute("width","0px"),t}});Ye({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(i,e){var{funcName:t,parser:n}=i,r=n.mode;n.switchMode("math");var o=t==="\\("?"\\)":"$",s=n.parseExpression(!1,o);return n.expect(o),n.switchMode(r),{type:"styling",mode:n.mode,style:"text",body:s}}});Ye({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(i,e){throw new Ie("Mismatched "+i.funcName)}});var mW=(i,e)=>{switch(e.style.size){case _t.DISPLAY.size:return i.display;case _t.TEXT.size:return i.text;case _t.SCRIPT.size:return i.script;case _t.SCRIPTSCRIPT.size:return i.scriptscript;default:return i.text}};Ye({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(i,e)=>{var{parser:t}=i;return{type:"mathchoice",mode:t.mode,display:Tn(e[0]),text:Tn(e[1]),script:Tn(e[2]),scriptscript:Tn(e[3])}},htmlBuilder:(i,e)=>{var t=mW(i,e),n=Yn(t,e,!1);return ie.makeFragment(n)},mathmlBuilder:(i,e)=>{var t=mW(i,e);return fd(t,e)}});var uV=(i,e,t,n,r,o,s)=>{i=ie.makeSpan([],[i]);var a=t&&wt.isCharacterBox(t),l,c;if(e){var d=ci(e,n.havingStyle(r.sup()),n);c={elem:d,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-d.depth)}}if(t){var u=ci(t,n.havingStyle(r.sub()),n);l={elem:u,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-u.height)}}var h;if(c&&l){var p=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+i.depth+s;h=ie.makeVList({positionType:"bottom",positionData:p,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:ze(-o)},{type:"kern",size:l.kern},{type:"elem",elem:i},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:ze(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(l){var m=i.height-s;h=ie.makeVList({positionType:"top",positionData:m,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:ze(-o)},{type:"kern",size:l.kern},{type:"elem",elem:i}]},n)}else if(c){var g=i.depth+s;h=ie.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:i},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:ze(o)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else return i;var b=[h];if(l&&o!==0&&!a){var S=ie.makeSpan(["mspace"],[],n);S.style.marginRight=ze(o),b.unshift(S)}return ie.makeSpan(["mop","op-limits"],b,n)},hV=["\\smallint"],Kf=(i,e)=>{var t,n,r=!1,o;i.type==="supsub"?(t=i.sup,n=i.sub,o=jt(i.base,"op"),r=!0):o=jt(i,"op");var s=e.style,a=!1;s.size===_t.DISPLAY.size&&o.symbol&&!wt.contains(hV,o.name)&&(a=!0);var l;if(o.symbol){var c=a?"Size2-Regular":"Size1-Regular",d="";if((o.name==="\\oiint"||o.name==="\\oiiint")&&(d=o.name.slice(1),o.name=d==="oiint"?"\\iint":"\\iiint"),l=ie.makeSymbol(o.name,c,"math",e,["mop","op-symbol",a?"large-op":"small-op"]),d.length>0){var u=l.italic,h=ie.staticSvg(d+"Size"+(a?"2":"1"),e);l=ie.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:h,shift:a?.08:0}]},e),o.name="\\"+d,l.classes.unshift("mop"),l.italic=u}}else if(o.body){var p=Yn(o.body,e,!0);p.length===1&&p[0]instanceof bo?(l=p[0],l.classes[0]="mop"):l=ie.makeSpan(["mop"],p,e)}else{for(var m=[],g=1;g{var t;if(i.symbol)t=new _o("mo",[bs(i.name,i.mode)]),wt.contains(hV,i.name)&&t.setAttribute("largeop","false");else if(i.body)t=new _o("mo",yo(i.body,e));else{t=new _o("mi",[new ku(i.name.slice(1))]);var n=new _o("mo",[bs("\u2061","text")]);i.parentIsSupSub?t=new _o("mrow",[t,n]):t=zW([t,n])}return t},_pe={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Ye({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(i,e)=>{var{parser:t,funcName:n}=i,r=n;return r.length===1&&(r=_pe[r]),{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Kf,mathmlBuilder:t0});Ye({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(i,e)=>{var{parser:t}=i,n=e[0];return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Tn(n)}},htmlBuilder:Kf,mathmlBuilder:t0});var bpe={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Ye({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(i){var{parser:e,funcName:t}=i;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Kf,mathmlBuilder:t0});Ye({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(i){var{parser:e,funcName:t}=i;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Kf,mathmlBuilder:t0});Ye({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(i){var{parser:e,funcName:t}=i,n=t;return n.length===1&&(n=bpe[n]),{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Kf,mathmlBuilder:t0});var fV=(i,e)=>{var t,n,r=!1,o;i.type==="supsub"?(t=i.sup,n=i.sub,o=jt(i.base,"operatorname"),r=!0):o=jt(i,"operatorname");var s;if(o.body.length>0){for(var a=o.body.map(u=>{var h=u.text;return typeof h=="string"?{type:"textord",mode:u.mode,text:h}:u}),l=Yn(a,e.withFont("mathrm"),!0),c=0;c{for(var t=yo(i.body,e.withFont("mathrm")),n=!0,r=0;rd.toText()).join("");t=[new Ee.TextNode(a)]}var l=new Ee.MathNode("mi",t);l.setAttribute("mathvariant","normal");var c=new Ee.MathNode("mo",[bs("\u2061","text")]);return i.parentIsSupSub?new Ee.MathNode("mrow",[l,c]):Ee.newDocumentFragment([l,c])};Ye({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(i,e)=>{var{parser:t,funcName:n}=i,r=e[0];return{type:"operatorname",mode:t.mode,body:Tn(r),alwaysHandleSupSub:n==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:fV,mathmlBuilder:ype});R("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");Lu({type:"ordgroup",htmlBuilder(i,e){return i.semisimple?ie.makeFragment(Yn(i.body,e,!1)):ie.makeSpan(["mord"],Yn(i.body,e,!0),e)},mathmlBuilder(i,e){return fd(i.body,e,!0)}});Ye({type:"overline",names:["\\overline"],props:{numArgs:1},handler(i,e){var{parser:t}=i,n=e[0];return{type:"overline",mode:t.mode,body:n}},htmlBuilder(i,e){var t=ci(i.body,e.havingCrampedStyle()),n=ie.makeLineSpan("overline-line",e),r=e.fontMetrics().defaultRuleThickness,o=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t},{type:"kern",size:3*r},{type:"elem",elem:n},{type:"kern",size:r}]},e);return ie.makeSpan(["mord","overline"],[o],e)},mathmlBuilder(i,e){var t=new Ee.MathNode("mo",[new Ee.TextNode("\u203E")]);t.setAttribute("stretchy","true");var n=new Ee.MathNode("mover",[Oi(i.body,e),t]);return n.setAttribute("accent","true"),n}});Ye({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(i,e)=>{var{parser:t}=i,n=e[0];return{type:"phantom",mode:t.mode,body:Tn(n)}},htmlBuilder:(i,e)=>{var t=Yn(i.body,e.withPhantom(),!1);return ie.makeFragment(t)},mathmlBuilder:(i,e)=>{var t=yo(i.body,e);return new Ee.MathNode("mphantom",t)}});Ye({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(i,e)=>{var{parser:t}=i,n=e[0];return{type:"hphantom",mode:t.mode,body:n}},htmlBuilder:(i,e)=>{var t=ie.makeSpan([],[ci(i.body,e.withPhantom())]);if(t.height=0,t.depth=0,t.children)for(var n=0;n{var t=yo(Tn(i.body),e),n=new Ee.MathNode("mphantom",t),r=new Ee.MathNode("mpadded",[n]);return r.setAttribute("height","0px"),r.setAttribute("depth","0px"),r}});Ye({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(i,e)=>{var{parser:t}=i,n=e[0];return{type:"vphantom",mode:t.mode,body:n}},htmlBuilder:(i,e)=>{var t=ie.makeSpan(["inner"],[ci(i.body,e.withPhantom())]),n=ie.makeSpan(["fix"],[]);return ie.makeSpan(["mord","rlap"],[t,n],e)},mathmlBuilder:(i,e)=>{var t=yo(Tn(i.body),e),n=new Ee.MathNode("mphantom",t),r=new Ee.MathNode("mpadded",[n]);return r.setAttribute("width","0px"),r}});Ye({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(i,e){var{parser:t}=i,n=jt(e[0],"size").value,r=e[1];return{type:"raisebox",mode:t.mode,dy:n,body:r}},htmlBuilder(i,e){var t=ci(i.body,e),n=cn(i.dy,e);return ie.makeVList({positionType:"shift",positionData:-n,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(i,e){var t=new Ee.MathNode("mpadded",[Oi(i.body,e)]),n=i.dy.number+i.dy.unit;return t.setAttribute("voffset",n),t}});Ye({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(i){var{parser:e}=i;return{type:"internal",mode:e.mode}}});Ye({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(i,e,t){var{parser:n}=i,r=t[0],o=jt(e[0],"size"),s=jt(e[1],"size");return{type:"rule",mode:n.mode,shift:r&&jt(r,"size").value,width:o.value,height:s.value}},htmlBuilder(i,e){var t=ie.makeSpan(["mord","rule"],[],e),n=cn(i.width,e),r=cn(i.height,e),o=i.shift?cn(i.shift,e):0;return t.style.borderRightWidth=ze(n),t.style.borderTopWidth=ze(r),t.style.bottom=ze(o),t.width=n,t.height=r+o,t.depth=-o,t.maxFontSize=r*1.125*e.sizeMultiplier,t},mathmlBuilder(i,e){var t=cn(i.width,e),n=cn(i.height,e),r=i.shift?cn(i.shift,e):0,o=e.color&&e.getColor()||"black",s=new Ee.MathNode("mspace");s.setAttribute("mathbackground",o),s.setAttribute("width",ze(t)),s.setAttribute("height",ze(n));var a=new Ee.MathNode("mpadded",[s]);return r>=0?a.setAttribute("height",ze(r)):(a.setAttribute("height",ze(r)),a.setAttribute("depth",ze(-r))),a.setAttribute("voffset",ze(r)),a}});function pV(i,e,t){for(var n=Yn(i,e,!1),r=e.sizeMultiplier/t.sizeMultiplier,o=0;o{var t=e.havingSize(i.size);return pV(i.body,t,e)};Ye({type:"sizing",names:gW,props:{numArgs:0,allowedInText:!0},handler:(i,e)=>{var{breakOnTokenText:t,funcName:n,parser:r}=i,o=r.parseExpression(!1,t);return{type:"sizing",mode:r.mode,size:gW.indexOf(n)+1,body:o}},htmlBuilder:Cpe,mathmlBuilder:(i,e)=>{var t=e.havingSize(i.size),n=yo(i.body,t),r=new Ee.MathNode("mstyle",n);return r.setAttribute("mathsize",ze(t.sizeMultiplier)),r}});Ye({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(i,e,t)=>{var{parser:n}=i,r=!1,o=!1,s=t[0]&&jt(t[0],"ordgroup");if(s)for(var a="",l=0;l{var t=ie.makeSpan([],[ci(i.body,e)]);if(!i.smashHeight&&!i.smashDepth)return t;if(i.smashHeight&&(t.height=0,t.children))for(var n=0;n{var t=new Ee.MathNode("mpadded",[Oi(i.body,e)]);return i.smashHeight&&t.setAttribute("height","0px"),i.smashDepth&&t.setAttribute("depth","0px"),t}});Ye({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(i,e,t){var{parser:n}=i,r=t[0],o=e[0];return{type:"sqrt",mode:n.mode,body:o,index:r}},htmlBuilder(i,e){var t=ci(i.body,e.havingCrampedStyle());t.height===0&&(t.height=e.fontMetrics().xHeight),t=ie.wrapFragment(t,e);var n=e.fontMetrics(),r=n.defaultRuleThickness,o=r;e.style.id<_t.TEXT.id&&(o=e.fontMetrics().xHeight);var s=r+o/4,a=t.height+t.depth+s+r,{span:l,ruleWidth:c,advanceWidth:d}=Xl.sqrtImage(a,e),u=l.height-c;u>t.height+t.depth+s&&(s=(s+u-t.height-t.depth)/2);var h=l.height-t.height-s-c;t.style.paddingLeft=ze(d);var p=ie.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:t,wrapperClasses:["svg-align"]},{type:"kern",size:-(t.height+h)},{type:"elem",elem:l},{type:"kern",size:c}]},e);if(i.index){var m=e.havingStyle(_t.SCRIPTSCRIPT),g=ci(i.index,m,e),b=.6*(p.height-p.depth),S=ie.makeVList({positionType:"shift",positionData:-b,children:[{type:"elem",elem:g}]},e),k=ie.makeSpan(["root"],[S]);return ie.makeSpan(["mord","sqrt"],[k,p],e)}else return ie.makeSpan(["mord","sqrt"],[p],e)},mathmlBuilder(i,e){var{body:t,index:n}=i;return n?new Ee.MathNode("mroot",[Oi(t,e),Oi(n,e)]):new Ee.MathNode("msqrt",[Oi(t,e)])}});var vW={display:_t.DISPLAY,text:_t.TEXT,script:_t.SCRIPT,scriptscript:_t.SCRIPTSCRIPT};Ye({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(i,e){var{breakOnTokenText:t,funcName:n,parser:r}=i,o=r.parseExpression(!0,t),s=n.slice(1,n.length-5);return{type:"styling",mode:r.mode,style:s,body:o}},htmlBuilder(i,e){var t=vW[i.style],n=e.havingStyle(t).withFont("");return pV(i.body,n,e)},mathmlBuilder(i,e){var t=vW[i.style],n=e.havingStyle(t),r=yo(i.body,n),o=new Ee.MathNode("mstyle",r),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},a=s[i.style];return o.setAttribute("scriptlevel",a[0]),o.setAttribute("displaystyle",a[1]),o}});var Spe=function(e,t){var n=e.base;if(n)if(n.type==="op"){var r=n.limits&&(t.style.size===_t.DISPLAY.size||n.alwaysHandleSupSub);return r?Kf:null}else if(n.type==="operatorname"){var o=n.alwaysHandleSupSub&&(t.style.size===_t.DISPLAY.size||n.limits);return o?fV:null}else{if(n.type==="accent")return wt.isCharacterBox(n.base)?F8:null;if(n.type==="horizBrace"){var s=!e.sub;return s===n.isOver?dV:null}else return null}else return null};Lu({type:"supsub",htmlBuilder(i,e){var t=Spe(i,e);if(t)return t(i,e);var{base:n,sup:r,sub:o}=i,s=ci(n,e),a,l,c=e.fontMetrics(),d=0,u=0,h=n&&wt.isCharacterBox(n);if(r){var p=e.havingStyle(e.style.sup());a=ci(r,p,e),h||(d=s.height-p.fontMetrics().supDrop*p.sizeMultiplier/e.sizeMultiplier)}if(o){var m=e.havingStyle(e.style.sub());l=ci(o,m,e),h||(u=s.depth+m.fontMetrics().subDrop*m.sizeMultiplier/e.sizeMultiplier)}var g;e.style===_t.DISPLAY?g=c.sup1:e.style.cramped?g=c.sup3:g=c.sup2;var b=e.sizeMultiplier,S=ze(.5/c.ptPerEm/b),k=null;if(l){var N=i.base&&i.base.type==="op"&&i.base.name&&(i.base.name==="\\oiint"||i.base.name==="\\oiiint");(s instanceof bo||N)&&(k=ze(-s.italic))}var A;if(a&&l){d=Math.max(d,g,a.depth+.25*c.xHeight),u=Math.max(u,c.sub2);var B=c.defaultRuleThickness,j=4*B;if(d-a.depth-(l.height-u)0&&(d+=z,u-=z)}var J=[{type:"elem",elem:l,shift:u,marginRight:S,marginLeft:k},{type:"elem",elem:a,shift:-d,marginRight:S}];A=ie.makeVList({positionType:"individualShift",children:J},e)}else if(l){u=Math.max(u,c.sub1,l.height-.8*c.xHeight);var ae=[{type:"elem",elem:l,marginLeft:k,marginRight:S}];A=ie.makeVList({positionType:"shift",positionData:u,children:ae},e)}else if(a)d=Math.max(d,g,a.depth+.25*c.xHeight),A=ie.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:a,marginRight:S}]},e);else throw new Error("supsub must have either sup or sub.");var Le=w8(s,"right")||"mord";return ie.makeSpan([Le],[s,ie.makeSpan(["msupsub"],[A])],e)},mathmlBuilder(i,e){var t=!1,n,r;i.base&&i.base.type==="horizBrace"&&(r=!!i.sup,r===i.base.isOver&&(t=!0,n=i.base.isOver)),i.base&&(i.base.type==="op"||i.base.type==="operatorname")&&(i.base.parentIsSupSub=!0);var o=[Oi(i.base,e)];i.sub&&o.push(Oi(i.sub,e)),i.sup&&o.push(Oi(i.sup,e));var s;if(t)s=n?"mover":"munder";else if(i.sub)if(i.sup){var c=i.base;c&&c.type==="op"&&c.limits&&e.style===_t.DISPLAY||c&&c.type==="operatorname"&&c.alwaysHandleSupSub&&(e.style===_t.DISPLAY||c.limits)?s="munderover":s="msubsup"}else{var l=i.base;l&&l.type==="op"&&l.limits&&(e.style===_t.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||e.style===_t.DISPLAY)?s="munder":s="msub"}else{var a=i.base;a&&a.type==="op"&&a.limits&&(e.style===_t.DISPLAY||a.alwaysHandleSupSub)||a&&a.type==="operatorname"&&a.alwaysHandleSupSub&&(a.limits||e.style===_t.DISPLAY)?s="mover":s="msup"}return new Ee.MathNode(s,o)}});Lu({type:"atom",htmlBuilder(i,e){return ie.mathsym(i.text,i.mode,e,["m"+i.family])},mathmlBuilder(i,e){var t=new Ee.MathNode("mo",[bs(i.text,i.mode)]);if(i.family==="bin"){var n=O8(i,e);n==="bold-italic"&&t.setAttribute("mathvariant",n)}else i.family==="punct"?t.setAttribute("separator","true"):(i.family==="open"||i.family==="close")&&t.setAttribute("stretchy","false");return t}});var mV={mi:"italic",mn:"normal",mtext:"normal"};Lu({type:"mathord",htmlBuilder(i,e){return ie.makeOrd(i,e,"mathord")},mathmlBuilder(i,e){var t=new Ee.MathNode("mi",[bs(i.text,i.mode,e)]),n=O8(i,e)||"italic";return n!==mV[t.type]&&t.setAttribute("mathvariant",n),t}});Lu({type:"textord",htmlBuilder(i,e){return ie.makeOrd(i,e,"textord")},mathmlBuilder(i,e){var t=bs(i.text,i.mode,e),n=O8(i,e)||"normal",r;return i.mode==="text"?r=new Ee.MathNode("mtext",[t]):/[0-9]/.test(i.text)?r=new Ee.MathNode("mn",[t]):i.text==="\\prime"?r=new Ee.MathNode("mo",[t]):r=new Ee.MathNode("mi",[t]),n!==mV[r.type]&&r.setAttribute("mathvariant",n),r}});var g8={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},v8={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Lu({type:"spacing",htmlBuilder(i,e){if(v8.hasOwnProperty(i.text)){var t=v8[i.text].className||"";if(i.mode==="text"){var n=ie.makeOrd(i,e,"textord");return n.classes.push(t),n}else return ie.makeSpan(["mspace",t],[ie.mathsym(i.text,i.mode,e)],e)}else{if(g8.hasOwnProperty(i.text))return ie.makeSpan(["mspace",g8[i.text]],[],e);throw new Ie('Unknown type of space "'+i.text+'"')}},mathmlBuilder(i,e){var t;if(v8.hasOwnProperty(i.text))t=new Ee.MathNode("mtext",[new Ee.TextNode("\xA0")]);else{if(g8.hasOwnProperty(i.text))return new Ee.MathNode("mspace");throw new Ie('Unknown type of space "'+i.text+'"')}return t}});var _W=()=>{var i=new Ee.MathNode("mtd",[]);return i.setAttribute("width","50%"),i};Lu({type:"tag",mathmlBuilder(i,e){var t=new Ee.MathNode("mtable",[new Ee.MathNode("mtr",[_W(),new Ee.MathNode("mtd",[fd(i.body,e)]),_W(),new Ee.MathNode("mtd",[fd(i.tag,e)])])]);return t.setAttribute("width","100%"),t}});var bW={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},yW={"\\textbf":"textbf","\\textmd":"textmd"},wpe={"\\textit":"textit","\\textup":"textup"},CW=(i,e)=>{var t=i.font;return t?bW[t]?e.withTextFontFamily(bW[t]):yW[t]?e.withTextFontWeight(yW[t]):e.withTextFontShape(wpe[t]):e};Ye({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(i,e){var{parser:t,funcName:n}=i,r=e[0];return{type:"text",mode:t.mode,body:Tn(r),font:n}},htmlBuilder(i,e){var t=CW(i,e),n=Yn(i.body,t,!0);return ie.makeSpan(["mord","text"],n,t)},mathmlBuilder(i,e){var t=CW(i,e);return fd(i.body,t)}});Ye({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(i,e){var{parser:t}=i;return{type:"underline",mode:t.mode,body:e[0]}},htmlBuilder(i,e){var t=ci(i.body,e),n=ie.makeLineSpan("underline-line",e),r=e.fontMetrics().defaultRuleThickness,o=ie.makeVList({positionType:"top",positionData:t.height,children:[{type:"kern",size:r},{type:"elem",elem:n},{type:"kern",size:3*r},{type:"elem",elem:t}]},e);return ie.makeSpan(["mord","underline"],[o],e)},mathmlBuilder(i,e){var t=new Ee.MathNode("mo",[new Ee.TextNode("\u203E")]);t.setAttribute("stretchy","true");var n=new Ee.MathNode("munder",[Oi(i.body,e),t]);return n.setAttribute("accentunder","true"),n}});Ye({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(i,e){var{parser:t}=i;return{type:"vcenter",mode:t.mode,body:e[0]}},htmlBuilder(i,e){var t=ci(i.body,e),n=e.fontMetrics().axisHeight,r=.5*(t.height-n-(t.depth+n));return ie.makeVList({positionType:"shift",positionData:r,children:[{type:"elem",elem:t}]},e)},mathmlBuilder(i,e){return new Ee.MathNode("mpadded",[Oi(i.body,e)],["vcenter"])}});Ye({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(i,e,t){throw new Ie("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(i,e){for(var t=SW(i),n=[],r=e.havingStyle(e.style.text()),o=0;oi.body.replace(/ /g,i.star?"\u2423":"\xA0"),ud=BW,gV=`[ \r + ]`,xpe="\\\\[a-zA-Z@]+",Epe="\\\\[^\uD800-\uDFFF]",Tpe="("+xpe+")"+gV+"*",kpe=`\\\\( |[ \r ]+ -?)[ \r ]*`,q5="[\u0300-\u036F]",sue=new RegExp(q5+"+$"),aue="("+Uj+"+)|"+(oue+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(q5+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(q5+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+nue)+("|"+rue+")"),yw=class{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp(aue,"g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new Na("EOF",new zo(this,t,t));var r=this.tokenRegex.exec(e);if(r===null||r.index!==t)throw new Be("Unexpected character: '"+e[t]+"'",new Na(e[t],new zo(this,t,t+1)));var n=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[n]===14){var o=e.indexOf(` -`,this.tokenRegex.lastIndex);return o===-1?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=o+1,this.lex()}return new Na(n,new zo(this,t,this.tokenRegex.lastIndex))}},K5=class{constructor(e,t){e===void 0&&(e={}),t===void 0&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Be("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(e[t]==null?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,r){if(r===void 0&&(r=!1),r){for(var n=0;n0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var o=this.undefStack[this.undefStack.length-1];o&&!o.hasOwnProperty(e)&&(o[e]=this.current[e])}t==null?delete this.current[e]:this.current[e]=t}},lue=Lj;P("\\noexpand",function(i){var e=i.popToken();return i.isExpandable(e.text)&&(e.noexpand=!0,e.treatAsRelax=!0),{tokens:[e],numArgs:0}});P("\\expandafter",function(i){var e=i.popToken();return i.expandOnce(!0),{tokens:[e],numArgs:0}});P("\\@firstoftwo",function(i){var e=i.consumeArgs(2);return{tokens:e[0],numArgs:0}});P("\\@secondoftwo",function(i){var e=i.consumeArgs(2);return{tokens:e[1],numArgs:0}});P("\\@ifnextchar",function(i){var e=i.consumeArgs(3);i.consumeSpaces();var t=i.future();return e[0].length===1&&e[0][0].text===t.text?{tokens:e[1],numArgs:0}:{tokens:e[2],numArgs:0}});P("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");P("\\TextOrMath",function(i){var e=i.consumeArgs(2);return i.mode==="text"?{tokens:e[0],numArgs:0}:{tokens:e[1],numArgs:0}});var GU={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};P("\\char",function(i){var e=i.popToken(),t,r="";if(e.text==="'")t=8,e=i.popToken();else if(e.text==='"')t=16,e=i.popToken();else if(e.text==="`")if(e=i.popToken(),e.text[0]==="\\")r=e.text.charCodeAt(1);else{if(e.text==="EOF")throw new Be("\\char` missing argument");r=e.text.charCodeAt(0)}else t=10;if(t){if(r=GU[e.text],r==null||r>=t)throw new Be("Invalid base-"+t+" digit "+e.text);for(var n;(n=GU[i.future().text])!=null&&n{var r=i.consumeArg().tokens;if(r.length!==1)throw new Be("\\newcommand's first argument must be a macro name");var n=r[0].text,o=i.isDefined(n);if(o&&!e)throw new Be("\\newcommand{"+n+"} attempting to redefine "+(n+"; use \\renewcommand"));if(!o&&!t)throw new Be("\\renewcommand{"+n+"} when command "+n+" does not yet exist; use \\newcommand");var s=0;if(r=i.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var a="",l=i.expandNextToken();l.text!=="]"&&l.text!=="EOF";)a+=l.text,l=i.expandNextToken();if(!a.match(/^\s*[0-9]+\s*$/))throw new Be("Invalid number of arguments: "+a);s=parseInt(a),r=i.consumeArg().tokens}return i.macros.set(n,{tokens:r,numArgs:s}),""};P("\\newcommand",i=>l6(i,!1,!0));P("\\renewcommand",i=>l6(i,!0,!1));P("\\providecommand",i=>l6(i,!0,!0));P("\\message",i=>{var e=i.consumeArgs(1)[0];return console.log(e.reverse().map(t=>t.text).join("")),""});P("\\errmessage",i=>{var e=i.consumeArgs(1)[0];return console.error(e.reverse().map(t=>t.text).join("")),""});P("\\show",i=>{var e=i.popToken(),t=e.text;return console.log(e,i.macros.get(t),fd[t],Gi.math[t],Gi.text[t]),""});P("\\bgroup","{");P("\\egroup","}");P("~","\\nobreakspace");P("\\lq","`");P("\\rq","'");P("\\aa","\\r a");P("\\AA","\\r A");P("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}");P("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");P("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}");P("\u212C","\\mathscr{B}");P("\u2130","\\mathscr{E}");P("\u2131","\\mathscr{F}");P("\u210B","\\mathscr{H}");P("\u2110","\\mathscr{I}");P("\u2112","\\mathscr{L}");P("\u2133","\\mathscr{M}");P("\u211B","\\mathscr{R}");P("\u212D","\\mathfrak{C}");P("\u210C","\\mathfrak{H}");P("\u2128","\\mathfrak{Z}");P("\\Bbbk","\\Bbb{k}");P("\xB7","\\cdotp");P("\\llap","\\mathllap{\\textrm{#1}}");P("\\rlap","\\mathrlap{\\textrm{#1}}");P("\\clap","\\mathclap{\\textrm{#1}}");P("\\mathstrut","\\vphantom{(}");P("\\underbar","\\underline{\\text{#1}}");P("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');P("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}");P("\\ne","\\neq");P("\u2260","\\neq");P("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}");P("\u2209","\\notin");P("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}");P("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}");P("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}");P("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}");P("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}");P("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}");P("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}");P("\u27C2","\\perp");P("\u203C","\\mathclose{!\\mkern-0.8mu!}");P("\u220C","\\notni");P("\u231C","\\ulcorner");P("\u231D","\\urcorner");P("\u231E","\\llcorner");P("\u231F","\\lrcorner");P("\xA9","\\copyright");P("\xAE","\\textregistered");P("\uFE0F","\\textregistered");P("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');P("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');P("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');P("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');P("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");P("\u22EE","\\vdots");P("\\varGamma","\\mathit{\\Gamma}");P("\\varDelta","\\mathit{\\Delta}");P("\\varTheta","\\mathit{\\Theta}");P("\\varLambda","\\mathit{\\Lambda}");P("\\varXi","\\mathit{\\Xi}");P("\\varPi","\\mathit{\\Pi}");P("\\varSigma","\\mathit{\\Sigma}");P("\\varUpsilon","\\mathit{\\Upsilon}");P("\\varPhi","\\mathit{\\Phi}");P("\\varPsi","\\mathit{\\Psi}");P("\\varOmega","\\mathit{\\Omega}");P("\\substack","\\begin{subarray}{c}#1\\end{subarray}");P("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");P("\\boxed","\\fbox{$\\displaystyle{#1}$}");P("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");P("\\implies","\\DOTSB\\;\\Longrightarrow\\;");P("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var YU={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};P("\\dots",function(i){var e="\\dotso",t=i.expandAfterFuture().text;return t in YU?e=YU[t]:(t.slice(0,4)==="\\not"||t in Gi.math&&Rt.contains(["bin","rel"],Gi.math[t].group))&&(e="\\dotsb"),e});var c6={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};P("\\dotso",function(i){var e=i.future().text;return e in c6?"\\ldots\\,":"\\ldots"});P("\\dotsc",function(i){var e=i.future().text;return e in c6&&e!==","?"\\ldots\\,":"\\ldots"});P("\\cdots",function(i){var e=i.future().text;return e in c6?"\\@cdots\\,":"\\@cdots"});P("\\dotsb","\\cdots");P("\\dotsm","\\cdots");P("\\dotsi","\\!\\cdots");P("\\dotsx","\\ldots\\,");P("\\DOTSI","\\relax");P("\\DOTSB","\\relax");P("\\DOTSX","\\relax");P("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");P("\\,","\\tmspace+{3mu}{.1667em}");P("\\thinspace","\\,");P("\\>","\\mskip{4mu}");P("\\:","\\tmspace+{4mu}{.2222em}");P("\\medspace","\\:");P("\\;","\\tmspace+{5mu}{.2777em}");P("\\thickspace","\\;");P("\\!","\\tmspace-{3mu}{.1667em}");P("\\negthinspace","\\!");P("\\negmedspace","\\tmspace-{4mu}{.2222em}");P("\\negthickspace","\\tmspace-{5mu}{.277em}");P("\\enspace","\\kern.5em ");P("\\enskip","\\hskip.5em\\relax");P("\\quad","\\hskip1em\\relax");P("\\qquad","\\hskip2em\\relax");P("\\tag","\\@ifstar\\tag@literal\\tag@paren");P("\\tag@paren","\\tag@literal{({#1})}");P("\\tag@literal",i=>{if(i.macros.get("\\df@tag"))throw new Be("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});P("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");P("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");P("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");P("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");P("\\newline","\\\\\\relax");P("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var jj=$e(Ma["Main-Regular"]["T".charCodeAt(0)][1]-.7*Ma["Main-Regular"]["A".charCodeAt(0)][1]);P("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+jj+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");P("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+jj+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");P("\\hspace","\\@ifstar\\@hspacer\\@hspace");P("\\@hspace","\\hskip #1\\relax");P("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");P("\\ordinarycolon",":");P("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");P("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');P("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');P("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');P("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');P("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');P("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');P("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');P("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');P("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');P("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');P("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');P("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');P("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');P("\u2237","\\dblcolon");P("\u2239","\\eqcolon");P("\u2254","\\coloneqq");P("\u2255","\\eqqcolon");P("\u2A74","\\Coloneqq");P("\\ratio","\\vcentcolon");P("\\coloncolon","\\dblcolon");P("\\colonequals","\\coloneqq");P("\\coloncolonequals","\\Coloneqq");P("\\equalscolon","\\eqqcolon");P("\\equalscoloncolon","\\Eqqcolon");P("\\colonminus","\\coloneq");P("\\coloncolonminus","\\Coloneq");P("\\minuscolon","\\eqcolon");P("\\minuscoloncolon","\\Eqcolon");P("\\coloncolonapprox","\\Colonapprox");P("\\coloncolonsim","\\Colonsim");P("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");P("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");P("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");P("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");P("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}");P("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");P("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");P("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");P("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");P("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");P("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");P("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");P("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");P("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}");P("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}");P("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}");P("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}");P("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}");P("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}");P("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}");P("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}");P("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}");P("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}");P("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}");P("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}");P("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}");P("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}");P("\\imath","\\html@mathml{\\@imath}{\u0131}");P("\\jmath","\\html@mathml{\\@jmath}{\u0237}");P("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}");P("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}");P("\u27E6","\\llbracket");P("\u27E7","\\rrbracket");P("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}");P("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}");P("\u2983","\\lBrace");P("\u2984","\\rBrace");P("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}");P("\u29B5","\\minuso");P("\\darr","\\downarrow");P("\\dArr","\\Downarrow");P("\\Darr","\\Downarrow");P("\\lang","\\langle");P("\\rang","\\rangle");P("\\uarr","\\uparrow");P("\\uArr","\\Uparrow");P("\\Uarr","\\Uparrow");P("\\N","\\mathbb{N}");P("\\R","\\mathbb{R}");P("\\Z","\\mathbb{Z}");P("\\alef","\\aleph");P("\\alefsym","\\aleph");P("\\Alpha","\\mathrm{A}");P("\\Beta","\\mathrm{B}");P("\\bull","\\bullet");P("\\Chi","\\mathrm{X}");P("\\clubs","\\clubsuit");P("\\cnums","\\mathbb{C}");P("\\Complex","\\mathbb{C}");P("\\Dagger","\\ddagger");P("\\diamonds","\\diamondsuit");P("\\empty","\\emptyset");P("\\Epsilon","\\mathrm{E}");P("\\Eta","\\mathrm{H}");P("\\exist","\\exists");P("\\harr","\\leftrightarrow");P("\\hArr","\\Leftrightarrow");P("\\Harr","\\Leftrightarrow");P("\\hearts","\\heartsuit");P("\\image","\\Im");P("\\infin","\\infty");P("\\Iota","\\mathrm{I}");P("\\isin","\\in");P("\\Kappa","\\mathrm{K}");P("\\larr","\\leftarrow");P("\\lArr","\\Leftarrow");P("\\Larr","\\Leftarrow");P("\\lrarr","\\leftrightarrow");P("\\lrArr","\\Leftrightarrow");P("\\Lrarr","\\Leftrightarrow");P("\\Mu","\\mathrm{M}");P("\\natnums","\\mathbb{N}");P("\\Nu","\\mathrm{N}");P("\\Omicron","\\mathrm{O}");P("\\plusmn","\\pm");P("\\rarr","\\rightarrow");P("\\rArr","\\Rightarrow");P("\\Rarr","\\Rightarrow");P("\\real","\\Re");P("\\reals","\\mathbb{R}");P("\\Reals","\\mathbb{R}");P("\\Rho","\\mathrm{P}");P("\\sdot","\\cdot");P("\\sect","\\S");P("\\spades","\\spadesuit");P("\\sub","\\subset");P("\\sube","\\subseteq");P("\\supe","\\supseteq");P("\\Tau","\\mathrm{T}");P("\\thetasym","\\vartheta");P("\\weierp","\\wp");P("\\Zeta","\\mathrm{Z}");P("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");P("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");P("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");P("\\bra","\\mathinner{\\langle{#1}|}");P("\\ket","\\mathinner{|{#1}\\rangle}");P("\\braket","\\mathinner{\\langle{#1}\\rangle}");P("\\Bra","\\left\\langle#1\\right|");P("\\Ket","\\left|#1\\right\\rangle");var Wj=i=>e=>{var t=e.consumeArg().tokens,r=e.consumeArg().tokens,n=e.consumeArg().tokens,o=e.consumeArg().tokens,s=e.macros.get("|"),a=e.macros.get("\\|");e.macros.beginGroup();var l=u=>h=>{i&&(h.macros.set("|",s),n.length&&h.macros.set("\\|",a));var f=u;if(!u&&n.length){var m=h.future();m.text==="|"&&(h.popToken(),f=!0)}return{tokens:f?n:r,numArgs:0}};e.macros.set("|",l(!1)),n.length&&e.macros.set("\\|",l(!0));var c=e.consumeArg().tokens,d=e.expandTokens([...o,...c,...t]);return e.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};P("\\bra@ket",Wj(!1));P("\\bra@set",Wj(!0));P("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");P("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");P("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");P("\\angln","{\\angl n}");P("\\blue","\\textcolor{##6495ed}{#1}");P("\\orange","\\textcolor{##ffa500}{#1}");P("\\pink","\\textcolor{##ff00af}{#1}");P("\\red","\\textcolor{##df0030}{#1}");P("\\green","\\textcolor{##28ae7b}{#1}");P("\\gray","\\textcolor{gray}{#1}");P("\\purple","\\textcolor{##9d38bd}{#1}");P("\\blueA","\\textcolor{##ccfaff}{#1}");P("\\blueB","\\textcolor{##80f6ff}{#1}");P("\\blueC","\\textcolor{##63d9ea}{#1}");P("\\blueD","\\textcolor{##11accd}{#1}");P("\\blueE","\\textcolor{##0c7f99}{#1}");P("\\tealA","\\textcolor{##94fff5}{#1}");P("\\tealB","\\textcolor{##26edd5}{#1}");P("\\tealC","\\textcolor{##01d1c1}{#1}");P("\\tealD","\\textcolor{##01a995}{#1}");P("\\tealE","\\textcolor{##208170}{#1}");P("\\greenA","\\textcolor{##b6ffb0}{#1}");P("\\greenB","\\textcolor{##8af281}{#1}");P("\\greenC","\\textcolor{##74cf70}{#1}");P("\\greenD","\\textcolor{##1fab54}{#1}");P("\\greenE","\\textcolor{##0d923f}{#1}");P("\\goldA","\\textcolor{##ffd0a9}{#1}");P("\\goldB","\\textcolor{##ffbb71}{#1}");P("\\goldC","\\textcolor{##ff9c39}{#1}");P("\\goldD","\\textcolor{##e07d10}{#1}");P("\\goldE","\\textcolor{##a75a05}{#1}");P("\\redA","\\textcolor{##fca9a9}{#1}");P("\\redB","\\textcolor{##ff8482}{#1}");P("\\redC","\\textcolor{##f9685d}{#1}");P("\\redD","\\textcolor{##e84d39}{#1}");P("\\redE","\\textcolor{##bc2612}{#1}");P("\\maroonA","\\textcolor{##ffbde0}{#1}");P("\\maroonB","\\textcolor{##ff92c6}{#1}");P("\\maroonC","\\textcolor{##ed5fa6}{#1}");P("\\maroonD","\\textcolor{##ca337c}{#1}");P("\\maroonE","\\textcolor{##9e034e}{#1}");P("\\purpleA","\\textcolor{##ddd7ff}{#1}");P("\\purpleB","\\textcolor{##c6b9fc}{#1}");P("\\purpleC","\\textcolor{##aa87ff}{#1}");P("\\purpleD","\\textcolor{##7854ab}{#1}");P("\\purpleE","\\textcolor{##543b78}{#1}");P("\\mintA","\\textcolor{##f5f9e8}{#1}");P("\\mintB","\\textcolor{##edf2df}{#1}");P("\\mintC","\\textcolor{##e0e5cc}{#1}");P("\\grayA","\\textcolor{##f6f7f7}{#1}");P("\\grayB","\\textcolor{##f0f1f2}{#1}");P("\\grayC","\\textcolor{##e3e5e6}{#1}");P("\\grayD","\\textcolor{##d6d8da}{#1}");P("\\grayE","\\textcolor{##babec2}{#1}");P("\\grayF","\\textcolor{##888d93}{#1}");P("\\grayG","\\textcolor{##626569}{#1}");P("\\grayH","\\textcolor{##3b3e40}{#1}");P("\\grayI","\\textcolor{##21242c}{#1}");P("\\kaBlue","\\textcolor{##314453}{#1}");P("\\kaGreen","\\textcolor{##71B307}{#1}");var Vj={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0},$5=class{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new K5(lue,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new yw(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,r,n;if(e){if(this.consumeSpaces(),this.future().text!=="[")return null;t=this.popToken(),{tokens:n,end:r}=this.consumeArg(["]"])}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new Na("EOF",r.loc)),this.pushTokens(n),t.range(r,"")}consumeSpaces(){for(;;){var e=this.future();if(e.text===" ")this.stack.pop();else break}}consumeArg(e){var t=[],r=e&&e.length>0;r||this.consumeSpaces();var n=this.future(),o,s=0,a=0;do{if(o=this.popToken(),t.push(o),o.text==="{")++s;else if(o.text==="}"){if(--s,s===-1)throw new Be("Extra }",o)}else if(o.text==="EOF")throw new Be("Unexpected end of input in a macro argument, expected '"+(e&&r?e[a]:"}")+"'",o);if(e&&r)if((s===0||s===1&&e[a]==="{")&&o.text===e[a]){if(++a,a===e.length){t.splice(-a,a);break}}else a=0}while(s!==0||r);return n.text==="{"&&t[t.length-1].text==="}"&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:n,end:o}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new Be("The length of delimiters doesn't match the number of args!");for(var r=t[0],n=0;nthis.settings.maxExpand)throw new Be("Too many expansions: infinite loop or need to increase maxExpand setting");var o=n.tokens,s=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs){o=o.slice();for(var a=o.length-1;a>=0;--a){var l=o[a];if(l.text==="#"){if(a===0)throw new Be("Incomplete placeholder at end of macro body",l);if(l=o[--a],l.text==="#")o.splice(a+1,1);else if(/^[1-9]$/.test(l.text))o.splice(a,2,...s[+l.text-1]);else throw new Be("Not a valid argument number",l)}}}return this.pushTokens(o),o.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new Na(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(this.expandOnce(!0)===!1){var n=this.stack.pop();n.treatAsRelax&&(n.noexpand=!1,n.treatAsRelax=!1),t.push(n)}return t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(r=>r.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(t==null)return t;if(e.length===1){var r=this.lexer.catcodes[e];if(r!=null&&r!==13)return}var n=typeof t=="function"?t(this):t;if(typeof n=="string"){var o=0;if(n.indexOf("#")!==-1)for(var s=n.replace(/##/g,"");s.indexOf("#"+(o+1))!==-1;)++o;for(var a=new yw(n,this.settings),l=[],c=a.lex();c.text!=="EOF";)l.push(c),c=a.lex();l.reverse();var d={tokens:l,numArgs:o};return d}return n}isDefined(e){return this.macros.has(e)||fd.hasOwnProperty(e)||Gi.math.hasOwnProperty(e)||Gi.text.hasOwnProperty(e)||Vj.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return t!=null?typeof t=="string"||typeof t=="function"||!t.unexpandable:fd.hasOwnProperty(e)&&!fd[e].primitive}},XU=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,uw=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),P5={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},QU={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"},ww=class i{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new $5(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(t===void 0&&(t=!0),this.fetch().text!==e)throw new Be("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new Na("}")),this.gullet.pushTokens(e);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,r}parseExpression(e,t){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var n=this.fetch();if(i.endOfExpression.indexOf(n.text)!==-1||t&&n.text===t||e&&fd[n.text]&&fd[n.text].infix)break;var o=this.parseAtom(t);if(o){if(o.type==="internal")continue}else break;r.push(o)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(e){for(var t=-1,r,n=0;n=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var a=Gi[this.mode][t].group,l=zo.range(e),c;if(Jce.hasOwnProperty(a)){var d=a;c={type:"atom",mode:this.mode,family:d,loc:l,text:t}}else c={type:a,mode:this.mode,loc:l,text:t};s=c}else if(t.charCodeAt(0)>=128)this.settings.strict&&(JU(t.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'"'+(" ("+t.charCodeAt(0)+")"),e)),s={type:"textord",mode:"text",loc:zo.range(e),text:t};else return null;if(this.consume(),o)for(var u=0;u-1&&i.test(String.fromCharCode(t))}}function ls(i){let e=[],t=-1,r=0,n=0;for(;++t55295&&o<57344){let a=i.charCodeAt(t+1);o<56320&&a>56319&&a<57344?(s=String.fromCharCode(o,a),n=1):s="\uFFFD"}else s=String.fromCharCode(o);s&&(e.push(i.slice(r,t),encodeURIComponent(s)),r=t+n+1,s=""),n&&(t+=n,n=0)}return e.join("")+i.slice(r)}function Zj(i,e){let t=typeof i.options.clobberPrefix=="string"?i.options.clobberPrefix:"user-content-",r=String(e.identifier).toUpperCase(),n=ls(r.toLowerCase()),o=i.footnoteOrder.indexOf(r),s,a=i.footnoteCounts.get(r);a===void 0?(a=0,i.footnoteOrder.push(r),s=i.footnoteOrder.length):s=o+1,a+=1,i.footnoteCounts.set(r,a);let l={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+n,id:t+"fnref-"+n+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};i.patch(e,l);let c={type:"element",tagName:"sup",properties:{},children:[l]};return i.patch(e,c),i.applyData(e,c)}function Jj(i,e){let t={type:"element",tagName:"h"+e.depth,properties:{},children:i.all(e)};return i.patch(e,t),i.applyData(e,t)}function eW(i,e){if(i.options.allowDangerousHtml){let t={type:"raw",value:e.value};return i.patch(e,t),i.applyData(e,t)}}function Aw(i,e){let t=e.referenceType,r="]";if(t==="collapsed"?r+="[]":t==="full"&&(r+="["+(e.label||e.identifier)+"]"),e.type==="imageReference")return[{type:"text",value:"!["+e.alt+r}];let n=i.all(e),o=n[0];o&&o.type==="text"?o.value="["+o.value:n.unshift({type:"text",value:"["});let s=n[n.length-1];return s&&s.type==="text"?s.value+=r:n.push({type:"text",value:r}),n}function tW(i,e){let t=String(e.identifier).toUpperCase(),r=i.definitionById.get(t);if(!r)return Aw(i,e);let n={src:ls(r.url||""),alt:e.alt};r.title!==null&&r.title!==void 0&&(n.title=r.title);let o={type:"element",tagName:"img",properties:n,children:[]};return i.patch(e,o),i.applyData(e,o)}function iW(i,e){let t={src:ls(e.url)};e.alt!==null&&e.alt!==void 0&&(t.alt=e.alt),e.title!==null&&e.title!==void 0&&(t.title=e.title);let r={type:"element",tagName:"img",properties:t,children:[]};return i.patch(e,r),i.applyData(e,r)}function rW(i,e){let t={type:"text",value:e.value.replace(/\r?\n|\r/g," ")};i.patch(e,t);let r={type:"element",tagName:"code",properties:{},children:[t]};return i.patch(e,r),i.applyData(e,r)}function nW(i,e){let t=String(e.identifier).toUpperCase(),r=i.definitionById.get(t);if(!r)return Aw(i,e);let n={href:ls(r.url||"")};r.title!==null&&r.title!==void 0&&(n.title=r.title);let o={type:"element",tagName:"a",properties:n,children:i.all(e)};return i.patch(e,o),i.applyData(e,o)}function oW(i,e){let t={href:ls(e.url)};e.title!==null&&e.title!==void 0&&(t.title=e.title);let r={type:"element",tagName:"a",properties:t,children:i.all(e)};return i.patch(e,r),i.applyData(e,r)}function sW(i,e,t){let r=i.all(e),n=t?fue(t):aW(e),o={},s=[];if(typeof e.checked=="boolean"){let d=r[0],u;d&&d.type==="element"&&d.tagName==="p"?u=d:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:e.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let a=-1;for(;++a1:e}function lW(i,e){let t={},r=i.all(e),n=-1;for(typeof e.start=="number"&&e.start!==1&&(t.start=e.start);++n0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Zg(i){let e=cs(i),t=zu(i);if(e&&t)return{start:e,end:t}}function fW(i,e){let t=i.all(e),r=t.shift(),n=[];if(r){let s={type:"element",tagName:"thead",properties:{},children:i.wrap([r],!0)};i.patch(e.children[0],s),n.push(s)}if(t.length>0){let s={type:"element",tagName:"tbody",properties:{},children:i.wrap(t,!0)},a=cs(e.children[1]),l=zu(e.children[e.children.length-1]);a&&l&&(s.position={start:a,end:l}),n.push(s)}let o={type:"element",tagName:"table",properties:{},children:i.wrap(n,!0)};return i.patch(e,o),i.applyData(e,o)}function pW(i,e,t){let r=t?t.children:void 0,o=(r?r.indexOf(e):1)===0?"th":"td",s=t&&t.type==="table"?t.align:void 0,a=s?s.length:e.children.length,l=-1,c=[];for(;++l0,!0),r[0]),n=r.index+r[0].length,r=t.exec(e);return o.push(gW(e.slice(n),n>0,!1)),o.join("")}function gW(i,e,t){let r=0,n=i.length;if(e){let o=i.codePointAt(r);for(;o===9||o===32;)r++,o=i.codePointAt(r)}if(t){let o=i.codePointAt(n-1);for(;o===9||o===32;)n--,o=i.codePointAt(n-1)}return n>r?i.slice(r,n):""}function vW(i,e){let t={type:"text",value:bW(String(e.value))};return i.patch(e,t),i.applyData(e,t)}function _W(i,e){let t={type:"element",tagName:"hr",properties:{},children:[]};return i.patch(e,t),i.applyData(e,t)}var yW={blockquote:$j,break:Gj,code:Yj,delete:Xj,emphasis:Qj,footnoteReference:Zj,heading:Jj,html:eW,imageReference:tW,image:iW,inlineCode:rW,linkReference:nW,link:oW,listItem:sW,list:lW,paragraph:cW,root:dW,strong:uW,table:fW,tableCell:mW,tableRow:pW,text:vW,thematicBreak:_W,toml:Lw,yaml:Lw,definition:Lw,footnoteDefinition:Lw};function Lw(){}var wW=typeof self=="object"?self:globalThis,pue=(i,e)=>{let t=(n,o)=>(i.set(o,n),n),r=n=>{if(i.has(n))return i.get(n);let[o,s]=e[n];switch(o){case 0:case-1:return t(s,n);case 1:{let a=t([],n);for(let l of s)a.push(r(l));return a}case 2:{let a=t({},n);for(let[l,c]of s)a[r(l)]=r(c);return a}case 3:return t(new Date(s),n);case 4:{let{source:a,flags:l}=s;return t(new RegExp(a,l),n)}case 5:{let a=t(new Map,n);for(let[l,c]of s)a.set(r(l),r(c));return a}case 6:{let a=t(new Set,n);for(let l of s)a.add(r(l));return a}case 7:{let{name:a,message:l}=s;return t(new wW[a](l),n)}case 8:return t(BigInt(s),n);case"BigInt":return t(Object(BigInt(s)),n)}return t(new wW[o](s),n)};return r},g6=i=>pue(new Map,i)(0);var Yf="",{toString:mue}={},{keys:gue}=Object,i0=i=>{let e=typeof i;if(e!=="object"||!i)return[0,e];let t=mue.call(i).slice(8,-1);switch(t){case"Array":return[1,Yf];case"Object":return[2,Yf];case"Date":return[3,Yf];case"RegExp":return[4,Yf];case"Map":return[5,Yf];case"Set":return[6,Yf]}return t.includes("Array")?[1,t]:t.includes("Error")?[7,t]:[2,t]},Pw=([i,e])=>i===0&&(e==="function"||e==="symbol"),bue=(i,e,t,r)=>{let n=(s,a)=>{let l=r.push(s)-1;return t.set(a,l),l},o=s=>{if(t.has(s))return t.get(s);let[a,l]=i0(s);switch(a){case 0:{let d=s;switch(l){case"bigint":a=8,d=s.toString();break;case"function":case"symbol":if(i)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return n([-1],s)}return n([a,d],s)}case 1:{if(l)return n([l,[...s]],s);let d=[],u=n([a,d],s);for(let h of s)d.push(o(h));return u}case 2:{if(l)switch(l){case"BigInt":return n([l,s.toString()],s);case"Boolean":case"Number":case"String":return n([l,s.valueOf()],s)}if(e&&"toJSON"in s)return o(s.toJSON());let d=[],u=n([a,d],s);for(let h of gue(s))(i||!Pw(i0(s[h])))&&d.push([o(h),o(s[h])]);return u}case 3:return n([a,s.toISOString()],s);case 4:{let{source:d,flags:u}=s;return n([a,{source:d,flags:u}],s)}case 5:{let d=[],u=n([a,d],s);for(let[h,f]of s)(i||!(Pw(i0(h))||Pw(i0(f))))&&d.push([o(h),o(f)]);return u}case 6:{let d=[],u=n([a,d],s);for(let h of s)(i||!Pw(i0(h)))&&d.push(o(h));return u}}let{message:c}=s;return n([a,{name:l,message:c}],s)};return o},b6=(i,{json:e,lossy:t}={})=>{let r=[];return bue(!(e||t),!!e,new Map,r)(i),r};var zs=typeof structuredClone=="function"?(i,e)=>e&&("json"in e||"lossy"in e)?g6(b6(i,e)):structuredClone(i):(i,e)=>g6(b6(i,e));function vue(i,e){let t=[{type:"text",value:"\u21A9"}];return e>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(e)}]}),t}function _ue(i,e){return"Back to reference "+(i+1)+(e>1?"-"+e:"")}function xW(i){let e=typeof i.options.clobberPrefix=="string"?i.options.clobberPrefix:"user-content-",t=i.options.footnoteBackContent||vue,r=i.options.footnoteBackLabel||_ue,n=i.options.footnoteLabel||"Footnotes",o=i.options.footnoteLabelTagName||"h2",s=i.options.footnoteLabelProperties||{className:["sr-only"]},a=[],l=-1;for(;++l0&&m.push({type:"text",value:" "});let E=typeof t=="string"?t:t(l,f);typeof E=="string"&&(E={type:"text",value:E}),m.push({type:"element",tagName:"a",properties:{href:"#"+e+"fnref-"+h+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,f),className:["data-footnote-backref"]},children:Array.isArray(E)?E:[E]})}let w=d[d.length-1];if(w&&w.type==="element"&&w.tagName==="p"){let E=w.children[w.children.length-1];E&&E.type==="text"?E.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...m)}else d.push(...m);let _={type:"element",tagName:"li",properties:{id:e+"fn-"+h},children:i.wrap(d,!0)};i.patch(c,_),a.push(_)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:xt(ue({},zs(s)),{id:"footnote-label"}),children:[{type:"text",value:n}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:i.wrap(a,!0)},{type:"text",value:` -`}]}}var v6={}.hasOwnProperty,yue={};function SW(i,e){let t=e||yue,r=new Map,n=new Map,o=new Map,s=ue(ue({},yW),t.handlers),a={all:c,applyData:xue,definitionById:r,footnoteById:n,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:t,patch:wue,wrap:Sue};return Pn(i,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){let u=d.type==="definition"?r:n,h=String(d.identifier).toUpperCase();u.has(h)||u.set(h,d)}}),a;function l(d,u){let h=d.type,f=a.handlers[h];if(v6.call(a.handlers,h)&&f)return f(a,d,u);if(a.options.passThrough&&a.options.passThrough.includes(h)){if("children"in d){let g=d,{children:w}=g,_=ao(g,["children"]),E=zs(_);return E.children=a.all(d),E}return zs(d)}return(a.options.unknownHandler||Cue)(a,d,u)}function c(d){let u=[];if("children"in d){let h=d.children,f=-1;for(;++f0&&t.push({type:"text",value:` -`}),t}function CW(i){let e=0,t=i.charCodeAt(e);for(;t===9||t===32;)e++,t=i.charCodeAt(e);return i.slice(e)}function Ow(i,e){let t=SW(i,e),r=t.one(i,void 0),n=xW(t),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return n&&("children"in o,o.children.push({type:"text",value:` -`},n)),o}function Fw(i,e){return i&&"run"in i?async function(t,r){let n=Ow(t,e);await i.run(n,r)}:function(t){return Ow(t,e||i)}}var Wl=class{constructor(e,t,r){this.property=e,this.normal=t,r&&(this.space=r)}};Wl.prototype.property={};Wl.prototype.normal={};Wl.prototype.space=null;function _6(i,e){let t={},r={},n=-1;for(;++nGt,booleanish:()=>vr,commaOrSpaceSeparated:()=>go,commaSeparated:()=>vd,number:()=>Fe,overloadedBoolean:()=>y6,spaceSeparated:()=>Mi});var kue=0,Gt=Bu(),vr=Bu(),y6=Bu(),Fe=Bu(),Mi=Bu(),vd=Bu(),go=Bu();function Bu(){return 2**++kue}var w6=Object.keys(r0),Hu=class extends Fn{constructor(e,t,r,n){let o=-1;if(super(e,t),kW(this,"space",n),typeof r=="number")for(;++o4&&t.slice(0,4)==="data"&&Tue.test(e)){if(e.charAt(4)==="-"){let o=e.slice(5).replace(IW,Lue);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{let o=e.slice(4);if(!IW.test(o)){let s=o.replace(Iue,Aue);s.charAt(0)!=="-"&&(s="-"+s),e="data"+s}}n=Hu}return new n(r,e)}function Aue(i){return"-"+i.toLowerCase()}function Lue(i){return i.charAt(1).toUpperCase()}var Kl=_6([C6,x6,S6,k6,EW],"html"),us=_6([C6,x6,S6,k6,TW],"svg");function E6(i){let e=[],t=String(i||""),r=t.indexOf(","),n=0,o=!1;for(;!o;){r===-1&&(r=t.length,o=!0);let s=t.slice(n,r).trim();(s||!o)&&e.push(s),n=r+1,r=t.indexOf(",",n)}return e}function Hw(i,e){let t=e||{};return(i[i.length-1]===""?[...i,""]:i).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}var AW=/[#.]/g;function T6(i,e){let t=i||"",r={},n=0,o,s;for(;n-1&&oo)return{line:s+1,column:o-(s>0?t[s-1]:0)+1,offset:o}}}function n(o){let s=o&&o.line,a=o&&o.column;if(typeof s=="number"&&typeof a=="number"&&!Number.isNaN(s)&&!Number.isNaN(a)&&s-1 in t){let l=(t[s-2]||0)+a-1||0;if(l>-1&&l=55296&&i<=57343}function OW(i){return i>=56320&&i<=57343}function FW(i,e){return(i-55296)*1024+9216+e}function qw(i){return i!==32&&i!==10&&i!==13&&i!==9&&i!==12&&i>=1&&i<=31||i>=127&&i<=159}function Kw(i){return i>=64976&&i<=65007||Gue.has(i)}var he;(function(i){i.controlCharacterInInputStream="control-character-in-input-stream",i.noncharacterInInputStream="noncharacter-in-input-stream",i.surrogateInInputStream="surrogate-in-input-stream",i.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",i.endTagWithAttributes="end-tag-with-attributes",i.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",i.unexpectedSolidusInTag="unexpected-solidus-in-tag",i.unexpectedNullCharacter="unexpected-null-character",i.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",i.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",i.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",i.missingEndTagName="missing-end-tag-name",i.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",i.unknownNamedCharacterReference="unknown-named-character-reference",i.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",i.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",i.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",i.eofBeforeTagName="eof-before-tag-name",i.eofInTag="eof-in-tag",i.missingAttributeValue="missing-attribute-value",i.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",i.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",i.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",i.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",i.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",i.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",i.missingDoctypePublicIdentifier="missing-doctype-public-identifier",i.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",i.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",i.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",i.cdataInHtmlContent="cdata-in-html-content",i.incorrectlyOpenedComment="incorrectly-opened-comment",i.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",i.eofInDoctype="eof-in-doctype",i.nestedComment="nested-comment",i.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",i.eofInComment="eof-in-comment",i.incorrectlyClosedComment="incorrectly-closed-comment",i.eofInCdata="eof-in-cdata",i.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",i.nullCharacterReference="null-character-reference",i.surrogateCharacterReference="surrogate-character-reference",i.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",i.controlCharacterReference="control-character-reference",i.noncharacterCharacterReference="noncharacter-character-reference",i.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",i.missingDoctypeName="missing-doctype-name",i.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",i.duplicateAttribute="duplicate-attribute",i.nonConformingDoctype="non-conforming-doctype",i.missingDoctype="missing-doctype",i.misplacedDoctype="misplaced-doctype",i.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",i.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",i.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",i.openElementsLeftAfterEof="open-elements-left-after-eof",i.abandonedHeadElementChild="abandoned-head-element-child",i.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",i.nestedNoscriptInHead="nested-noscript-in-head",i.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(he=he||(he={}));var Xue=65536,$w=class{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=Xue,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e){let{line:t,col:r,offset:n}=this;return{code:e,startLine:t,endLine:t,startCol:r,endCol:r,startOffset:n,endOffset:n}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(OW(t))return this.pos++,this._addGap(),FW(e,t)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,z.EOF;return this._err(he.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,z.EOF;let r=this.html.charCodeAt(t);return r===z.CARRIAGE_RETURN?z.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,z.EOF;let e=this.html.charCodeAt(this.pos);return e===z.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,z.LINE_FEED):e===z.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Vw(e)&&(e=this._processSurrogate(e)),this.handler.onParseError===null||e>31&&e<127||e===z.LINE_FEED||e===z.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){qw(e)?this._err(he.controlCharacterInInputStream):Kw(e)&&this._err(he.noncharacterInInputStream)}retreat(e){for(this.pos-=e;this.posoi,getTokenAttr:()=>a0});var oi;(function(i){i[i.CHARACTER=0]="CHARACTER",i[i.NULL_CHARACTER=1]="NULL_CHARACTER",i[i.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",i[i.START_TAG=3]="START_TAG",i[i.END_TAG=4]="END_TAG",i[i.COMMENT=5]="COMMENT",i[i.DOCTYPE=6]="DOCTYPE",i[i.EOF=7]="EOF",i[i.HIBERNATION=8]="HIBERNATION"})(oi=oi||(oi={}));function a0(i,e){for(let t=i.attrs.length-1;t>=0;t--)if(i.attrs[t].name===e)return i.attrs[t].value;return null}var za=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(i=>i.charCodeAt(0)));var zW=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(i=>i.charCodeAt(0)));var F6,Que=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),z6=(F6=String.fromCodePoint)!==null&&F6!==void 0?F6:function(i){let e="";return i>65535&&(i-=65536,e+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),e+=String.fromCharCode(i),e};function B6(i){var e;return i>=55296&&i<=57343||i>1114111?65533:(e=Que.get(i))!==null&&e!==void 0?e:i}var an;(function(i){i[i.NUM=35]="NUM",i[i.SEMI=59]="SEMI",i[i.EQUALS=61]="EQUALS",i[i.ZERO=48]="ZERO",i[i.NINE=57]="NINE",i[i.LOWER_A=97]="LOWER_A",i[i.LOWER_F=102]="LOWER_F",i[i.LOWER_X=120]="LOWER_X",i[i.LOWER_Z=122]="LOWER_Z",i[i.UPPER_A=65]="UPPER_A",i[i.UPPER_F=70]="UPPER_F",i[i.UPPER_Z=90]="UPPER_Z"})(an||(an={}));var Zue=32,Bs;(function(i){i[i.VALUE_LENGTH=49152]="VALUE_LENGTH",i[i.BRANCH_LENGTH=16256]="BRANCH_LENGTH",i[i.JUMP_TABLE=127]="JUMP_TABLE"})(Bs||(Bs={}));function H6(i){return i>=an.ZERO&&i<=an.NINE}function Jue(i){return i>=an.UPPER_A&&i<=an.UPPER_F||i>=an.LOWER_A&&i<=an.LOWER_F}function ehe(i){return i>=an.UPPER_A&&i<=an.UPPER_Z||i>=an.LOWER_A&&i<=an.LOWER_Z||H6(i)}function the(i){return i===an.EQUALS||ehe(i)}var sn;(function(i){i[i.EntityStart=0]="EntityStart",i[i.NumericStart=1]="NumericStart",i[i.NumericDecimal=2]="NumericDecimal",i[i.NumericHex=3]="NumericHex",i[i.NamedEntity=4]="NamedEntity"})(sn||(sn={}));var Uu;(function(i){i[i.Legacy=0]="Legacy",i[i.Strict=1]="Strict",i[i.Attribute=2]="Attribute"})(Uu||(Uu={}));var U6=class{constructor(e,t,r){this.decodeTree=e,this.emitCodePoint=t,this.errors=r,this.state=sn.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Uu.Strict}startEntity(e){this.decodeMode=e,this.state=sn.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case sn.EntityStart:return e.charCodeAt(t)===an.NUM?(this.state=sn.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=sn.NamedEntity,this.stateNamedEntity(e,t));case sn.NumericStart:return this.stateNumericStart(e,t);case sn.NumericDecimal:return this.stateNumericDecimal(e,t);case sn.NumericHex:return this.stateNumericHex(e,t);case sn.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(e.charCodeAt(t)|Zue)===an.LOWER_X?(this.state=sn.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=sn.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,r,n){if(t!==r){let o=r-t;this.result=this.result*Math.pow(n,o)+parseInt(e.substr(t,o),n),this.consumed+=o}}stateNumericHex(e,t){let r=t;for(;t>14;for(;t>14,o!==0){if(s===an.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Uu.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:r}=this,n=(r[t]&Bs.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,n,this.consumed),(e=this.errors)===null||e===void 0||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,r){let{decodeTree:n}=this;return this.emitCodePoint(t===1?n[e]&~Bs.VALUE_LENGTH:n[e+1],r),t===3&&this.emitCodePoint(n[e+2],r),r}end(){var e;switch(this.state){case sn.NamedEntity:return this.result!==0&&(this.decodeMode!==Uu.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case sn.NumericDecimal:return this.emitNumericEntity(0,2);case sn.NumericHex:return this.emitNumericEntity(0,3);case sn.NumericStart:return(e=this.errors)===null||e===void 0||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case sn.EntityStart:return 0}}};function BW(i){let e="",t=new U6(i,r=>e+=z6(r));return function(n,o){let s=0,a=0;for(;(a=n.indexOf("&",a))>=0;){e+=n.slice(s,a),t.startEntity(o);let c=t.write(n,a+1);if(c<0){s=a+t.end();break}s=a+c,a=c===0?s+1:s}let l=e+n.slice(s);return e="",l}}function j6(i,e,t,r){let n=(e&Bs.BRANCH_LENGTH)>>7,o=e&Bs.JUMP_TABLE;if(n===0)return o!==0&&r===o?t:-1;if(o){let l=r-o;return l<0||l>=n?-1:i[t+l]-1}let s=t,a=s+n-1;for(;s<=a;){let l=s+a>>>1,c=i[l];if(cr)a=l-1;else return i[l+n]}return-1}var VDe=BW(za),qDe=BW(zW);var Zf={};Xh(Zf,{ATTRS:()=>Hs,DOCUMENT_MODE:()=>bn,NS:()=>_e,SPECIAL_ELEMENTS:()=>W6,TAG_ID:()=>v,TAG_NAMES:()=>re,getTagID:()=>_d,hasUnescapedText:()=>HW,isNumberedHeader:()=>l0});var _e;(function(i){i.HTML="http://www.w3.org/1999/xhtml",i.MATHML="http://www.w3.org/1998/Math/MathML",i.SVG="http://www.w3.org/2000/svg",i.XLINK="http://www.w3.org/1999/xlink",i.XML="http://www.w3.org/XML/1998/namespace",i.XMLNS="http://www.w3.org/2000/xmlns/"})(_e=_e||(_e={}));var Hs;(function(i){i.TYPE="type",i.ACTION="action",i.ENCODING="encoding",i.PROMPT="prompt",i.NAME="name",i.COLOR="color",i.FACE="face",i.SIZE="size"})(Hs=Hs||(Hs={}));var bn;(function(i){i.NO_QUIRKS="no-quirks",i.QUIRKS="quirks",i.LIMITED_QUIRKS="limited-quirks"})(bn=bn||(bn={}));var re;(function(i){i.A="a",i.ADDRESS="address",i.ANNOTATION_XML="annotation-xml",i.APPLET="applet",i.AREA="area",i.ARTICLE="article",i.ASIDE="aside",i.B="b",i.BASE="base",i.BASEFONT="basefont",i.BGSOUND="bgsound",i.BIG="big",i.BLOCKQUOTE="blockquote",i.BODY="body",i.BR="br",i.BUTTON="button",i.CAPTION="caption",i.CENTER="center",i.CODE="code",i.COL="col",i.COLGROUP="colgroup",i.DD="dd",i.DESC="desc",i.DETAILS="details",i.DIALOG="dialog",i.DIR="dir",i.DIV="div",i.DL="dl",i.DT="dt",i.EM="em",i.EMBED="embed",i.FIELDSET="fieldset",i.FIGCAPTION="figcaption",i.FIGURE="figure",i.FONT="font",i.FOOTER="footer",i.FOREIGN_OBJECT="foreignObject",i.FORM="form",i.FRAME="frame",i.FRAMESET="frameset",i.H1="h1",i.H2="h2",i.H3="h3",i.H4="h4",i.H5="h5",i.H6="h6",i.HEAD="head",i.HEADER="header",i.HGROUP="hgroup",i.HR="hr",i.HTML="html",i.I="i",i.IMG="img",i.IMAGE="image",i.INPUT="input",i.IFRAME="iframe",i.KEYGEN="keygen",i.LABEL="label",i.LI="li",i.LINK="link",i.LISTING="listing",i.MAIN="main",i.MALIGNMARK="malignmark",i.MARQUEE="marquee",i.MATH="math",i.MENU="menu",i.META="meta",i.MGLYPH="mglyph",i.MI="mi",i.MO="mo",i.MN="mn",i.MS="ms",i.MTEXT="mtext",i.NAV="nav",i.NOBR="nobr",i.NOFRAMES="noframes",i.NOEMBED="noembed",i.NOSCRIPT="noscript",i.OBJECT="object",i.OL="ol",i.OPTGROUP="optgroup",i.OPTION="option",i.P="p",i.PARAM="param",i.PLAINTEXT="plaintext",i.PRE="pre",i.RB="rb",i.RP="rp",i.RT="rt",i.RTC="rtc",i.RUBY="ruby",i.S="s",i.SCRIPT="script",i.SECTION="section",i.SELECT="select",i.SOURCE="source",i.SMALL="small",i.SPAN="span",i.STRIKE="strike",i.STRONG="strong",i.STYLE="style",i.SUB="sub",i.SUMMARY="summary",i.SUP="sup",i.TABLE="table",i.TBODY="tbody",i.TEMPLATE="template",i.TEXTAREA="textarea",i.TFOOT="tfoot",i.TD="td",i.TH="th",i.THEAD="thead",i.TITLE="title",i.TR="tr",i.TRACK="track",i.TT="tt",i.U="u",i.UL="ul",i.SVG="svg",i.VAR="var",i.WBR="wbr",i.XMP="xmp"})(re=re||(re={}));var v;(function(i){i[i.UNKNOWN=0]="UNKNOWN",i[i.A=1]="A",i[i.ADDRESS=2]="ADDRESS",i[i.ANNOTATION_XML=3]="ANNOTATION_XML",i[i.APPLET=4]="APPLET",i[i.AREA=5]="AREA",i[i.ARTICLE=6]="ARTICLE",i[i.ASIDE=7]="ASIDE",i[i.B=8]="B",i[i.BASE=9]="BASE",i[i.BASEFONT=10]="BASEFONT",i[i.BGSOUND=11]="BGSOUND",i[i.BIG=12]="BIG",i[i.BLOCKQUOTE=13]="BLOCKQUOTE",i[i.BODY=14]="BODY",i[i.BR=15]="BR",i[i.BUTTON=16]="BUTTON",i[i.CAPTION=17]="CAPTION",i[i.CENTER=18]="CENTER",i[i.CODE=19]="CODE",i[i.COL=20]="COL",i[i.COLGROUP=21]="COLGROUP",i[i.DD=22]="DD",i[i.DESC=23]="DESC",i[i.DETAILS=24]="DETAILS",i[i.DIALOG=25]="DIALOG",i[i.DIR=26]="DIR",i[i.DIV=27]="DIV",i[i.DL=28]="DL",i[i.DT=29]="DT",i[i.EM=30]="EM",i[i.EMBED=31]="EMBED",i[i.FIELDSET=32]="FIELDSET",i[i.FIGCAPTION=33]="FIGCAPTION",i[i.FIGURE=34]="FIGURE",i[i.FONT=35]="FONT",i[i.FOOTER=36]="FOOTER",i[i.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",i[i.FORM=38]="FORM",i[i.FRAME=39]="FRAME",i[i.FRAMESET=40]="FRAMESET",i[i.H1=41]="H1",i[i.H2=42]="H2",i[i.H3=43]="H3",i[i.H4=44]="H4",i[i.H5=45]="H5",i[i.H6=46]="H6",i[i.HEAD=47]="HEAD",i[i.HEADER=48]="HEADER",i[i.HGROUP=49]="HGROUP",i[i.HR=50]="HR",i[i.HTML=51]="HTML",i[i.I=52]="I",i[i.IMG=53]="IMG",i[i.IMAGE=54]="IMAGE",i[i.INPUT=55]="INPUT",i[i.IFRAME=56]="IFRAME",i[i.KEYGEN=57]="KEYGEN",i[i.LABEL=58]="LABEL",i[i.LI=59]="LI",i[i.LINK=60]="LINK",i[i.LISTING=61]="LISTING",i[i.MAIN=62]="MAIN",i[i.MALIGNMARK=63]="MALIGNMARK",i[i.MARQUEE=64]="MARQUEE",i[i.MATH=65]="MATH",i[i.MENU=66]="MENU",i[i.META=67]="META",i[i.MGLYPH=68]="MGLYPH",i[i.MI=69]="MI",i[i.MO=70]="MO",i[i.MN=71]="MN",i[i.MS=72]="MS",i[i.MTEXT=73]="MTEXT",i[i.NAV=74]="NAV",i[i.NOBR=75]="NOBR",i[i.NOFRAMES=76]="NOFRAMES",i[i.NOEMBED=77]="NOEMBED",i[i.NOSCRIPT=78]="NOSCRIPT",i[i.OBJECT=79]="OBJECT",i[i.OL=80]="OL",i[i.OPTGROUP=81]="OPTGROUP",i[i.OPTION=82]="OPTION",i[i.P=83]="P",i[i.PARAM=84]="PARAM",i[i.PLAINTEXT=85]="PLAINTEXT",i[i.PRE=86]="PRE",i[i.RB=87]="RB",i[i.RP=88]="RP",i[i.RT=89]="RT",i[i.RTC=90]="RTC",i[i.RUBY=91]="RUBY",i[i.S=92]="S",i[i.SCRIPT=93]="SCRIPT",i[i.SECTION=94]="SECTION",i[i.SELECT=95]="SELECT",i[i.SOURCE=96]="SOURCE",i[i.SMALL=97]="SMALL",i[i.SPAN=98]="SPAN",i[i.STRIKE=99]="STRIKE",i[i.STRONG=100]="STRONG",i[i.STYLE=101]="STYLE",i[i.SUB=102]="SUB",i[i.SUMMARY=103]="SUMMARY",i[i.SUP=104]="SUP",i[i.TABLE=105]="TABLE",i[i.TBODY=106]="TBODY",i[i.TEMPLATE=107]="TEMPLATE",i[i.TEXTAREA=108]="TEXTAREA",i[i.TFOOT=109]="TFOOT",i[i.TD=110]="TD",i[i.TH=111]="TH",i[i.THEAD=112]="THEAD",i[i.TITLE=113]="TITLE",i[i.TR=114]="TR",i[i.TRACK=115]="TRACK",i[i.TT=116]="TT",i[i.U=117]="U",i[i.UL=118]="UL",i[i.SVG=119]="SVG",i[i.VAR=120]="VAR",i[i.WBR=121]="WBR",i[i.XMP=122]="XMP"})(v=v||(v={}));var ihe=new Map([[re.A,v.A],[re.ADDRESS,v.ADDRESS],[re.ANNOTATION_XML,v.ANNOTATION_XML],[re.APPLET,v.APPLET],[re.AREA,v.AREA],[re.ARTICLE,v.ARTICLE],[re.ASIDE,v.ASIDE],[re.B,v.B],[re.BASE,v.BASE],[re.BASEFONT,v.BASEFONT],[re.BGSOUND,v.BGSOUND],[re.BIG,v.BIG],[re.BLOCKQUOTE,v.BLOCKQUOTE],[re.BODY,v.BODY],[re.BR,v.BR],[re.BUTTON,v.BUTTON],[re.CAPTION,v.CAPTION],[re.CENTER,v.CENTER],[re.CODE,v.CODE],[re.COL,v.COL],[re.COLGROUP,v.COLGROUP],[re.DD,v.DD],[re.DESC,v.DESC],[re.DETAILS,v.DETAILS],[re.DIALOG,v.DIALOG],[re.DIR,v.DIR],[re.DIV,v.DIV],[re.DL,v.DL],[re.DT,v.DT],[re.EM,v.EM],[re.EMBED,v.EMBED],[re.FIELDSET,v.FIELDSET],[re.FIGCAPTION,v.FIGCAPTION],[re.FIGURE,v.FIGURE],[re.FONT,v.FONT],[re.FOOTER,v.FOOTER],[re.FOREIGN_OBJECT,v.FOREIGN_OBJECT],[re.FORM,v.FORM],[re.FRAME,v.FRAME],[re.FRAMESET,v.FRAMESET],[re.H1,v.H1],[re.H2,v.H2],[re.H3,v.H3],[re.H4,v.H4],[re.H5,v.H5],[re.H6,v.H6],[re.HEAD,v.HEAD],[re.HEADER,v.HEADER],[re.HGROUP,v.HGROUP],[re.HR,v.HR],[re.HTML,v.HTML],[re.I,v.I],[re.IMG,v.IMG],[re.IMAGE,v.IMAGE],[re.INPUT,v.INPUT],[re.IFRAME,v.IFRAME],[re.KEYGEN,v.KEYGEN],[re.LABEL,v.LABEL],[re.LI,v.LI],[re.LINK,v.LINK],[re.LISTING,v.LISTING],[re.MAIN,v.MAIN],[re.MALIGNMARK,v.MALIGNMARK],[re.MARQUEE,v.MARQUEE],[re.MATH,v.MATH],[re.MENU,v.MENU],[re.META,v.META],[re.MGLYPH,v.MGLYPH],[re.MI,v.MI],[re.MO,v.MO],[re.MN,v.MN],[re.MS,v.MS],[re.MTEXT,v.MTEXT],[re.NAV,v.NAV],[re.NOBR,v.NOBR],[re.NOFRAMES,v.NOFRAMES],[re.NOEMBED,v.NOEMBED],[re.NOSCRIPT,v.NOSCRIPT],[re.OBJECT,v.OBJECT],[re.OL,v.OL],[re.OPTGROUP,v.OPTGROUP],[re.OPTION,v.OPTION],[re.P,v.P],[re.PARAM,v.PARAM],[re.PLAINTEXT,v.PLAINTEXT],[re.PRE,v.PRE],[re.RB,v.RB],[re.RP,v.RP],[re.RT,v.RT],[re.RTC,v.RTC],[re.RUBY,v.RUBY],[re.S,v.S],[re.SCRIPT,v.SCRIPT],[re.SECTION,v.SECTION],[re.SELECT,v.SELECT],[re.SOURCE,v.SOURCE],[re.SMALL,v.SMALL],[re.SPAN,v.SPAN],[re.STRIKE,v.STRIKE],[re.STRONG,v.STRONG],[re.STYLE,v.STYLE],[re.SUB,v.SUB],[re.SUMMARY,v.SUMMARY],[re.SUP,v.SUP],[re.TABLE,v.TABLE],[re.TBODY,v.TBODY],[re.TEMPLATE,v.TEMPLATE],[re.TEXTAREA,v.TEXTAREA],[re.TFOOT,v.TFOOT],[re.TD,v.TD],[re.TH,v.TH],[re.THEAD,v.THEAD],[re.TITLE,v.TITLE],[re.TR,v.TR],[re.TRACK,v.TRACK],[re.TT,v.TT],[re.U,v.U],[re.UL,v.UL],[re.SVG,v.SVG],[re.VAR,v.VAR],[re.WBR,v.WBR],[re.XMP,v.XMP]]);function _d(i){var e;return(e=ihe.get(i))!==null&&e!==void 0?e:v.UNKNOWN}var Re=v,W6={[_e.HTML]:new Set([Re.ADDRESS,Re.APPLET,Re.AREA,Re.ARTICLE,Re.ASIDE,Re.BASE,Re.BASEFONT,Re.BGSOUND,Re.BLOCKQUOTE,Re.BODY,Re.BR,Re.BUTTON,Re.CAPTION,Re.CENTER,Re.COL,Re.COLGROUP,Re.DD,Re.DETAILS,Re.DIR,Re.DIV,Re.DL,Re.DT,Re.EMBED,Re.FIELDSET,Re.FIGCAPTION,Re.FIGURE,Re.FOOTER,Re.FORM,Re.FRAME,Re.FRAMESET,Re.H1,Re.H2,Re.H3,Re.H4,Re.H5,Re.H6,Re.HEAD,Re.HEADER,Re.HGROUP,Re.HR,Re.HTML,Re.IFRAME,Re.IMG,Re.INPUT,Re.LI,Re.LINK,Re.LISTING,Re.MAIN,Re.MARQUEE,Re.MENU,Re.META,Re.NAV,Re.NOEMBED,Re.NOFRAMES,Re.NOSCRIPT,Re.OBJECT,Re.OL,Re.P,Re.PARAM,Re.PLAINTEXT,Re.PRE,Re.SCRIPT,Re.SECTION,Re.SELECT,Re.SOURCE,Re.STYLE,Re.SUMMARY,Re.TABLE,Re.TBODY,Re.TD,Re.TEMPLATE,Re.TEXTAREA,Re.TFOOT,Re.TH,Re.THEAD,Re.TITLE,Re.TR,Re.TRACK,Re.UL,Re.WBR,Re.XMP]),[_e.MATHML]:new Set([Re.MI,Re.MO,Re.MN,Re.MS,Re.MTEXT,Re.ANNOTATION_XML]),[_e.SVG]:new Set([Re.TITLE,Re.FOREIGN_OBJECT,Re.DESC]),[_e.XLINK]:new Set,[_e.XML]:new Set,[_e.XMLNS]:new Set};function l0(i){return i===Re.H1||i===Re.H2||i===Re.H3||i===Re.H4||i===Re.H5||i===Re.H6}var rhe=new Set([re.STYLE,re.SCRIPT,re.XMP,re.IFRAME,re.NOEMBED,re.NOFRAMES,re.PLAINTEXT]);function HW(i,e){return rhe.has(i)||e&&i===re.NOSCRIPT}var nhe=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),j;(function(i){i[i.DATA=0]="DATA",i[i.RCDATA=1]="RCDATA",i[i.RAWTEXT=2]="RAWTEXT",i[i.SCRIPT_DATA=3]="SCRIPT_DATA",i[i.PLAINTEXT=4]="PLAINTEXT",i[i.TAG_OPEN=5]="TAG_OPEN",i[i.END_TAG_OPEN=6]="END_TAG_OPEN",i[i.TAG_NAME=7]="TAG_NAME",i[i.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",i[i.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",i[i.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",i[i.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",i[i.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",i[i.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",i[i.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",i[i.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",i[i.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",i[i.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",i[i.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",i[i.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",i[i.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",i[i.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",i[i.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",i[i.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",i[i.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",i[i.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",i[i.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",i[i.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",i[i.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",i[i.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",i[i.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",i[i.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",i[i.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",i[i.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",i[i.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",i[i.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",i[i.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",i[i.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",i[i.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",i[i.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",i[i.BOGUS_COMMENT=40]="BOGUS_COMMENT",i[i.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",i[i.COMMENT_START=42]="COMMENT_START",i[i.COMMENT_START_DASH=43]="COMMENT_START_DASH",i[i.COMMENT=44]="COMMENT",i[i.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",i[i.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",i[i.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",i[i.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",i[i.COMMENT_END_DASH=49]="COMMENT_END_DASH",i[i.COMMENT_END=50]="COMMENT_END",i[i.COMMENT_END_BANG=51]="COMMENT_END_BANG",i[i.DOCTYPE=52]="DOCTYPE",i[i.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",i[i.DOCTYPE_NAME=54]="DOCTYPE_NAME",i[i.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",i[i.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",i[i.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",i[i.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",i[i.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",i[i.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",i[i.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",i[i.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",i[i.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",i[i.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",i[i.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",i[i.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",i[i.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",i[i.CDATA_SECTION=68]="CDATA_SECTION",i[i.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",i[i.CDATA_SECTION_END=70]="CDATA_SECTION_END",i[i.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",i[i.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",i[i.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",i[i.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",i[i.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",i[i.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",i[i.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",i[i.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(j||(j={}));var rr={DATA:j.DATA,RCDATA:j.RCDATA,RAWTEXT:j.RAWTEXT,SCRIPT_DATA:j.SCRIPT_DATA,PLAINTEXT:j.PLAINTEXT,CDATA_SECTION:j.CDATA_SECTION};function d0(i){return i>=z.DIGIT_0&&i<=z.DIGIT_9}function c0(i){return i>=z.LATIN_CAPITAL_A&&i<=z.LATIN_CAPITAL_Z}function ohe(i){return i>=z.LATIN_SMALL_A&&i<=z.LATIN_SMALL_Z}function yd(i){return ohe(i)||c0(i)}function V6(i){return yd(i)||d0(i)}function jW(i){return i>=z.LATIN_CAPITAL_A&&i<=z.LATIN_CAPITAL_F}function WW(i){return i>=z.LATIN_SMALL_A&&i<=z.LATIN_SMALL_F}function she(i){return d0(i)||jW(i)||WW(i)}function Gw(i){return i+32}function VW(i){return i===z.SPACE||i===z.LINE_FEED||i===z.TABULATION||i===z.FORM_FEED}function ahe(i){return i===z.EQUALS_SIGN||V6(i)}function UW(i){return VW(i)||i===z.SOLIDUS||i===z.GREATER_THAN_SIGN}var u0=class{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=j.DATA,this.returnState=j.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new $w(t),this.currentLocation=this.getCurrentLocation(-1)}_err(e){var t,r;(r=(t=this.handler).onParseError)===null||r===void 0||r.call(t,this.preprocessor.getError(e))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||e==null||e())}write(e,t,r){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(e){this.consumedAfterSnapshot-=e,this.preprocessor.retreat(e)}_reconsumeInState(e,t){this.state=e,this._callState(t)}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t0&&this._err(he.endTagWithAttributes),e.selfClosing&&this._err(he.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case oi.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case oi.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case oi.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:oi.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==e)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=t;return}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=VW(e)?oi.WHITESPACE_CHARACTER:e===z.NULL?oi.NULL_CHARACTER:oi.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(oi.CHARACTER,e)}_matchNamedCharacterReference(e){let t=null,r=0,n=!1;for(let o=0,s=za[0];o>=0&&(o=j6(za,s,o+1,e),!(o<0));e=this._consume()){r+=1,s=za[o];let a=s&Bs.VALUE_LENGTH;if(a){let l=(a>>14)-1;if(e!==z.SEMICOLON&&this._isCharacterReferenceInAttribute()&&ahe(this.preprocessor.peek(1))?(t=[z.AMPERSAND],o+=l):(t=l===0?[za[o]&~Bs.VALUE_LENGTH]:l===1?[za[++o]]:[za[++o],za[++o]],r=0,n=e!==z.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),n&&!this.preprocessor.endOfChunkHit&&this._err(he.missingSemicolonAfterCharacterReference),this._unconsume(1),t}_isCharacterReferenceInAttribute(){return this.returnState===j.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===j.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case j.DATA:{this._stateData(e);break}case j.RCDATA:{this._stateRcdata(e);break}case j.RAWTEXT:{this._stateRawtext(e);break}case j.SCRIPT_DATA:{this._stateScriptData(e);break}case j.PLAINTEXT:{this._statePlaintext(e);break}case j.TAG_OPEN:{this._stateTagOpen(e);break}case j.END_TAG_OPEN:{this._stateEndTagOpen(e);break}case j.TAG_NAME:{this._stateTagName(e);break}case j.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(e);break}case j.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(e);break}case j.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(e);break}case j.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(e);break}case j.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(e);break}case j.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(e);break}case j.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(e);break}case j.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(e);break}case j.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(e);break}case j.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(e);break}case j.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(e);break}case j.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(e);break}case j.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(e);break}case j.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(e);break}case j.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(e);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(e);break}case j.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(e);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(e);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(e);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(e);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(e);break}case j.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(e);break}case j.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(e);break}case j.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(e);break}case j.ATTRIBUTE_NAME:{this._stateAttributeName(e);break}case j.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(e);break}case j.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(e);break}case j.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(e);break}case j.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(e);break}case j.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(e);break}case j.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(e);break}case j.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(e);break}case j.BOGUS_COMMENT:{this._stateBogusComment(e);break}case j.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(e);break}case j.COMMENT_START:{this._stateCommentStart(e);break}case j.COMMENT_START_DASH:{this._stateCommentStartDash(e);break}case j.COMMENT:{this._stateComment(e);break}case j.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(e);break}case j.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(e);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(e);break}case j.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(e);break}case j.COMMENT_END_DASH:{this._stateCommentEndDash(e);break}case j.COMMENT_END:{this._stateCommentEnd(e);break}case j.COMMENT_END_BANG:{this._stateCommentEndBang(e);break}case j.DOCTYPE:{this._stateDoctype(e);break}case j.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(e);break}case j.DOCTYPE_NAME:{this._stateDoctypeName(e);break}case j.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(e);break}case j.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(e);break}case j.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(e);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(e);break}case j.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(e);break}case j.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(e);break}case j.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break}case j.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(e);break}case j.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(e);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(e);break}case j.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(e);break}case j.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(e);break}case j.BOGUS_DOCTYPE:{this._stateBogusDoctype(e);break}case j.CDATA_SECTION:{this._stateCdataSection(e);break}case j.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(e);break}case j.CDATA_SECTION_END:{this._stateCdataSectionEnd(e);break}case j.CHARACTER_REFERENCE:{this._stateCharacterReference(e);break}case j.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(e);break}case j.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(e);break}case j.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(e);break}case j.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(e);break}case j.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(e);break}case j.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(e);break}case j.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(e);break}default:throw new Error("Unknown state")}}_stateData(e){switch(e){case z.LESS_THAN_SIGN:{this.state=j.TAG_OPEN;break}case z.AMPERSAND:{this.returnState=j.DATA,this.state=j.CHARACTER_REFERENCE;break}case z.NULL:{this._err(he.unexpectedNullCharacter),this._emitCodePoint(e);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case z.AMPERSAND:{this.returnState=j.RCDATA,this.state=j.CHARACTER_REFERENCE;break}case z.LESS_THAN_SIGN:{this.state=j.RCDATA_LESS_THAN_SIGN;break}case z.NULL:{this._err(he.unexpectedNullCharacter),this._emitChars(Yi);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case z.LESS_THAN_SIGN:{this.state=j.RAWTEXT_LESS_THAN_SIGN;break}case z.NULL:{this._err(he.unexpectedNullCharacter),this._emitChars(Yi);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case z.LESS_THAN_SIGN:{this.state=j.SCRIPT_DATA_LESS_THAN_SIGN;break}case z.NULL:{this._err(he.unexpectedNullCharacter),this._emitChars(Yi);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case z.NULL:{this._err(he.unexpectedNullCharacter),this._emitChars(Yi);break}case z.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(e)}}_stateTagOpen(e){if(yd(e))this._createStartTagToken(),this.state=j.TAG_NAME,this._stateTagName(e);else switch(e){case z.EXCLAMATION_MARK:{this.state=j.MARKUP_DECLARATION_OPEN;break}case z.SOLIDUS:{this.state=j.END_TAG_OPEN;break}case z.QUESTION_MARK:{this._err(he.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=j.BOGUS_COMMENT,this._stateBogusComment(e);break}case z.EOF:{this._err(he.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(he.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=j.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(yd(e))this._createEndTagToken(),this.state=j.TAG_NAME,this._stateTagName(e);else switch(e){case z.GREATER_THAN_SIGN:{this._err(he.missingEndTagName),this.state=j.DATA;break}case z.EOF:{this._err(he.eofBeforeTagName),this._emitChars("");break}case z.NULL:{this._err(he.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_ESCAPED,this._emitChars(Yi);break}case z.EOF:{this._err(he.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===z.SOLIDUS?this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:yd(e)?(this._emitChars("<"),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=j.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){yd(e)?(this.state=j.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("");break}case z.NULL:{this._err(he.unexpectedNullCharacter),this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Yi);break}case z.EOF:{this._err(he.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===z.SOLIDUS?(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=j.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(eo.SCRIPT,!1)&&UW(this.preprocessor.peek(eo.SCRIPT.length))){this._emitCodePoint(e);for(let t=0;t1114111)this._err(he.characterReferenceOutsideUnicodeRange),this.charRefCode=z.REPLACEMENT_CHARACTER;else if(Vw(this.charRefCode))this._err(he.surrogateCharacterReference),this.charRefCode=z.REPLACEMENT_CHARACTER;else if(Kw(this.charRefCode))this._err(he.noncharacterCharacterReference);else if(qw(this.charRefCode)||this.charRefCode===z.CARRIAGE_RETURN){this._err(he.controlCharacterReference);let t=nhe.get(this.charRefCode);t!==void 0&&(this.charRefCode=t)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,e)}};var KW=new Set([v.DD,v.DT,v.LI,v.OPTGROUP,v.OPTION,v.P,v.RB,v.RP,v.RT,v.RTC]),qW=new Set([...KW,v.CAPTION,v.COLGROUP,v.TBODY,v.TD,v.TFOOT,v.TH,v.THEAD,v.TR]),Yw=new Map([[v.APPLET,_e.HTML],[v.CAPTION,_e.HTML],[v.HTML,_e.HTML],[v.MARQUEE,_e.HTML],[v.OBJECT,_e.HTML],[v.TABLE,_e.HTML],[v.TD,_e.HTML],[v.TEMPLATE,_e.HTML],[v.TH,_e.HTML],[v.ANNOTATION_XML,_e.MATHML],[v.MI,_e.MATHML],[v.MN,_e.MATHML],[v.MO,_e.MATHML],[v.MS,_e.MATHML],[v.MTEXT,_e.MATHML],[v.DESC,_e.SVG],[v.FOREIGN_OBJECT,_e.SVG],[v.TITLE,_e.SVG]]),lhe=[v.H1,v.H2,v.H3,v.H4,v.H5,v.H6],che=[v.TR,v.TEMPLATE,v.HTML],dhe=[v.TBODY,v.TFOOT,v.THEAD,v.TEMPLATE,v.HTML],uhe=[v.TABLE,v.TEMPLATE,v.HTML],hhe=[v.TD,v.TH],Xw=class{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,r){this.treeAdapter=t,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=v.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===v.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===_e.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let r=this._indexOf(e);this.items[r]=t,r===this.stackTop&&(this.current=t)}insertAfter(e,t,r){let n=this._indexOf(e)+1;this.items.splice(n,0,t),this.tagIDs.splice(n,0,r),this.stackTop++,n===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,n===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==_e.HTML);this.shortenToLength(t<0?0:t)}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop=0;r--)if(e.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===t)return r;return-1}clearBackTo(e,t){let r=this._indexOfTagNames(e,t);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(uhe,_e.HTML)}clearBackToTableBodyContext(){this.clearBackTo(dhe,_e.HTML)}clearBackToTableRowContext(){this.clearBackTo(che,_e.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===v.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===v.HTML}hasInScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===_e.HTML)return!0;if(Yw.get(r)===n)return!1}return!0}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e],r=this.treeAdapter.getNamespaceURI(this.items[e]);if(l0(t)&&r===_e.HTML)return!0;if(Yw.get(t)===r)return!1}return!0}hasInListItemScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===_e.HTML)return!0;if((r===v.UL||r===v.OL)&&n===_e.HTML||Yw.get(r)===n)return!1}return!0}hasInButtonScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t],n=this.treeAdapter.getNamespaceURI(this.items[t]);if(r===e&&n===_e.HTML)return!0;if(r===v.BUTTON&&n===_e.HTML||Yw.get(r)===n)return!1}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===_e.HTML){if(r===e)return!0;if(r===v.TABLE||r===v.TEMPLATE||r===v.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];if(this.treeAdapter.getNamespaceURI(this.items[e])===_e.HTML){if(t===v.TBODY||t===v.THEAD||t===v.TFOOT)return!0;if(t===v.TABLE||t===v.HTML)return!1}}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--){let r=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===_e.HTML){if(r===e)return!0;if(r!==v.OPTION&&r!==v.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;KW.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;qW.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;this.currentTagId!==e&&qW.has(this.currentTagId);)this.pop()}};var hs;(function(i){i[i.Marker=0]="Marker",i[i.Element=1]="Element"})(hs=hs||(hs={}));var $W={type:hs.Marker},Qw=class{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let r=[],n=t.length,o=this.treeAdapter.getTagName(e),s=this.treeAdapter.getNamespaceURI(e);for(let a=0;a[s.name,s.value])),o=0;for(let s=0;sn.get(l.name)===l.value)&&(o+=1,o>=3&&this.entries.splice(a.idx,1))}}insertMarker(){this.entries.unshift($W)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:hs.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:hs.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);t>=0&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf($W);e>=0?this.entries.splice(0,e+1):this.entries.length=0}getElementEntryInScopeWithTagName(e){let t=this.entries.find(r=>r.type===hs.Marker||this.treeAdapter.getTagName(r.element)===e);return t&&t.type===hs.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===hs.Element&&t.element===e)}};function GW(i){return{nodeName:"#text",value:i,parentNode:null}}var Gl={createDocument(){return{nodeName:"#document",mode:bn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(i,e,t){return{nodeName:i,tagName:i,attrs:t,namespaceURI:e,childNodes:[],parentNode:null}},createCommentNode(i){return{nodeName:"#comment",data:i,parentNode:null}},appendChild(i,e){i.childNodes.push(e),e.parentNode=i},insertBefore(i,e,t){let r=i.childNodes.indexOf(t);i.childNodes.splice(r,0,e),e.parentNode=i},setTemplateContent(i,e){i.content=e},getTemplateContent(i){return i.content},setDocumentType(i,e,t,r){let n=i.childNodes.find(o=>o.nodeName==="#documentType");if(n)n.name=e,n.publicId=t,n.systemId=r;else{let o={nodeName:"#documentType",name:e,publicId:t,systemId:r,parentNode:null};Gl.appendChild(i,o)}},setDocumentMode(i,e){i.mode=e},getDocumentMode(i){return i.mode},detachNode(i){if(i.parentNode){let e=i.parentNode.childNodes.indexOf(i);i.parentNode.childNodes.splice(e,1),i.parentNode=null}},insertText(i,e){if(i.childNodes.length>0){let t=i.childNodes[i.childNodes.length-1];if(Gl.isTextNode(t)){t.value+=e;return}}Gl.appendChild(i,GW(e))},insertTextBefore(i,e,t){let r=i.childNodes[i.childNodes.indexOf(t)-1];r&&Gl.isTextNode(r)?r.value+=e:Gl.insertBefore(i,GW(e),t)},adoptAttributes(i,e){let t=new Set(i.attrs.map(r=>r.name));for(let r=0;ri.startsWith(t))}function JW(i){return i.name===XW&&i.publicId===null&&(i.systemId===null||i.systemId===fhe)}function eV(i){if(i.name!==XW)return bn.QUIRKS;let{systemId:e}=i;if(e&&e.toLowerCase()===phe)return bn.QUIRKS;let{publicId:t}=i;if(t!==null){if(t=t.toLowerCase(),ghe.has(t))return bn.QUIRKS;let r=e===null?mhe:QW;if(YW(t,r))return bn.QUIRKS;if(r=e===null?ZW:bhe,YW(t,r))return bn.LIMITED_QUIRKS}return bn.NO_QUIRKS}var ex={};Xh(ex,{SVG_TAG_NAMES_ADJUSTMENT_MAP:()=>iV,adjustTokenMathMLAttrs:()=>Zw,adjustTokenSVGAttrs:()=>Jw,adjustTokenSVGTagName:()=>K6,adjustTokenXMLAttrs:()=>h0,causesExit:()=>q6,isIntegrationPoint:()=>$6});var tV={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},_he="definitionurl",yhe="definitionURL",whe=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(i=>[i.toLowerCase(),i])),xhe=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:_e.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:_e.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:_e.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:_e.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:_e.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:_e.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:_e.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:_e.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:_e.XML}],["xml:space",{prefix:"xml",name:"space",namespace:_e.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:_e.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:_e.XMLNS}]]),iV=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(i=>[i.toLowerCase(),i])),Che=new Set([v.B,v.BIG,v.BLOCKQUOTE,v.BODY,v.BR,v.CENTER,v.CODE,v.DD,v.DIV,v.DL,v.DT,v.EM,v.EMBED,v.H1,v.H2,v.H3,v.H4,v.H5,v.H6,v.HEAD,v.HR,v.I,v.IMG,v.LI,v.LISTING,v.MENU,v.META,v.NOBR,v.OL,v.P,v.PRE,v.RUBY,v.S,v.SMALL,v.SPAN,v.STRONG,v.STRIKE,v.SUB,v.SUP,v.TABLE,v.TT,v.U,v.UL,v.VAR]);function q6(i){let e=i.tagID;return e===v.FONT&&i.attrs.some(({name:r})=>r===Hs.COLOR||r===Hs.SIZE||r===Hs.FACE)||Che.has(e)}function Zw(i){for(let e=0;e0&&this._setContextModes(e,t)}onItemPop(e,t){var r,n;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),(n=(r=this.treeAdapter).onItemPop)===null||n===void 0||n.call(r,e,this.openElements.current),t){let o,s;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,s=this.fragmentContextID):{current:o,currentTagId:s}=this.openElements,this._setContextModes(o,s)}}_setContextModes(e,t){let r=e===this.document||this.treeAdapter.getNamespaceURI(e)===_e.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,_e.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=$.TEXT}switchToPlaintextParsing(){this.insertionMode=$.TEXT,this.originalInsertionMode=$.IN_BODY,this.tokenizer.state=rr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===re.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==_e.HTML))switch(this.fragmentContextID){case v.TITLE:case v.TEXTAREA:{this.tokenizer.state=rr.RCDATA;break}case v.STYLE:case v.XMP:case v.IFRAME:case v.NOEMBED:case v.NOFRAMES:case v.NOSCRIPT:{this.tokenizer.state=rr.RAWTEXT;break}case v.SCRIPT:{this.tokenizer.state=rr.SCRIPT_DATA;break}case v.PLAINTEXT:{this.tokenizer.state=rr.PLAINTEXT;break}default:}}_setDocumentType(e){let t=e.name||"",r=e.publicId||"",n=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,r,n),e.location){let s=this.treeAdapter.getChildNodes(this.document).find(a=>this.treeAdapter.isDocumentTypeNode(a));s&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let r=t&&xt(ue({},t),{startTag:t});this.treeAdapter.setNodeSourceCodeLocation(e,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,e)}}_appendElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location)}_insertElement(e,t){let r=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(r,e.location),this.openElements.push(r,e.tagID)}_insertFakeElement(e,t){let r=this.treeAdapter.createElement(e,_e.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,_e.HTML,e.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,r),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(re.HTML,_e.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,v.HTML)}_appendCommentNode(e,t){let r=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,e.location)}_insertCharacters(e){let t,r;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(t,e.chars,r):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let n=this.treeAdapter.getChildNodes(t),o=r?n.lastIndexOf(r):n.length,s=n[o-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){let{endLine:l,endCol:c,endOffset:d}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:c,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,e.location)}_adoptNodes(e,t){for(let r=this.treeAdapter.getFirstChild(e);r;r=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(t,r)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let r=t.location,n=this.treeAdapter.getTagName(e),o=t.type===oi.END_TAG&&n===t.tagName?{endTag:ue({},r),endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,o)}}shouldProcessStartTagTokenInForeignContent(e){if(!this.currentNotInHTML)return!1;let t,r;return this.openElements.stackTop===0&&this.fragmentContext?(t=this.fragmentContext,r=this.fragmentContextID):{current:t,currentTagId:r}=this.openElements,e.tagID===v.SVG&&this.treeAdapter.getTagName(t)===re.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(t)===_e.MATHML?!1:this.tokenizer.inForeignNode||(e.tagID===v.MGLYPH||e.tagID===v.MALIGNMARK)&&!this._isIntegrationPoint(r,t,_e.HTML)}_processToken(e){switch(e.type){case oi.CHARACTER:{this.onCharacter(e);break}case oi.NULL_CHARACTER:{this.onNullCharacter(e);break}case oi.COMMENT:{this.onComment(e);break}case oi.DOCTYPE:{this.onDoctype(e);break}case oi.START_TAG:{this._processStartTag(e);break}case oi.END_TAG:{this.onEndTag(e);break}case oi.EOF:{this.onEof(e);break}case oi.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(e);break}}}_isIntegrationPoint(e,t,r){let n=this.treeAdapter.getNamespaceURI(t),o=this.treeAdapter.getAttrList(t);return $6(e,n,o,r)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(n=>n.type===hs.Marker||this.openElements.contains(n.element)),r=t<0?e-1:t-1;for(let n=r;n>=0;n--){let o=this.activeFormattingElements.entries[n];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=$.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(v.P),this.openElements.popUntilTagNamePopped(v.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(e===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case v.TR:{this.insertionMode=$.IN_ROW;return}case v.TBODY:case v.THEAD:case v.TFOOT:{this.insertionMode=$.IN_TABLE_BODY;return}case v.CAPTION:{this.insertionMode=$.IN_CAPTION;return}case v.COLGROUP:{this.insertionMode=$.IN_COLUMN_GROUP;return}case v.TABLE:{this.insertionMode=$.IN_TABLE;return}case v.BODY:{this.insertionMode=$.IN_BODY;return}case v.FRAMESET:{this.insertionMode=$.IN_FRAMESET;return}case v.SELECT:{this._resetInsertionModeForSelect(e);return}case v.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case v.HTML:{this.insertionMode=this.headElement?$.AFTER_HEAD:$.BEFORE_HEAD;return}case v.TD:case v.TH:{if(e>0){this.insertionMode=$.IN_CELL;return}break}case v.HEAD:{if(e>0){this.insertionMode=$.IN_HEAD;return}break}}this.insertionMode=$.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let r=this.openElements.tagIDs[t];if(r===v.TEMPLATE)break;if(r===v.TABLE){this.insertionMode=$.IN_SELECT_IN_TABLE;return}}this.insertionMode=$.IN_SELECT}_isElementCausesFosterParenting(e){return sV.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case v.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(t)===_e.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break}case v.TABLE:{let r=this.treeAdapter.getParentNode(t);return r?{parent:r,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){let r=this.treeAdapter.getNamespaceURI(e);return W6[r].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){ope(this,e);return}switch(this.insertionMode){case $.INITIAL:{f0(this,e);break}case $.BEFORE_HTML:{m0(this,e);break}case $.BEFORE_HEAD:{g0(this,e);break}case $.IN_HEAD:{b0(this,e);break}case $.IN_HEAD_NO_SCRIPT:{v0(this,e);break}case $.AFTER_HEAD:{_0(this,e);break}case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:{lV(this,e);break}case $.TEXT:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:{this._insertCharacters(e);break}case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:{G6(this,e);break}case $.IN_TABLE_TEXT:{pV(this,e);break}case $.IN_COLUMN_GROUP:{ix(this,e);break}case $.AFTER_BODY:{rx(this,e);break}case $.AFTER_AFTER_BODY:{tx(this,e);break}default:}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){npe(this,e);return}switch(this.insertionMode){case $.INITIAL:{f0(this,e);break}case $.BEFORE_HTML:{m0(this,e);break}case $.BEFORE_HEAD:{g0(this,e);break}case $.IN_HEAD:{b0(this,e);break}case $.IN_HEAD_NO_SCRIPT:{v0(this,e);break}case $.AFTER_HEAD:{_0(this,e);break}case $.TEXT:{this._insertCharacters(e);break}case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:{G6(this,e);break}case $.IN_COLUMN_GROUP:{ix(this,e);break}case $.AFTER_BODY:{rx(this,e);break}case $.AFTER_AFTER_BODY:{tx(this,e);break}default:}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){Y6(this,e);return}switch(this.insertionMode){case $.INITIAL:case $.BEFORE_HTML:case $.BEFORE_HEAD:case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:case $.IN_BODY:case $.IN_TABLE:case $.IN_CAPTION:case $.IN_COLUMN_GROUP:case $.IN_TABLE_BODY:case $.IN_ROW:case $.IN_CELL:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:case $.IN_TEMPLATE:case $.IN_FRAMESET:case $.AFTER_FRAMESET:{Y6(this,e);break}case $.IN_TABLE_TEXT:{p0(this,e);break}case $.AFTER_BODY:{Ohe(this,e);break}case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:{Fhe(this,e);break}default:}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case $.INITIAL:{zhe(this,e);break}case $.BEFORE_HEAD:case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:{this._err(e,he.misplacedDoctype);break}case $.IN_TABLE_TEXT:{p0(this,e);break}default:}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,he.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?spe(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case $.INITIAL:{f0(this,e);break}case $.BEFORE_HTML:{Bhe(this,e);break}case $.BEFORE_HEAD:{Uhe(this,e);break}case $.IN_HEAD:{Us(this,e);break}case $.IN_HEAD_NO_SCRIPT:{Vhe(this,e);break}case $.AFTER_HEAD:{Khe(this,e);break}case $.IN_BODY:{zn(this,e);break}case $.IN_TABLE:{Jf(this,e);break}case $.IN_TABLE_TEXT:{p0(this,e);break}case $.IN_CAPTION:{jfe(this,e);break}case $.IN_COLUMN_GROUP:{J6(this,e);break}case $.IN_TABLE_BODY:{sx(this,e);break}case $.IN_ROW:{ax(this,e);break}case $.IN_CELL:{qfe(this,e);break}case $.IN_SELECT:{bV(this,e);break}case $.IN_SELECT_IN_TABLE:{$fe(this,e);break}case $.IN_TEMPLATE:{Yfe(this,e);break}case $.AFTER_BODY:{Qfe(this,e);break}case $.IN_FRAMESET:{Zfe(this,e);break}case $.AFTER_FRAMESET:{epe(this,e);break}case $.AFTER_AFTER_BODY:{ipe(this,e);break}case $.AFTER_AFTER_FRAMESET:{rpe(this,e);break}default:}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?ape(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){switch(this.insertionMode){case $.INITIAL:{f0(this,e);break}case $.BEFORE_HTML:{Hhe(this,e);break}case $.BEFORE_HEAD:{jhe(this,e);break}case $.IN_HEAD:{Whe(this,e);break}case $.IN_HEAD_NO_SCRIPT:{qhe(this,e);break}case $.AFTER_HEAD:{$he(this,e);break}case $.IN_BODY:{ox(this,e);break}case $.TEXT:{Mfe(this,e);break}case $.IN_TABLE:{y0(this,e);break}case $.IN_TABLE_TEXT:{p0(this,e);break}case $.IN_CAPTION:{Wfe(this,e);break}case $.IN_COLUMN_GROUP:{Vfe(this,e);break}case $.IN_TABLE_BODY:{X6(this,e);break}case $.IN_ROW:{gV(this,e);break}case $.IN_CELL:{Kfe(this,e);break}case $.IN_SELECT:{vV(this,e);break}case $.IN_SELECT_IN_TABLE:{Gfe(this,e);break}case $.IN_TEMPLATE:{Xfe(this,e);break}case $.AFTER_BODY:{yV(this,e);break}case $.IN_FRAMESET:{Jfe(this,e);break}case $.AFTER_FRAMESET:{tpe(this,e);break}case $.AFTER_AFTER_BODY:{tx(this,e);break}default:}}onEof(e){switch(this.insertionMode){case $.INITIAL:{f0(this,e);break}case $.BEFORE_HTML:{m0(this,e);break}case $.BEFORE_HEAD:{g0(this,e);break}case $.IN_HEAD:{b0(this,e);break}case $.IN_HEAD_NO_SCRIPT:{v0(this,e);break}case $.AFTER_HEAD:{_0(this,e);break}case $.IN_BODY:case $.IN_TABLE:case $.IN_CAPTION:case $.IN_COLUMN_GROUP:case $.IN_TABLE_BODY:case $.IN_ROW:case $.IN_CELL:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:{hV(this,e);break}case $.TEXT:{Nfe(this,e);break}case $.IN_TABLE_TEXT:{p0(this,e);break}case $.IN_TEMPLATE:{_V(this,e);break}case $.AFTER_BODY:case $.IN_FRAMESET:case $.AFTER_FRAMESET:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:{Z6(this,e);break}default:}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCodeAt(0)===z.LINE_FEED)){if(e.chars.length===1)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case $.IN_HEAD:case $.IN_HEAD_NO_SCRIPT:case $.AFTER_HEAD:case $.TEXT:case $.IN_COLUMN_GROUP:case $.IN_SELECT:case $.IN_SELECT_IN_TABLE:case $.IN_FRAMESET:case $.AFTER_FRAMESET:{this._insertCharacters(e);break}case $.IN_BODY:case $.IN_CAPTION:case $.IN_CELL:case $.IN_TEMPLATE:case $.AFTER_BODY:case $.AFTER_AFTER_BODY:case $.AFTER_AFTER_FRAMESET:{aV(this,e);break}case $.IN_TABLE:case $.IN_TABLE_BODY:case $.IN_ROW:{G6(this,e);break}case $.IN_TABLE_TEXT:{fV(this,e);break}default:}}};function Lhe(i,e){let t=i.activeFormattingElements.getElementEntryInScopeWithTagName(e.tagName);return t?i.openElements.contains(t.element)?i.openElements.hasInScope(e.tagID)||(t=null):(i.activeFormattingElements.removeEntry(t),t=null):uV(i,e),t}function Dhe(i,e){let t=null,r=i.openElements.stackTop;for(;r>=0;r--){let n=i.openElements.items[r];if(n===e.element)break;i._isSpecialElement(n,i.openElements.tagIDs[r])&&(t=n)}return t||(i.openElements.shortenToLength(r<0?0:r),i.activeFormattingElements.removeEntry(e)),t}function Mhe(i,e,t){let r=e,n=i.openElements.getCommonAncestor(e);for(let o=0,s=n;s!==t;o++,s=n){n=i.openElements.getCommonAncestor(s);let a=i.activeFormattingElements.getElementEntry(s),l=a&&o>=Ihe;!a||l?(l&&i.activeFormattingElements.removeEntry(a),i.openElements.remove(s)):(s=Nhe(i,a),r===e&&(i.activeFormattingElements.bookmark=a),i.treeAdapter.detachNode(r),i.treeAdapter.appendChild(s,r),r=s)}return r}function Nhe(i,e){let t=i.treeAdapter.getNamespaceURI(e.element),r=i.treeAdapter.createElement(e.token.tagName,t,e.token.attrs);return i.openElements.replace(e.element,r),e.element=r,r}function Rhe(i,e,t){let r=i.treeAdapter.getTagName(e),n=_d(r);if(i._isElementCausesFosterParenting(n))i._fosterParentElement(t);else{let o=i.treeAdapter.getNamespaceURI(e);n===v.TEMPLATE&&o===_e.HTML&&(e=i.treeAdapter.getTemplateContent(e)),i.treeAdapter.appendChild(e,t)}}function Phe(i,e,t){let r=i.treeAdapter.getNamespaceURI(t.element),{token:n}=t,o=i.treeAdapter.createElement(n.tagName,r,n.attrs);i._adoptNodes(e,o),i.treeAdapter.appendChild(e,o),i.activeFormattingElements.insertElementAfterBookmark(o,n),i.activeFormattingElements.removeEntry(t),i.openElements.remove(t.element),i.openElements.insertAfter(e,o,n.tagID)}function Q6(i,e){for(let t=0;t=t;r--)i._setEndLocation(i.openElements.items[r],e);if(!i.fragmentContext&&i.openElements.stackTop>=0){let r=i.openElements.items[0],n=i.treeAdapter.getNodeSourceCodeLocation(r);if(n&&!n.endTag&&(i._setEndLocation(r,e),i.openElements.stackTop>=1)){let o=i.openElements.items[1],s=i.treeAdapter.getNodeSourceCodeLocation(o);s&&!s.endTag&&i._setEndLocation(o,e)}}}}function zhe(i,e){i._setDocumentType(e);let t=e.forceQuirks?bn.QUIRKS:eV(e);JW(e)||i._err(e,he.nonConformingDoctype),i.treeAdapter.setDocumentMode(i.document,t),i.insertionMode=$.BEFORE_HTML}function f0(i,e){i._err(e,he.missingDoctype,!0),i.treeAdapter.setDocumentMode(i.document,bn.QUIRKS),i.insertionMode=$.BEFORE_HTML,i._processToken(e)}function Bhe(i,e){e.tagID===v.HTML?(i._insertElement(e,_e.HTML),i.insertionMode=$.BEFORE_HEAD):m0(i,e)}function Hhe(i,e){let t=e.tagID;(t===v.HTML||t===v.HEAD||t===v.BODY||t===v.BR)&&m0(i,e)}function m0(i,e){i._insertFakeRootElement(),i.insertionMode=$.BEFORE_HEAD,i._processToken(e)}function Uhe(i,e){switch(e.tagID){case v.HTML:{zn(i,e);break}case v.HEAD:{i._insertElement(e,_e.HTML),i.headElement=i.openElements.current,i.insertionMode=$.IN_HEAD;break}default:g0(i,e)}}function jhe(i,e){let t=e.tagID;t===v.HEAD||t===v.BODY||t===v.HTML||t===v.BR?g0(i,e):i._err(e,he.endTagWithoutMatchingOpenElement)}function g0(i,e){i._insertFakeElement(re.HEAD,v.HEAD),i.headElement=i.openElements.current,i.insertionMode=$.IN_HEAD,i._processToken(e)}function Us(i,e){switch(e.tagID){case v.HTML:{zn(i,e);break}case v.BASE:case v.BASEFONT:case v.BGSOUND:case v.LINK:case v.META:{i._appendElement(e,_e.HTML),e.ackSelfClosing=!0;break}case v.TITLE:{i._switchToTextParsing(e,rr.RCDATA);break}case v.NOSCRIPT:{i.options.scriptingEnabled?i._switchToTextParsing(e,rr.RAWTEXT):(i._insertElement(e,_e.HTML),i.insertionMode=$.IN_HEAD_NO_SCRIPT);break}case v.NOFRAMES:case v.STYLE:{i._switchToTextParsing(e,rr.RAWTEXT);break}case v.SCRIPT:{i._switchToTextParsing(e,rr.SCRIPT_DATA);break}case v.TEMPLATE:{i._insertTemplate(e),i.activeFormattingElements.insertMarker(),i.framesetOk=!1,i.insertionMode=$.IN_TEMPLATE,i.tmplInsertionModeStack.unshift($.IN_TEMPLATE);break}case v.HEAD:{i._err(e,he.misplacedStartTagForHeadElement);break}default:b0(i,e)}}function Whe(i,e){switch(e.tagID){case v.HEAD:{i.openElements.pop(),i.insertionMode=$.AFTER_HEAD;break}case v.BODY:case v.BR:case v.HTML:{b0(i,e);break}case v.TEMPLATE:{ju(i,e);break}default:i._err(e,he.endTagWithoutMatchingOpenElement)}}function ju(i,e){i.openElements.tmplCount>0?(i.openElements.generateImpliedEndTagsThoroughly(),i.openElements.currentTagId!==v.TEMPLATE&&i._err(e,he.closingOfElementWithOpenChildElements),i.openElements.popUntilTagNamePopped(v.TEMPLATE),i.activeFormattingElements.clearToLastMarker(),i.tmplInsertionModeStack.shift(),i._resetInsertionMode()):i._err(e,he.endTagWithoutMatchingOpenElement)}function b0(i,e){i.openElements.pop(),i.insertionMode=$.AFTER_HEAD,i._processToken(e)}function Vhe(i,e){switch(e.tagID){case v.HTML:{zn(i,e);break}case v.BASEFONT:case v.BGSOUND:case v.HEAD:case v.LINK:case v.META:case v.NOFRAMES:case v.STYLE:{Us(i,e);break}case v.NOSCRIPT:{i._err(e,he.nestedNoscriptInHead);break}default:v0(i,e)}}function qhe(i,e){switch(e.tagID){case v.NOSCRIPT:{i.openElements.pop(),i.insertionMode=$.IN_HEAD;break}case v.BR:{v0(i,e);break}default:i._err(e,he.endTagWithoutMatchingOpenElement)}}function v0(i,e){let t=e.type===oi.EOF?he.openElementsLeftAfterEof:he.disallowedContentInNoscriptInHead;i._err(e,t),i.openElements.pop(),i.insertionMode=$.IN_HEAD,i._processToken(e)}function Khe(i,e){switch(e.tagID){case v.HTML:{zn(i,e);break}case v.BODY:{i._insertElement(e,_e.HTML),i.framesetOk=!1,i.insertionMode=$.IN_BODY;break}case v.FRAMESET:{i._insertElement(e,_e.HTML),i.insertionMode=$.IN_FRAMESET;break}case v.BASE:case v.BASEFONT:case v.BGSOUND:case v.LINK:case v.META:case v.NOFRAMES:case v.SCRIPT:case v.STYLE:case v.TEMPLATE:case v.TITLE:{i._err(e,he.abandonedHeadElementChild),i.openElements.push(i.headElement,v.HEAD),Us(i,e),i.openElements.remove(i.headElement);break}case v.HEAD:{i._err(e,he.misplacedStartTagForHeadElement);break}default:_0(i,e)}}function $he(i,e){switch(e.tagID){case v.BODY:case v.HTML:case v.BR:{_0(i,e);break}case v.TEMPLATE:{ju(i,e);break}default:i._err(e,he.endTagWithoutMatchingOpenElement)}}function _0(i,e){i._insertFakeElement(re.BODY,v.BODY),i.insertionMode=$.IN_BODY,nx(i,e)}function nx(i,e){switch(e.type){case oi.CHARACTER:{lV(i,e);break}case oi.WHITESPACE_CHARACTER:{aV(i,e);break}case oi.COMMENT:{Y6(i,e);break}case oi.START_TAG:{zn(i,e);break}case oi.END_TAG:{ox(i,e);break}case oi.EOF:{hV(i,e);break}default:}}function aV(i,e){i._reconstructActiveFormattingElements(),i._insertCharacters(e)}function lV(i,e){i._reconstructActiveFormattingElements(),i._insertCharacters(e),i.framesetOk=!1}function Ghe(i,e){i.openElements.tmplCount===0&&i.treeAdapter.adoptAttributes(i.openElements.items[0],e.attrs)}function Yhe(i,e){let t=i.openElements.tryPeekProperlyNestedBodyElement();t&&i.openElements.tmplCount===0&&(i.framesetOk=!1,i.treeAdapter.adoptAttributes(t,e.attrs))}function Xhe(i,e){let t=i.openElements.tryPeekProperlyNestedBodyElement();i.framesetOk&&t&&(i.treeAdapter.detachNode(t),i.openElements.popAllUpToHtmlElement(),i._insertElement(e,_e.HTML),i.insertionMode=$.IN_FRAMESET)}function Qhe(i,e){i.openElements.hasInButtonScope(v.P)&&i._closePElement(),i._insertElement(e,_e.HTML)}function Zhe(i,e){i.openElements.hasInButtonScope(v.P)&&i._closePElement(),l0(i.openElements.currentTagId)&&i.openElements.pop(),i._insertElement(e,_e.HTML)}function Jhe(i,e){i.openElements.hasInButtonScope(v.P)&&i._closePElement(),i._insertElement(e,_e.HTML),i.skipNextNewLine=!0,i.framesetOk=!1}function efe(i,e){let t=i.openElements.tmplCount>0;(!i.formElement||t)&&(i.openElements.hasInButtonScope(v.P)&&i._closePElement(),i._insertElement(e,_e.HTML),t||(i.formElement=i.openElements.current))}function tfe(i,e){i.framesetOk=!1;let t=e.tagID;for(let r=i.openElements.stackTop;r>=0;r--){let n=i.openElements.tagIDs[r];if(t===v.LI&&n===v.LI||(t===v.DD||t===v.DT)&&(n===v.DD||n===v.DT)){i.openElements.generateImpliedEndTagsWithExclusion(n),i.openElements.popUntilTagNamePopped(n);break}if(n!==v.ADDRESS&&n!==v.DIV&&n!==v.P&&i._isSpecialElement(i.openElements.items[r],n))break}i.openElements.hasInButtonScope(v.P)&&i._closePElement(),i._insertElement(e,_e.HTML)}function ife(i,e){i.openElements.hasInButtonScope(v.P)&&i._closePElement(),i._insertElement(e,_e.HTML),i.tokenizer.state=rr.PLAINTEXT}function rfe(i,e){i.openElements.hasInScope(v.BUTTON)&&(i.openElements.generateImpliedEndTags(),i.openElements.popUntilTagNamePopped(v.BUTTON)),i._reconstructActiveFormattingElements(),i._insertElement(e,_e.HTML),i.framesetOk=!1}function nfe(i,e){let t=i.activeFormattingElements.getElementEntryInScopeWithTagName(re.A);t&&(Q6(i,e),i.openElements.remove(t.element),i.activeFormattingElements.removeEntry(t)),i._reconstructActiveFormattingElements(),i._insertElement(e,_e.HTML),i.activeFormattingElements.pushElement(i.openElements.current,e)}function ofe(i,e){i._reconstructActiveFormattingElements(),i._insertElement(e,_e.HTML),i.activeFormattingElements.pushElement(i.openElements.current,e)}function sfe(i,e){i._reconstructActiveFormattingElements(),i.openElements.hasInScope(v.NOBR)&&(Q6(i,e),i._reconstructActiveFormattingElements()),i._insertElement(e,_e.HTML),i.activeFormattingElements.pushElement(i.openElements.current,e)}function afe(i,e){i._reconstructActiveFormattingElements(),i._insertElement(e,_e.HTML),i.activeFormattingElements.insertMarker(),i.framesetOk=!1}function lfe(i,e){i.treeAdapter.getDocumentMode(i.document)!==bn.QUIRKS&&i.openElements.hasInButtonScope(v.P)&&i._closePElement(),i._insertElement(e,_e.HTML),i.framesetOk=!1,i.insertionMode=$.IN_TABLE}function cV(i,e){i._reconstructActiveFormattingElements(),i._appendElement(e,_e.HTML),i.framesetOk=!1,e.ackSelfClosing=!0}function dV(i){let e=a0(i,Hs.TYPE);return e!=null&&e.toLowerCase()===Ehe}function cfe(i,e){i._reconstructActiveFormattingElements(),i._appendElement(e,_e.HTML),dV(e)||(i.framesetOk=!1),e.ackSelfClosing=!0}function dfe(i,e){i._appendElement(e,_e.HTML),e.ackSelfClosing=!0}function ufe(i,e){i.openElements.hasInButtonScope(v.P)&&i._closePElement(),i._appendElement(e,_e.HTML),i.framesetOk=!1,e.ackSelfClosing=!0}function hfe(i,e){e.tagName=re.IMG,e.tagID=v.IMG,cV(i,e)}function ffe(i,e){i._insertElement(e,_e.HTML),i.skipNextNewLine=!0,i.tokenizer.state=rr.RCDATA,i.originalInsertionMode=i.insertionMode,i.framesetOk=!1,i.insertionMode=$.TEXT}function pfe(i,e){i.openElements.hasInButtonScope(v.P)&&i._closePElement(),i._reconstructActiveFormattingElements(),i.framesetOk=!1,i._switchToTextParsing(e,rr.RAWTEXT)}function mfe(i,e){i.framesetOk=!1,i._switchToTextParsing(e,rr.RAWTEXT)}function nV(i,e){i._switchToTextParsing(e,rr.RAWTEXT)}function gfe(i,e){i._reconstructActiveFormattingElements(),i._insertElement(e,_e.HTML),i.framesetOk=!1,i.insertionMode=i.insertionMode===$.IN_TABLE||i.insertionMode===$.IN_CAPTION||i.insertionMode===$.IN_TABLE_BODY||i.insertionMode===$.IN_ROW||i.insertionMode===$.IN_CELL?$.IN_SELECT_IN_TABLE:$.IN_SELECT}function bfe(i,e){i.openElements.currentTagId===v.OPTION&&i.openElements.pop(),i._reconstructActiveFormattingElements(),i._insertElement(e,_e.HTML)}function vfe(i,e){i.openElements.hasInScope(v.RUBY)&&i.openElements.generateImpliedEndTags(),i._insertElement(e,_e.HTML)}function _fe(i,e){i.openElements.hasInScope(v.RUBY)&&i.openElements.generateImpliedEndTagsWithExclusion(v.RTC),i._insertElement(e,_e.HTML)}function yfe(i,e){i._reconstructActiveFormattingElements(),Zw(e),h0(e),e.selfClosing?i._appendElement(e,_e.MATHML):i._insertElement(e,_e.MATHML),e.ackSelfClosing=!0}function wfe(i,e){i._reconstructActiveFormattingElements(),Jw(e),h0(e),e.selfClosing?i._appendElement(e,_e.SVG):i._insertElement(e,_e.SVG),e.ackSelfClosing=!0}function oV(i,e){i._reconstructActiveFormattingElements(),i._insertElement(e,_e.HTML)}function zn(i,e){switch(e.tagID){case v.I:case v.S:case v.B:case v.U:case v.EM:case v.TT:case v.BIG:case v.CODE:case v.FONT:case v.SMALL:case v.STRIKE:case v.STRONG:{ofe(i,e);break}case v.A:{nfe(i,e);break}case v.H1:case v.H2:case v.H3:case v.H4:case v.H5:case v.H6:{Zhe(i,e);break}case v.P:case v.DL:case v.OL:case v.UL:case v.DIV:case v.DIR:case v.NAV:case v.MAIN:case v.MENU:case v.ASIDE:case v.CENTER:case v.FIGURE:case v.FOOTER:case v.HEADER:case v.HGROUP:case v.DIALOG:case v.DETAILS:case v.ADDRESS:case v.ARTICLE:case v.SECTION:case v.SUMMARY:case v.FIELDSET:case v.BLOCKQUOTE:case v.FIGCAPTION:{Qhe(i,e);break}case v.LI:case v.DD:case v.DT:{tfe(i,e);break}case v.BR:case v.IMG:case v.WBR:case v.AREA:case v.EMBED:case v.KEYGEN:{cV(i,e);break}case v.HR:{ufe(i,e);break}case v.RB:case v.RTC:{vfe(i,e);break}case v.RT:case v.RP:{_fe(i,e);break}case v.PRE:case v.LISTING:{Jhe(i,e);break}case v.XMP:{pfe(i,e);break}case v.SVG:{wfe(i,e);break}case v.HTML:{Ghe(i,e);break}case v.BASE:case v.LINK:case v.META:case v.STYLE:case v.TITLE:case v.SCRIPT:case v.BGSOUND:case v.BASEFONT:case v.TEMPLATE:{Us(i,e);break}case v.BODY:{Yhe(i,e);break}case v.FORM:{efe(i,e);break}case v.NOBR:{sfe(i,e);break}case v.MATH:{yfe(i,e);break}case v.TABLE:{lfe(i,e);break}case v.INPUT:{cfe(i,e);break}case v.PARAM:case v.TRACK:case v.SOURCE:{dfe(i,e);break}case v.IMAGE:{hfe(i,e);break}case v.BUTTON:{rfe(i,e);break}case v.APPLET:case v.OBJECT:case v.MARQUEE:{afe(i,e);break}case v.IFRAME:{mfe(i,e);break}case v.SELECT:{gfe(i,e);break}case v.OPTION:case v.OPTGROUP:{bfe(i,e);break}case v.NOEMBED:{nV(i,e);break}case v.FRAMESET:{Xhe(i,e);break}case v.TEXTAREA:{ffe(i,e);break}case v.NOSCRIPT:{i.options.scriptingEnabled?nV(i,e):oV(i,e);break}case v.PLAINTEXT:{ife(i,e);break}case v.COL:case v.TH:case v.TD:case v.TR:case v.HEAD:case v.FRAME:case v.TBODY:case v.TFOOT:case v.THEAD:case v.CAPTION:case v.COLGROUP:break;default:oV(i,e)}}function xfe(i,e){if(i.openElements.hasInScope(v.BODY)&&(i.insertionMode=$.AFTER_BODY,i.options.sourceCodeLocationInfo)){let t=i.openElements.tryPeekProperlyNestedBodyElement();t&&i._setEndLocation(t,e)}}function Cfe(i,e){i.openElements.hasInScope(v.BODY)&&(i.insertionMode=$.AFTER_BODY,yV(i,e))}function Sfe(i,e){let t=e.tagID;i.openElements.hasInScope(t)&&(i.openElements.generateImpliedEndTags(),i.openElements.popUntilTagNamePopped(t))}function kfe(i){let e=i.openElements.tmplCount>0,{formElement:t}=i;e||(i.formElement=null),(t||e)&&i.openElements.hasInScope(v.FORM)&&(i.openElements.generateImpliedEndTags(),e?i.openElements.popUntilTagNamePopped(v.FORM):t&&i.openElements.remove(t))}function Efe(i){i.openElements.hasInButtonScope(v.P)||i._insertFakeElement(re.P,v.P),i._closePElement()}function Tfe(i){i.openElements.hasInListItemScope(v.LI)&&(i.openElements.generateImpliedEndTagsWithExclusion(v.LI),i.openElements.popUntilTagNamePopped(v.LI))}function Ife(i,e){let t=e.tagID;i.openElements.hasInScope(t)&&(i.openElements.generateImpliedEndTagsWithExclusion(t),i.openElements.popUntilTagNamePopped(t))}function Afe(i){i.openElements.hasNumberedHeaderInScope()&&(i.openElements.generateImpliedEndTags(),i.openElements.popUntilNumberedHeaderPopped())}function Lfe(i,e){let t=e.tagID;i.openElements.hasInScope(t)&&(i.openElements.generateImpliedEndTags(),i.openElements.popUntilTagNamePopped(t),i.activeFormattingElements.clearToLastMarker())}function Dfe(i){i._reconstructActiveFormattingElements(),i._insertFakeElement(re.BR,v.BR),i.openElements.pop(),i.framesetOk=!1}function uV(i,e){let t=e.tagName,r=e.tagID;for(let n=i.openElements.stackTop;n>0;n--){let o=i.openElements.items[n],s=i.openElements.tagIDs[n];if(r===s&&(r!==v.UNKNOWN||i.treeAdapter.getTagName(o)===t)){i.openElements.generateImpliedEndTagsWithExclusion(r),i.openElements.stackTop>=n&&i.openElements.shortenToLength(n);break}if(i._isSpecialElement(o,s))break}}function ox(i,e){switch(e.tagID){case v.A:case v.B:case v.I:case v.S:case v.U:case v.EM:case v.TT:case v.BIG:case v.CODE:case v.FONT:case v.NOBR:case v.SMALL:case v.STRIKE:case v.STRONG:{Q6(i,e);break}case v.P:{Efe(i);break}case v.DL:case v.UL:case v.OL:case v.DIR:case v.DIV:case v.NAV:case v.PRE:case v.MAIN:case v.MENU:case v.ASIDE:case v.BUTTON:case v.CENTER:case v.FIGURE:case v.FOOTER:case v.HEADER:case v.HGROUP:case v.DIALOG:case v.ADDRESS:case v.ARTICLE:case v.DETAILS:case v.SECTION:case v.SUMMARY:case v.LISTING:case v.FIELDSET:case v.BLOCKQUOTE:case v.FIGCAPTION:{Sfe(i,e);break}case v.LI:{Tfe(i);break}case v.DD:case v.DT:{Ife(i,e);break}case v.H1:case v.H2:case v.H3:case v.H4:case v.H5:case v.H6:{Afe(i);break}case v.BR:{Dfe(i);break}case v.BODY:{xfe(i,e);break}case v.HTML:{Cfe(i,e);break}case v.FORM:{kfe(i);break}case v.APPLET:case v.OBJECT:case v.MARQUEE:{Lfe(i,e);break}case v.TEMPLATE:{ju(i,e);break}default:uV(i,e)}}function hV(i,e){i.tmplInsertionModeStack.length>0?_V(i,e):Z6(i,e)}function Mfe(i,e){var t;e.tagID===v.SCRIPT&&((t=i.scriptHandler)===null||t===void 0||t.call(i,i.openElements.current)),i.openElements.pop(),i.insertionMode=i.originalInsertionMode}function Nfe(i,e){i._err(e,he.eofInElementThatCanContainOnlyText),i.openElements.pop(),i.insertionMode=i.originalInsertionMode,i.onEof(e)}function G6(i,e){if(sV.has(i.openElements.currentTagId))switch(i.pendingCharacterTokens.length=0,i.hasNonWhitespacePendingCharacterToken=!1,i.originalInsertionMode=i.insertionMode,i.insertionMode=$.IN_TABLE_TEXT,e.type){case oi.CHARACTER:{pV(i,e);break}case oi.WHITESPACE_CHARACTER:{fV(i,e);break}}else w0(i,e)}function Rfe(i,e){i.openElements.clearBackToTableContext(),i.activeFormattingElements.insertMarker(),i._insertElement(e,_e.HTML),i.insertionMode=$.IN_CAPTION}function Pfe(i,e){i.openElements.clearBackToTableContext(),i._insertElement(e,_e.HTML),i.insertionMode=$.IN_COLUMN_GROUP}function Ofe(i,e){i.openElements.clearBackToTableContext(),i._insertFakeElement(re.COLGROUP,v.COLGROUP),i.insertionMode=$.IN_COLUMN_GROUP,J6(i,e)}function Ffe(i,e){i.openElements.clearBackToTableContext(),i._insertElement(e,_e.HTML),i.insertionMode=$.IN_TABLE_BODY}function zfe(i,e){i.openElements.clearBackToTableContext(),i._insertFakeElement(re.TBODY,v.TBODY),i.insertionMode=$.IN_TABLE_BODY,sx(i,e)}function Bfe(i,e){i.openElements.hasInTableScope(v.TABLE)&&(i.openElements.popUntilTagNamePopped(v.TABLE),i._resetInsertionMode(),i._processStartTag(e))}function Hfe(i,e){dV(e)?i._appendElement(e,_e.HTML):w0(i,e),e.ackSelfClosing=!0}function Ufe(i,e){!i.formElement&&i.openElements.tmplCount===0&&(i._insertElement(e,_e.HTML),i.formElement=i.openElements.current,i.openElements.pop())}function Jf(i,e){switch(e.tagID){case v.TD:case v.TH:case v.TR:{zfe(i,e);break}case v.STYLE:case v.SCRIPT:case v.TEMPLATE:{Us(i,e);break}case v.COL:{Ofe(i,e);break}case v.FORM:{Ufe(i,e);break}case v.TABLE:{Bfe(i,e);break}case v.TBODY:case v.TFOOT:case v.THEAD:{Ffe(i,e);break}case v.INPUT:{Hfe(i,e);break}case v.CAPTION:{Rfe(i,e);break}case v.COLGROUP:{Pfe(i,e);break}default:w0(i,e)}}function y0(i,e){switch(e.tagID){case v.TABLE:{i.openElements.hasInTableScope(v.TABLE)&&(i.openElements.popUntilTagNamePopped(v.TABLE),i._resetInsertionMode());break}case v.TEMPLATE:{ju(i,e);break}case v.BODY:case v.CAPTION:case v.COL:case v.COLGROUP:case v.HTML:case v.TBODY:case v.TD:case v.TFOOT:case v.TH:case v.THEAD:case v.TR:break;default:w0(i,e)}}function w0(i,e){let t=i.fosterParentingEnabled;i.fosterParentingEnabled=!0,nx(i,e),i.fosterParentingEnabled=t}function fV(i,e){i.pendingCharacterTokens.push(e)}function pV(i,e){i.pendingCharacterTokens.push(e),i.hasNonWhitespacePendingCharacterToken=!0}function p0(i,e){let t=0;if(i.hasNonWhitespacePendingCharacterToken)for(;t0&&i.openElements.currentTagId===v.OPTION&&i.openElements.tagIDs[i.openElements.stackTop-1]===v.OPTGROUP&&i.openElements.pop(),i.openElements.currentTagId===v.OPTGROUP&&i.openElements.pop();break}case v.OPTION:{i.openElements.currentTagId===v.OPTION&&i.openElements.pop();break}case v.SELECT:{i.openElements.hasInSelectScope(v.SELECT)&&(i.openElements.popUntilTagNamePopped(v.SELECT),i._resetInsertionMode());break}case v.TEMPLATE:{ju(i,e);break}default:}}function $fe(i,e){let t=e.tagID;t===v.CAPTION||t===v.TABLE||t===v.TBODY||t===v.TFOOT||t===v.THEAD||t===v.TR||t===v.TD||t===v.TH?(i.openElements.popUntilTagNamePopped(v.SELECT),i._resetInsertionMode(),i._processStartTag(e)):bV(i,e)}function Gfe(i,e){let t=e.tagID;t===v.CAPTION||t===v.TABLE||t===v.TBODY||t===v.TFOOT||t===v.THEAD||t===v.TR||t===v.TD||t===v.TH?i.openElements.hasInTableScope(t)&&(i.openElements.popUntilTagNamePopped(v.SELECT),i._resetInsertionMode(),i.onEndTag(e)):vV(i,e)}function Yfe(i,e){switch(e.tagID){case v.BASE:case v.BASEFONT:case v.BGSOUND:case v.LINK:case v.META:case v.NOFRAMES:case v.SCRIPT:case v.STYLE:case v.TEMPLATE:case v.TITLE:{Us(i,e);break}case v.CAPTION:case v.COLGROUP:case v.TBODY:case v.TFOOT:case v.THEAD:{i.tmplInsertionModeStack[0]=$.IN_TABLE,i.insertionMode=$.IN_TABLE,Jf(i,e);break}case v.COL:{i.tmplInsertionModeStack[0]=$.IN_COLUMN_GROUP,i.insertionMode=$.IN_COLUMN_GROUP,J6(i,e);break}case v.TR:{i.tmplInsertionModeStack[0]=$.IN_TABLE_BODY,i.insertionMode=$.IN_TABLE_BODY,sx(i,e);break}case v.TD:case v.TH:{i.tmplInsertionModeStack[0]=$.IN_ROW,i.insertionMode=$.IN_ROW,ax(i,e);break}default:i.tmplInsertionModeStack[0]=$.IN_BODY,i.insertionMode=$.IN_BODY,zn(i,e)}}function Xfe(i,e){e.tagID===v.TEMPLATE&&ju(i,e)}function _V(i,e){i.openElements.tmplCount>0?(i.openElements.popUntilTagNamePopped(v.TEMPLATE),i.activeFormattingElements.clearToLastMarker(),i.tmplInsertionModeStack.shift(),i._resetInsertionMode(),i.onEof(e)):Z6(i,e)}function Qfe(i,e){e.tagID===v.HTML?zn(i,e):rx(i,e)}function yV(i,e){var t;if(e.tagID===v.HTML){if(i.fragmentContext||(i.insertionMode=$.AFTER_AFTER_BODY),i.options.sourceCodeLocationInfo&&i.openElements.tagIDs[0]===v.HTML){i._setEndLocation(i.openElements.items[0],e);let r=i.openElements.items[1];r&&!(!((t=i.treeAdapter.getNodeSourceCodeLocation(r))===null||t===void 0)&&t.endTag)&&i._setEndLocation(r,e)}}else rx(i,e)}function rx(i,e){i.insertionMode=$.IN_BODY,nx(i,e)}function Zfe(i,e){switch(e.tagID){case v.HTML:{zn(i,e);break}case v.FRAMESET:{i._insertElement(e,_e.HTML);break}case v.FRAME:{i._appendElement(e,_e.HTML),e.ackSelfClosing=!0;break}case v.NOFRAMES:{Us(i,e);break}default:}}function Jfe(i,e){e.tagID===v.FRAMESET&&!i.openElements.isRootHtmlElementCurrent()&&(i.openElements.pop(),!i.fragmentContext&&i.openElements.currentTagId!==v.FRAMESET&&(i.insertionMode=$.AFTER_FRAMESET))}function epe(i,e){switch(e.tagID){case v.HTML:{zn(i,e);break}case v.NOFRAMES:{Us(i,e);break}default:}}function tpe(i,e){e.tagID===v.HTML&&(i.insertionMode=$.AFTER_AFTER_FRAMESET)}function ipe(i,e){e.tagID===v.HTML?zn(i,e):tx(i,e)}function tx(i,e){i.insertionMode=$.IN_BODY,nx(i,e)}function rpe(i,e){switch(e.tagID){case v.HTML:{zn(i,e);break}case v.NOFRAMES:{Us(i,e);break}default:}}function npe(i,e){e.chars=Yi,i._insertCharacters(e)}function ope(i,e){i._insertCharacters(e),i.framesetOk=!1}function wV(i){for(;i.treeAdapter.getNamespaceURI(i.openElements.current)!==_e.HTML&&!i._isIntegrationPoint(i.openElements.currentTagId,i.openElements.current);)i.openElements.pop()}function spe(i,e){if(q6(e))wV(i),i._startTagOutsideForeignContent(e);else{let t=i._getAdjustedCurrentElement(),r=i.treeAdapter.getNamespaceURI(t);r===_e.MATHML?Zw(e):r===_e.SVG&&(K6(e),Jw(e)),h0(e),e.selfClosing?i._appendElement(e,r):i._insertElement(e,r),e.ackSelfClosing=!0}}function ape(i,e){if(e.tagID===v.P||e.tagID===v.BR){wV(i),i._endTagOutsideForeignContent(e);return}for(let t=i.openElements.stackTop;t>0;t--){let r=i.openElements.items[t];if(i.treeAdapter.getNamespaceURI(r)===_e.HTML){i._endTagOutsideForeignContent(e);break}let n=i.treeAdapter.getTagName(r);if(n.toLowerCase()===e.tagName){e.tagName=n,i.openElements.shortenToLength(t);break}}}var lpe=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),vMe=String.prototype.codePointAt!=null?(i,e)=>i.codePointAt(e):(i,e)=>(i.charCodeAt(e)&64512)===55296?(i.charCodeAt(e)-55296)*1024+i.charCodeAt(e+1)-56320+65536:i.charCodeAt(e);function eT(i,e){return function(r){let n,o=0,s="";for(;n=i.exec(r);)o!==n.index&&(s+=r.substring(o,n.index)),s+=e.get(n[0].charCodeAt(0)),o=n.index+1;return s+r.substring(o)}}var _Me=eT(/[&<>'"]/g,lpe),cpe=eT(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),dpe=eT(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]));var SMe=new Set([re.AREA,re.BASE,re.BASEFONT,re.BGSOUND,re.BR,re.COL,re.EMBED,re.FRAME,re.HR,re.IMG,re.INPUT,re.KEYGEN,re.LINK,re.META,re.PARAM,re.SOURCE,re.TRACK,re.WBR]);function xV(i,e){return Yl.parse(i,e)}function CV(i,e,t){typeof i=="string"&&(t=e,e=i,i=null);let r=Yl.getFragmentParser(i,t);return r.tokenizer.write(e,!0),r.getFragment()}var upe=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),SV={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function lx(i,e){let t=wpe(i),r=Of("type",{handlers:{root:hpe,element:fpe,text:ppe,comment:EV,doctype:mpe,raw:bpe},unknown:vpe}),n={parser:t?new Yl(SV):Yl.getFragmentParser(void 0,SV),handle(a){r(a,n)},stitches:!1,options:e||{}};r(i,n),ep(n,cs());let o=t?n.parser.document:n.parser.getFragment(),s=s0(o,{file:n.options.file});return n.stitches&&Pn(s,"comment",function(a,l,c){let d=a;if(d.value.stitch&&c&&l!==void 0){let u=c.children;return u[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===i.type?s.children[0]:s}function kV(i,e){let t=-1;if(i)for(;++tl&&(l=c):c&&(l!==void 0&&l>-1&&a.push(` -`.repeat(l)||" "),l=-1,a.push(c))}return a.join("")}function FV(i,e,t){return i.type==="element"?Ope(i,e,t):i.type==="text"?t.whitespace==="normal"?zV(i,t):Fpe(i):[]}function Ope(i,e,t){let r=BV(i,t),n=i.children||[],o=-1,s=[];if(Ppe(i))return s;let a,l;for(rT(i)||PV(i)&&dx(e,i,PV)?l=` -`:Rpe(i)?(a=2,l=2):OV(i)&&(a=1,l=1);++o`",url:!1},abruptClosingOfEmptyComment:{reason:"Unexpected abruptly closed empty comment",description:"Unexpected `>` or `->`. Expected `-->` to close comments"},abruptDoctypePublicIdentifier:{reason:"Unexpected abruptly closed public identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the public identifier"},abruptDoctypeSystemIdentifier:{reason:"Unexpected abruptly closed system identifier",description:"Unexpected `>`. Expected a closing `\"` or `'` after the identifier identifier"},absenceOfDigitsInNumericCharacterReference:{reason:"Unexpected non-digit at start of numeric character reference",description:"Unexpected `%c`. Expected `[0-9]` for decimal references or `[0-9a-fA-F]` for hexadecimal references"},cdataInHtmlContent:{reason:"Unexpected CDATA section in HTML",description:"Unexpected `` in ``",description:"Unexpected text character `%c`. Only use text in `